/* VR Dashboard shell, Hub board and the older page classes, on the VR design kit tokens (--vr-*). Loaded after the kit; unlayered, so it wins. */
.hub-nav a:has(.hub-symbol) { display: flex; align-items: center; gap: 10px; }
.hub-symbol { display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--vr-radius-xs); background: var(--vr-brand-gradient); }
.hub-symbol img { width: 22px; height: 22px; }
.app-directory-head { margin-bottom: 20px; }
.app-directory-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0; }
.app-directory-filters input, .app-directory-filters select { min-width: 0; max-width: 100%; }
.app-directory-section { margin-top: 32px; }
.app-directory-list { border: 1px solid var(--vr-border); border-radius: var(--vr-radius); overflow: hidden; }
.app-directory-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 20px; background: var(--vr-card); border-bottom: 1px solid var(--vr-border); }
.app-directory-row:last-child { border-bottom: 0; }
.app-directory-row h3 { margin: 0 0 8px; font-size: var(--vr-text-lg); }
.app-directory-row p { margin: 6px 0; overflow-wrap: anywhere; }
.app-directory-action { display: flex; align-items: flex-end; flex-direction: column; gap: 14px; }
.app-directory-url { font-size: var(--vr-text-sm); }
.app-plan-list { padding-left: 24px; }
.app-plan-list > li { padding: 12px 0; }
@media (max-width: 640px) {
  .app-directory-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .app-directory-action { align-items: flex-start; }
  .app-directory-filters { align-items: stretch; flex-direction: column; }
  .app-directory-filters input, .app-directory-filters select, .app-directory-action a { min-height: 44px; }
}
.skip { position: absolute; left: -999px; top: 0; background: var(--vr-card); color: var(--vr-foreground); padding: 8px 12px; z-index: 100; border-radius: var(--vr-radius-sm); }
.skip:focus { left: 8px; top: 8px; }

/* ---- shell ---- */
.hub-shell { display: block; min-height: 100vh; }
.hub-signed-in .hub-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.hub-side { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 18px 14px 24px; border-right: 1px solid var(--vr-border-subtle); background: var(--vr-background); display: flex; flex-direction: column; gap: 20px; z-index: 40; }
.hub-nav { display: flex; flex-direction: column; gap: 18px; }
.hub-nav__group { display: flex; flex-direction: column; gap: 2px; }
.hub-nav__label { margin: 0; padding: 0 10px 4px; font-size: 11.5px; font-weight: 500; color: var(--vr-muted-foreground); }
.hub-nav a { display: flex; align-items: center; min-height: 36px; padding: 6px 10px; border-radius: var(--vr-radius-sm); font-size: 14px; color: var(--vr-subtle-foreground); text-decoration: none; transition: background-color var(--vr-duration-fast), color var(--vr-duration-fast); }
.hub-nav a:hover { background: color-mix(in oklch, var(--vr-foreground) 6%, transparent); color: var(--vr-foreground); }
.hub-nav a[aria-current="page"] { background: color-mix(in oklch, var(--vr-foreground) 8%, transparent); color: var(--vr-foreground); font-weight: 500; }
.hub-body { min-width: 0; display: flex; flex-direction: column; }
.hub-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px var(--vr-gutter); background: color-mix(in oklch, var(--vr-background) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--vr-border-subtle); }
.hub-top .vr-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-full); background: var(--vr-card); color: var(--vr-foreground); text-decoration: none; }
.hub-top .hub-menu-btn, .hub-top-brand, .hub-close, .hub-scrim { display: none; }
.hub-signed-in .hub-top-brand { display: none; }
.hub-top > span:not(.vr-spacer) { color: var(--vr-subtle-foreground); font-size: var(--vr-text-sm); }
main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px var(--vr-gutter) 64px; }
main > h1, main > section > h1, main > section > .hub-head h1 { font-size: var(--vr-text-2xl); letter-spacing: var(--vr-tracking-tight); margin: 0 0 6px; }
main h2 { font-size: var(--vr-text-lg); margin: 24px 0 8px; }
main h3 { font-size: var(--vr-text-base); margin: 0 0 6px; }
form.inline { display: inline; }
details.orgs { position: relative; }
details.orgs summary { list-style: none; cursor: pointer; font-size: var(--vr-text-sm); color: var(--vr-subtle-foreground); }
details.orgs ul { position: absolute; right: 0; z-index: 50; margin: 6px 0 0; padding: 8px 12px; min-width: 14em; list-style: none; background: var(--vr-popover); border: 1px solid var(--vr-border); border-radius: var(--vr-radius-sm); box-shadow: var(--vr-shadow-float); }
details.orgs a { color: var(--vr-foreground); }

@media (max-width: 860px) {
  .hub-signed-in .hub-shell { display: block; }
  .hub-side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100dvh; transform: translateX(-102%); transition: transform var(--vr-duration) var(--vr-ease-smooth); box-shadow: var(--vr-shadow-overlay); }
  .hub-side:target, body.hub-nav-open .hub-side { transform: none; }
  .hub-signed-in .hub-top .hub-menu-btn, .hub-signed-in .hub-top-brand { display: inline-flex; }
  .hub-close { display: inline-block; margin-top: auto; padding: 10px; font-size: var(--vr-text-sm); }
  body.hub-nav-open .hub-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: color-mix(in oklch, #000 40%, transparent); }
  .hub-top .vr-spacer { flex: 1; }
  .hub-top > span:not(.vr-spacer) { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .hub-side { transition: none; } }

/* ---- Hub board ---- */
.hub-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--vr-border-subtle); margin-bottom: 20px; }
.hub-tabs a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--vr-subtle-foreground); text-decoration: none; font-weight: 500; }
.hub-tabs a[aria-current="page"] { color: var(--vr-foreground); border-bottom-color: var(--vr-foreground); }
.hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.hub-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; border-bottom: 1px solid var(--vr-border-subtle); margin-bottom: 24px; padding-bottom: 4px; }
.hub-bar .hub-tabs { border-bottom: 0; margin-bottom: -4px; }
.hub-bar .hub-tools { padding: 4px 0; }
[data-hub-board-settings][hidden] { display: none; }
@media (max-width: 640px) {
  .hub-bar { gap: 4px; }
  .hub-bar .hub-tabs { flex-basis: 100%; margin-bottom: 0; }
  .hub-bar .hub-tools { width: 100%; justify-content: flex-end; }
  .hub-bar .hub-tools button { min-height: 44px; }
}

.hub-grid { margin: 0 -8px; }
/* Keep saved cards in normal flow until the board script is fully ready. */
.hub-grid:not(.hub-grid--ready) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; height: auto !important; margin: 0; }
.hub-grid:not(.hub-grid--ready) > .grid-stack-item { position: relative !important; inset: auto !important; width: auto !important; height: 288px !important; min-width: 0; }
.hub-grid:not(.hub-grid--ready) > .grid-stack-item > .grid-stack-item-content { box-sizing: border-box; position: relative; inset: auto; height: 100%; min-width: 0; }
.hub-grid:not(.hub-grid--ready) .ui-resizable-handle { display: none; }

.hub-box { background: var(--vr-card); border: 1px solid var(--vr-border); border-radius: var(--vr-radius); box-shadow: var(--vr-shadow-card); padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.hub-box__title { font-size: var(--vr-text-base); margin: 0; }
.hub-box--link { padding: 0; overflow: hidden; }
.hub-link { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; padding: 14px 16px; text-decoration: none; color: var(--vr-foreground); background: linear-gradient(160deg, color-mix(in oklch, var(--vr-brand-cyan) 14%, var(--vr-card)), color-mix(in oklch, var(--vr-brand-green) 12%, var(--vr-card))); }
.hub-link:hover .hub-link__title { text-decoration: underline; }
.hub-link__badge { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: auto; border-radius: var(--vr-radius-sm); background: var(--vr-foreground); color: var(--vr-background); font-weight: 600; }
.hub-link__title { font-weight: 600; overflow-wrap: anywhere; }
.hub-link__host { font-size: var(--vr-text-xs); color: var(--vr-subtle-foreground); overflow-wrap: anywhere; }
.hub-box--notes { position: relative; padding: 20px; gap: 9px; overflow: hidden; border-color: color-mix(in oklch, #e6a5bc 34%, var(--vr-border)); background:
  radial-gradient(ellipse at 92% 8%, color-mix(in oklch, #f2bfd0 35%, transparent), transparent 42%),
  radial-gradient(ellipse at 0% 100%, color-mix(in oklch, #b1edcc 28%, transparent), transparent 48%),
  var(--vr-card); }
.hub-box--notes::after { content: ""; position: absolute; z-index: 0; width: 92px; height: 92px; right: 20px; top: 18px; background: url("/hub/clay/clay-chat.webp") center / contain no-repeat; opacity: .8; pointer-events: none; }
.hub-box--notes > :not(.hub-box__tools) { position: relative; z-index: 1; }
.hub-notes__heading { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.hub-notes__eyebrow { color: var(--vr-muted-foreground); font-size: var(--vr-text-xs); font-weight: 500; letter-spacing: .02em; }
.hub-notes__spark { display: none; }
.hub-box--notes .hub-box__title { font-size: 20px; }
.hub-notes { flex: 1; min-height: 96px; resize: none; border: 1px solid color-mix(in oklch, #c9a4b0 36%, var(--vr-border)); border-radius: 14px; background: color-mix(in oklch, var(--vr-card) 86%, transparent); padding: 14px 16px; line-height: 1.65; box-shadow: 0 2px 8px oklch(0.3 0.04 340 / .04); }
.hub-notes::placeholder { color: var(--vr-muted-foreground); opacity: .78; }
.hub-notes:focus { outline: 2px solid color-mix(in oklch, #d68eaa 58%, transparent); outline-offset: 2px; }
.hub-notes__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--vr-muted-foreground); font-size: var(--vr-text-xs); }
.hub-notes__footer .hub-status { min-height: 1em; }
.setup-tools { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--vr-border-subtle); }
.setup-tools h2 { margin: 0 0 4px; }
.setup-tools > p { margin: 0 0 14px; }
.setup-tools .setup-tool { min-height: 190px; }
.setup-tool__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; font-weight: 650; font-size: 20px; }
.setup-tool__icon--mint { color: #175e50; background: linear-gradient(145deg,#d3f1e5,#a8decb); }
.setup-tool__icon--pink { color: #8e4561; background: linear-gradient(145deg,#ffe0e8,#f3bfd0); }
.hub-status { min-height: 1.2em; margin: 0; font-size: var(--vr-text-xs); color: var(--vr-muted-foreground); }
.hub-balances { list-style: none; margin: 0; padding: 0; }
.hub-balances li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--vr-border-subtle); }
.hub-balances li:first-child { border-top: 0; }
.hub-box__tools { display: none; gap: 6px; position: absolute; top: 8px; right: 8px; z-index: 2; }
.hub-grid.is-editing .hub-box__tools { display: flex; }
.hub-grid.is-editing .hub-box { outline: 2px dashed var(--vr-border-strong); outline-offset: -2px; cursor: grab; }
.hub-grid.is-editing .hub-link { pointer-events: none; }
.hub-empty { padding: 24px 0; }
dialog.vr-dialog .vr-dialog__form { display: flex; flex-direction: column; gap: 14px; }
.grid-stack-placeholder > .placeholder-content { border: 2px dashed var(--vr-border-strong); border-radius: var(--vr-radius); background: transparent; }

/* ---- older page classes (billing, team, websites, connect, share), on kit tokens ---- */
.muted { color: var(--vr-muted-foreground); }
.card { background: var(--vr-card); border: 1px solid var(--vr-border); border-radius: var(--vr-radius); box-shadow: var(--vr-shadow-card); padding: 18px; margin: 16px 0; }
.card.muted { border-style: dashed; background: transparent; color: inherit; }
.card.muted p { color: var(--vr-muted-foreground); }
.card.restricted { border-color: var(--vr-warning); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.grid .card { margin: 0; display: flex; flex-direction: column; height: 100%; }
.grid .card p:first-of-type { flex: 1; }
ul.plain, ul.grid { list-style: none; padding: 0; margin: 0; }
ul.grid { margin: 16px 0; }
.notice { padding: 12px 14px; border-radius: var(--vr-radius-sm); margin: 12px 0; font-weight: 500; background: var(--vr-warning-soft); color: var(--vr-warning-foreground); }
.notice.ok { background: var(--vr-success-soft); color: var(--vr-success-foreground); }
.pill { display: inline-block; font-size: var(--vr-text-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--vr-radius-full); background: var(--vr-success-soft); color: var(--vr-success-foreground); }
.big { font-size: var(--vr-text-2xl); font-weight: 600; line-height: 1.15; }
.row { border-top: 1px solid var(--vr-border-subtle); padding: 14px 0; }
.row:first-child { border-top: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }
.checks label { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; }
.people-admin { overflow-wrap: anywhere; }
.people-admin form { margin-block: 16px; }
.people-admin input:not([type=checkbox]), .people-admin select { max-width: 100%; min-width: 0; box-sizing: border-box; }
.people-admin button { max-width: 100%; white-space: normal; min-height: 44px; }
.people-admin summary { min-height: 44px; cursor: pointer; padding-block: 12px; }
.people-table { overflow-x: auto; }
.people-table table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.people-table th, .people-table td { padding: 16px 12px; vertical-align: top; border-bottom: 1px solid var(--vr-border-subtle); }
.people-table td:last-child { min-width: 240px; }
.mono, code { font-family: var(--vr-font-mono); font-size: 0.92em; overflow-wrap: anywhere; }
label { display: block; margin: 14px 0 4px; font-weight: 500; }
label.inl, label.inl2, .inl { display: inline; }
label.plainlabel { font-weight: 400; display: block; }
input[type=text], input[type=email], input[type=number], input[type=password], select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--vr-input); border-radius: var(--vr-radius-sm); background: var(--vr-card); color: var(--vr-foreground); }
.vr-input, .vr-select, .vr-textarea { font: inherit; }
input.w6 { width: 6em; }
input.full { width: 100%; }
input.sel { user-select: all; }
button:not(.vr-btn):not(.vr-icon-btn):not(.hub-sug):not(.hub-wizard__step):not(.hub-starter__card), a.button { font: inherit; font-weight: 500; display: inline-block; padding: 9px 16px; margin: 10px 8px 0 0; border-radius: var(--vr-radius-full); border: 1px solid var(--vr-primary); background: var(--vr-primary); color: var(--vr-primary-foreground); text-decoration: none; cursor: pointer; }
button.secondary, a.button.secondary { background: transparent; color: var(--vr-foreground); border-color: var(--vr-border-strong); }
button.danger:not(.vr-btn) { background: var(--vr-destructive); border-color: var(--vr-destructive); color: #fff; }
button.link { background: none; border: 0; text-decoration: underline; padding: 4px; margin: 0; color: inherit; }
.vr-btn { margin: 0; }
dl { display: grid; grid-template-columns: minmax(8em, 12em) minmax(0, 1fr); gap: 6px 14px; margin: 10px 0; }
dt { font-weight: 600; color: var(--vr-muted-foreground); }
dd { margin: 0; overflow-wrap: anywhere; }
ol.steps { padding-left: 1.2em; }
details > summary { cursor: pointer; margin: 8px 0; }
@media (max-width: 520px) { dl { grid-template-columns: 1fr; gap: 0; } dt { margin-top: 8px; } }

/* ---- Hub v1.1: Clay cutouts on an accent-tinted surface (mockup approved 2026-10-07) ---- */
:root { --hub-accent: #111827; }
.tint-house { --tint: #ffc5a5; }
.tint-key { --tint: #c7b9ff; }
.tint-calendar { --tint: #ffe49a; }
.tint-envelope { --tint: #a9ddfb; }
.tint-mls { --tint: #b1edcc; }
.tint-crm { --tint: #ffbfd8; }
.tint-globe { --tint: #a9ddfb; }
.tint-zillow { --tint: #ffc5a5; }
.tint-skyline { --tint: #c7b9ff; }
.tint-interior { --tint: #ffe49a; }
.tint-sign { --tint: #b1edcc; }
.tint-door { --tint: #ffbfd8; }
.tint-server { --tint: #c7b9ff; }
.tint-chat { --tint: #b1edcc; }
.tint-rocket { --tint: #a9ddfb; }
.tint-cap { --tint: #ffe49a; }
.tint-funnel { --tint: #ffc5a5; }
.tint-cloud { --tint: #a9ddfb; }
.tint-lock { --tint: #c7b9ff; }
.tint-wallet { --tint: #b1edcc; }
.tint-code { --tint: #ffbfd8; }
.tint-person { --tint: #ffc5a5; }
.hub-box--link.hub-cut { overflow: visible; padding: 0; background: none; border: 0; box-shadow: var(--vr-shadow-card), inset 0 0 0 1px color-mix(in oklch, var(--vr-foreground) 6%, transparent); border-radius: var(--vr-radius); isolation: isolate; transition: transform var(--vr-duration) var(--vr-ease-spring), box-shadow var(--vr-duration); }
.hub-box--link.hub-cut:hover { transform: translateY(-2px); box-shadow: var(--vr-shadow-float); }
.hub-box__bg { position: absolute; inset: 0; z-index: -2; border-radius: inherit; overflow: hidden; background: var(--vr-muted); }
/* The example and saved card share the same pastel in every theme. */
.hub-cut .hub-box__bg, .hub-tint { background: var(--tint); }
.hub-link--cut { position: absolute; inset: 0; z-index: 0; background: none; justify-content: flex-end; padding: 12px 14px; color: #20202c; }
.hub-link--cut .hub-link__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hub-link--cut .hub-link__host { color: #494453; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* cutout: placement per box size, a contact shadow, optionally breaking the top edge */
.hub-obj { position: absolute; z-index: -1; right: 4%; top: 4%; height: 84%; max-width: 44%; aspect-ratio: 1; pointer-events: none; }
.hub-obj img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px oklch(0.25 0.03 300 / 0.18)); transition: transform 500ms var(--vr-ease-spring); }
.hub-obj::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 3%; height: 11%; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.2 0.03 300 / 0.28), transparent); filter: blur(2px); }
.hub-cut:hover .hub-obj img { transform: translateY(-4px) scale(1.03); }
.hub-cut .hub-link--cut .hub-link__title, .hub-cut .hub-link--cut .hub-link__host { max-width: 52%; }
.grid-stack-item:is([gs-h="3"], [gs-h="4"], [gs-h="5"], [gs-h="6"]) .hub-obj, .grid-stack-item:is([gs-w="1"], [gs-w="2"]) .hub-obj { right: auto; left: 50%; top: 5%; width: 62%; height: auto; max-width: none; max-height: max(0px, calc(100% - 100px)); transform: translateX(-50%); }
.grid-stack-item:is([gs-w="1"], [gs-w="2"]) .hub-obj { width: 56%; top: 4%; }
.grid-stack-item:is([gs-h="3"], [gs-h="4"], [gs-h="5"], [gs-h="6"]) .hub-cut .hub-link__title, .grid-stack-item:is([gs-h="3"], [gs-h="4"], [gs-h="5"], [gs-h="6"]) .hub-cut .hub-link__host, .grid-stack-item:is([gs-w="1"], [gs-w="2"]) .hub-cut .hub-link__title, .grid-stack-item:is([gs-w="1"], [gs-w="2"]) .hub-cut .hub-link__host { max-width: 100%; }
.hub-obj--pop { top: -15%; height: 98%; }
.grid-stack-item:is([gs-h="3"], [gs-h="4"], [gs-h="5"], [gs-h="6"]) .hub-obj--pop, .grid-stack-item:is([gs-w="1"], [gs-w="2"]) .hub-obj--pop { top: -14%; width: 74%; height: auto; }
.hub-grid.is-editing .hub-cut .hub-link--cut { pointer-events: none; }
.hub-grid[data-clay="off"] .hub-obj { display: none; }
/* editor: image strip, opt-out, Stylize me */
.hub-sug-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--vr-muted-foreground); margin-bottom: 6px; }
.hub-sugs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-height: 188px; overflow-y: auto; padding: 2px; }
.hub-sug { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: var(--vr-muted); box-shadow: inset 0 0 0 1px var(--vr-border); cursor: pointer; transition: transform var(--vr-duration) var(--vr-ease-spring); }
.hub-sug img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 3px 4px oklch(0.25 0.03 300 / 0.2)); }
.hub-sug[class*="tint-"] { background:
  radial-gradient(120% 90% at 72% 18%, color-mix(in oklch, var(--tint) 88%, var(--vr-card)) 0%, transparent 62%),
  linear-gradient(160deg, color-mix(in oklch, var(--tint) 78%, var(--vr-card)) 0%, color-mix(in oklch, var(--tint) 72%, var(--vr-card)) 100%); }
.hub-sug--text { display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--vr-subtle-foreground); }
.hub-sug:hover { transform: translateY(-2px); }
.hub-sug[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--vr-popover), 0 0 0 4px var(--vr-foreground); }
.hub-sug__tag { position: absolute; left: 3px; bottom: 3px; z-index: 1; font-size: 9px; font-weight: 600; padding: 0 4px; border-radius: 4px; background: oklch(1 0 0 / 0.9); color: #111; line-height: 1.5; }
.hub-upload { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hub-optout { margin-top: 10px; }
.hub-optout .vr-hint { display: block; font-size: 12.5px; }
/* settings rows and the one upgrade gate */
.hub-set { display: flex; flex-direction: column; }
.hub-set__row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--vr-border-subtle); }
.hub-set__row:first-child { border-top: 0; }
.hub-set__text { flex: 1; min-width: 0; }
.hub-set__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; font-weight: 500; }
.hub-set__title label { margin: 0; font-weight: 500; }
.hub-set__desc { font-size: 13px; color: var(--vr-muted-foreground); margin-top: 2px; line-height: 1.45; }
.hub-style-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 10px 4px 4px; border-radius: var(--vr-radius-full); border: 1px solid var(--vr-border); font-size: 13px; }
.hub-style-chip .hub-tint { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.hub-style-chip img { width: 22px; height: 22px; object-fit: contain; }
.hub-gate .hub-set__title { flex-direction: column; align-items: flex-start; gap: 4px; }
.hub-gate__badge { gap: 4px; }
.hub-gate__badge svg { width: 11px; height: 11px; }
.hub-gate__sub { font-size: 12.5px; color: var(--vr-muted-foreground); margin-top: 4px; }
.hub-set__row > .vr-btn { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px) { .hub-sugs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid-stack > .grid-stack-item > .hub-box--link.hub-cut { overflow: visible; }

/* A billing button whose form is being submitted (shell.js): dimmed, not :disabled, so it keeps focus. */
button[aria-busy="true"] { opacity: .6; cursor: progress; }

/* Profile holds personal billing controls and platform administration. */
.hub-profile { position: relative; flex: 0 0 auto; }
.hub-profile > summary { list-style: none; margin: 0; padding: 10px 12px; min-height: 44px; border: 1px solid var(--vr-border); border-radius: var(--vr-radius-full); font-size: var(--vr-text-sm); background: var(--vr-card); }
.hub-profile > summary::-webkit-details-marker { display: none; }
.hub-profile__menu { position: absolute; z-index: 60; max-height: calc(100dvh - 88px); overflow-y: auto; right: 0; top: calc(100% + 8px); width: min(260px, calc(100vw - 32px)); padding: 8px; background: var(--vr-popover); border: 1px solid var(--vr-border); border-radius: var(--vr-radius); box-shadow: var(--vr-shadow-float); }
.hub-profile__menu nav { display: flex; flex-direction: column; }
.hub-profile__menu a { display: block; padding: 10px 12px; min-height: 44px; color: var(--vr-foreground); text-decoration: none; border-radius: var(--vr-radius-sm); }
.hub-profile__menu a:hover, .hub-profile__menu a[aria-current] { background: var(--vr-muted); }
.hub-profile__menu form { padding: 8px 4px 0; border-top: 1px solid var(--vr-border); margin-top: 4px; }
.hub-profile__menu button { width: 100%; min-height: 44px; text-align: left; }
.hub-top .orgs { min-width: 0; max-width: 40vw; }
.hub-top .orgs summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .hub-top { gap: 6px; }
  .hub-signed-in .hub-top-brand { display: none; }
  .hub-top > span:not(.vr-spacer), .hub-top .orgs { max-width: 30vw; }
}

/* The signed-in account and workspace role stay visible beside the workspace. */
.hub-account { display: flex; flex-direction: column; gap: .1rem; font-size: .8rem; line-height: 1.35; text-align: right; min-width: 0; }
.hub-account strong, .hub-account span { overflow-wrap: anywhere; }
.hub-account span { color: var(--vr-text-muted, #666); }
.hub-top { flex-wrap: wrap; }
.hub-symbol svg { display: block; width: 22px; height: 22px; }
@media (max-width: 640px) { .hub-account { text-align: left; flex-basis: 100%; order: 1; } }

/* Keep the board as the first thing clients see. Full navigation stays one click away. */
body.hub-client-home .hub-shell { grid-template-columns: minmax(0, 1fr); }
body.hub-client-home .hub-side { display: none; }
body.hub-client-home .hub-top .hub-menu-btn,
body.hub-client-home .hub-top-brand { display: inline-flex; }
body.hub-client-home .hub-side:target,
body.hub-client-home.hub-nav-open .hub-side { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100dvh; transform: none; box-shadow: var(--vr-shadow-overlay); }
body.hub-client-home.hub-nav-open .hub-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: color-mix(in oklch, #000 40%, transparent); }

/* Matching simple icons keep each card's identity when Clay is disabled. */
.hub-icon-card .hub-link__badge { width: 68px; height: 68px; padding: 14px; background: color-mix(in oklch, var(--tint) 25%, white); color: #20202c; box-sizing: border-box; border-radius: 16px; }
.hub-link__badge svg { width: 100%; height: 100%; }
.hub-cut.hub-icon-card .hub-link--cut .hub-link__title, .hub-cut.hub-icon-card .hub-link--cut .hub-link__host { max-width: 100%; }
.hub-wizard { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 28px; box-sizing: border-box; border: 0; background: var(--vr-background); color: var(--vr-foreground); box-shadow: -12px 0 48px #0002; overflow-y: auto; }
.hub-wizard::backdrop { background: #0006; }
.hub-wizard__top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.hub-wizard__top h2 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.hub-wizard__steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.hub-wizard__step { min-height: 44px; padding: 7px 10px; border: 1px solid var(--vr-border); border-radius: 8px; color: var(--vr-foreground); background: var(--vr-card); cursor: pointer; font: inherit; font-size: 12px; }
.hub-wizard__step[aria-current="step"] { background: var(--vr-foreground); color: var(--vr-background); }
.hub-wizard__art { display: block; width: 150px; height: 150px; object-fit: contain; margin: 8px auto 20px; border-radius: 16px; background: color-mix(in oklch, var(--tint) 75%, var(--vr-card)); }
.hub-wizard__form .vr-label { display: block; margin: 20px 0 8px; }
.hub-wizard__form h3 { font-size: 22px; line-height: 1.3; }
.hub-wizard__footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.hub-wizard__complete .vr-btn { margin: 12px 8px 0 0; }
.hub-starter { margin: 24px 0 32px; }
.hub-starter h2 { margin-bottom: 6px; font-size: 22px; }
.hub-starter__cards { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 12px; margin-top: 20px; }
.hub-starter__card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 14px; border: 0; border-radius: 16px; font: inherit; color: #20202c; background: var(--tint); cursor: pointer; text-align: left; }
.hub-starter__card img { width: 100%; height: 110px; object-fit: contain; }
.hub-starter__card span { font-size: 12px; margin-top: 4px; }
@media(max-width:640px) { .hub-starter__cards { grid-template-columns: repeat(2,minmax(0,1fr)); } .hub-starter__card:first-child { grid-column: span 2; } .hub-wizard { padding: 22px; } }

/* Uploaded portraits and their private generation preview. */
.hub-photo-card .hub-obj--photo { inset: 6% 12% auto; width: 76%; height: 72%; max-width: none; max-height: max(0px, calc(100% - 100px)); transform: none; }
.hub-photo-card .hub-obj--photo img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--vr-radius); }
.hub-photo-card .hub-link__title, .hub-photo-card .hub-link__host { max-width: 100%; }
.hub-photo__previews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.hub-photo__previews img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--vr-radius); }
.hub-photo__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Clear resizing controls appear only while the board is being edited. */
.hub-grid.is-editing .ui-resizable-se { width: 44px; height: 44px; transform: none; right: 8px; bottom: 8px; opacity: 1; border-radius: 10px; background: #ffffffd9; color: #20202c; box-shadow: 0 2px 8px #0002; touch-action: none; }
.hub-grid.is-editing .ui-resizable-se::after { content: ""; position: absolute; inset: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320202c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 5h6M5 5v6m0-6 14 14m0-6v6h-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.hub-grid.is-editing .hub-box__tools { flex-wrap: wrap; max-width: calc(100% - 16px); }
.hub-grid.is-editing .hub-box__tools .vr-btn { min-height: 38px; }
.hub-size-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 20px 0; }
.hub-size-options .vr-btn { min-height: 48px; white-space: normal; }
.hub-size-options [aria-pressed="true"] { outline: 2px solid var(--vr-foreground); outline-offset: 2px; }
.hub-free-size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.hub-size-targets { display: grid; gap: 8px; max-height: 36vh; overflow-y: auto; margin: 16px 0; }
.hub-size-targets label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.hub-size-targets input { width: 18px; height: 18px; }
.hub-size-dialog .vr-error { margin: 12px 0; }
.hub-size-help { margin: 12px 0; }
.hub-size-help strong { color: var(--vr-foreground); }
[data-hub-tidy].hub-tidy-hint { animation: hub-tidy-hint 1250ms ease-out 1; }
@keyframes hub-tidy-hint { 0%,100% { background: transparent; } 35% { background: #b1edcc; color: #20202c; box-shadow: 0 3px 14px #0001; } }
@media (prefers-reduced-motion: reduce) { [data-hub-tidy].hub-tidy-hint { animation: none; } }
