/* HubHive 2.0's look, over HunterViz's tokens (tokens.css) and kit (hunterviz.css). Warm honey accent, cards on a
   soft page, phone first: everything fits 360px with a 16px gutter. Page-specific rules go in that page's own block
   below its heading comment. */
:root {
  --hh-honey: #f5a524;
  --hh-honey-ink: #8a4b00;
  --hh-honey-soft: #fff4dc;
  --hh-ink: var(--text, #0f172a);
  --hh-muted: var(--text-muted, #475569);
  --hh-line: var(--border, #e2e8f0);
  --hh-card: var(--surface, #ffffff);
  --hh-page: #fbfaf7;
  --hh-radius: 14px;
  --hh-gap: 16px;
}
:root[data-theme="dark"] { --hh-page: #0b1220; --hh-honey-soft: #3a2a0a; --hh-honey-ink: #ffd27a; }

/* Hidden means hidden on every HubHive 2.0 page, whatever display a class gives (a grid or flex form with [hidden]). */
body.hh [hidden] { display: none !important; }
body.hh { background: var(--hh-page); color: var(--hh-ink); margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.hh-skip { position: absolute; left: -9999px; }
.hh-skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 6px 10px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- top bar ---- */
.hh-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--hh-card); border-bottom: 1px solid var(--hh-line); flex-wrap: wrap; }
.hh-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--hh-ink); text-decoration: none; }
.hh-brand img { border-radius: 8px; }
.hh-search { flex: 1 1 220px; min-width: 0; }
.hh-search input { width: 100%; box-sizing: border-box; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--hh-line);
  background: var(--hh-page); font: inherit; }
.hh-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hh-nav > a { position: relative; padding: 7px 10px; border-radius: 999px; color: var(--hh-muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.hh-nav > a.is-on, .hh-nav > a:hover { background: var(--hh-honey-soft); color: var(--hh-honey-ink); }
.hh-nav > a.btn { color: #fff; }
.hh-badge { position: absolute; top: 0; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: 10px; line-height: 16px; text-align: center; box-sizing: border-box; }
.hh-acting { position: relative; }
.hh-acting-btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--hh-line); background: var(--hh-card);
  border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font: inherit; font-size: 14px; max-width: 200px; }
.hh-acting-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-acting-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--hh-card); border: 1px solid var(--hh-line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); padding: 6px; min-width: 230px; z-index: 30; }
.hh-acting-menu button, .hh-acting-menu a { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14px; color: var(--hh-ink);
  text-decoration: none; cursor: pointer; box-sizing: border-box; }
.hh-acting-menu button:hover, .hh-acting-menu a:hover, .hh-acting-menu .is-on { background: var(--hh-honey-soft); }
.hh-acting-menu small { color: var(--hh-muted); }
.hh-menu-label { font-size: 12px; color: var(--hh-muted); padding: 6px 10px; }
.hh-acting-menu hr { border: 0; border-top: 1px solid var(--hh-line); margin: 6px 0; }
.hh-note { background: var(--hh-honey-soft); color: var(--hh-honey-ink); padding: 8px 16px; font-size: 14px; }

/* ---- page ---- */
.hh-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; box-sizing: border-box; }
.hh-main.hh-wide { max-width: 1280px; }
.hh-foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 16px; color: var(--hh-muted); font-size: 13px;
  border-top: 1px solid var(--hh-line); flex-wrap: wrap; }
.hh-foot a { color: inherit; }
.hh-empty { text-align: center; padding: 48px 16px; color: var(--hh-muted); }
.hh-card { background: var(--hh-card); border: 1px solid var(--hh-line); border-radius: var(--hh-radius); padding: 16px; }
.hh-grid { display: grid; gap: var(--hh-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.hh-stack { display: flex; flex-direction: column; gap: 12px; }
.hh-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hh-muted { color: var(--hh-muted); }
.hh-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--hh-honey-soft); color: var(--hh-honey-ink); }
.hh-pill.is-grey { background: #eef2f7; color: #334155; }
.hh-pill.is-green { background: #dcfce7; color: #166534; }
.hh-pill.is-red { background: #fee2e2; color: #991b1b; }
.hh-avatar { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--hh-honey);
  color: #fff; font-weight: 800; font-size: 22px; flex: none; overflow: hidden; object-fit: cover; }
.hh-avatar-sm { width: 26px; height: 26px; font-size: 12px; }
.hh-avatar-lg { width: 96px; height: 96px; font-size: 38px; border: 4px solid var(--hh-card); }
.hh-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--hh-line); margin: 16px 0; scrollbar-width: thin; }
.hh-tabs a { padding: 10px 12px; color: var(--hh-muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.hh-tabs a.is-on { color: var(--hh-ink); border-bottom-color: var(--hh-honey); }
.hh-section-title { font-size: 18px; margin: 24px 0 10px; }
.hh-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 10px 16px;
  border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); }
.hh-form label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.hh-form input, .hh-form textarea, .hh-form select { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--hh-line);
  border-radius: 10px; font: inherit; background: var(--hh-card); color: var(--hh-ink); }
.hh-form textarea { min-height: 96px; }
.hh-vis { font-size: 12px; }

/* ---- profile header ---- */
.hh-cover { height: 180px; border-radius: var(--hh-radius); background: linear-gradient(135deg, #fde68a, #f59e0b 60%, #b45309);
  background-size: cover; background-position: center; }
.hh-profile-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -48px; padding: 0 16px; flex-wrap: wrap; }
.hh-profile-head h1 { margin: 0; font-size: 26px; }
.hh-profile-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hh-cover { height: 120px; }
  .hh-profile-head { padding: 0; }
  .hh-profile-actions { margin-left: 0; width: 100%; }
  .hh-acting-name { display: none; }
}
