/* Xcojo home — xcojo.com. Teal · black · gold · white. Phone first, fluid up to desktop. */
:root {
  --bg: #f6f5f1; --bg2: #efede6; --card: rgba(255,255,255,.78); --card-solid: #fff; --ink: #111114; --muted: #6b6b73; --line: rgba(17,17,20,.09);
  --teal: #0d746e; --teal-2: #14b8a6; --gold: #c49a3a; --gold-2: #e8c878; --noir: #0c0c0e;
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(16,24,40,.16);
  --blur: saturate(180%) blur(22px); --ease: cubic-bezier(.32,.72,0,1); --dock: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b0b0d; --bg2: #121215; --card: rgba(28,28,32,.72); --card-solid: #18181b; --ink: #f4f3ef; --muted: #9a9aa3; --line: rgba(255,255,255,.08); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.6); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0b0b0d; --bg2: #121215; --card: rgba(28,28,32,.72); --card-solid: #18181b; --ink: #f4f3ef; --muted: #9a9aa3; --line: rgba(255,255,255,.08); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.6); color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: -20% -10% auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 18% 20%, color-mix(in srgb, var(--teal-2) 22%, transparent), transparent 70%), radial-gradient(35% 45% at 85% 10%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 12px; }

.hm-shell { max-width: 1180px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 16px calc(var(--dock) + 28px + var(--safe-b)); min-height: 100%; }

/* top bar */
.hm-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 8px 0 10px; margin: 0 -16px; padding-inline: 16px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: box-shadow .3s var(--ease); }
.hm-top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.hm-round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: .5px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .25s var(--ease); overflow: hidden; color: var(--ink); text-decoration: none; }
.hm-round:active { transform: scale(.92); }
.hm-round.sm { width: 36px; height: 36px; box-shadow: none; } .hm-round.sm svg { width: 18px; height: 18px; }
.hm-me img { width: 100%; height: 100%; object-fit: cover; } .hm-me b { font-size: 15px; letter-spacing: .02em; color: var(--teal); }
.hm-logo { justify-self: center; display: block; line-height: 0; } .hm-logo img { height: 34px; width: auto; max-width: 56vw; object-fit: contain; }

/* quick glance */
.hm-glance { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 16px 8px; margin: 0 -16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
.hm-glance::-webkit-scrollbar { display: none; }
.hm-chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--card); border: .5px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .25s var(--ease), background .2s; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.hm-chip:active { transform: scale(.95); }
.hm-ic { display: inline-block; flex: none; border-radius: 28%; background-color: #fff; background-repeat: no-repeat; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); display: inline-grid; place-items: center; }
.hm-ic svg { width: 55%; height: 55%; }
.hm-chip .hm-ic { border-radius: 50%; }

/* search */
.hm-search { position: relative; display: flex; align-items: center; gap: 4px; margin: 10px 0 18px; padding: 6px; border-radius: 999px; background: var(--card-solid); border: .5px solid var(--line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal-2) 10%, transparent), var(--shadow); transition: box-shadow .3s var(--ease); }
.hm-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent), var(--shadow); }
.hm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 10px 6px; font-size: 17px; }
.hm-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hm-sbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: .5px solid var(--line); transition: transform .2s var(--ease), background .2s, color .2s; }
.hm-sbtn:active { transform: scale(.9); } .hm-sbtn svg { width: 20px; height: 20px; }
.hm-ai .hm-ic { width: 26px; height: 26px; border-radius: 50%; filter: grayscale(.6); opacity: .8; transition: filter .2s, opacity .2s; }
.hm-ai[aria-pressed="true"] { background: color-mix(in srgb, var(--teal) 14%, transparent); border-color: var(--teal); } .hm-ai[aria-pressed="true"] .hm-ic { filter: none; opacity: 1; }
.hm-go { background: var(--noir); color: #fff; border-color: transparent; } :root[data-theme="dark"] .hm-go { background: var(--gold); color: #111; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hm-go { background: var(--gold); color: #111; } }
.hm-mic-on { color: #fff !important; background: #dc2626 !important; animation: hm-pulse 1.2s infinite; }
@keyframes hm-pulse { 50% { box-shadow: 0 0 0 8px rgba(220,38,38,.18); } }
.hm-suggest { position: absolute; left: 8px; right: 8px; top: calc(100% + 8px); z-index: 25; background: var(--card-solid); border: .5px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.hm-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; text-align: left; }
.hm-suggest button:hover, .hm-suggest button.is-on { background: color-mix(in srgb, var(--teal) 8%, transparent); }
.hm-suggest svg { width: 16px; height: 16px; color: var(--muted); }

/* cards */
.hm-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.hm-grid > * { min-width: 0; }
.hm-col { display: grid; gap: 16px; min-width: 0; align-content: start; grid-template-columns: minmax(0, 1fr); }
.hm-col > * { min-width: 0; }
.hm-mini { display: none; }
@media (min-width: 900px) { .hm-mini { display: block; min-height: 0; } }
.hm-mini .hm-appgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 900px) { .hm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.hm-card { background: var(--card); border: .5px solid var(--line); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); min-height: 220px; }
.hm-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hm-card-h h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.hm-link { color: var(--teal); font-weight: 600; font-size: 15px; } :root[data-theme="dark"] .hm-link { color: var(--teal-2); }
.hm-widgets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 12px; padding: 0 4px 2px; scroll-snap-type: x mandatory; }
.hm-widgets::-webkit-scrollbar { display: none; }
.hm-w { scroll-snap-align: start; text-align: left; padding: 14px; border-radius: 20px; background: var(--card-solid); border: .5px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 112px; transition: transform .25s var(--ease); }
.hm-w:active { transform: scale(.97); }
.hm-w .hm-ic { width: 28px; height: 28px; } .hm-w small { color: var(--muted); font-size: 13px; } .hm-w b { font-size: 20px; letter-spacing: -.01em; }
.hm-w.gold { background: linear-gradient(140deg, var(--noir), #1f3f3c); color: #fff; border-color: color-mix(in srgb, var(--gold) 50%, transparent); } .hm-w.gold small { color: rgba(255,255,255,.7); } .hm-w.gold b { color: var(--gold-2); }
.hm-n { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; text-align: left; border-top: .5px solid var(--line); }
.hm-n:first-child { border-top: 0; }
.hm-n-av { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--teal) 14%, transparent); display: grid; place-items: center; color: var(--teal); font-weight: 600; }
.hm-n-av img { width: 100%; height: 100%; object-fit: cover; }
.hm-n-t { flex: 1; min-width: 0; font-size: 15px; } .hm-n-t small { display: block; color: var(--muted); font-size: 13px; }
.hm-n.unread .hm-n-t { font-weight: 600; } .hm-n.unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.hm-empty { color: var(--muted); font-size: 15px; padding: 16px 4px; text-align: center; }
.hm-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, var(--noir), var(--teal)); color: #fff; }
.hm-cta p { margin: 0; color: rgba(255,255,255,.82); }

/* segmented control */
.hm-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); position: relative; }
.hm-seg button { padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .2s, background .3s var(--ease), box-shadow .3s; }
.hm-seg button.is-on { background: var(--card-solid); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* news */
.hm-feed { display: flex; flex-direction: column; }
.hm-a { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 14px; align-items: center; padding: 12px 2px; border-top: .5px solid var(--line); text-align: left; width: 100%; transition: opacity .2s; }
.hm-a:first-child { border-top: 0; } .hm-a:active { opacity: .6; }
.hm-a h4 { margin: 2px 0 4px; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-a small { color: var(--muted); font-size: 12.5px; } .hm-a .src { color: var(--teal); font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.hm-a img, .hm-a .ph { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; background: var(--bg2); }
.hm-a.lead { grid-template-columns: 1fr; } .hm-a.lead img { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 20px; order: -1; }
.hm-a.lead h4 { font-size: 20px; -webkit-line-clamp: 3; }
.hm-post { display: flex; gap: 12px; padding: 12px 2px; border-top: .5px solid var(--line); text-align: left; width: 100%; }
.hm-post:first-child { border-top: 0; } .hm-post p { margin: 2px 0 6px; font-size: 15px; } .hm-post small { color: var(--muted); }
.hm-skel { height: 76px; border-radius: 16px; margin: 8px 0; background: linear-gradient(90deg, var(--bg2), color-mix(in srgb, var(--bg2) 50%, var(--card-solid)), var(--bg2)); background-size: 200% 100%; animation: hm-sh 1.2s infinite; }
@keyframes hm-sh { to { background-position: -200% 0; } }

/* dock */
.hm-dock { position: fixed; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); z-index: 40; width: min(560px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 8px; border-radius: 999px; background: color-mix(in srgb, var(--card-solid) 72%, transparent); border: .5px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 18px 50px -14px rgba(0,0,0,.35); transition: transform .4s var(--ease); }
.hm-dock.is-hidden { transform: translate(-50%, 140%); }
.hm-pill { display: flex; align-items: center; gap: 10px; min-width: 0; height: 56px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--card-solid); border: .5px solid var(--line); text-align: left; transition: transform .25s var(--ease); }
.hm-pill:active, .hm-apps-btn:active { transform: scale(.94); }
.hm-pill span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; } .hm-pill b { font-size: 15px; } .hm-pill small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pill .hm-ic { border-radius: 50%; }
.hm-apps-btn { width: 64px; height: 64px; border-radius: 50%; padding: 0; overflow: hidden; background: #fff; border: 2px solid var(--gold); box-shadow: 0 8px 24px -8px rgba(196,154,58,.6); transition: transform .25s var(--ease); }
.hm-apps-btn img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.hm-tw { justify-content: space-between; padding: 0 8px 0 16px; } .hm-tw-t b { font-variant-numeric: tabular-nums; }
.hm-bell { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.hm-bell svg { width: 20px; height: 20px; } .hm-bell i { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold); color: #111; font: 700 10px/16px system-ui; font-style: normal; text-align: center; }

/* app viewer (push from the right, like iOS) */
.hm-view { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; box-shadow: -20px 0 60px rgba(0,0,0,.18); }
.hm-view.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.hm-shell.is-behind { transform: translateX(-24%) scale(.98); opacity: .6; transition: transform .5s var(--ease), opacity .5s; }
.hm-shell { transition: transform .5s var(--ease), opacity .5s; }
.hm-view-bar { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 10px 8px; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: .5px solid var(--line); }
.hm-back { display: inline-flex; align-items: center; gap: 2px; padding: 8px 12px 8px 4px; border-radius: 999px; color: var(--teal); font-weight: 600; font-size: 17px; }
:root[data-theme="dark"] .hm-back { color: var(--teal-2); }
.hm-back svg { width: 26px; height: 26px; stroke-width: 2.2; }
.hm-view-title { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; } .hm-view-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-view-title .hm-ic { width: 24px; height: 24px; border-radius: 7px; }
.hm-view-act { display: flex; gap: 6px; }
.hm-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--teal-2), var(--gold)); transition: width .6s var(--ease), opacity .3s; }
.hm-view iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }

/* sheets */
.hm-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.32); opacity: 0; transition: opacity .35s var(--ease); }
.hm-scrim.is-on { opacity: 1; }
.hm-sheet { position: fixed; left: 50%; bottom: 0; z-index: 80; width: min(640px, 100%); max-height: min(78vh, 720px); overflow-y: auto; overscroll-behavior: contain; transform: translate(-50%, 105%);
  background: var(--card-solid); border-radius: 30px 30px 0 0; padding: 8px 18px calc(22px + var(--safe-b)); box-shadow: 0 -10px 50px rgba(0,0,0,.25); transition: transform .45s var(--ease); }
.hm-sheet.tall { max-height: 88vh; }
.hm-sheet.is-on { transform: translate(-50%, 0); }
@media (min-width: 760px) { .hm-sheet { bottom: 50%; border-radius: 30px; transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .4s var(--ease), opacity .3s; } .hm-sheet.is-on { transform: translate(-50%, 50%) scale(1); opacity: 1; } }
.hm-grab { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); margin: 2px auto 10px; }
.hm-sheet h3 { margin: 4px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.hm-sheet-h { display: flex; justify-content: space-between; align-items: center; }
.hm-list { display: flex; flex-direction: column; border-radius: 18px; background: color-mix(in srgb, var(--ink) 4%, transparent); overflow: hidden; }
.hm-list > * { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; text-decoration: none; font-size: 16px; border-top: .5px solid var(--line); transition: background .15s; }
.hm-list > *:first-child { border-top: 0; } .hm-list > *:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.hm-list em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 15px; }
.hm-li-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; flex: none; } .hm-li-ic svg { width: 18px; height: 18px; }
.hm-danger { color: #dc2626; }
.hm-fine { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 0; }
.hm-me-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; } .hm-me-head small { display: block; color: var(--muted); }
.hm-me-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); font-weight: 700; font-size: 20px; border: 2px solid var(--gold); }
.hm-me-av img { width: 100%; height: 100%; object-fit: cover; }
.hm-signin { text-align: center; padding: 10px 6px; } .hm-signin img { border-radius: 16px; } .hm-signin p { color: var(--muted); }
.hm-btn { display: flex; justify-content: center; align-items: center; width: 100%; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--teal), var(--noir)); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); margin-top: 8px; }
.hm-btn.ghost { background: none; color: var(--ink); border-color: var(--line); }
.hm-filter { width: 100%; padding: 12px 16px; border-radius: 14px; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); outline: 0; margin-bottom: 14px; font-size: 16px; }
.hm-appgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
@media (min-width: 560px) { .hm-appgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hm-app { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 4px 2px; border-radius: 16px; transition: transform .25s var(--ease); }
.hm-app:active { transform: scale(.92); }
.hm-app .hm-ic { border-radius: 26%; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(0,0,0,.08); }
.hm-app b { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-app small { display: none; }
.hm-tw-big { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; border-radius: 22px; margin-bottom: 14px; background: linear-gradient(135deg, var(--noir), var(--teal)); color: #fff; }
.hm-tw-big b { display: block; font-size: 40px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .hm-tw-big small { color: rgba(255,255,255,.75); }
.hm-wx { text-align: right; cursor: pointer; } .hm-wx b { color: var(--gold-2); }
.hm-ask-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .hm-ask-head h3 { margin: 0; } .hm-ask-head small { color: var(--muted); } .hm-ask-head .hm-ic { border-radius: 50%; }
.hm-ask-form textarea { width: 100%; resize: none; border: .5px solid var(--line); border-radius: 18px; padding: 14px; background: color-mix(in srgb, var(--ink) 4%, transparent); outline: 0; font-size: 17px; }
.hm-ask-form textarea:focus { border-color: var(--gold); }
.hm-ask-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .hm-ask-ideas button { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 10%, transparent); color: var(--teal); font-weight: 600; font-size: 14px; }
.hm-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; text-align: left; border-top: .5px solid var(--line); }
.hm-h:first-child { border-top: 0; } .hm-h > span:not(.hm-ic) { flex: 1; min-width: 0; } .hm-h small { display: block; color: var(--muted); font-size: 13px; } .hm-h .hm-ic { width: 32px; height: 32px; flex: none; }
.hm-toast { position: fixed; left: 50%; bottom: calc(var(--dock) + 30px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 90; padding: 10px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none; transition: .3s var(--ease); }
.hm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 380px) { .hm-pill small { display: none; } .hm-pill { padding-right: 10px; } .hm-apps-btn { width: 58px; height: 58px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
.hm-tw-t b, .hm-tw-t small { white-space: nowrap; } .hm-tw-t { overflow: hidden; }
@media (max-width: 430px) { .hm-tw-t b { font-size: 14px; } .hm-tw { padding-left: 12px; } }
.hm-tw-big b { white-space: nowrap; font-size: clamp(30px, 9vw, 40px); }
@media (max-width: 430px) { .hm-bell { width: 34px; height: 34px; } .hm-tw { gap: 6px; padding-right: 6px; } }
/* slow app hint and reduced motion */
.hm-slow { position: absolute; left: 50%; bottom: calc(24px + var(--safe-b, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--card-solid); border: .5px solid var(--line); box-shadow: var(--shadow); font-size: 14px; transition: opacity .3s var(--ease), transform .4s var(--ease); z-index: 2; }
.hm-slow.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hm-slow a { font-weight: 600; color: var(--teal); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.hm-news-for { margin: -4px 0 6px; font-size: 13px; color: var(--muted); }
.hm-local { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: #8a6a22; }

/* ---- Notifications on this device ---- */
.hm-push { margin: 4px 0 14px; padding: 14px; border-radius: 20px; background: var(--bg2); border: .5px solid var(--line); }
.hm-push-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hm-push-top small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.hm-btn.sm { width: auto; padding: 9px 16px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.hm-push-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--line); }
.hm-topics { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-topics button { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); border: .5px solid var(--line); background: var(--card-solid); transition: background .2s, color .2s; }
.hm-topics button.is-on { background: var(--teal); color: #fff; border-color: transparent; }
/* ---- Install ---- */
.hm-install-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; } .hm-install-head img { border-radius: 16px; box-shadow: var(--shadow); }
.hm-install-head h3 { margin: 0 0 2px; } .hm-install-head small { color: var(--muted); line-height: 1.4; display: block; }
.hm-steps { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.hm-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--bg2); }
.hm-steps li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; }
.hm-steps p { margin: 2px 0 0; line-height: 1.45; } .hm-k { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--card-solid); border: .5px solid var(--line); font-size: 13px; }
.hm-nudge { position: fixed; z-index: 45; left: 50%; bottom: calc(var(--dock) + 26px + var(--safe-b)); width: min(520px, calc(100% - 24px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 10px 10px 10px 12px; border-radius: 22px; background: var(--card-solid); border: .5px solid var(--line); box-shadow: 0 18px 50px -12px rgba(0,0,0,.35);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .35s var(--ease); }
.hm-nudge.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.hm-nudge img { border-radius: 12px; } .hm-nudge small { display: block; color: var(--muted); font-size: 13px; } .hm-nudge-x { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
html.hm-standalone .hm-nudge { display: none; }

/* ---- Desktop: the frame stays put (top bar, glance, search, dock); each column scrolls on its own ---- */
@media (min-width: 1024px) and (min-height: 600px) {
  html, body { height: 100%; overflow: hidden; }
  .hm-shell { height: 100dvh; min-height: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--dock) + 24px); }
  .hm-top { position: relative; flex: none; }
  .hm-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .hm-glance, .hm-search { flex: none; }
  .hm-grid { flex: 1; min-height: 0; align-items: stretch !important; }
  .hm-col, .hm-news { min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent; border-radius: var(--r-xl); }
  .hm-col { display: flex; flex-direction: column; padding-bottom: 2px; } .hm-col > * { flex: none; }
  .hm-news { background: var(--card-solid); }
  .hm-news { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); padding-bottom: 34px; }
  .hm-news .hm-card-h { position: sticky; top: -18px; z-index: 2; margin: -18px -18px 10px; padding: 18px 18px 10px; background: var(--card-solid); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 1px 0 var(--line); }
  .hm-col::-webkit-scrollbar, .hm-news::-webkit-scrollbar { width: 8px; } .hm-col::-webkit-scrollbar-thumb, .hm-news::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 8px; }
  .hm-nudge { bottom: calc(var(--dock) + 30px); }
}
