/* ==========================================================================
   HunterViz's own pages, in HubHive's design (docs/hubhive2/BUILD.md "The design").

   hh.css gives HunterViz's tokens HubHive's values, so every page already wears the palette. This file takes the
   pages the rest of the way: their shapes, spacing, headings, tables, tabs, cards and states, so the Vault, Projects,
   Billing, sign in and the public links read as the same app as a Profile or the Shop. Every rule is under
   [data-brand="hubhive"] (set on <html> only where HubHive 2.0 is on), so HunterViz itself is untouched.

   Order: 1 tokens the theme left blue; 2 the kit (buttons, fields, cards, tables, badges, menus, dialogs, toasts,
   empty states); 3 a page's frame and headings; 4 each area's own pieces; 5 pages with no shell (sign in, public
   links); 6 dark.
   ========================================================================== */

/* ------------------------------------------------------------------------- 1. tokens */
:root[data-brand="hubhive"] {
  /* HunterViz's blue and orange marks: HubHive's violet. */
  --brand-blue: #651ed7;
  --brand-blue-deep: #46129b;
  --brand-blue-light: #8643e5;
  --brand-orange: #8643e5;
  --brand-orange-hot: #8166ea;
  --brand-ice: #d9ccf7;
  --brand-two-tone: linear-gradient(90deg, #8643e5, #1d2dd7);
  /* "For your information" is HubHive's indigo, not a second blue. */
  --info: #4f46e5;
  --info-soft: #f1f0ff;
  --info-border: #dcd9ff;
  --info-ink: #3730a3;
  --success-soft: #e3f7ee;
  --success-border: #bfe9d6;
  --success-ink: #0b6b4f;
  --warning-soft: #fef3c6;
  --warning-border: #f7e19a;
  --warning-ink: #8a4b00;
  --danger-soft: #fde8e8;
  --danger-border: #f6caca;
  --danger-ink: #a11616;
  --font-display: var(--font);
  --hhp-ring: 0 0 0 4px var(--accent-tint);
}
:root[data-brand="hubhive"][data-theme="dark"] {
  --brand-blue: #a17df5;
  --brand-blue-deep: #c9b6fb;
  --brand-blue-light: #a17df5;
  --info: #8f8cf5;
  --info-soft: #1c1a2e;
  --info-border: #33305c;
  --info-ink: #c7c5fb;
  --success-soft: #12261d;
  --success-border: #1e4a38;
  --success-ink: #8be0b8;
  --warning-soft: #2b2311;
  --warning-border: #57461c;
  --warning-ink: #f6d37a;
  --danger-soft: #2e1519;
  --danger-border: #5c2830;
  --danger-ink: #f7a8b1;
}

/* ------------------------------------------------------------------------- 2. the kit */
[data-brand="hubhive"] body { font-feature-settings: "cv11", "ss01"; }
[data-brand="hubhive"] ::selection { background: var(--accent-tint); }
[data-brand="hubhive"] :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
[data-brand="hubhive"] a { text-underline-offset: 3px; }
[data-brand="hubhive"] hr { border-top-color: var(--hh-line-soft); }
[data-brand="hubhive"] .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hh-violet); }
[data-brand="hubhive"] .lead { color: var(--hh-muted); }
[data-brand="hubhive"] code, [data-brand="hubhive"] kbd { background: var(--hh-soft); border-radius: 6px; padding: 0.1em 0.35em; }
[data-brand="hubhive"] pre code { background: none; padding: 0; }

/* Buttons: pills, one clear primary, quiet seconds. */
[data-brand="hubhive"] .btn { padding: 0.68rem 1.2rem; letter-spacing: -0.005em; transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s; }
[data-brand="hubhive"] .btn:active:not(:disabled) { transform: translateY(1px); }
[data-brand="hubhive"] .btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); border-radius: 999px; }
[data-brand="hubhive"] .btn-primary { background: var(--action); color: #fff; }
[data-brand="hubhive"] .btn-primary:active { filter: none; background: var(--hh-violet-deep); }
[data-brand="hubhive"] .btn-secondary { background: var(--surface); color: var(--hh-navy); }
[data-brand="hubhive"] .btn-ghost { color: var(--hh-muted); }
[data-brand="hubhive"] .btn-sm { padding: 0.45rem 0.9rem; font-size: 13px; }
[data-brand="hubhive"] .btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; border-radius: 999px; }
[data-brand="hubhive"] .btn-icon { padding: 0; width: 2.4rem; height: 2.4rem; border-radius: 999px; }
[data-brand="hubhive"] .btn-icon.btn-sm { width: 2rem; height: 2rem; }
[data-brand="hubhive"] .btn-danger { background: var(--danger); border-radius: 999px; }
[data-brand="hubhive"] .btn-danger-ghost { border-color: var(--danger-border); }
[data-brand="hubhive"] .btn-white { color: var(--hh-violet); box-shadow: none; }
[data-brand="hubhive"] .btn svg { width: 1.1em; height: 1.1em; stroke-width: 2; }
[data-brand="hubhive"] .hv-icon { stroke-width: 1.8; }

/* Chips: HubHive's (.hh-chip). */
[data-brand="hubhive"] .chip { padding: 7px 14px; border-color: var(--hh-line); font-size: 13.5px; font-weight: 500; color: var(--hh-muted); }
[data-brand="hubhive"] .chip:hover { border-color: var(--accent-border); color: var(--hh-violet-deep); background: var(--accent-soft); }
[data-brand="hubhive"] .chip.active, [data-brand="hubhive"] .chip[aria-pressed="true"] { background: var(--hh-violet-fill); border-color: var(--hh-violet-fill); color: #fff; }

/* Fields: 12px corners, a quiet line, a soft violet ring. */
[data-brand="hubhive"] .field { gap: 6px; margin-bottom: 18px; }
[data-brand="hubhive"] .field label, [data-brand="hubhive"] .label { font-size: 13.5px; font-weight: 600; color: var(--hh-navy); }
[data-brand="hubhive"] .field .hint, [data-brand="hubhive"] .hint { font-size: 13px; color: var(--hh-faint); }
[data-brand="hubhive"] .input, [data-brand="hubhive"] .select, [data-brand="hubhive"] .textarea {
  border-color: var(--hh-line); padding: 10px 13px; font-size: 15px; background: var(--hh-card); color: var(--hh-ink); min-height: 44px; }
[data-brand="hubhive"] .textarea { min-height: 104px; line-height: 1.5; }
[data-brand="hubhive"] .input:hover, [data-brand="hubhive"] .select:hover, [data-brand="hubhive"] .textarea:hover { border-color: var(--border-strong); }
[data-brand="hubhive"] .input:focus, [data-brand="hubhive"] .select:focus, [data-brand="hubhive"] .textarea:focus {
  border-color: var(--hh-violet); box-shadow: var(--hhp-ring); }
[data-brand="hubhive"] .input[readonly], [data-brand="hubhive"] .textarea[readonly], [data-brand="hubhive"] .input:disabled { background: var(--hh-soft); color: var(--hh-muted); }
[data-brand="hubhive"] .checkbox-row { gap: 10px; font-size: 14.5px; }
[data-brand="hubhive"] input[type="checkbox"], [data-brand="hubhive"] input[type="radio"] { accent-color: var(--hh-violet); }
[data-brand="hubhive"] .checkbox-row input { width: 18px; height: 18px; }
[data-brand="hubhive"] .field-error { font-size: 13px; }

/* Cards: soft, 16px, no shadow at rest; a head that is a title, not a toolbar. */
[data-brand="hubhive"] .card { border-color: var(--hh-line); background: var(--hh-card); }
[data-brand="hubhive"] .card-pad { padding: 22px; }
[data-brand="hubhive"] .card-head { padding: 18px 22px; border-bottom-color: var(--hh-line-soft); gap: 12px; }
[data-brand="hubhive"] .card-title { font-size: 1.0625rem; font-weight: 700; color: var(--hh-navy); letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
[data-brand="hubhive"] .card-title > .hv-icon { width: 18px; height: 18px; color: var(--hh-violet); }
/* Few words: the line of help under a card's title is not shown (the owner: no help text above a page's content). */
[data-brand="hubhive"] .card-head .card-title + p:not([id]) { display: none; }
@media (max-width: 560px) {
  [data-brand="hubhive"] .card-head { padding: 16px; }
  [data-brand="hubhive"] .card-pad { padding: 16px; }
}

/* Badges: HubHive's pills. */
[data-brand="hubhive"] .badge { border: 0; padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.4; background: var(--hh-soft); color: var(--hh-muted); }
[data-brand="hubhive"] .badge:empty { display: none; }
[data-brand="hubhive"] .badge-accent { background: var(--accent-soft); color: var(--hh-violet-deep); }
[data-brand="hubhive"] .badge-success { background: var(--success-soft); color: var(--success-ink); }
[data-brand="hubhive"] .badge-warning { background: var(--warning-soft); color: var(--warning-ink); }
[data-brand="hubhive"] .badge-danger { background: var(--danger-soft); color: var(--danger-ink); }
[data-brand="hubhive"] .badge-info { background: var(--info-soft); color: var(--info-ink); }
[data-brand="hubhive"] #notif-badge { background: var(--hh-violet-fill); color: #fff; }
[data-brand="hubhive"] .cap-chip { border-radius: 999px; padding: 3px 10px; background: var(--hh-soft); }
[data-brand="hubhive"] .cap-chip.on { background: var(--accent-soft); color: var(--hh-violet-deep); }

/* Avatars */
[data-brand="hubhive"] .avatar-quiet { background: var(--hh-soft); color: var(--hh-muted); }

/* Tables: lighter, more air. */
[data-brand="hubhive"] .table-wrap.boxed { border-color: var(--hh-line); border-radius: 16px; }
[data-brand="hubhive"] .table { font-size: 14.5px; }
[data-brand="hubhive"] .table th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hh-faint); padding: 12px 16px;
  border-bottom-color: var(--hh-line-soft); background: none; }
[data-brand="hubhive"] .table td { padding: 14px 16px; border-bottom-color: var(--hh-line-soft); }
[data-brand="hubhive"] .table tbody tr:hover { background: var(--hh-soft); }

/* Stats */
[data-brand="hubhive"] .stat-grid { gap: 16px; }
[data-brand="hubhive"] .stat { border-color: var(--hh-line); box-shadow: none; padding: 20px 22px; border-radius: 16px; }
[data-brand="hubhive"] .stat.is-accent { border-color: transparent; background: var(--hh-lilac); }
[data-brand="hubhive"] .stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hh-faint); }
[data-brand="hubhive"] .stat-value { font-weight: 800; color: var(--hh-navy); letter-spacing: -0.03em; }
[data-brand="hubhive"] .stat-sub { font-size: 13px; color: var(--hh-muted); }

/* Empty states: a lilac tile, a navy line, one action. */
[data-brand="hubhive"] .empty { padding: 56px 20px; }
[data-brand="hubhive"] .empty-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--hh-lilac); color: var(--hh-violet); margin-bottom: 16px; }
[data-brand="hubhive"] .empty-icon .hv-icon { width: 26px; height: 26px; }
[data-brand="hubhive"] .empty h3 { font-size: 1.2rem; color: var(--hh-navy); margin-bottom: 6px; }
[data-brand="hubhive"] .empty p { color: var(--hh-muted); max-width: 44ch; font-size: 15px; }

/* Dialogs */
[data-brand="hubhive"] .modal-overlay { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-brand="hubhive"] .modal { padding: 28px; border: 0; box-shadow: var(--shadow-xl); max-width: 480px; }
[data-brand="hubhive"] .modal.modal-wide { max-width: 700px; }
[data-brand="hubhive"] .modal h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.025em; color: var(--hh-navy); margin-bottom: 6px; }
[data-brand="hubhive"] .modal-desc { color: var(--hh-muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; }
[data-brand="hubhive"] .modal-actions { margin-top: 24px; gap: 10px; }
[data-brand="hubhive"] .modal-close { top: 14px; right: 14px; }
@media (max-width: 560px) {
  [data-brand="hubhive"] .modal { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  [data-brand="hubhive"] .modal-overlay { padding: 0; }
}

/* Menus */
[data-brand="hubhive"] .menu { border-color: var(--hh-line); min-width: 220px; }
[data-brand="hubhive"] .menu-item { border-radius: 10px; padding: 9px 12px; font-size: 14.5px; gap: 10px; }
[data-brand="hubhive"] .menu-item:hover, [data-brand="hubhive"] .menu-item:focus-visible { background: var(--hh-soft); }
[data-brand="hubhive"] .menu-item .hv-icon { color: var(--hh-faint); width: 17px; height: 17px; }
[data-brand="hubhive"] .menu-item.danger .hv-icon { color: inherit; }
[data-brand="hubhive"] .menu-item[aria-current="true"] { background: var(--accent-soft); color: var(--hh-violet-deep); }
[data-brand="hubhive"] .menu-divider { background: var(--hh-line-soft); margin: 6px 4px; }
[data-brand="hubhive"] .menu-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hh-faint); padding: 8px 12px 4px; }

/* Tabs: HubHive's (.hh-tabs). */
[data-brand="hubhive"] .tabs { gap: 2px; border-bottom-color: var(--hh-line); scrollbar-width: none; }
[data-brand="hubhive"] .tab { padding: 11px 14px; font-size: 14.5px; color: var(--hh-muted); }
[data-brand="hubhive"] .tab:hover { color: var(--hh-navy); }
[data-brand="hubhive"] .tab.active, [data-brand="hubhive"] .tab[aria-selected="true"], [data-brand="hubhive"] .tab[aria-current="page"] { color: var(--hh-violet); border-bottom-color: var(--hh-violet); }

/* Alerts, callouts, status lines */
[data-brand="hubhive"] .alert { border-radius: 14px; padding: 12px 16px; font-size: 14.5px; border-color: transparent; }
[data-brand="hubhive"] .callout { border: 0; border-radius: 14px; background: var(--hh-lilac); color: var(--hh-ink); padding: 14px 16px 14px 22px; }
[data-brand="hubhive"] .callout::before { background: var(--hh-violet-fill); left: 10px; }
[data-brand="hubhive"] .callout-title { color: var(--hh-navy); }
[data-brand="hubhive"] .status-msg { border-radius: 12px; padding: 10px 14px; }

/* Toasts: HubHive's navy pill. */
[data-brand="hubhive"] .toast { background: var(--hh-navy-fill); color: #fff; border: 0; border-radius: 18px; padding: 11px 10px 11px 18px; font-size: 14.5px; font-weight: 500; }
[data-brand="hubhive"] .toast::before { width: 8px; height: 8px; align-self: center; border-radius: 50%; background: var(--hh-violet-bright); }
[data-brand="hubhive"] .toast-close { border-radius: 999px; color: rgba(255, 255, 255, 0.7); }
[data-brand="hubhive"] .toast-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
[data-brand="hubhive"] .toast-detail { color: rgba(255, 255, 255, 0.72); }
:root[data-brand="hubhive"][data-theme="dark"] .toast { background: #26262f; color: #f2f2f5; }

/* Loading */
[data-brand="hubhive"] .skeleton { background: linear-gradient(90deg, var(--hh-soft) 25%, var(--hh-line-soft) 50%, var(--hh-soft) 75%); background-size: 200% 100%; border-radius: 10px; }

/* The workspace switcher and the Vault's picker */
[data-brand="hubhive"] .ws-switch-btn { border-radius: 999px; border-color: var(--hh-line); padding: 5px 12px 5px 6px; }
[data-brand="hubhive"] .vp-results, [data-brand="hubhive"] .vp-list { border-color: var(--hh-line); border-radius: 14px; padding: 6px; }
[data-brand="hubhive"] .vp-result, [data-brand="hubhive"] .vp-row, [data-brand="hubhive"] .vp-item { border-radius: 10px; }
[data-brand="hubhive"] .vp-result:hover, [data-brand="hubhive"] .vp-result:focus-visible, [data-brand="hubhive"] .vp-row:hover { background: var(--hh-soft); }
[data-brand="hubhive"] .md-copy-words { border-color: var(--hh-line); background: var(--hh-soft); }

/* The bell's menu and the notifications in it */
[data-brand="hubhive"] #notif-menu { padding: 8px; }
[data-brand="hubhive"] .topbar .btn-icon.btn-ghost { color: var(--hh-muted); }
[data-brand="hubhive"] .topbar .btn-icon.btn-ghost:hover { background: var(--hh-soft); color: var(--text); }
[data-brand="hubhive"] .ws-header-icon { background: var(--hh-lilac) !important; color: var(--hh-violet) !important; border-radius: 10px !important; }

/* ------------------------------------------------------------------------- 3. a page's frame and headings */
/* One of a Workspace's pages (it starts with the workspace header) or an account page (it starts with a page head):
   HubHive's column, centred, with room. The Home (the chat) and HubHive's own pages (.hh-main) keep their own. */
[data-brand="hubhive"] .app:not(.embedded) .app-content:not(.hh-main):has(> .workspace-header),
[data-brand="hubhive"] .app:not(.embedded) .app-content:not(.hh-main):has(> .page-head) {
  width: 100%; max-width: 1240px; margin-inline: auto; padding: 28px clamp(16px, 3vw, 32px) 64px; }
@media (max-width: 900px) {
  [data-brand="hubhive"] .app:not(.embedded) .app-content:not(.hh-main):has(> .workspace-header),
  [data-brand="hubhive"] .app:not(.embedded) .app-content:not(.hh-main):has(> .page-head) { padding: 20px 16px 96px; }
}

/* The top of a Workspace's page: the Workspace as the small violet label (it leads back to its Home), the part as the
   big navy title, the page's one action on the right. */
[data-brand="hubhive"] .workspace-header { margin-bottom: 24px !important; }
[data-brand="hubhive"] .workspace-crumbs { border-bottom: 0; padding-bottom: 0; align-items: flex-end !important; min-height: 0; gap: 16px; flex-wrap: wrap; }
[data-brand="hubhive"] .workspace-where { flex-direction: column; align-items: flex-start !important; gap: 4px !important; }
[data-brand="hubhive"] .workspace-back { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hh-violet); max-width: 100%; gap: 6px; }
[data-brand="hubhive"] .workspace-back:hover, [data-brand="hubhive"] .workspace-back:focus-visible { color: var(--accent-hover); }
[data-brand="hubhive"] .workspace-back svg { width: 13px; height: 13px; }
[data-brand="hubhive"] .workspace-here { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--hh-navy); }
[data-brand="hubhive"] .workspace-here::before { content: none; }
[data-brand="hubhive"] .workspace-crumbs > .row.gap-1 { padding-bottom: 2px !important; }
[data-brand="hubhive"] .workspace-crumbs > .row.gap-1 .btn-sm { padding: 0.62rem 1.1rem; font-size: 14px; }
[data-brand="hubhive"] .app.embedded .workspace-header { margin-bottom: 12px !important; }

/* An account page's head: the big navy title, no paragraph of help under it. */
[data-brand="hubhive"] .page-head { margin-bottom: 24px; align-items: flex-end; }
[data-brand="hubhive"] .page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--hh-navy); margin: 0; }
[data-brand="hubhive"] .page-head h1 + p { display: none; }
/* The title is on the page; the top bar doesn't say it twice. */
[data-brand="hubhive"] .app-main:has(.page-head) .topbar > .row:first-child > h1 { display: none; }

[data-brand="hubhive"] .app-content > .alert { margin-bottom: 16px; }
[data-brand="hubhive"] .app-main > .alert { border-radius: 0; }

/* ------------------------------------------------------------------------- 4. each area's own pieces */

/* --- Dashboards (a Workspace's, and the Overview) --- */
[data-brand="hubhive"] .dash-grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
[data-brand="hubhive"] .dash-card { border-radius: 18px; border-color: var(--hh-line); box-shadow: none; }
[data-brand="hubhive"] .dash-card-clickable:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
[data-brand="hubhive"] .dash-preview { background: var(--hh-soft); border-bottom-color: var(--hh-line-soft); }
[data-brand="hubhive"] .dash-provider-chip { font-size: 12px; font-weight: 600; border: 0; box-shadow: var(--shadow-sm); padding: 4px 10px; }
[data-brand="hubhive"] .dash-card-foot { padding: 14px 12px 14px 18px; }
[data-brand="hubhive"] .dash-title { font-size: 15.5px; font-weight: 700; color: var(--hh-navy); }
[data-brand="hubhive"] .dash-sub { font-size: 13px; color: var(--hh-faint); }
[data-brand="hubhive"] .dash-open-veil { background: linear-gradient(to top, rgba(12, 32, 64, 0.4), rgba(12, 32, 64, 0.06) 55%, rgba(12, 32, 64, 0)); }
[data-brand="hubhive"] .dash-monogram { border-radius: 16px; box-shadow: none; text-shadow: none; }
[data-brand="hubhive"] .dash-state-icon { box-shadow: none; }
[data-brand="hubhive"] .dash-card-locked { border-color: var(--warning-border); }
[data-brand="hubhive"] .ws-section-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
[data-brand="hubhive"] .ws-section-title-link { color: var(--hh-navy); }
[data-brand="hubhive"] .ws-section-title-link:hover { color: var(--hh-violet); }
[data-brand="hubhive"] .people-list .person { border-bottom-color: var(--hh-line-soft); }
[data-brand="hubhive"] .detect-panel, [data-brand="hubhive"] .dash-status { border-radius: 12px; }

/* The page's own heading says what the title above it already says: not shown. Its count stays. */
[data-brand="hubhive"] .workspace-header + .row-between > div:first-child:has(> h2) { display: none; }
[data-brand="hubhive"] .workspace-header + .row-between { margin-bottom: 14px; }
[data-brand="hubhive"] #dashboards-count { font-size: 13px; color: var(--hh-faint); }

/* --- A column of settings (Settings, Billing, People, Data, Account, Activity): one centred column, the title and
   the cards on the same edges. --- */
[data-brand="hubhive"] .app:not(.embedded) .app-content:not(.hh-main):has(> .stack[style*="max-width"]),
[data-brand="hubhive"] .app:not(.embedded) .app-content:not(.hh-main):has(> .card[style*="max-width"]) { max-width: 920px; }
[data-brand="hubhive"] .app-content > .stack[style*="max-width"], [data-brand="hubhive"] .app-content > .card[style*="max-width"] { max-width: none !important; }
[data-brand="hubhive"] .app-content > .stack { --stack-gap: 20px !important; }
/* People: the page's Invite is in its header; the card under it doesn't offer it again. */
[data-brand="hubhive"] .app:not(.embedded) .app-content:has(#invite-btn-top) #invite-btn { display: none; }
[data-brand="hubhive"] .people-list .person { padding: 14px 22px; }

/* --- The Vault: the drop, the talk, folders and files --- */
[data-brand="hubhive"] .vault-hero { gap: 20px; }
[data-brand="hubhive"] .vault-drop { border: 1.5px dashed var(--accent-border); border-radius: 20px; background: var(--hh-lilac); min-height: 240px; }
[data-brand="hubhive"] .vault-drop.is-over, [data-brand="hubhive"] .vault-drop:hover { border-color: var(--hh-violet); }
[data-brand="hubhive"] .vault-drop h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.025em; }
[data-brand="hubhive"] .vault-drop p { color: var(--hh-muted); font-size: 15px; }
[data-brand="hubhive"] .vault-drop .vault-drop-icon { background: var(--hh-card); color: var(--hh-violet); width: 52px; height: 52px; border-radius: 16px; }
[data-brand="hubhive"] .vault-talk { border-radius: 20px; padding: 24px 20px; }
[data-brand="hubhive"] .vault-talk h2 { font-size: 1.1rem; }
[data-brand="hubhive"] .vault-mic { width: 92px; height: 92px; background: var(--hh-violet-fill); box-shadow: 0 10px 28px rgba(101, 30, 215, 0.28); }
[data-brand="hubhive"] .vault-mic svg { width: 36px; height: 36px; }
[data-brand="hubhive"] .docs-tree { padding: 12px 10px; }
[data-brand="hubhive"] .docs-tree-head { border-bottom-color: var(--hh-line-soft); }
[data-brand="hubhive"] .docs-tree-root, [data-brand="hubhive"] .docs-tree-link { border-radius: 10px; padding: 7px 10px; font-size: 14px; }
[data-brand="hubhive"] .docs-tree-root:hover, [data-brand="hubhive"] .docs-tree-link:hover { background: var(--hh-soft); }
[data-brand="hubhive"] .docs-tree-link.active, [data-brand="hubhive"] .docs-tree-root.active { background: var(--accent-soft); color: var(--hh-violet-deep); }
[data-brand="hubhive"] .docs-main { padding: 20px 22px 22px; }
[data-brand="hubhive"] .docs-crumbs .docs-crumb-here { color: var(--hh-navy); }
[data-brand="hubhive"] .docs-list svg, [data-brand="hubhive"] .docs-tree svg { color: var(--hh-faint); }
[data-brand="hubhive"] .docs-tree-link.active svg, [data-brand="hubhive"] .docs-tree-root.active svg { color: var(--hh-violet); }

/* --- Projects --- */
/* The list's own "Projects" and the line under it repeat the title: only New project stays, beside the title. */
[data-brand="hubhive"] #projects > .pj-top > div:first-child { display: none; }
[data-brand="hubhive"] #projects > .pj-top { justify-content: flex-end; }
[data-brand="hubhive"] .app:not(.embedded) .workspace-header + #projects > .pj-top { margin-top: -70px; margin-bottom: 24px; min-height: 46px; align-items: flex-end; pointer-events: none; }
[data-brand="hubhive"] .app:not(.embedded) .workspace-header + #projects > .pj-top > * { pointer-events: auto; }
[data-brand="hubhive"] .pj-grid { gap: 20px; }
[data-brand="hubhive"] .pj-side { gap: 20px; }
[data-brand="hubhive"] .pj-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; color: var(--hh-navy); }
[data-brand="hubhive"] .pj-card { padding: 18px 20px; border-radius: 16px; }
[data-brand="hubhive"] .pj-card:hover, [data-brand="hubhive"] .pj-card:focus-visible { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
[data-brand="hubhive"] .pj-card-name { color: var(--hh-navy); font-weight: 700; }
[data-brand="hubhive"] .pj-board { gap: 14px; }
[data-brand="hubhive"] .pj-col { background: var(--hh-soft); border-color: transparent; border-radius: 16px; }
[data-brand="hubhive"] .pj-col.pj-over { border-color: var(--hh-violet); box-shadow: 0 0 0 3px var(--accent-tint); }
[data-brand="hubhive"] .pj-col-head { padding: 12px 14px 6px; }
[data-brand="hubhive"] .pj-col-name { font-size: 13.5px; color: var(--hh-navy); }
[data-brand="hubhive"] .pj-col-body { padding: 4px 8px 8px; gap: 8px; }
[data-brand="hubhive"] .pj-col-add { padding: 10px 14px 12px; border-radius: 0 0 16px 16px; }
[data-brand="hubhive"] .pj-col-add:hover { color: var(--hh-violet); }
[data-brand="hubhive"] .pj-task-card { border-color: var(--hh-line-soft); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(23, 23, 28, 0.04); }
[data-brand="hubhive"] .pj-task-card:hover, [data-brand="hubhive"] .pj-task-card:focus-visible { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
[data-brand="hubhive"] .pj-task-title { font-size: 14px; color: var(--hh-ink); }
[data-brand="hubhive"] .pj-who.pj-agentish { border-color: var(--accent-border); color: var(--hh-violet-deep); background: var(--accent-soft); }
[data-brand="hubhive"] .pj-label { border-radius: 999px; padding: 1px 8px; }

/* --- Performance --- */
[data-brand="hubhive"] .pf-h { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
[data-brand="hubhive"] .pf-h + p { display: none; }
[data-brand="hubhive"] .pf-bar { height: 8px; background: var(--hh-soft); }
[data-brand="hubhive"] .pf-bar span { background: var(--hh-violet-fill); }
[data-brand="hubhive"] .pf-highlight { border: 0; border-radius: 14px; background: var(--hh-lilac); }

/* --- The Calendar and a booking page --- */
[data-brand="hubhive"] .cal-main { border-color: var(--hh-line); border-radius: 16px; }
[data-brand="hubhive"] .cal-views { background: var(--hh-soft); border: 0; padding: 3px; }
[data-brand="hubhive"] .cal-views button { padding: 6px 12px; }
[data-brand="hubhive"] .cal-views button[aria-selected=true] { color: var(--hh-violet-deep); box-shadow: 0 1px 3px rgba(23, 23, 28, 0.1); }
[data-brand="hubhive"] .cal-title { font-weight: 800; letter-spacing: -0.02em; color: var(--hh-navy); }
[data-brand="hubhive"] .cal-ev { border-radius: 8px; }
[data-brand="hubhive"] .calp-body { background: var(--bg); background-image: radial-gradient(38% 46% at 12% 8%, rgba(181, 128, 255, 0.14), transparent 70%), radial-gradient(34% 44% at 92% 90%, rgba(128, 255, 170, 0.12), transparent 70%); background-attachment: fixed; }
[data-brand="hubhive"] .calp-card { border-color: var(--hh-line); border-radius: 24px; box-shadow: 0 18px 50px rgba(23, 23, 28, 0.07); padding: 28px; }
[data-brand="hubhive"] .calp-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
[data-brand="hubhive"] .calp-day { border-color: var(--hh-line); border-radius: 14px; }
[data-brand="hubhive"] .calp-day:hover, [data-brand="hubhive"] .calp-day.is-on { border-color: var(--hh-violet); background: var(--accent-soft); }
[data-brand="hubhive"] .calp-day small { color: var(--hh-violet); }
[data-brand="hubhive"] .calp-foot a { font-weight: 600; }

/* --- A Form link and a Vault link (what a visitor is sent) --- */
[data-brand="hubhive"] .vlink-body, [data-brand="hubhive"] .flink-body { background: var(--bg); background-image: radial-gradient(38% 46% at 8% 4%, rgba(181, 128, 255, 0.13), transparent 70%), radial-gradient(34% 44% at 96% 96%, rgba(128, 255, 170, 0.11), transparent 70%); background-attachment: fixed; }
[data-brand="hubhive"] .vlink-top img.hh-logo, [data-brand="hubhive"] .calp-top img.hh-logo { height: 30px; }
[data-brand="hubhive"] .vlink h1 { font-weight: 800; letter-spacing: -0.03em; color: var(--hh-navy); }
[data-brand="hubhive"] .vlink-hero h1 { font-size: clamp(1.7rem, 4vw, 2.3rem) !important; }
[data-brand="hubhive"] .vlink-composer { border-color: var(--hh-line); border-radius: 20px; box-shadow: 0 10px 30px rgba(23, 23, 28, 0.07); }
[data-brand="hubhive"] .vlink-composer:focus-within { border-color: var(--accent-border); box-shadow: 0 10px 30px rgba(101, 30, 215, 0.12), 0 0 0 4px var(--accent-tint); }
[data-brand="hubhive"] .vlink-start { border-radius: 999px; background: var(--hh-violet-fill); box-shadow: none; }
[data-brand="hubhive"] .vlink-start:hover { background: var(--hh-violet-hover); }

/* --- Where do you want to start? (/app/start) --- */
[data-brand="hubhive"] .start-page { max-width: 30rem; padding: clamp(40px, 10vh, 96px) 16px 32px; text-align: center; }
[data-brand="hubhive"] .start-page > img.hh-logo { height: 34px; margin: 0 auto; }
[data-brand="hubhive"] .start-page h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin: 28px 0 20px; }
[data-brand="hubhive"] .start-page .lead { display: none; }
[data-brand="hubhive"] .start-list { gap: 10px; text-align: left; }
[data-brand="hubhive"] .start-choice, [data-brand="hubhive"] .start-choice:not(.plan-free) { border-color: var(--hh-line); border-radius: 16px; padding: 14px 16px; min-height: 64px; background: var(--hh-card); box-shadow: none; }
[data-brand="hubhive"] .start-choice:hover, [data-brand="hubhive"] .start-choice:focus-visible,
[data-brand="hubhive"] .start-choice:not(.plan-free):hover, [data-brand="hubhive"] .start-choice:not(.plan-free):focus-visible { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: var(--shadow-md); }
[data-brand="hubhive"] .start-choice svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--hh-lilac); color: var(--hh-violet); }
[data-brand="hubhive"] .start-name { color: var(--hh-navy); }
[data-brand="hubhive"] .start-kind { color: var(--hh-faint); font-size: 13px; }
[data-brand="hubhive"] .start-plan { background: var(--hh-soft); box-shadow: none; color: var(--hh-muted); padding: 3px 10px; font-size: 12px; }
[data-brand="hubhive"] .start-choice:not(.plan-free) .start-plan { background: var(--accent-soft); color: var(--hh-violet-deep); }
[data-brand="hubhive"] .start-foot { margin-top: 28px; color: var(--hh-faint); }

/* --- Pages with no shell: sign in, sign up, the links people are sent (see part 5) --- */

/* ------------------------------------------------------------------------- 5. pages with no shell */
/* Sign in, sign up, reset, verify, an invitation, the last step: HubHive's logo over a clean centred card on white,
   with HubHive's soft colour washes behind; beside sign in and sign up, what HubHive is (.hha-pitch). */
[data-brand="hubhive"] .hh-logo { display: block; height: 34px; width: auto; }
:root[data-brand="hubhive"][data-theme="dark"] .hh-logo { filter: brightness(0) invert(1); }
[data-brand="hubhive"] .auth-brand { margin-bottom: 28px; }
[data-brand="hubhive"] .auth-brand img.hh-logo { height: 36px; }
[data-brand="hubhive"] .auth-form-col, [data-brand="hubhive"] .auth-wrap { background: var(--bg); }
[data-brand="hubhive"] .auth-form-col { padding: 40px 20px; }
[data-brand="hubhive"] .auth-card { max-width: 420px; }
[data-brand="hubhive"] .auth-panel { border-radius: 24px; border-color: var(--hh-line); box-shadow: 0 18px 50px rgba(23, 23, 28, 0.07); padding: 32px; background: var(--hh-card); }
[data-brand="hubhive"] .auth-card h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--hh-navy); margin-bottom: 8px; line-height: 1.15; }
[data-brand="hubhive"] .auth-sub { color: var(--hh-muted); font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
[data-brand="hubhive"] .auth-alt { color: var(--hh-muted); font-size: 14.5px; margin-top: 22px; }
[data-brand="hubhive"] .auth-alt a, [data-brand="hubhive"] .forgot-row a { font-weight: 600; }
[data-brand="hubhive"] .auth-foot { color: var(--hh-faint); font-size: 12.5px; margin-top: 24px; }
[data-brand="hubhive"] .auth-foot a { color: var(--hh-faint); text-decoration: underline; }
[data-brand="hubhive"] .auth-panel .btn-lg { padding: 0.85rem 1.4rem; font-size: 15.5px; }
[data-brand="hubhive"] .auth-panel .divider { color: var(--hh-faint); font-weight: 500; }
[data-brand="hubhive"] .auth-panel .divider::before, [data-brand="hubhive"] .auth-panel .divider::after { border-bottom-color: var(--hh-line-soft); }
[data-brand="hubhive"] .auth-panel .facts { border-radius: 14px; background: var(--hh-soft); border: 0; }
[data-brand="hubhive"] .invite-banner { border-radius: 14px; background: var(--hh-lilac); border: 0; }
[data-brand="hubhive"] .step-badge .badge, [data-brand="hubhive"] .badge-wrap .badge { background: var(--accent-soft); color: var(--hh-violet-deep); }
/* A page that is only the card (reset, verify, the last step, a deleted account, an offer): the washes behind it. */
[data-brand="hubhive"] body:has(> .auth-card), [data-brand="hubhive"] body:has(> main > .auth-card), [data-brand="hubhive"] .auth-form-col {
  background-image: radial-gradient(38% 46% at 12% 8%, rgba(181, 128, 255, 0.14), transparent 70%), radial-gradient(34% 44% at 92% 90%, rgba(128, 255, 170, 0.12), transparent 70%); }
/* What HubHive is, beside the form. */
[data-brand="hubhive"] .auth-aside { background: var(--hh-soft); color: var(--hh-ink); padding: clamp(32px, 5vw, 72px); align-items: center; }
[data-brand="hubhive"] .auth-aside::before, [data-brand="hubhive"] .auth-aside::after { display: none; }
[data-brand="hubhive"] .hha-pitch { position: relative; width: 100%; max-width: 520px; }
[data-brand="hubhive"] .hha-headline { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; color: var(--hh-navy); margin: 0 0 28px; }
[data-brand="hubhive"] .hha-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
[data-brand="hubhive"] .hha-cards .hh-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
[data-brand="hubhive"] .hha-cards .hh-icon-tile { margin: 0; flex: none; }
[data-brand="hubhive"] .hha-cards .hh-icon-tile svg { width: 20px; height: 20px; }
[data-brand="hubhive"] .hha-cards strong { display: block; color: var(--hh-navy); font-size: 15.5px; letter-spacing: -0.01em; }
[data-brand="hubhive"] .hha-cards span:not(.hh-icon-tile) { display: block; color: var(--hh-muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }

/* Talk to us (/app/contact) */
[data-brand="hubhive"] .contact-card { border-radius: 24px; border-color: var(--hh-line); box-shadow: 0 18px 50px rgba(23, 23, 28, 0.07); overflow: hidden; }
[data-brand="hubhive"] .brand-panel { background: var(--hh-lilac); color: var(--hh-ink); }
[data-brand="hubhive"] .brand-panel::before, [data-brand="hubhive"] .brand-panel::after { display: none; }
[data-brand="hubhive"] .brand-panel h1, [data-brand="hubhive"] .brand-panel h2 { color: var(--hh-navy); font-weight: 800; letter-spacing: -0.03em; }
[data-brand="hubhive"] .brand-panel .lead, [data-brand="hubhive"] .brand-panel p, [data-brand="hubhive"] .brand-panel li { color: var(--hh-muted); }
[data-brand="hubhive"] .contact-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hh-violet); opacity: 1; }
[data-brand="hubhive"] .contact-perks svg, [data-brand="hubhive"] .check-badge { color: var(--hh-violet); stroke: var(--hh-violet); }
[data-brand="hubhive"] .contact-section-label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hh-faint); }
[data-brand="hubhive"] .back-link { color: var(--hh-muted); font-weight: 600; }

/* The small cards a link in an email opens (unsubscribe, pause an alert, stop a project's or a form's emails). */
[data-brand="hubhive"] .unsub-card, [data-brand="hubhive"] .pause-card, [data-brand="hubhive"] .stop-card {
  border-radius: 24px; border-color: var(--hh-line); box-shadow: 0 18px 50px rgba(23, 23, 28, 0.07); }
[data-brand="hubhive"] .unsub-card.card-pad, [data-brand="hubhive"] .pause-card.card-pad, [data-brand="hubhive"] .stop-card.card-pad { padding: 28px; }
[data-brand="hubhive"] .unsub-card h1, [data-brand="hubhive"] .pause-card h1, [data-brand="hubhive"] .stop-card h1 { font-size: 1.4rem !important; font-weight: 800; letter-spacing: -0.025em; }

/* ------------------------------------------------------------------------- small things, everywhere */
[data-brand="hubhive"] .toast.success::before { background: #34c27a; }
[data-brand="hubhive"] .toast.error::before { background: #ff6b6b; }
[data-brand="hubhive"] #user-menu { min-width: 250px; }
/* A page whose header holds its one action doesn't repeat it in the top bar. */
[data-brand="hubhive"] .app-main:has(.workspace-header [data-open-create]) .topbar [data-open-create] { display: none; }
[data-brand="hubhive"] .contact-trust { color: var(--hh-faint); }
@media (max-width: 900px) {
  /* Above the phone's tab bar. */
  [data-brand="hubhive"] .app:not(.embedded) ~ .toast-stack { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------------------- 6. dark */
/* hh.css gives the dark palette; these are the places a page's own colours needed more contrast in it. */
:root[data-brand="hubhive"][data-theme="dark"] .workspace-back,
:root[data-brand="hubhive"][data-theme="dark"] .eyebrow,
:root[data-brand="hubhive"][data-theme="dark"] .contact-eyebrow,
:root[data-brand="hubhive"][data-theme="dark"] .hha-pitch .hh-eyebrow { color: var(--accent); }
:root[data-brand="hubhive"][data-theme="dark"] .input,
:root[data-brand="hubhive"][data-theme="dark"] .select,
:root[data-brand="hubhive"][data-theme="dark"] .textarea { background: var(--surface-2); border-color: var(--border-strong); }
:root[data-brand="hubhive"][data-theme="dark"] .btn-primary { background: var(--action); color: #fff; }
:root[data-brand="hubhive"][data-theme="dark"] .btn-primary:hover { background: #6b3bd6; }
:root[data-brand="hubhive"][data-theme="dark"] .btn-secondary { color: var(--text); }
:root[data-brand="hubhive"][data-theme="dark"] .chip.active, :root[data-brand="hubhive"][data-theme="dark"] .chip[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
:root[data-brand="hubhive"][data-theme="dark"] .auth-panel,
:root[data-brand="hubhive"][data-theme="dark"] .contact-card,
:root[data-brand="hubhive"][data-theme="dark"] .calp-card { box-shadow: none; }
:root[data-brand="hubhive"][data-theme="dark"] .vault-mic,
:root[data-brand="hubhive"][data-theme="dark"] .vlink-start { background: var(--action); }
:root[data-brand="hubhive"][data-theme="dark"] .auth-foot a { color: var(--hh-muted); }
:root[data-brand="hubhive"][data-theme="dark"] .pj-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
:root[data-brand="hubhive"][data-theme="dark"] .cal-minim-d.is-today.is-sel,
:root[data-brand="hubhive"][data-theme="dark"] .cal-dayhead.is-today .cal-dayhead-n { background: var(--action); color: #fff; }
:root[data-brand="hubhive"][data-theme="dark"] .calp-day small { color: var(--accent); }

/* Faint captions on a tinted fill need the darker grey to read (4.5:1). The first is the shell's own row. */
[data-brand="hubhive"] .hhs-space.active small,
[data-brand="hubhive"] .stat.is-accent .stat-label,
[data-brand="hubhive"] .contact-trust { color: var(--hh-muted); }

/* People, on the stage beside the chat too: one Invite, the header's. */
[data-brand="hubhive"] .app-content:has(#invite-btn-top) #invite-btn { display: none; }

/* Data sources (/app/data): its heading is the page's title; the paragraph of help under it is not shown. */
[data-brand="hubhive"] .app-content > .row-between:first-child > div > h2:first-child {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem) !important; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--hh-navy); }
[data-brand="hubhive"] .app-content > .row-between:first-child > div > h2:first-child > .hv-icon { display: none; }
[data-brand="hubhive"] .app-content > .row-between:first-child > div > h2:first-child + p { display: none; }
[data-brand="hubhive"] .app-main:has(.app-content > .row-between:first-child > div > h2:first-child) .topbar > .row:first-child > h1 { display: none; }
[data-brand="hubhive"] .app:not(.embedded) .app-content:not(.hh-main):has(> .row-between:first-child > div > h2:first-child) {
  width: 100%; max-width: 1240px; margin-inline: auto; padding: 28px clamp(16px, 3vw, 32px) 64px; }
[data-brand="hubhive"] .source-card, [data-brand="hubhive"] .ds-card { border-radius: 16px; border-color: var(--hh-line); }
