/*
 * Spaice — Apple HIG adaptive interface
 *
 * Functional chrome (toolbar, sidebar, tab bar, menus) uses a restrained
 * translucent material. Content stays on opaque semantic surfaces.
 */

:root,
html[data-theme="light"] {
  color-scheme: light;
  --hig-system-background: #f5f5f7;
  --hig-secondary-background: #ffffff;
  --hig-tertiary-background: #f2f2f7;
  --hig-elevated-background: #ffffff;
  --hig-label: #1d1d1f;
  --hig-secondary-label: #56565c;
  --hig-tertiary-label: #6e6e73;
  --hig-placeholder: #85858b;
  --hig-separator: rgba(60, 60, 67, 0.2);
  --hig-opaque-separator: #d1d1d6;
  --hig-fill: rgba(120, 120, 128, 0.16);
  --hig-secondary-fill: rgba(120, 120, 128, 0.12);
  --hig-tertiary-fill: rgba(118, 118, 128, 0.08);
  --hig-blue: #006bd6;
  --hig-blue-hover: #0059b7;
  --hig-blue-soft: rgba(0, 107, 214, 0.11);
  --hig-red: #d70015;
  --hig-green: #248a3d;
  --hig-material: rgba(246, 246, 248, 0.78);
  --hig-material-thick: rgba(250, 250, 252, 0.92);
  --hig-shadow-small: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.04);
  --hig-shadow-elevated: 0 18px 55px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  --hig-radius-control: 9px;
  --hig-radius-card: 16px;
  --hig-radius-sheet: 20px;
  --hig-sidebar-width: 240px;
  --hig-toolbar-height: 56px;
  --account-drawer-width: 420px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --hig-system-background: #1c1c1e;
  --hig-secondary-background: #2c2c2e;
  --hig-tertiary-background: #3a3a3c;
  --hig-elevated-background: #303033;
  --hig-label: #f5f5f7;
  --hig-secondary-label: #d1d1d6;
  --hig-tertiary-label: #aeaeb2;
  --hig-placeholder: #8e8e93;
  --hig-separator: rgba(84, 84, 88, 0.68);
  --hig-opaque-separator: #48484a;
  --hig-fill: rgba(120, 120, 128, 0.36);
  --hig-secondary-fill: rgba(120, 120, 128, 0.28);
  --hig-tertiary-fill: rgba(118, 118, 128, 0.2);
  --hig-blue: #0a84ff;
  --hig-blue-hover: #409cff;
  --hig-blue-soft: rgba(10, 132, 255, 0.18);
  --hig-red: #ff453a;
  --hig-green: #30d158;
  --hig-material: rgba(34, 34, 37, 0.78);
  --hig-material-thick: rgba(44, 44, 47, 0.94);
  --hig-shadow-small: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 22px rgba(0, 0, 0, 0.16);
  --hig-shadow-elevated: 0 22px 70px rgba(0, 0, 0, 0.48), 0 2px 10px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --hig-system-background: #1c1c1e;
    --hig-secondary-background: #2c2c2e;
    --hig-tertiary-background: #3a3a3c;
    --hig-elevated-background: #303033;
    --hig-label: #f5f5f7;
    --hig-secondary-label: #d1d1d6;
    --hig-tertiary-label: #aeaeb2;
    --hig-placeholder: #8e8e93;
    --hig-separator: rgba(84, 84, 88, 0.68);
    --hig-opaque-separator: #48484a;
    --hig-fill: rgba(120, 120, 128, 0.36);
    --hig-secondary-fill: rgba(120, 120, 128, 0.28);
    --hig-tertiary-fill: rgba(118, 118, 128, 0.2);
    --hig-blue: #0a84ff;
    --hig-blue-hover: #409cff;
    --hig-blue-soft: rgba(10, 132, 255, 0.18);
    --hig-red: #ff453a;
    --hig-green: #30d158;
    --hig-material: rgba(34, 34, 37, 0.78);
    --hig-material-thick: rgba(44, 44, 47, 0.94);
    --hig-shadow-small: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 22px rgba(0, 0, 0, 0.16);
    --hig-shadow-elevated: 0 22px 70px rgba(0, 0, 0, 0.48), 0 2px 10px rgba(0, 0, 0, 0.32);
  }
}

.hub-page,
.plans-page {
  min-height: 100%;
  margin: 0;
  color: var(--hig-label);
  background: var(--body-bg);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hub-page::before,
.plans-page::before {
  display: block;
}

.hub-page button,
.hub-page input,
.hub-page select,
.plans-page button,
.plans-page input,
.plans-page select {
  font: inherit;
}

.hub-page button,
.plans-page button {
  -webkit-tap-highlight-color: transparent;
}

.hub-page :where(button, a, input, select, textarea):focus-visible,
.plans-page :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hig-blue) 48%, transparent);
  outline-offset: 2px;
  box-shadow: none;
}

.hub-page :where(button, a),
.plans-page :where(button, a) {
  touch-action: manipulation;
}

/* Main app toolbar ----------------------------------------------------- */

.hub-page .app-shell {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--hig-sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--hig-toolbar-height) minmax(0, auto);
  background: transparent;
  transition: width 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hub-page .topbar,
.plans-page .topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  height: var(--hig-toolbar-height);
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--hig-separator);
  border-radius: 0;
  background: var(--hig-material);
  box-shadow: none;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.hub-page .topbar {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(64px) saturate(190%);
  -webkit-backdrop-filter: blur(64px) saturate(190%);
}

.plans-page .topbar {
  grid-template-columns: 1fr auto;
}

.hub-page .brand,
.plans-page .brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  color: var(--hig-label);
  text-decoration: none;
}

.hub-page .brand--mobile {
  display: none;
}

.hub-page .brand--sidebar {
  width: 100%;
  height: var(--hig-toolbar-height);
  margin: -10px 0 14px;
  padding: 0 10px;
}

.hub-page .brand-icon-wrap,
.plans-page .brand-icon-wrap {
  width: 31px;
  height: 44px;
}

.hub-page .brand-icon,
.plans-page .brand-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.hub-page .brand-wordmark-wrap,
.plans-page .brand-wordmark-wrap {
  width: 76px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.hub-page .brand-wordmark,
.plans-page .brand-wordmark {
  height: 18px;
  filter: invert(1);
}

html[data-theme="dark"] .hub-page :is(.brand-icon, .brand-wordmark),
html[data-theme="dark"] .plans-page :is(.brand-icon, .brand-wordmark) {
  filter: none;
}

html[data-theme="dark"] .hub-page .topbar {
  background: rgba(24, 24, 27, 0.46);
}

html[data-theme="dark"] .hub-page .dashboard-intro {
  background: rgba(34, 34, 37, 0.54);
}

@media (prefers-color-scheme: dark) {
  .plans-page :is(.brand-icon, .brand-wordmark) { filter: none; }
}

.hub-page .top-actions {
  grid-column: 2;
  gap: 8px;
}

.hub-page .user-chip {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.hub-page .user-chip:hover,
.hub-page .user-chip[aria-expanded="true"] {
  border: 0;
  background: var(--hig-fill);
  box-shadow: none;
  transform: none;
}

.hub-page .avatar {
  width: 30px;
  height: 30px;
  border: 1px solid var(--hig-separator);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

/* Adaptive navigation ------------------------------------------------- */

.hub-page .dashboard {
  display: contents;
}

.hub-page .dashboard-intro {
  position: sticky;
  z-index: 110;
  top: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  align-self: start;
  padding: 10px 12px 18px;
  border: 0;
  border-right: 1px solid var(--hig-separator);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
  text-align: start;
  backdrop-filter: blur(36px) saturate(175%);
  -webkit-backdrop-filter: blur(36px) saturate(175%);
}

.hub-page .workspace-tabs,
html[data-theme="dark"] .hub-page .workspace-tabs {
  width: 100%;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hub-page .workspace-tab {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hig-secondary-label);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: start;
  transition: color 150ms ease, background-color 150ms ease;
}

.hub-page .workspace-tab:hover {
  background: var(--hig-tertiary-fill);
  color: var(--hig-label);
}

.hub-page .workspace-tab.is-active,
html[data-theme="dark"] .hub-page .workspace-tab.is-active {
  border: 0;
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
  box-shadow: none;
}

.hub-page .workspace-tab.is-active::before {
  display: none;
}

.hub-page .workspace-tab-icon,
html[data-theme="dark"] .hub-page .workspace-tab-icon,
.hub-page .workspace-tab.is-active .workspace-tab-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.hub-page .workspace-tab-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.hub-page .workspace-tab > span:last-child {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

/* Content hierarchy --------------------------------------------------- */

.hub-page .workspace-pages {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: calc(100dvh - var(--hig-toolbar-height));
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 72px) 72px;
  background: transparent;
}

.hub-page .workspace-page:not([hidden]) {
  width: min(100%, 1440px);
  display: block;
  margin: 0 auto;
  animation: hig-page-enter 180ms ease-out both;
}

@keyframes hig-page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hub-page .page-header {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}

.hub-page .page-header h1 {
  margin: 0;
  color: var(--hig-label);
  font-size: clamp(1.75rem, 2.7vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.hub-page .page-header p {
  max-width: 42rem;
  margin: 5px 0 0;
  color: var(--hig-secondary-label);
  font-size: 0.9375rem;
  line-height: 1.47;
}

.hub-page .workspace-section,
.hub-page .workspace-module,
.hub-page .bento-card,
html[data-theme="dark"] .hub-page .workspace-module,
html[data-theme="dark"] .hub-page .bento-card {
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hub-page .workspace-module + .workspace-module {
  margin-top: 44px;
}

.hub-page #workspace-page-projects .workspace-module--archives {
  padding-top: 0 !important;
  border-top: 0 !important;
}

.hub-page .workspace-section-heading,
.hub-page .workspace-module > .card-heading,
.hub-page .card-heading,
.hub-page .card-heading--compact {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
}

.hub-page .workspace-section-heading h3,
.hub-page .workspace-module > .card-heading h2,
.hub-page .card-heading h2 {
  margin: 0;
  color: var(--hig-label);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.hub-page .quiet-count,
.hub-page .card-subtitle,
.hub-page .capture-section-heading span,
.hub-page .resource-section-heading span {
  color: var(--hig-tertiary-label);
  font-size: 0.75rem;
}

.hub-page .section-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hig-blue);
  font-size: 0.8125rem;
  font-weight: 550;
}

.hub-page .section-link:hover {
  background: var(--hig-blue-soft);
  color: var(--hig-blue-hover);
}

.hub-page .section-link svg {
  width: 14px;
  height: 14px;
}

/* Standard controls --------------------------------------------------- */

.hub-page :is(.pill-button, .text-pill, .icon-pill, .more-button, .archive-action, .inline-title-edit-button),
.hub-page .bento-browser-nav button {
  min-height: 36px;
  border: 0;
  border-radius: var(--hig-radius-control);
  background: var(--hig-fill);
  color: var(--hig-label);
  box-shadow: none;
  transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.hub-page :is(.pill-button, .text-pill) {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.hub-page :is(.icon-pill, .more-button, .archive-action, .inline-title-edit-button),
.hub-page .bento-browser-nav button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
}

.hub-page :is(.pill-button, .text-pill, .icon-pill, .more-button, .archive-action, .inline-title-edit-button):hover,
.hub-page .bento-browser-nav button:hover:not(:disabled) {
  border: 0;
  background: var(--hig-secondary-fill);
  color: var(--hig-label);
  box-shadow: none;
  transform: none;
}

.hub-page .pill-button--accent,
.hub-page .pill-button--accent:hover {
  border: 0;
  background: var(--hig-blue);
  color: #ffffff;
  box-shadow: none;
}

.hub-page .pill-button--accent:hover {
  background: var(--hig-blue-hover);
}

.hub-page .pill-button--accent:active,
.plans-page .plan-button--primary:active {
  opacity: 0.78;
}

.hub-page .workspace-primary-action {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.hub-page #workspace-page-projects .workspace-primary-action,
.hub-page #workspace-page-projects .workspace-primary-action:hover {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a45 0%, #ff6a1f 46%, #ed4c16 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(228, 76, 20, 0.24), inset 0 1px rgba(255, 255, 255, 0.28);
}

.hub-page #workspace-page-projects .workspace-primary-action:hover {
  filter: brightness(1.035) saturate(1.06);
}

.hub-page #workspace-page-projects .workspace-primary-action:active {
  filter: brightness(0.96);
}

.hub-page .folder-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hub-page .folder-toolbar-label {
  flex: 0 0 auto;
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hub-page .folder-chip {
  height: 32px;
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
  font-weight: 550;
  box-shadow: none;
}

.hub-page .folder-chip:hover {
  border: 0;
  background: var(--hig-fill);
  color: var(--hig-label);
  transform: none;
}

.hub-page .folder-chip.is-active {
  border: 0;
  background: var(--hig-blue);
  color: #ffffff;
  box-shadow: none;
}

.hub-page .folder-chip--add {
  width: 32px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.hub-page .folder-chip--editor {
  width: 190px;
  padding: 0 4px 0 11px;
  border: 1px solid var(--hig-blue);
  background: var(--hig-secondary-background);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.hub-page .folder-chip--editor input {
  color: var(--hig-label);
  font-size: 0.75rem;
}

.hub-page .folder-chip--editor button {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--hig-blue);
  color: #ffffff;
}

/* Home --------------------------------------------------------------- */

.hub-page .home-content-layout,
.hub-page .home-library-stack {
  height: auto;
  display: block;
}

.hub-page .home-promo,
html[data-theme="dark"] .hub-page .home-promo {
  position: relative;
  width: 100%;
  height: clamp(250px, 31vw, 420px);
  min-height: 250px;
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--hig-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-tertiary-background);
  box-shadow: none;
}

.hub-page .home-promo::before {
  display: none;
}

.hub-page .home-promo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hub-page .home-promo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), transparent);
}

.hub-page .home-promo-copy {
  z-index: 2;
  inset: auto 24px 22px;
  gap: 5px;
}

.hub-page .home-promo-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hub-page .home-promo-copy strong {
  max-width: 36rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hub-page .home-files-section .workspace-section-heading {
  min-height: 44px;
  padding: 0;
}

.hub-page .recent-project-grid {
  width: 100%;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 22px 16px;
  padding: 0;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.hub-page .recent-project-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  color: var(--hig-label);
  text-align: start;
  animation: none;
}

.hub-page .recent-project-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hig-separator);
  border-radius: 13px;
  box-shadow: none;
  transition: border-color 160ms ease, filter 160ms ease;
}

.hub-page .recent-project-card:hover .recent-project-preview,
.hub-page .recent-project-card:focus-visible .recent-project-preview {
  border-color: color-mix(in srgb, var(--hig-blue) 60%, var(--hig-separator));
  box-shadow: 0 0 0 1px var(--hig-blue-soft);
  filter: brightness(0.98);
  transform: none;
}

.hub-page .recent-project-card:focus-visible {
  outline-offset: 5px;
}

.hub-page .recent-project-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 0 2px;
}

.hub-page .recent-project-copy > span:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hub-page .recent-project-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--hig-label);
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .recent-project-copy small {
  padding: 2px 6px;
  border: 0;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-secondary-label);
  font-size: 0.625rem;
  box-shadow: none;
  backdrop-filter: none;
}

.hub-page .recent-project-copy > span:last-child {
  color: var(--hig-tertiary-label);
  font-size: 0.75rem;
}

/* Project, capture and resource collections -------------------------- */

.hub-page .project-list,
.hub-page .capture-library,
.hub-page .material-grid,
.hub-page .models-layout,
.hub-page .archive-list,
.hub-page .account-sections {
  overflow: visible;
  scrollbar-gutter: auto;
}

.hub-page .project-list,
.hub-page .projects-card .project-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  grid-auto-rows: auto;
  align-content: start;
  gap: 24px 16px;
  flex: none;
  padding: 0;
}

.hub-page #workspace-page-projects .projects-card,
.hub-page #workspace-page-projects .projects-card > .card-heading {
  border: 0 !important;
  box-shadow: none;
}

.hub-page .project-row,
.hub-page .projects-card .project-row {
  position: relative;
  min-width: 0;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  box-shadow: none;
  transition: none;
}

.hub-page .project-row:hover,
.hub-page .project-row:focus-within,
.hub-page .projects-card .project-row:hover,
.hub-page .projects-card .project-row:focus-within {
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.hub-page .project-open,
.hub-page .projects-card .project-open {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-rows: auto 56px;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  text-align: start;
}

.hub-page .project-thumb,
.hub-page .projects-card .project-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hig-separator);
  border-radius: 13px;
  box-shadow: none;
  transition: border-color 160ms ease, filter 160ms ease;
}

.hub-page .project-row:hover .project-thumb,
.hub-page .project-open:focus-visible .project-thumb,
.hub-page .projects-card .project-row:hover .project-thumb,
.hub-page .projects-card .project-open:focus-visible .project-thumb {
  border-color: color-mix(in srgb, var(--hig-blue) 60%, var(--hig-separator));
  box-shadow: 0 0 0 1px var(--hig-blue-soft);
  filter: brightness(0.98);
  transform: none;
}

.hub-page .project-open:focus-visible {
  outline-offset: 5px;
}

.hub-page .project-copy,
.hub-page .projects-card .project-copy {
  height: 56px;
  padding: 9px 2px 0;
}

.hub-page .project-copy strong,
.hub-page .projects-card .project-copy strong {
  color: var(--hig-label);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.hub-page .project-copy p,
.hub-page .projects-card .project-copy p {
  margin-top: 3px;
  color: var(--hig-tertiary-label);
  font-size: 0.75rem;
}

.hub-page .project-folder-tag {
  top: auto;
  right: auto;
  left: 9px;
  bottom: 64px;
  width: auto;
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #3a3a3c;
  font-size: 0.625rem;
  font-weight: 550;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px) saturate(160%);
}

.hub-page .project-actions {
  top: 8px;
  right: 8px;
}

.hub-page .more-button {
  width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #1d1d1f;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px) saturate(180%);
}

.hub-page .more-button:hover,
.hub-page .more-button[aria-expanded="true"] {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
}

.hub-page .item-menu,
html[data-theme="dark"] .hub-page .item-menu {
  top: calc(100% + 6px);
  width: 196px;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-material-thick);
  color: var(--hig-label);
  box-shadow: var(--hig-shadow-elevated);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  animation: hig-menu-enter 150ms ease-out;
}

@keyframes hig-menu-enter {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-page .item-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--hig-label);
  font-size: 0.8125rem;
  text-align: start;
}

.hub-page .item-menu button:hover,
.hub-page .item-menu button:focus-visible {
  background: var(--hig-blue);
  color: #ffffff;
}

.hub-page .empty-card-state {
  min-height: 180px;
  padding: 28px;
  border: 1px dashed var(--hig-opaque-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-tertiary-fill);
  color: var(--hig-secondary-label);
}

.hub-page .empty-card-state strong {
  color: var(--hig-label);
  font-size: 1rem;
  font-weight: 600;
}

.hub-page .empty-card-state span {
  max-width: 30rem;
  color: var(--hig-secondary-label);
  font-size: 0.875rem;
}

.hub-page .capture-library {
  display: grid;
  gap: 40px;
}

.hub-page .capture-section {
  display: grid;
  gap: 14px;
}

.hub-page .capture-section-heading {
  min-height: 30px;
  margin: 0;
}

.hub-page .capture-section-heading h3,
.hub-page .resource-section-heading h3 {
  color: var(--hig-label);
  font-size: 1rem;
  font-weight: 600;
}

.hub-page .capture-recent-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 22px 14px;
  padding-bottom: 0;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.hub-page .capture-card {
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  animation: none;
}

.hub-page .capture-open {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  text-align: start;
}

.hub-page .capture-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hig-separator);
  border-radius: 13px;
  box-shadow: none;
  transition: border-color 160ms ease, filter 160ms ease;
}

.hub-page .capture-open:hover .capture-visual,
.hub-page .capture-open:focus-visible .capture-visual,
.hub-page .material-card:hover .material-swatch,
.hub-page .material-card:focus-visible .material-swatch {
  border-color: color-mix(in srgb, var(--hig-blue) 60%, var(--hig-separator));
  box-shadow: 0 0 0 1px var(--hig-blue-soft);
  filter: brightness(0.98);
  transform: none;
}

.hub-page .capture-open strong,
.hub-page .material-card strong {
  color: var(--hig-label);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hub-page .capture-project-groups,
.hub-page .captures-card .capture-project-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.hub-page .capture-project-stack,
.hub-page .captures-card .capture-project-stack,
html[data-theme="dark"] .hub-page .capture-project-stack {
  min-height: 100px;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 20px;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--hig-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  box-shadow: none;
}

.hub-page .capture-project-stack:hover,
.hub-page .captures-card .capture-project-stack:hover {
  border-color: var(--hig-opaque-separator);
  background: var(--hig-tertiary-background);
  transform: none;
}

.hub-page .capture-stack-visual,
.hub-page .captures-card .capture-stack-visual {
  width: 78px;
  height: 66px;
  aspect-ratio: auto;
}

.hub-page .capture-stack-layer,
.hub-page .captures-card .capture-stack-layer {
  inset: 3px 8px 3px 2px;
  border: 1px solid var(--hig-separator);
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.hub-page .capture-stack-copy strong {
  color: var(--hig-label);
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-page .capture-stack-copy span {
  color: var(--hig-tertiary-label);
  font-size: 0.75rem;
}

.hub-page .captures-card .capture-project-stack > svg {
  display: block;
  color: var(--hig-tertiary-label);
}

.hub-page .resource-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 32px;
}

.hub-page .resource-library-layout > .workspace-module + .workspace-module,
html[data-theme="dark"] .hub-page .resource-library-layout > .workspace-module + .workspace-module {
  margin: 0;
  padding: 0;
  border: 0 !important;
}

.hub-page .material-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr));
  gap: 20px 12px;
  padding: 0;
}

.hub-page .material-card {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  text-align: start;
  animation: none;
}

.hub-page .material-card .material-swatch,
.hub-page .material-swatch {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hig-separator);
  border-radius: 13px;
  box-shadow: none;
}

.hub-page .models-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(190px, 0.85fr);
  gap: 14px;
  padding: 0;
}

.hub-page .latest-model,
html[data-theme="dark"] .hub-page .latest-model {
  min-height: 420px;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--hig-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-secondary-background);
  box-shadow: none;
}

.hub-page .model-stage {
  min-height: 320px;
  border: 0;
  background: var(--hig-tertiary-background);
}

.hub-page .model-meta {
  min-height: 64px;
  padding: 10px 12px;
  border-top: 1px solid var(--hig-separator);
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  backdrop-filter: none;
}

.hub-page .model-meta strong {
  color: var(--hig-label);
  font-size: 0.8125rem;
}

.hub-page .model-meta span {
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
}

.hub-page .model-categories {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 8px;
}

.hub-page .model-category,
html[data-theme="dark"] .hub-page .model-category {
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  box-shadow: none;
}

.hub-page .model-category:hover {
  border-color: var(--hig-opaque-separator);
  background: var(--hig-tertiary-background);
  transform: none;
}

.hub-page .model-category-icon,
html[data-theme="dark"] .hub-page .model-category-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--hig-secondary-fill);
  color: var(--hig-secondary-label);
  box-shadow: none;
}

.hub-page .model-category strong {
  color: var(--hig-label);
  font-size: 0.8125rem;
}

.hub-page .model-category span {
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
}

.hub-page .archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 24px 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hub-page .archive-row,
html[data-theme="dark"] .hub-page .archive-row {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: block;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--hig-separator) 78%, transparent);
  border-radius: var(--hig-radius-card);
  background: color-mix(in srgb, var(--hig-secondary-background) 64%, transparent);
  color: var(--hig-label);
  box-shadow: var(--hig-shadow-small);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.hub-page .archive-row:hover {
  border-color: var(--hig-opaque-separator);
  background: color-mix(in srgb, var(--hig-secondary-background) 76%, transparent);
}

.hub-page .archive-open {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 56px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: inherit;
  text-align: start;
}

.hub-page .archive-thumb {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  border: 1px solid var(--hig-separator);
  border-radius: 11px;
  filter: grayscale(1) contrast(0.88);
  opacity: 0.68;
}

.hub-page .archive-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 9px 2px 0;
}

.hub-page .archive-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hub-page .archive-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-secondary-label);
  font-size: 0.625rem;
  font-weight: 550;
}

.hub-page .archive-open strong {
  min-width: 0;
  overflow: hidden;
  color: var(--hig-label);
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .archive-row p {
  margin: 0;
  color: var(--hig-tertiary-label);
  font-size: 0.75rem;
}

.hub-page .archive-actions {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 5px;
}

.hub-page .archive-action {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #3a3a3c;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
}

.hub-page .archive-action:hover {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
}

.hub-page .archive-action--danger,
.hub-page .archive-action--danger:hover {
  color: var(--hig-red);
}

/* Embedded detail views ---------------------------------------------- */

.hub-page .bento-scroll-fade {
  display: none;
}

.hub-page .bento-card.is-browser-active {
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--hig-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-secondary-background);
}

.hub-page .bento-browser-view,
html[data-theme="dark"] .hub-page .bento-browser-view {
  position: absolute;
  inset: 0;
  padding: 24px;
  border-radius: inherit;
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  backdrop-filter: none;
  animation: hig-page-enter 180ms ease-out;
}

.hub-page .bento-browser-nav,
html[data-theme="dark"] .hub-page .bento-browser-nav {
  top: 18px;
  right: 18px;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hig-separator);
  border-radius: 10px;
  background: var(--hig-material-thick);
  box-shadow: var(--hig-shadow-small);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  animation: hig-menu-enter 150ms ease-out;
}

.hub-page .bento-browser-nav button {
  width: 32px;
  min-height: 32px;
  height: 32px;
  border-radius: 7px;
}

.hub-page .bento-browser-heading {
  min-height: 64px;
  padding: 0 78px 14px 0;
  border-bottom: 1px solid var(--hig-separator);
}

.hub-page .bento-browser-parent-title {
  margin: 0 0 3px;
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0;
  animation: none;
}

.hub-page .bento-browser-title {
  color: var(--hig-label);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  animation: none;
}

.hub-page .bento-browser-title-tag {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-secondary-label);
  font-size: 0.6875rem;
  animation: none;
}

.hub-page .bento-browser-content {
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 20px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.hub-page .bento-browser-actions {
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hig-separator);
}

.hub-page .resource-overview {
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  gap: 18px;
}

.hub-page .resource-hero,
.hub-page .resource-material-hero,
.hub-page .resource-capture-hero {
  min-height: 220px;
  border: 1px solid var(--hig-separator);
  border-radius: 13px;
  box-shadow: none;
}

.hub-page .resource-overview-panel {
  min-width: 0;
  align-content: start;
  gap: 8px;
}

.hub-page :is(.resource-stat, .resource-generation, .resource-category-card, .resource-object-row, .inline-project-choice),
html[data-theme="dark"] .hub-page :is(.resource-stat, .resource-generation, .resource-category-card, .resource-object-row, .inline-project-choice) {
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  box-shadow: none;
}

.hub-page :is(.resource-stat, .resource-generation) {
  padding: 10px 12px;
}

.hub-page :is(.resource-category-card, .resource-object-row, .inline-project-choice):hover {
  border-color: var(--hig-opaque-separator);
  background: var(--hig-tertiary-background);
  transform: none;
}

.hub-page :is(.resource-stat span, .resource-generation span, .resource-note-field > span) {
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
  font-weight: 500;
}

.hub-page :is(.resource-stat strong, .resource-generation strong) {
  color: var(--hig-label);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hub-page .resource-lead,
.hub-page .resource-generation time {
  color: var(--hig-secondary-label);
}

.hub-page .resource-chip {
  border: 0;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-secondary-label);
  box-shadow: none;
  backdrop-filter: none;
}

.hub-page .material-import-zone,
html[data-theme="dark"] .hub-page .material-import-zone {
  border: 1px dashed var(--hig-opaque-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-tertiary-fill);
  color: var(--hig-secondary-label);
}

.hub-page .material-import-icon,
html[data-theme="dark"] .hub-page .material-import-icon {
  border: 0;
  border-radius: 11px;
  background: var(--hig-secondary-fill);
  color: var(--hig-blue);
  box-shadow: none;
}

/* Fields, sheet and settings panel ----------------------------------- */

.hub-page .field > span,
.hub-page .resource-note-field > span {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0;
}

.hub-page :is(.field input, .field select, .resource-note-field input, .inline-title-form input),
html[data-theme="dark"] .hub-page :is(.field input, .field select, .resource-note-field input, .inline-title-form input) {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--hig-opaque-separator);
  border-radius: var(--hig-radius-control);
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  font-size: 0.875rem;
  box-shadow: none;
}

.hub-page :is(.field input, .field select, .resource-note-field input, .inline-title-form input)::placeholder {
  color: var(--hig-placeholder);
}

.hub-page :is(.field input, .field select, .resource-note-field input, .inline-title-form input):focus,
html[data-theme="dark"] .hub-page :is(.field input, .field select, .resource-note-field input, .inline-title-form input):focus {
  border-color: var(--hig-blue);
  background: var(--hig-secondary-background);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
  transform: none;
}

.hub-page .modal {
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hub-page .modal-backdrop {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hub-page .modal-card,
html[data-theme="dark"] .hub-page .modal-card {
  width: min(100%, 470px);
  max-height: min(720px, calc(100dvh - 48px));
  padding: 22px;
  overflow-y: auto;
  border: 1px solid var(--hig-separator);
  border-radius: var(--hig-radius-sheet);
  background: var(--hig-elevated-background);
  color: var(--hig-label);
  box-shadow: var(--hig-shadow-elevated);
  backdrop-filter: none;
}

.hub-page .modal-heading {
  min-height: 42px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hub-page .modal-heading h2 {
  color: var(--hig-label);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.hub-page .tracked-label,
.hub-page .modal-copy,
.hub-page .account-description,
.hub-page .profile-photo-row > div span,
.hub-page .security-toggle small {
  color: var(--hig-secondary-label);
}

.hub-page .tracked-label {
  margin-bottom: 3px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hub-page .modal-actions {
  gap: 8px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--hig-separator);
}

.hub-page .modal-submit--danger,
.hub-page .modal-submit--danger:hover {
  background: var(--hig-red);
  color: #ffffff;
}

.hub-page .account-drawer {
  z-index: 250;
  width: 420px;
  background: transparent;
}

.hub-page .account-drawer.is-open {
  box-shadow: var(--hig-shadow-elevated);
}

.hub-page .account-drawer[data-compact-modal="true"].is-open {
  box-shadow:
    -100vw 0 0 rgb(0 0 0 / 28%),
    var(--hig-shadow-elevated);
}

.hub-page .account-modal-card,
html[data-theme="dark"] .hub-page .account-modal-card {
  width: 420px;
  max-height: none;
  height: 100dvh;
  padding: 20px 18px 16px;
  border: 0;
  border-left: 1px solid var(--hig-separator);
  border-radius: 0;
  background: var(--hig-material-thick);
  box-shadow: none;
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
}

.hub-page .account-heading {
  min-height: 48px;
  margin: 0;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--hig-separator);
}

.hub-page .account-sections {
  display: grid;
  gap: 22px;
  padding: 20px 2px;
  overflow-y: auto;
}

.hub-page .account-section {
  padding: 0;
  border: 0;
  background: transparent;
  animation: none;
}

.hub-page .account-section-heading {
  min-height: 28px;
  margin-bottom: 10px;
}

.hub-page .account-section-heading h3 {
  color: var(--hig-label);
  font-size: 0.8125rem;
  font-weight: 650;
}

.hub-page .profile-photo-row,
.hub-page .security-toggle,
.hub-page .plan-summary {
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-secondary-background);
}

.hub-page .profile-photo-row {
  padding: 12px;
}

.hub-page .profile-photo-row > div strong,
.hub-page .security-toggle strong,
.hub-page .plan-summary div > strong {
  color: var(--hig-label);
}

.hub-page .account-field-grid {
  gap: 12px;
  margin-top: 12px;
}

.hub-page .security-toggle {
  min-height: 56px;
  padding: 9px 10px 9px 12px;
}

.hub-page .security-toggle input {
  position: relative;
  width: 51px;
  min-width: 51px;
  height: 31px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--hig-fill);
  cursor: pointer;
  transition: background-color 180ms ease;
}

.hub-page .security-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hub-page .security-toggle input:checked {
  background: var(--hig-green);
}

.hub-page .security-toggle input:checked::after {
  transform: translateX(20px);
}

.hub-page .plan-summary {
  min-height: 58px;
  padding: 10px 10px 10px 12px;
}

.hub-page .plan-manage-link {
  color: var(--hig-blue);
}

.hub-page .account-actions {
  margin: 0;
  padding: 14px 2px 0;
  border-top: 1px solid var(--hig-separator);
}

.hub-page .toast,
.plans-page .toast {
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100% - 36px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.92);
  color: #ffffff;
  box-shadow: var(--hig-shadow-elevated);
  font-size: 0.8125rem;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* Plans page ---------------------------------------------------------- */

.plans-page .back-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--hig-fill);
  color: var(--hig-label);
  font-size: 0.8125rem;
  font-weight: 550;
  text-decoration: none;
}

.plans-page .back-link:hover {
  background: var(--hig-secondary-fill);
  transform: none;
}

.plans-page main {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.plans-page .hero {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.plans-page .eyebrow {
  margin: 0 0 8px;
  color: var(--hig-blue);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.plans-page h1 {
  margin: 0;
  color: var(--hig-label);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-shadow: none;
}

.plans-page .hero p:last-of-type {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--hig-secondary-label);
  font-size: 1rem;
  line-height: 1.5;
}

.plans-page .billing-cycle {
  width: max-content;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 2px;
  margin: 24px auto 0;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: var(--hig-fill);
  backdrop-filter: none;
}

.plans-page .billing-cycle button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hig-secondary-label);
  font-size: 0.8125rem;
  font-weight: 550;
}

.plans-page .billing-cycle button[aria-pressed="true"] {
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.plans-page .billing-cycle small {
  color: var(--hig-green);
  font-size: 0.625rem;
  font-weight: 650;
}

.plans-page .plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plans-page .plan {
  min-height: 440px;
  padding: 24px;
  border: 1px solid var(--hig-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-secondary-background);
  box-shadow: none;
  backdrop-filter: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.plans-page .plan:hover {
  border-color: var(--hig-opaque-separator);
  background: var(--hig-elevated-background);
  box-shadow: none;
  transform: none;
}

.plans-page .plan[aria-current="true"] {
  border-color: color-mix(in srgb, var(--hig-blue) 48%, var(--hig-separator));
  background: var(--hig-secondary-background);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.plans-page .plan-head {
  min-height: 76px;
}

.plans-page .plan h2 {
  color: var(--hig-label);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.plans-page .plan-summary,
.plans-page .price span,
.plans-page .price-note {
  color: var(--hig-secondary-label);
}

.plans-page .current-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.plans-page .price {
  color: var(--hig-label);
}

.plans-page .price strong {
  font-size: 2.25rem;
  font-weight: 700;
}

.plans-page .features {
  gap: 11px;
}

.plans-page .features li {
  color: var(--hig-label);
  font-size: 0.875rem;
}

.plans-page .features svg {
  background: color-mix(in srgb, var(--hig-green) 14%, transparent);
  stroke: var(--hig-green);
}

.plans-page .plan-button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--hig-fill);
  color: var(--hig-label);
  font-weight: 600;
}

.plans-page .plan-button:hover:not(:disabled) {
  background: var(--hig-secondary-fill);
  transform: none;
}

.plans-page .plan-button--primary,
.plans-page .plan-button--primary:hover:not(:disabled) {
  background: var(--hig-blue);
  color: #ffffff;
}

.plans-page .plan-button--primary:hover:not(:disabled) {
  background: var(--hig-blue-hover);
}

.plans-page .plan-button:disabled {
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
  opacity: 1;
}

.plans-page .billing {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.plans-page .billing-card {
  padding: 24px;
  border: 1px solid var(--hig-separator);
  border-radius: var(--hig-radius-card);
  background: var(--hig-secondary-background);
  box-shadow: none;
  backdrop-filter: none;
}

.plans-page .billing h2 {
  color: var(--hig-label);
  font-size: 1.0625rem;
  font-weight: 650;
}

.plans-page .plain-button {
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--hig-blue);
  font-weight: 550;
}

.plans-page .plain-button:hover {
  background: var(--hig-blue-soft);
  text-decoration: none;
}

.plans-page .payment-method {
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-tertiary-background);
}

.plans-page .payment-method strong,
.plans-page .summary-list dd {
  color: var(--hig-label);
}

.plans-page .payment-method span,
.plans-page .summary-list dt,
.plans-page .notice {
  color: var(--hig-secondary-label);
}

.plans-page .summary-list div:last-child {
  border-top-color: var(--hig-separator);
}

/* Adaptivity ---------------------------------------------------------- */

@media (max-width: 1100px) and (min-width: 761px) {
  :root { --hig-sidebar-width: 196px; }

  .hub-page .workspace-pages {
    padding-inline: 28px;
  }

  .hub-page .resource-library-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hub-page .models-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(200px, 0.9fr);
  }
}

@media (max-width: 860px) {
  .plans-page .plans,
  .plans-page .billing {
    grid-template-columns: 1fr;
  }

  .plans-page .plan {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  :root { --hig-toolbar-height: 56px; }

  .hub-page .app-shell {
    display: block;
  }

  .hub-page .user-chip {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .hub-page .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }

  .hub-page .brand--mobile {
    display: inline-flex;
  }

  .hub-page .brand--sidebar {
    display: none;
  }

  .hub-page .brand-wordmark-wrap {
    width: 70px;
  }

  .hub-page .dashboard {
    min-height: calc(100dvh - var(--hig-toolbar-height));
    display: block;
  }

  .hub-page .dashboard-intro {
    position: fixed;
    z-index: 180;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(68px + env(safe-area-inset-bottom));
    min-height: 68px;
    padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid var(--hig-separator);
    background: var(--hig-material-thick);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
  }

  .hub-page .workspace-tabs,
  html[data-theme="dark"] .hub-page .workspace-tabs {
    height: 62px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }

  .hub-page .workspace-tab {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
    color: var(--hig-tertiary-label);
    font-size: 0.625rem;
    font-weight: 550;
    text-align: center;
  }

  .hub-page .workspace-tab:hover {
    background: transparent;
    color: var(--hig-label);
  }

  .hub-page .workspace-tab.is-active,
  html[data-theme="dark"] .hub-page .workspace-tab.is-active {
    background: transparent;
    color: var(--hig-blue);
  }

  .hub-page .workspace-tab-icon,
  html[data-theme="dark"] .hub-page .workspace-tab-icon,
  .hub-page .workspace-tab.is-active .workspace-tab-icon {
    width: 24px;
    height: 24px;
  }

  .hub-page .workspace-tab-icon svg {
    width: 22px;
    height: 22px;
  }

  .hub-page .workspace-tab > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hub-page .workspace-tab > [data-compact-label] {
    font-size: 0;
  }

  .hub-page .workspace-tab > [data-compact-label]::after {
    content: attr(data-compact-label);
    font-size: 0.625rem;
  }

  .hub-page .workspace-pages {
    min-height: calc(100dvh - var(--hig-toolbar-height));
    padding: 24px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .hub-page .page-header {
    min-height: 0;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .hub-page .page-header h1 {
    font-size: 1.75rem;
  }

  .hub-page .page-header p {
    font-size: 0.875rem;
  }

  .hub-page .workspace-primary-action {
    min-height: 44px;
    height: 44px;
  }

  .hub-page :is(.pill-button, .text-pill, .icon-pill, .archive-action, .inline-title-edit-button),
  .hub-page .bento-browser-nav button {
    min-height: 44px;
  }

  .hub-page :is(.pill-button, .text-pill) {
    height: 44px;
  }

  .hub-page :is(.icon-pill, .archive-action, .inline-title-edit-button),
  .hub-page .bento-browser-nav button {
    width: 44px;
    height: 44px;
  }

  .hub-page .folder-chip {
    min-height: 44px;
    height: 44px;
  }

  .hub-page :is(.field input, .field select, .resource-note-field input, .inline-title-form input),
  html[data-theme="dark"] .hub-page :is(.field input, .field select, .resource-note-field input, .inline-title-form input) {
    min-height: 44px;
    height: 44px;
  }

  .hub-page .section-link,
  .hub-page .more-button {
    min-width: 44px;
    min-height: 44px;
  }

  .hub-page .more-button {
    width: 44px;
    height: 44px;
  }

  .plans-page .back-link,
  .plans-page .billing-cycle button,
  .plans-page .plain-button,
  .plans-page .plan-button {
    min-height: 44px;
  }

  .hub-page .home-promo {
    height: 250px;
    min-height: 250px;
    margin-bottom: 28px;
  }

  .hub-page .home-promo-copy {
    inset: auto 18px 18px;
  }

  .hub-page .recent-project-grid,
  .hub-page .project-list,
  .hub-page .projects-card .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .hub-page .capture-recent-row,
  .hub-page .capture-project-groups,
  .hub-page .captures-card .capture-project-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page .capture-project-stack,
  .hub-page .captures-card .capture-project-stack {
    min-height: 94px;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .hub-page .capture-stack-visual,
  .hub-page .captures-card .capture-stack-visual {
    width: 66px;
    height: 58px;
  }

  .hub-page .captures-card .capture-project-stack > svg {
    display: none;
  }

  .hub-page .resource-library-layout,
  .hub-page .models-layout {
    grid-template-columns: 1fr;
  }

  .hub-page .model-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page .bento-card.is-browser-active {
    min-height: 700px;
  }

  .hub-page .bento-browser-view {
    padding: 18px;
  }

  .hub-page .bento-browser-nav {
    top: 12px;
    right: 12px;
  }

  .hub-page .bento-browser-nav button {
    width: 44px;
    min-height: 44px;
    height: 44px;
  }

  .hub-page .resource-overview {
    grid-template-columns: 1fr;
  }

  .hub-page .modal {
    align-items: end;
    padding: 0;
  }

  .hub-page .modal-card,
  html[data-theme="dark"] .hub-page .modal-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--hig-radius-sheet) var(--hig-radius-sheet) 0 0;
  }

  .hub-page .account-drawer,
  .hub-page .account-modal-card,
  html[data-theme="dark"] .hub-page .account-modal-card {
    width: 100%;
  }

  .hub-page .account-modal-card,
  html[data-theme="dark"] .hub-page .account-modal-card {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-left: 0;
  }

  .hub-page .security-toggle input {
    min-height: 31px;
  }

  .hub-page .toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .plans-page .topbar {
    padding: 0 14px;
  }

  .plans-page main {
    width: min(calc(100% - 32px), 1180px);
    padding: 38px 0 64px;
  }
}

@media (max-width: 480px) {
  .hub-page .page-header {
    flex-direction: column;
  }

  .hub-page .page-header .workspace-primary-action {
    width: 100%;
  }

  .hub-page .recent-project-grid,
  .hub-page .project-list,
  .hub-page .projects-card .project-list {
    grid-template-columns: 1fr;
  }

  .hub-page .capture-project-groups,
  .hub-page .captures-card .capture-project-groups,
  .hub-page .model-categories {
    grid-template-columns: 1fr;
  }

  .hub-page .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page .account-field-grid {
    grid-template-columns: 1fr;
  }

  .hub-page .account-field--wide {
    grid-column: auto;
  }

  .plans-page .back-link {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .plans-page .back-link span {
    display: none;
  }

  .plans-page .billing-cycle {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .plans-page .billing-cycle button {
    min-width: 0;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page *,
  .hub-page *::before,
  .hub-page *::after,
  .plans-page *,
  .plans-page *::before,
  .plans-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 2026-08-09 — annotated projects, Home and subscription polish. */

.hub-page .folder-chip-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.hub-page .folder-chip.is-active,
html[data-theme="dark"] .hub-page .folder-chip.is-active {
  background: var(--hig-blue);
  color: #fff;
}

.hub-page .folder-chip-wrap:has(.folder-chip.is-active) .folder-chip-delete {
  color: #fff;
}

.hub-page .folder-add-button,
html[data-theme="dark"] .hub-page .folder-add-button {
  border-color: color-mix(in srgb, var(--hig-separator) 70%, transparent);
  background: color-mix(in srgb, var(--hig-fill) 70%, transparent);
  color: var(--hig-secondary-label);
}

.hub-page .folder-add-button:hover {
  background: color-mix(in srgb, var(--hig-secondary-fill) 70%, transparent);
  color: var(--hig-secondary-label);
}

.hub-page :is(.project-create-symbol, .capture-collection-add-visual),
.hub-page :is(.project-create-card, .capture-collection-add):hover :is(.project-create-symbol, .capture-collection-add-visual),
.hub-page :is(.project-create-card, .capture-collection-add):focus-visible :is(.project-create-symbol, .capture-collection-add-visual) {
  border-color: var(--hig-separator);
  background: var(--hig-tertiary-fill);
  color: var(--hig-secondary-label);
}

.hub-page .recent-project-preview {
  position: relative;
  overflow: hidden;
  background-image: url("./assets/images/dashboard-feature.jpg");
  background-position: center;
  background-size: cover;
}

.hub-page .recent-project-preview.project-thumb--plan { background-position: 45% 58%; }
.hub-page .recent-project-preview.project-thumb--cool { background-position: 72% 45%; }
.hub-page .recent-project-preview.project-thumb--warm { background-position: 18% 48%; }
.hub-page .recent-project-preview.project-thumb--neutral { background-position: 54% 54%; }
.hub-page .recent-project-preview::before { display: none; }

.hub-page .recent-project-all-preview {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  color: var(--hig-secondary-label);
}

.hub-page .recent-project-all-preview svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.hub-page .home-promo--early-access,
html[data-theme="dark"] .hub-page .home-promo--early-access {
  border-color: rgba(255, 255, 255, 0.19);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(83, 54, 61, 0.12);
}

@media (min-width: 761px) {
  .hub-page #workspace-page-home .page-header { margin-bottom: 40px; }
}

.hub-page #projects-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hub-page .has-inline-editor {
  min-height: 220px;
}

.hub-page .modal.is-inline-editor {
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  display: block;
  padding: 0;
  overflow: visible;
}

.hub-page .modal.is-inline-editor .modal-card,
html[data-theme="dark"] .hub-page .modal.is-inline-editor .modal-card {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(420px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto auto;
  padding: 14px 16px 16px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 14px;
}

.hub-page .modal.is-inline-editor form {
  width: min(520px, 100%);
  margin-inline: auto;
}

.hub-page .modal.is-inline-editor #modal-folder-field {
  position: relative;
}

.hub-page .modal.is-inline-editor #modal-folder {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding-inline: 13px 36px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
}

.hub-page .modal.is-inline-editor #modal-folder-field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--hig-secondary-label);
  border-bottom: 1.5px solid var(--hig-secondary-label);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.hub-page .modal.is-inline-editor #modal-submit {
  position: relative;
}

.hub-page .modal.is-inline-editor #modal-submit::before {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  margin: 0;
  transform: translate(-50%, -64%) rotate(-45deg);
}

.hub-page .settings-billing-switch button.is-active,
html[data-theme="dark"] .hub-page .settings-billing-switch button.is-active {
  background: #fff;
  color: #1d1d1f;
}

.hub-page .settings-current-plan {
  display: block !important;
}

.hub-page .settings-current-plan h3 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.hub-page .settings-plan-options article {
  position: relative;
}

.hub-page .settings-popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--hig-blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.hub-page .settings-plan-options article:has(.settings-popular-badge) h3 {
  padding-right: 122px;
}

.hub-page :is(.settings-chart-grid, .settings-chart-labels) text {
  fill: var(--hig-secondary-label);
  font-size: 13px;
  font-weight: 650;
}

.hub-page .settings-chart-grid path {
  stroke: color-mix(in srgb, var(--hig-separator) 78%, transparent);
}

@media (max-width: 760px) {
  .hub-page #workspace-page-home .page-header { margin-bottom: 28px; }

  .hub-page .settings-popular-badge {
    font-size: 0.6875rem;
  }
}

/* 2026-08-07 — annotated search, tags and orange-accent refinement. */

:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --hig-blue: #FD5503;
  --hig-blue-hover: #df4800;
  --hig-blue-soft: rgba(253, 85, 3, 0.14);
}

.hub-page .sidebar-search {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  margin: 9px 0 11px;
  padding: 3px 5px 3px 10px;
  border: 1px solid color-mix(in srgb, var(--hig-separator) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--hig-material-thick) 82%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.hub-page .sidebar-search > svg,
.hub-page .sidebar-search button svg {
  width: 17px;
  height: 17px;
  color: var(--hig-tertiary-label);
}

.hub-page .sidebar-search input {
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hig-label);
  font: inherit;
  font-size: 0.8125rem;
}

.hub-page .recent-project-grid > .empty-card-state,
.hub-page .capture-project-groups > .empty-card-state {
  grid-column: 1 / -1;
}

.hub-page .sidebar-search input::-webkit-search-cancel-button { display: none; }

.hub-page .sidebar-search:focus-within {
  border-color: var(--hig-blue);
  box-shadow: 0 0 0 3px var(--hig-blue-soft), inset 0 1px rgba(255, 255, 255, 0.3);
}

.hub-page .sidebar-search button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

body.hub-page.is-settings-view .sidebar-search { display: none; }

@media (min-width: 761px) {
  .hub-page #workspace-page-home .page-header { margin-bottom: 24px; }
}

.hub-page .recent-project-card--all {
  grid-template-rows: auto auto;
  gap: 8px;
  color: var(--hig-label);
}

.hub-page .recent-project-all-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px dashed var(--hig-opaque-separator);
  border-radius: 14px;
  background: var(--hig-tertiary-fill);
  color: var(--hig-blue);
}

.hub-page .recent-project-all-preview svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.35;
}

.hub-page .recent-project-card--all > strong {
  width: 100%;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .folder-chip-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
}

.hub-page .folder-chip-wrap .folder-chip { padding-right: 31px; }

.hub-page .folder-chip-delete {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.86);
  transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.hub-page .folder-chip-delete svg { width: 13px; height: 13px; }

.hub-page .folder-chip-wrap:hover .folder-chip-delete,
.hub-page .folder-chip-wrap:focus-within .folder-chip-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.hub-page .folder-chip-delete:hover { background: var(--hig-secondary-fill); }

.hub-page :is(.pill-button--accent, .folder-chip.is-active) { color: #1d1d1f; }

.hub-page button.account-popover-upgrade,
.hub-page button.account-popover-upgrade:hover {
  border: 0;
  box-shadow: none;
}

.hub-page .settings-theme-control {
  display: block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.hub-page.is-settings-view .sidebar-account,
body.hub-page.is-settings-view .sidebar-account:hover,
body.hub-page.is-settings-view .sidebar-account[aria-expanded="true"],
html[data-theme="dark"] body.hub-page.is-settings-view .sidebar-account {
  width: calc(var(--hig-sidebar-width) - 52px);
  min-width: 0;
  justify-content: center;
  border-color: color-mix(in srgb, white 42%, var(--hig-separator));
  background: color-mix(in srgb, var(--hig-material-thick) 76%, transparent);
  box-shadow: 0 10px 28px rgba(30, 24, 33, 0.12), inset 0 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.hub-page .inline-title-edit-button,
.hub-page .inline-title-edit-button:hover,
.hub-page .inline-title-edit-button:focus-visible {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hub-page .bento-browser-view--project .resource-overview-panel {
  height: 292px;
  box-sizing: border-box;
  overflow: hidden;
}

.hub-page .bento-browser-view--project .bento-browser-actions .pill-button {
  border-radius: 999px !important;
}

.hub-page .modal.is-inline-editor {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: auto;
  aspect-ratio: 16 / 10;
  align-items: stretch;
}

.hub-page .has-inline-editor { min-height: 0; }

.hub-page .modal.is-inline-editor .modal-card,
html[data-theme="dark"] .hub-page .modal.is-inline-editor .modal-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.34);
  overflow: hidden;
}

.hub-page .modal.is-inline-editor .modal-heading {
  min-height: 28px;
  margin: 0 0 5px;
  padding-right: 28px;
  align-items: start;
}

.hub-page .modal.is-inline-editor .modal-heading h2 {
  font-size: 0.875rem;
  line-height: 28px;
}

.hub-page .modal.is-inline-editor .modal-heading .icon-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hub-page .modal.is-inline-editor form {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.hub-page .modal.is-inline-editor .field { gap: 3px; }

.hub-page .modal.is-inline-editor :is(input, select) {
  min-height: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.hub-page .modal.is-inline-editor .modal-actions {
  min-height: 30px;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.hub-page .modal-icon-action,
.hub-page .modal.is-inline-editor #modal-submit {
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 0;
}

.hub-page .modal-icon-action { background: var(--hig-secondary-fill); color: var(--hig-label); }
.hub-page .modal-icon-action svg { width: 15px; height: 15px; }

.hub-page .modal.is-inline-editor #modal-submit::before {
  content: "";
  width: 12px;
  height: 6px;
  border-bottom: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.hub-page .settings-usage-chart { height: 132px; }

.hub-page .settings-chart-grid path {
  fill: none;
  stroke: var(--hig-separator);
  stroke-width: 1;
}

.hub-page :is(.settings-chart-grid, .settings-chart-labels) text {
  fill: var(--hig-tertiary-label);
  font-size: 8px;
}

.hub-page .settings-chart-points circle {
  fill: var(--hig-background);
  stroke: var(--hig-blue);
  stroke-width: 1.5;
}

.hub-page .settings-plan-options article.is-current-plan {
  border-color: var(--hig-blue);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.hub-page .settings-plan-options .text-pill:disabled {
  opacity: 1;
  background: var(--hig-blue-soft);
  color: color-mix(in srgb, var(--hig-blue) 72%, black);
}

@media (max-width: 900px) {
  .hub-page .bento-browser-view--project .resource-overview-panel {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .hub-page .sidebar-search { display: none; }

  body.hub-page.is-settings-view .settings-theme-control {
    display: block;
    padding: 2px 4px;
  }

  body.hub-page.is-settings-view .sidebar-account,
  html[data-theme="dark"] body.hub-page.is-settings-view .sidebar-account {
    width: auto;
    min-width: 154px;
  }
}

@media (prefers-contrast: more) {
  :root {
    --hig-separator: rgba(60, 60, 67, 0.5);
    --hig-opaque-separator: #8e8e93;
  }

  html[data-theme="dark"] {
    --hig-separator: rgba(235, 235, 245, 0.56);
    --hig-opaque-separator: #aeaeb2;
  }

  .hub-page :where(button, a, input, select):focus-visible,
  .plans-page :where(button, a, input, select):focus-visible {
    outline-width: 4px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hub-page :is(.topbar, .dashboard-intro, .account-modal-card, .item-menu, .bento-browser-nav),
  .plans-page .topbar {
    background: var(--hig-elevated-background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 2026-08-06 feedback pass: viewport harmony and contextual glass ---------- */

.hub-page #projects-title {
  font-size: 1.25rem;
  line-height: 1.25;
}

.hub-page .project-row {
  position: relative;
}

.hub-page .project-tag-control {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 52px);
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(248, 248, 250, 0.68);
  color: #1d1d1f;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  font-size: 0.6875rem;
  font-weight: 600;
}

.hub-page .project-tag-control svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}

.hub-page .project-tag-control span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .project-tag-control:hover {
  background: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .hub-page .project-tag-control {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(32, 32, 35, 0.68);
  color: #f5f5f7;
}

/* The compact account surface is a popover anchored to its source control. */

.hub-page .account-popover[hidden] {
  display: none;
}

.hub-page .account-popover,
html[data-theme="dark"] .hub-page .account-popover {
  position: fixed;
  z-index: 260;
  left: 18px;
  bottom: 96px;
  width: min(360px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hig-separator) 86%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--hig-material-thick) 92%, transparent);
  color: var(--hig-label);
  box-shadow: 0 22px 60px rgba(30, 24, 33, 0.20), 0 3px 12px rgba(30, 24, 33, 0.08);
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  transform-origin: 28px 100%;
  animation: account-popover-in 180ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes account-popover-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hub-page .account-popover-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px 20px 12px;
}

.hub-page .account-popover-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #f57732, #bc3514);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 500;
}

.hub-page .account-popover-profile > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.hub-page .account-popover-profile strong,
.hub-page .account-popover-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .account-popover-profile strong {
  font-size: 1.0625rem;
  font-weight: 650;
}

.hub-page .account-popover-profile small {
  color: var(--hig-secondary-label);
  font-size: 0.8125rem;
}

.hub-page .account-popover-invite {
  width: calc(100% - 40px);
  min-height: 40px;
  margin: 0 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-tertiary-fill);
  color: var(--hig-label);
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-page .account-popover-invite:hover,
.hub-page .account-popover-links button:hover {
  background: var(--hig-secondary-fill);
}

.hub-page .account-popover-invite svg,
.hub-page .account-popover-links svg,
.hub-page .account-popover-upgrade svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.6;
}

.hub-page .account-popover-credits {
  padding: 17px 20px 16px;
  border-top: 1px solid var(--hig-separator);
  border-bottom: 1px solid var(--hig-separator);
}

.hub-page .account-popover-credits > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.hub-page .account-popover-credits strong {
  font-size: 0.9375rem;
}

.hub-page .account-popover-credits > div:first-child span,
.hub-page .account-popover-credits p {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .account-credit-progress {
  height: 8px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hig-fill);
}

.hub-page .account-credit-progress span {
  width: 10%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--hig-blue);
}

.hub-page .account-popover-credits p {
  margin: 11px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-page .account-popover-credits p > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hig-tertiary-label);
}

.hub-page .account-popover-links {
  display: grid;
}

.hub-page .account-popover-links button {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--hig-separator);
  background: transparent;
  color: var(--hig-label);
  text-align: start;
  font-size: 0.875rem;
}

.hub-page .account-popover-upgrade {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 0 20px;
}

.hub-page .account-popover-upgrade > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-page .account-popover-upgrade a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--hig-blue) 14%, transparent);
  color: var(--hig-blue);
  font-size: 0.75rem;
  font-weight: 650;
  text-decoration: none;
}

/* Capture detail: image first, with a single contextual Liquid Glass layer. */

.hub-page .capture-detail-stage {
  position: relative;
  width: 100%;
  height: calc(100dvh - 154px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--hig-tertiary-background);
}

.hub-page .capture-detail-stage > .resource-capture-hero,
.hub-page .captures-card .capture-detail-stage > .resource-capture-hero {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: inherit;
}

.hub-page .capture-floating-actions {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(248, 248, 250, 0.58);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14), inset 0 1px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
}

.hub-page .capture-floating-actions button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1d1d1f;
}

.hub-page .capture-floating-actions button:hover,
.hub-page .capture-floating-actions button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.72);
}

.hub-page .capture-floating-actions svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.hub-page .capture-info-panel {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  width: min(560px, calc(100% - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: rgba(30, 28, 31, 0.70);
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(30px) saturate(155%);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  animation: capture-info-in 180ms cubic-bezier(.2,.8,.2,1) both;
}

.hub-page .capture-info-panel.hidden {
  display: none;
}

@keyframes capture-info-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-page .capture-info-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hub-page .capture-info-meta strong {
  font-size: 0.8125rem;
  font-weight: 650;
}

.hub-page .capture-info-meta time {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8125rem;
}

.hub-page .capture-info-panel .resource-note-field {
  min-height: 58px;
  display: block;
  padding: 0 18px;
  border: 0;
  background: transparent;
}

.hub-page .capture-info-panel .resource-note-field > span,
.hub-page .capture-info-panel .resource-note-field > small {
  display: none;
}

.hub-page .capture-info-panel .resource-note-field input {
  width: 100%;
  height: 58px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.9375rem;
}

.hub-page .capture-info-panel .resource-note-field input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

/* Model categories navigate in place. Only project/capture/material details float. */

.hub-page .model-category--add,
html[data-theme="dark"] .hub-page .model-category--add {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--hig-blue) 48%, var(--hig-separator));
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
}

.hub-page .model-category--add .model-category-icon,
html[data-theme="dark"] .hub-page .model-category--add .model-category-icon {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hig-blue) 12%, transparent);
  color: var(--hig-blue);
}

.hub-page .model-category--add .model-category-icon svg {
  width: 28px;
  height: 28px;
}

.hub-page .models-card.is-browser-active,
html[data-theme="dark"] .hub-page .models-card.is-browser-active {
  overflow: visible;
  border: 0;
  background: transparent;
}

.hub-page .models-card.is-browser-active::before {
  display: none;
}

.hub-page .models-card.is-browser-active > .bento-browser-nav,
html[data-theme="dark"] .hub-page .models-card.is-browser-active > .bento-browser-nav {
  position: static;
  width: 100%;
  margin: 0 0 16px;
  display: flex;
  justify-content: flex-start;
}

.hub-page .models-card .bento-library-back,
html[data-theme="dark"] .hub-page .models-card .bento-library-back {
  width: auto;
  min-width: 0;
  height: 36px;
  display: inline-flex;
  grid-template: none;
  align-items: center;
  gap: 4px;
  padding: 0 11px 0 7px;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hub-page .models-card .bento-library-back svg {
  width: 18px;
  height: 18px;
}

.hub-page .models-card .bento-browser-view--models,
html[data-theme="dark"] .hub-page .models-card .bento-browser-view--models {
  position: static;
  inset: auto;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-page .models-card .bento-browser-view--models .bento-browser-heading {
  min-height: 58px;
  padding: 0 0 14px;
}

.hub-page .models-card .bento-browser-view--models .bento-browser-parent-title {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .models-card .bento-browser-view--models .bento-browser-title {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.hub-page .models-card .bento-browser-view--models .bento-browser-content {
  max-height: none;
  padding: 0;
  overflow: visible;
}

.hub-page .resource-object-add {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hig-label);
  text-align: start;
}

.hub-page .resource-object-add-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--hig-blue) 48%, var(--hig-separator));
  border-radius: 13px;
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
}

.hub-page .resource-object-add-preview svg {
  width: 34px;
  height: 34px;
}

.hub-page .resource-object-add > strong {
  padding: 0 2px;
  font-size: 0.8125rem;
}

.hub-page .models-card .resource-object-row,
html[data-theme="dark"] .hub-page .models-card .resource-object-row {
  position: relative;
  display: block;
  padding: 0;
}

.hub-page .resource-object-main {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hig-label);
  text-align: start;
}

.hub-page .resource-object-main .resource-object-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.hub-page .resource-object-toolbar {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(248, 248, 250, 0.68);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

html[data-theme="dark"] .hub-page .resource-object-toolbar {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(32, 32, 35, 0.70);
}

.hub-page .resource-object-toolbar button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #1d1d1f;
}

html[data-theme="dark"] .hub-page .resource-object-toolbar button {
  color: #f5f5f7;
}

.hub-page .resource-object-toolbar button:hover {
  background: rgba(255, 255, 255, 0.74);
}

.hub-page .resource-object-toolbar .resource-object-delete:hover {
  background: color-mix(in srgb, var(--hig-red) 14%, transparent);
  color: var(--hig-red);
}

.hub-page .resource-object-toolbar svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
}

@media (min-width: 761px) {
  .hub-page .brand-icon-wrap {
    width: 37px;
    height: 52px;
  }

  .hub-page .brand-icon {
    width: 29px;
    height: 29px;
  }

  .hub-page .brand-wordmark-wrap {
    width: 91px;
  }

  .hub-page .brand-wordmark {
    height: 22px;
  }

  .hub-page .brand--sidebar {
    gap: 6px;
  }

  body.hub-page[data-workspace-view="home"] {
    height: 100dvh;
    overflow: hidden;
  }

  body.hub-page[data-workspace-view="home"] .workspace-pages {
    height: 100dvh;
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 22px;
    overflow: hidden;
  }

  .hub-page #workspace-page-home {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hub-page #workspace-page-home .page-header {
    min-height: 0;
    margin-bottom: 14px;
  }

  .hub-page #workspace-page-home .home-content-layout,
  .hub-page #workspace-page-home .home-library-stack {
    min-height: 0;
    height: 100%;
  }

  .hub-page #workspace-page-home .home-library-stack {
    display: grid;
    grid-template-rows: minmax(230px, 1fr) auto;
    gap: 14px;
  }

  .hub-page #workspace-page-home .home-promo {
    height: 100%;
    min-height: 230px;
    max-height: none;
    margin: 0;
  }

  .hub-page #workspace-page-home .home-files-section {
    min-height: 0;
  }

  .hub-page #workspace-page-home .home-files-section .workspace-section-heading {
    min-height: 38px;
    margin-bottom: 8px;
  }

  .hub-page #workspace-page-home .recent-project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .hub-page #workspace-page-home .recent-project-card {
    min-height: 0;
  }

  .hub-page #workspace-page-home .recent-project-preview {
    aspect-ratio: 16 / 8.7;
  }

  .hub-page .models-layout {
    grid-template-columns: minmax(250px, .82fr) minmax(0, 2.18fr);
    align-items: stretch;
  }

  .hub-page .latest-model,
  html[data-theme="dark"] .hub-page .latest-model {
    height: auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: stretch;
  }

  .hub-page .model-stage {
    height: auto;
    min-height: 0;
  }

  .hub-page .model-categories {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: start;
  }

  .hub-page .model-category,
  html[data-theme="dark"] .hub-page .model-category {
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }

  .hub-page .model-category > span:last-child {
    width: 100%;
    justify-items: start;
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .hub-page .model-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hub-page .account-popover,
  html[data-theme="dark"] .hub-page .account-popover {
    top: calc(max(12px, env(safe-area-inset-top)) + 52px);
    right: 12px;
    bottom: auto;
    left: auto;
    width: min(360px, calc(100vw - 24px));
    transform-origin: calc(100% - 28px) 0;
  }

  .hub-page .capture-detail-stage {
    height: calc(100dvh - 142px);
    min-height: 420px;
  }

  .hub-page .capture-floating-actions {
    top: 10px;
    right: 10px;
  }

  .hub-page .capture-info-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .hub-page .capture-info-meta {
    display: grid;
    gap: 4px;
  }

  .hub-page .models-card .resource-object-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hub-page .account-popover,
  .hub-page .capture-floating-actions,
  .hub-page .capture-info-panel,
  .hub-page .project-tag-control,
  .hub-page .resource-object-toolbar {
    background: var(--hig-elevated-background);
    color: var(--hig-label);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 2026-08-06 feedback pass: floating navigation and compact libraries ------- */

@media (min-width: 761px) {
  :root { --hig-sidebar-width: 272px; }

  .hub-page .app-shell {
    grid-template-rows: minmax(100dvh, auto);
  }

  .hub-page .dashboard-intro {
    position: sticky;
    top: 14px;
    grid-row: 1;
    width: auto;
    height: calc(100dvh - 28px);
    margin: 14px 10px 14px 14px;
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid color-mix(in srgb, var(--hig-separator) 82%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--hig-material) 88%, transparent);
    box-shadow: 0 20px 55px rgba(39, 28, 42, 0.10), inset 0 1px rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(46px) saturate(180%);
    -webkit-backdrop-filter: blur(46px) saturate(180%);
  }

  html[data-theme="dark"] .hub-page .dashboard-intro {
    background: color-mix(in srgb, var(--hig-material) 92%, transparent);
  }

  .hub-page .brand--sidebar {
    height: 52px;
    margin: 0 0 16px;
    padding: 0 10px;
  }
}

.hub-page .topbar {
  display: none;
}

.hub-page .sidebar-account,
html[data-theme="dark"] .hub-page .sidebar-account {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 58px;
  margin-top: auto;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 15px;
  background: var(--hig-tertiary-fill);
  color: var(--hig-label);
  text-align: start;
  box-shadow: none;
}

.hub-page .sidebar-account:hover,
.hub-page .sidebar-account[aria-expanded="true"],
html[data-theme="dark"] .hub-page .sidebar-account:hover,
html[data-theme="dark"] .hub-page .sidebar-account[aria-expanded="true"] {
  background: var(--hig-secondary-fill);
}

.hub-page .sidebar-account .avatar {
  width: 36px;
  height: 36px;
}

.hub-page .sidebar-account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.hub-page .sidebar-account-copy strong,
.hub-page .sidebar-account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .sidebar-account-copy strong {
  color: var(--hig-label);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hub-page .sidebar-account-copy span {
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
}

.hub-page .sidebar-account-disclosure {
  width: 14px;
  height: 14px;
  color: var(--hig-tertiary-label);
}

@media (min-width: 761px) {
  .hub-page .sidebar-account,
  html[data-theme="dark"] .hub-page .sidebar-account {
    position: fixed;
    z-index: 120;
    left: 26px;
    bottom: 26px;
    width: calc(var(--hig-sidebar-width) - 52px);
    margin: 0;
  }
}

.hub-page .workspace-pages {
  grid-row: 1;
  min-height: 100dvh;
  padding: 24px clamp(26px, 3.4vw, 52px) 64px;
}

.hub-page .workspace-page.is-active {
  transform: none;
}

.hub-page .recent-project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
}

.hub-page .recent-project-card {
  gap: 7px;
}

.hub-page .recent-project-preview {
  aspect-ratio: 16 / 9;
}

/* Primary add tiles use a direct label and a familiar plus symbol. */

.hub-page .project-create-card,
.hub-page .capture-collection-add {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  color: var(--hig-label);
  text-align: start;
}

.hub-page .project-create-symbol,
.hub-page .capture-collection-add-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--hig-blue) 42%, var(--hig-separator));
  border-radius: 13px;
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.hub-page :is(.project-create-card, .capture-collection-add):hover :is(.project-create-symbol, .capture-collection-add-visual),
.hub-page :is(.project-create-card, .capture-collection-add):focus-visible :is(.project-create-symbol, .capture-collection-add-visual) {
  border-color: var(--hig-blue);
  background: color-mix(in srgb, var(--hig-blue-soft) 84%, var(--hig-secondary-background));
}

.hub-page :is(.project-create-symbol, .capture-collection-add-visual) svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}

.hub-page :is(.project-create-card, .capture-collection-add) > strong {
  padding: 0 2px;
  color: var(--hig-label);
  font-size: 0.875rem;
  font-weight: 600;
}

.hub-page .collection-empty-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--hig-secondary-label);
  font-size: 0.8125rem;
}

/* Capture collections mirror the media-first recent-card pattern. */

.hub-page .capture-project-groups,
.hub-page .captures-card .capture-project-groups {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 14px;
}

.hub-page .capture-project-stack,
.hub-page .captures-card .capture-project-stack,
html[data-theme="dark"] .hub-page .capture-project-stack {
  min-height: 0;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 9px;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  box-shadow: none;
  text-align: start;
}

.hub-page .capture-project-stack:hover,
.hub-page .captures-card .capture-project-stack:hover,
html[data-theme="dark"] .hub-page .capture-project-stack:hover {
  border: 0;
  background: transparent;
}

.hub-page .capture-stack-visual,
.hub-page .captures-card .capture-stack-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.hub-page .capture-stack-layer,
.hub-page .captures-card .capture-stack-layer {
  inset: 4% 9% 4% 3%;
  border-radius: 12px;
}

.hub-page .capture-stack-layer--empty,
.hub-page .captures-card .capture-stack-layer--empty {
  inset: 0;
  display: grid;
  place-items: center;
  border-style: dashed;
  background: var(--hig-tertiary-fill);
  color: var(--hig-tertiary-label);
  box-shadow: none;
  transform: none;
}

.hub-page .capture-stack-layer--empty svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.35;
}

.hub-page .capture-project-stack:hover .capture-stack-layer:first-child,
.hub-page .capture-project-stack:focus-visible .capture-stack-layer:first-child {
  border-color: color-mix(in srgb, var(--hig-blue) 60%, var(--hig-separator));
}

.hub-page .capture-stack-copy {
  min-width: 0;
  padding: 0 2px;
}

.hub-page .capture-stack-copy strong {
  font-size: 0.875rem;
}

.hub-page .capture-stack-copy span {
  margin-top: 2px;
  font-size: 0.75rem;
}

.hub-page .capture-collection-add-visual {
  aspect-ratio: 16 / 10;
}

/* Archives retain the project-card layout without an enclosing surface. */

.hub-page .archive-row,
html[data-theme="dark"] .hub-page .archive-row,
.hub-page .archive-row:hover,
html[data-theme="dark"] .hub-page .archive-row:hover {
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  box-shadow: none;
  opacity: 0.8;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-page .archive-thumb {
  border-radius: 13px;
  filter: grayscale(1) contrast(0.9);
  opacity: 1;
}

.hub-page .archive-actions {
  top: 8px;
  right: 8px;
}

/* The 3D library follows the material library's compact square grid. */

.hub-page .models-layout {
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 2.28fr);
  align-items: start;
  gap: 20px;
}

.hub-page .latest-model,
html[data-theme="dark"] .hub-page .latest-model {
  min-height: 0;
  grid-template-rows: 230px auto;
}

.hub-page .model-stage {
  min-height: 230px;
}

.hub-page .model-meta {
  min-height: 58px;
  padding: 9px 10px;
}

.hub-page .model-meta .model-open-button {
  min-height: 32px;
  height: 32px;
  padding-inline: 11px;
  font-size: 0.75rem;
}

.hub-page .model-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
}

.hub-page .model-category,
html[data-theme="dark"] .hub-page .model-category {
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--hig-separator);
  border-radius: 15px;
  background: var(--hig-secondary-background);
  text-align: center;
}

.hub-page .model-category:hover,
.hub-page .model-category:focus-visible {
  border-color: color-mix(in srgb, var(--hig-blue) 55%, var(--hig-separator));
  background: var(--hig-tertiary-background);
}

.hub-page .model-category .model-category-icon,
html[data-theme="dark"] .hub-page .model-category .model-category-icon {
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  border-radius: 14px;
}

.hub-page .model-category > span:last-child {
  display: grid;
  gap: 2px;
}

/* Detail windows are centered, bounded panels with one explicit Close action. */

.hub-page.is-resource-panel-open,
body.hub-page.is-resource-panel-open {
  overflow: hidden;
}

.hub-page .bento-card.is-browser-active {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hub-page .bento-card.is-browser-active::before {
  content: "";
  position: fixed;
  z-index: 300;
  inset: 0;
  pointer-events: auto;
  background: rgba(24, 20, 27, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hub-page .bento-browser-view,
html[data-theme="dark"] .hub-page .bento-browser-view {
  position: fixed;
  z-index: 310;
  top: 20px;
  right: 24px;
  bottom: 20px;
  left: calc(var(--hig-sidebar-width) + 18px);
  width: min(1040px, calc(100vw - var(--hig-sidebar-width) - 66px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--hig-separator);
  border-radius: 22px;
  background: var(--hig-material-thick);
  box-shadow: var(--hig-shadow-elevated);
  backdrop-filter: blur(44px) saturate(180%);
  -webkit-backdrop-filter: blur(44px) saturate(180%);
}

.hub-page .bento-browser-nav,
html[data-theme="dark"] .hub-page .bento-browser-nav {
  position: fixed;
  z-index: 320;
  top: 34px;
  right: max(38px, calc((100vw - var(--hig-sidebar-width) - min(1040px, calc(100vw - var(--hig-sidebar-width) - 66px))) / 2 + 34px));
  display: block;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-page .bento-browser-nav button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: var(--hig-fill);
}

.hub-page .bento-browser-nav svg {
  width: 15px;
  height: 15px;
}

.hub-page .bento-browser-heading {
  min-height: 60px;
  padding: 0 58px 10px 0;
  border: 0;
}

.hub-page .bento-browser-content {
  min-height: 0;
  margin: 0;
  padding: 8px 2px 14px 0;
  border: 0;
  overflow-y: auto;
}

.hub-page .bento-browser-actions {
  min-height: 48px;
  padding-top: 10px;
}

.hub-page .bento-browser-view .resource-overview {
  grid-template-columns: minmax(0, 3fr) minmax(190px, 1fr);
  gap: 16px;
}

.hub-page .bento-browser-view .resource-overview > .resource-hero,
.hub-page .captures-card .bento-browser-view .resource-overview > .resource-hero,
.hub-page .projects-card .bento-browser-view .resource-overview > .resource-hero {
  height: clamp(180px, 28dvh, 240px);
  min-height: 0;
}

.hub-page .bento-browser-view .resource-section {
  margin-top: 16px;
}

.hub-page .bento-browser-view .resource-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hub-page .bento-browser-view .resource-mini-card .capture-visual {
  height: auto;
  aspect-ratio: 4 / 3;
}

.hub-page .models-card .resource-category-grid,
.hub-page .models-card .resource-object-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hub-page .models-card .resource-category-card,
.hub-page .models-card .resource-object-row,
html[data-theme="dark"] .hub-page .models-card :is(.resource-category-card, .resource-object-row) {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--hig-radius-card);
  background: transparent;
  text-align: start;
}

.hub-page .models-card .resource-category-card .model-category-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hig-separator);
  border-radius: 13px;
}

.hub-page .models-card .resource-category-card > span:last-child,
.hub-page .models-card .resource-object-caption {
  padding: 0 2px;
}

.hub-page .models-card .resource-object-caption {
  position: relative;
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-content: start;
  gap: 0 6px;
}

.hub-page .models-card .resource-object-caption strong {
  grid-column: 1;
  font-size: 0.8125rem;
}

.hub-page .models-card .resource-object-caption small {
  grid-column: 1;
  margin: 1px 0 0;
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
}

.hub-page .models-card .resource-object-open-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.hub-page .models-card .resource-object-row:hover,
.hub-page .models-card .resource-object-row:focus-visible,
html[data-theme="dark"] .hub-page .models-card .resource-object-row:hover,
html[data-theme="dark"] .hub-page .models-card .resource-object-row:focus-visible {
  border: 0;
  background: transparent;
}

.hub-page .models-card .resource-object-row:hover .resource-object-preview,
.hub-page .models-card .resource-object-row:focus-visible .resource-object-preview {
  border-color: color-mix(in srgb, var(--hig-blue) 58%, var(--hig-separator));
  box-shadow: 0 0 0 2px var(--hig-blue-soft);
}

@media (max-width: 1180px) and (min-width: 761px) {
  :root { --hig-sidebar-width: 220px; }

  .hub-page .workspace-pages { padding-inline: 26px; }
  .hub-page .recent-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-page .models-layout { grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2.2fr); }
  .hub-page .model-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hub-page .app-shell { min-height: 100dvh; }

  .hub-page .workspace-pages {
    min-height: 100dvh;
    padding: 72px 16px calc(92px + env(safe-area-inset-bottom));
  }

  .hub-page .dashboard-intro {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    height: 66px;
    min-height: 66px;
    padding: 4px 6px;
    border: 1px solid var(--hig-separator);
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(30, 24, 33, 0.18);
  }

  .hub-page .workspace-tabs,
  html[data-theme="dark"] .hub-page .workspace-tabs {
    height: 56px;
  }

  .hub-page .sidebar-account,
  html[data-theme="dark"] .hub-page .sidebar-account {
    position: fixed;
    z-index: 190;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding: 4px;
    border: 1px solid var(--hig-separator);
    border-radius: 50%;
    background: var(--hig-material-thick);
    box-shadow: var(--hig-shadow-small);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }

  .hub-page .sidebar-account .avatar { width: 34px; height: 34px; }
  .hub-page .sidebar-account-copy,
  .hub-page .sidebar-account-disclosure { display: none; }

  .hub-page .recent-project-grid,
  .hub-page .capture-project-groups,
  .hub-page .captures-card .capture-project-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page .models-layout { grid-template-columns: 1fr; }
  .hub-page .latest-model { grid-template-rows: 220px auto; }
  .hub-page .model-stage { min-height: 220px; }
  .hub-page .model-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hub-page .bento-card.is-browser-active::before { background: rgba(24, 20, 27, 0.24); }

  .hub-page .bento-browser-view,
  html[data-theme="dark"] .hub-page .bento-browser-view {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: none;
    padding: 18px;
    border-radius: 20px;
  }

  .hub-page .bento-browser-nav,
  html[data-theme="dark"] .hub-page .bento-browser-nav {
    top: calc(max(10px, env(safe-area-inset-top)) + 12px);
    right: 22px;
  }

  .hub-page .bento-browser-nav button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .hub-page .bento-browser-heading { padding-right: 56px; }
  .hub-page .bento-browser-view .resource-overview { grid-template-columns: 1fr; }
  .hub-page .bento-browser-view .resource-mini-grid,
  .hub-page .models-card .resource-category-grid,
  .hub-page .models-card .resource-object-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hub-page .recent-project-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-transparency: reduce) {
  .hub-page .dashboard-intro,
  .hub-page .sidebar-account,
  .hub-page .bento-browser-view {
    background: var(--hig-elevated-background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hub-page .bento-card.is-browser-active::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Final cascade for the August 6 contextual-navigation pass. */

@media (min-width: 761px) {
  .hub-page .brand-icon-wrap { width: 37px; height: 52px; }
  .hub-page .brand-icon { width: 29px; height: 29px; }
  .hub-page .brand-wordmark-wrap { width: 91px; }
  .hub-page .brand-wordmark { height: 22px; }
  .hub-page .brand--sidebar { gap: 6px; }

  body.hub-page[data-workspace-view="home"] { height: 100dvh; overflow: hidden; }
  body.hub-page[data-workspace-view="home"] .workspace-pages {
    height: 100dvh;
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 22px;
    overflow: hidden;
  }
  .hub-page #workspace-page-home {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .hub-page #workspace-page-home .page-header { min-height: 0; margin-bottom: 14px; }
  .hub-page #workspace-page-home .home-content-layout,
  .hub-page #workspace-page-home .home-library-stack { min-height: 0; height: 100%; }
  .hub-page #workspace-page-home .home-library-stack {
    display: grid;
    grid-template-rows: minmax(230px, 1fr) auto;
    gap: 14px;
  }
  .hub-page #workspace-page-home .home-promo {
    height: 100%;
    min-height: 230px;
    max-height: none;
    margin: 0;
  }
  .hub-page #workspace-page-home .home-files-section { min-height: 0; }
  .hub-page #workspace-page-home .home-files-section .workspace-section-heading { min-height: 38px; margin-bottom: 8px; }
  .hub-page #workspace-page-home .recent-project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .hub-page #workspace-page-home .recent-project-card { min-height: 0; }
  .hub-page #workspace-page-home .recent-project-preview { aspect-ratio: 16 / 8.7; }

  .hub-page .models-layout {
    grid-template-columns: minmax(250px, .82fr) minmax(0, 2.18fr);
    align-items: stretch;
  }
  .hub-page .latest-model,
  html[data-theme="dark"] .hub-page .latest-model {
    height: auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: stretch;
  }
  .hub-page .model-stage { height: auto; min-height: 0; }
  .hub-page .model-categories { grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: start; }
  .hub-page .model-category,
  html[data-theme="dark"] .hub-page .model-category {
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }
  .hub-page .model-category > span:last-child { width: 100%; justify-items: start; }
}

.hub-page .models-card.is-browser-active,
html[data-theme="dark"] .hub-page .models-card.is-browser-active {
  overflow: visible;
  border: 0;
  background: transparent;
}
.hub-page .models-card.is-browser-active::before { display: none; }
.hub-page .models-card.is-browser-active > .bento-browser-nav,
html[data-theme="dark"] .hub-page .models-card.is-browser-active > .bento-browser-nav {
  position: static;
  width: 100%;
  margin: 0 0 16px;
  display: flex;
  justify-content: flex-start;
}
.hub-page .models-card .bento-library-back,
html[data-theme="dark"] .hub-page .models-card .bento-library-back {
  width: auto;
  min-width: 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 11px 0 7px;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-blue);
  font-size: 0.8125rem;
  font-weight: 600;
}
.hub-page .models-card .bento-browser-view--models,
html[data-theme="dark"] .hub-page .models-card .bento-browser-view--models {
  position: static;
  inset: auto;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hub-page .models-card .bento-browser-view--models .bento-browser-content {
  max-height: none;
  padding: 0;
  overflow: visible;
}
.hub-page .models-card .resource-object-row,
html[data-theme="dark"] .hub-page .models-card .resource-object-row {
  position: relative;
  display: block;
  padding: 0;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .hub-page .model-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hub-page #workspace-page-home[hidden] {
  display: none;
}

.hub-page .models-card > .is-bento-root-hidden {
  display: none !important;
}

.hub-page .capture-floating-actions button {
  width: 44px;
  height: 44px;
}

.hub-page .account-popover-invite {
  min-height: 44px;
}

.hub-page .resource-object-toolbar button {
  width: 36px;
  height: 36px;
}

@media (max-width: 760px) {
  body.hub-page.is-resource-panel-open .dashboard-intro,
  body.hub-page.is-resource-panel-open .sidebar-account {
    opacity: 0;
    pointer-events: none;
  }
}

/* 2026-08-06 — in-place libraries, media-first details and full settings workspace. */

.hub-page .sidebar-account,
html[data-theme="dark"] .hub-page .sidebar-account,
.hub-page .sidebar-account:hover,
.hub-page .sidebar-account[aria-expanded="true"],
html[data-theme="dark"] .hub-page .sidebar-account:hover,
html[data-theme="dark"] .hub-page .sidebar-account[aria-expanded="true"] {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hub-page .sidebar-account:focus-visible {
  outline: 3px solid var(--hig-blue-soft);
  outline-offset: 2px;
}

.hub-page .sidebar-account-back {
  display: none;
}

.hub-page .settings-navigation[hidden],
.hub-page .settings-panel[hidden],
.hub-page .settings-page[hidden] {
  display: none !important;
}

.hub-page .settings-navigation {
  display: grid;
  gap: 4px;
}

.hub-page .settings-navigation > p {
  margin: 2px 10px 8px;
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-page .settings-navigation-item {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--hig-secondary-label);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 550;
}

.hub-page .settings-navigation-item svg {
  width: 20px;
  height: 20px;
}

.hub-page .settings-navigation-item:hover {
  background: var(--hig-fill);
}

.hub-page .settings-navigation-item.is-active {
  background: var(--hig-secondary-fill);
  color: var(--hig-label);
  font-weight: 650;
}

body.hub-page.is-settings-view .workspace-tabs {
  display: none;
}

body.hub-page.is-settings-view .sidebar-account .avatar,
body.hub-page.is-settings-view .sidebar-account-copy,
body.hub-page.is-settings-view .sidebar-account-disclosure {
  display: none;
}

body.hub-page.is-settings-view .sidebar-account {
  grid-template-columns: 1fr;
  min-height: 44px;
  padding: 0 8px;
}

body.hub-page.is-settings-view .sidebar-account-back {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hig-secondary-label);
  font-size: 0.8125rem;
  font-weight: 600;
}

body.hub-page.is-settings-view .sidebar-account-back svg {
  width: 18px;
  height: 18px;
}

.hub-page .settings-page {
  width: min(820px, 100%);
  margin: 0 auto;
}

.hub-page .settings-page-header {
  margin-bottom: 18px;
}

.hub-page .settings-page-header p {
  margin: 0 0 4px;
  color: var(--hig-tertiary-label);
  font-size: 0.75rem;
  font-weight: 600;
}

.hub-page .settings-form {
  display: grid;
  gap: 16px;
}

.hub-page .settings-panel {
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--hig-separator);
  border-radius: 22px;
  background: var(--hig-secondary-background);
}

.hub-page .settings-section-heading {
  margin-bottom: 22px;
}

.hub-page .settings-section-heading h2 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.hub-page .settings-section-heading p {
  max-width: 54ch;
  margin: 5px 0 0;
  color: var(--hig-secondary-label);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.hub-page .settings-avatar-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hig-separator);
}

.hub-page .settings-avatar-preview {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hig-accent-gradient, linear-gradient(145deg, #ff7a45, #a72f7c));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 650;
  background-position: center;
  background-size: cover;
}

.hub-page .settings-avatar-row > div {
  display: grid;
  gap: 6px;
}

.hub-page .settings-avatar-row strong {
  font-size: 0.875rem;
}

.hub-page .settings-photo-button {
  min-height: 32px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-blue);
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}

.hub-page .settings-panel .account-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hub-page .settings-panel .field {
  display: grid;
  gap: 7px;
}

.hub-page .settings-panel .field--wide {
  grid-column: 1 / -1;
}

.hub-page .settings-panel .field > span {
  padding-left: 4px;
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
  font-weight: 600;
}

.hub-page .settings-panel :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"]) {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--hig-separator);
  border-radius: 999px;
  outline: 0;
  background: var(--hig-background);
  color: var(--hig-label);
  font: inherit;
}

.hub-page #workspace-page-settings .settings-panel .field > input:not([type="checkbox"]) {
  height: 46px;
  padding-inline: 16px;
  border: 1px solid var(--hig-separator);
  border-radius: 999px;
  background: var(--hig-background);
}

.hub-page .settings-panel :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"]):focus {
  border-color: var(--hig-blue);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.hub-page .settings-switch-row {
  min-height: 68px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--hig-background);
}

.hub-page .settings-switch-row > span {
  display: grid;
  gap: 3px;
}

.hub-page .settings-switch-row strong {
  font-size: 0.8125rem;
}

.hub-page .settings-switch-row small {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .settings-switch-row input {
  width: 46px;
  height: 28px;
  accent-color: var(--hig-blue);
}

.hub-page .settings-plan-card {
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 22px;
  border-radius: 18px;
  background: var(--hig-background);
}

.hub-page .settings-plan-card > div:first-child,
.hub-page .settings-credit-summary {
  display: grid;
  gap: 5px;
}

.hub-page .settings-plan-card span {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .settings-plan-card strong {
  font-size: 1.25rem;
}

.hub-page .settings-credit-bar {
  width: 100%;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hig-fill);
}

.hub-page .settings-credit-bar i {
  width: 10%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--hig-blue);
}

.hub-page .settings-plan-card a {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-blue);
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: none;
}

.hub-page .settings-form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Root 3D bento: square categories on the left and a height-matched latest model on the right. */

@media (min-width: 761px) {
  .hub-page .models-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(255px, 0.8fr);
    align-items: stretch;
    gap: 16px;
  }

  .hub-page .model-categories {
    grid-column: 1;
    grid-row: 1;
    height: min(430px, calc(100dvh - 178px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hub-page .latest-model,
  html[data-theme="dark"] .hub-page .latest-model {
    grid-column: 2;
    grid-row: 1;
    height: min(430px, calc(100dvh - 178px));
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .hub-page .model-category,
  html[data-theme="dark"] .hub-page .model-category {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

.hub-page .model-category--add,
html[data-theme="dark"] .hub-page .model-category--add {
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.hub-page .model-category--add .model-category-add-icon {
  width: min(60%, 92px);
  height: min(60%, 92px);
  color: var(--hig-blue);
  stroke-width: 1.25;
}

.hub-page .model-category--add > strong {
  max-width: 92%;
  white-space: normal;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.15;
}

/* Library contexts replace the root content instead of becoming floating windows. */

.hub-page :is(.captures-card, .materials-card).is-browser-active,
html[data-theme="dark"] .hub-page :is(.captures-card, .materials-card).is-browser-active {
  overflow: visible;
  border: 0;
  background: transparent;
}

.hub-page :is(.captures-card, .materials-card).is-browser-active::before {
  display: none;
}

.hub-page :is(.captures-card, .materials-card) > .is-bento-root-hidden {
  display: none !important;
}

.hub-page .page-header.is-contextual {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.hub-page .page-header.is-contextual > div {
  display: grid;
  gap: 2px;
}

.hub-page .page-header.is-contextual h1 {
  margin: 0;
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hub-page .workspace-context-title {
  margin: 0;
  color: var(--hig-label);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hub-page :is(.workspace-context-title, .media-detail-title h2, #settings-title):focus {
  outline: none;
}

.hub-page .page-header.is-contextual .bento-browser-nav,
html[data-theme="dark"] .hub-page .page-header.is-contextual .bento-browser-nav {
  position: static;
  z-index: auto;
  margin-left: auto;
  flex: 0 0 auto;
}

.hub-page .page-header.is-contextual .bento-library-back,
html[data-theme="dark"] .hub-page .page-header.is-contextual .bento-library-back {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hig-secondary-label);
}

.hub-page .page-header.is-contextual .bento-library-back:hover {
  background: var(--hig-fill);
  color: var(--hig-label);
}

.hub-page .bento-browser-view--library,
html[data-theme="dark"] .hub-page .bento-browser-view--library {
  position: static;
  inset: auto;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-page .bento-browser-view--library .bento-browser-content {
  max-height: none;
  padding: 0;
  overflow: visible;
}

.hub-page .bento-browser-view--library .resource-section {
  margin: 0;
}

.hub-page .capture-album-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Media detail: image is the surface, with one bottom fade and icon-only controls. */

.hub-page .page-header.is-media-context {
  display: none;
}

.hub-page .workspace-page:has(.bento-browser-view--media) {
  height: calc(100dvh - 88px);
  min-height: 0;
  overflow: hidden;
}

.hub-page .workspace-page:has(.bento-browser-view--media) > .workspace-module {
  height: 100% !important;
  min-height: 0;
}

.hub-page .bento-browser-view--media,
html[data-theme="dark"] .hub-page .bento-browser-view--media {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-page .bento-browser-view--media .bento-browser-content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hub-page .bento-browser-view--media .capture-detail-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.hub-page .bento-browser-view--media .capture-detail-stage > .resource-hero,
.hub-page .captures-card .bento-browser-view--media .capture-detail-stage > .resource-hero {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: inherit;
}

.hub-page .media-detail-fade {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(8, 8, 11, 0.18) 34%, rgba(8, 8, 11, 0.67) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%, #000 100%);
  backdrop-filter: blur(12px) saturate(112%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
}

.hub-page .media-detail-title {
  position: absolute;
  z-index: 4;
  left: 26px;
  bottom: 22px;
  max-width: min(58%, 620px);
  display: grid;
  gap: 3px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.hub-page .media-detail-title span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 550;
}

.hub-page .media-detail-title h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hub-page .bento-browser-view--media .capture-floating-actions {
  z-index: 5;
  top: auto;
  right: 68px;
  bottom: 14px;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-page .bento-browser-view--media .capture-floating-actions button,
.hub-page .bento-browser-nav--media button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hub-page .bento-browser-view--media .capture-floating-actions button:hover,
.hub-page .bento-browser-view--media .capture-floating-actions button[aria-expanded="true"],
.hub-page .bento-browser-nav--media button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.hub-page .bento-browser-nav--media,
html[data-theme="dark"] .hub-page .bento-browser-nav--media {
  position: absolute;
  z-index: 6;
  top: auto;
  right: 18px;
  bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hub-page .bento-browser-view--media .capture-info-panel {
  right: 18px;
  bottom: 70px;
  width: min(520px, calc(100% - 36px));
}

.hub-page .bento-browser-view--captures .bento-browser-content {
  overflow: hidden;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .hub-page .capture-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.hub-page.is-settings-view .workspace-pages {
    padding-top: 70px;
  }

  body.hub-page.is-settings-view .dashboard-intro {
    height: 66px;
  }

  body.hub-page.is-settings-view .brand--sidebar,
  body.hub-page.is-settings-view .settings-navigation {
    display: none;
  }

  body.hub-page.is-settings-view .sidebar-account {
    width: auto;
    padding-inline: 12px;
    border-radius: 999px;
  }

  .hub-page .settings-panel {
    min-height: 0;
    padding: 18px;
  }

  .hub-page .settings-panel .account-field-grid {
    grid-template-columns: 1fr;
  }

  .hub-page .settings-panel .field--wide {
    grid-column: auto;
  }

  .hub-page .model-categories {
    order: 1;
  }

  .hub-page .latest-model {
    order: 2;
  }

  .hub-page .capture-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page .workspace-page:has(.bento-browser-view--media) {
    height: calc(100dvh - 164px);
  }

  .hub-page .media-detail-title {
    right: 18px;
    bottom: 72px;
    left: 18px;
    max-width: none;
  }

  .hub-page .bento-browser-view--media .capture-floating-actions {
    right: 62px;
    bottom: 10px;
  }

  .hub-page .bento-browser-nav--media,
  html[data-theme="dark"] .hub-page .bento-browser-nav--media {
    right: 12px;
    bottom: 10px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hub-page .media-detail-fade {
    background: linear-gradient(to bottom, transparent 0%, rgba(8, 8, 11, 0.76) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 2026-08-07 — HIG pass: embedded editors, top media chrome and settings. */

/* Account popover ---------------------------------------------------- */

.hub-page .sidebar-account-disclosure {
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.hub-page .sidebar-account[aria-expanded="true"] .sidebar-account-disclosure {
  transform: rotate(180deg);
}

.hub-page .account-popover-avatar,
html[data-theme="dark"] .hub-page .account-popover-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 29%, #f0c09c 0 11%, transparent 12%),
    radial-gradient(circle at 50% 43%, #c98970 0 22%, transparent 23%),
    radial-gradient(circle at 50% 70%, #313649 0 31%, transparent 32%),
    linear-gradient(145deg, #9089ff, #4d4d9b 48%, #e99b70);
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hub-page button.account-popover-credits,
.hub-page button.account-popover-upgrade {
  width: 100%;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hig-label);
  text-align: left;
}

.hub-page button.account-popover-credits:hover,
.hub-page button.account-popover-upgrade:hover {
  background: var(--hig-fill);
}

.hub-page .account-popover-upgrade .account-upgrade-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--hig-blue) 14%, transparent);
  color: var(--hig-blue);
  font-size: 0.75rem;
  font-weight: 650;
}

/* Projects and tags ------------------------------------------------- */

.hub-page .project-open,
.hub-page .project-open:hover,
.hub-page .project-open:focus-visible,
.hub-page .project-open .project-copy,
.hub-page .project-open:hover .project-copy,
.hub-page .project-row:hover .project-copy {
  background: transparent !important;
  box-shadow: none !important;
}

.hub-page .more-button,
.hub-page .more-button:hover,
.hub-page .more-button:focus-visible,
.hub-page .more-button[aria-expanded="true"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hub-page .more-button:hover,
.hub-page .more-button:focus-visible {
  color: var(--hig-label);
  transform: scale(1.06);
}

.hub-page .folder-add-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hig-separator);
  border-radius: 50%;
  background: var(--hig-fill);
  color: var(--hig-blue);
}

.hub-page .folder-add-button:hover {
  background: var(--hig-secondary-fill);
}

.hub-page .folder-add-button svg {
  width: 16px;
  height: 16px;
}

.hub-page .folder-toolbar--archive {
  margin-top: -2px;
  margin-bottom: 12px;
}

.hub-page .project-tag-control {
  gap: 0;
}

/* Home and materials: creation lives in the collection itself. */

.hub-page .recent-project-card--all .recent-project-all-icon,
.hub-page .material-card--add .material-add-symbol {
  width: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed var(--hig-opaque-separator);
  border-radius: 13px;
  background: var(--hig-tertiary-fill);
  color: var(--hig-blue);
}

.hub-page .recent-project-card--all .recent-project-all-icon {
  aspect-ratio: 16 / 10;
}

.hub-page .recent-project-card--all .recent-project-all-icon svg,
.hub-page .material-card--add .material-add-symbol svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.25;
}

.hub-page .recent-project-card--all:hover .recent-project-all-icon,
.hub-page .material-card--add:hover .material-add-symbol {
  border-color: var(--hig-blue);
  background: var(--hig-blue-soft);
}

.hub-page .recent-project-card--all .recent-project-copy > svg {
  width: 18px;
  height: 18px;
  color: var(--hig-tertiary-label);
}

.hub-page .material-card--add .material-add-symbol {
  aspect-ratio: 1 / 1;
}

.hub-page .material-card--add {
  color: var(--hig-label);
}

/* 3D root library --------------------------------------------------- */

.hub-page .models-layout,
html[data-theme="dark"] .hub-page .models-layout {
  display: block;
}

.hub-page .model-categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hub-page .model-category .model-category-icon,
html[data-theme="dark"] .hub-page .model-category .model-category-icon {
  width: clamp(76px, 7vw, 104px);
  height: clamp(76px, 7vw, 104px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hub-page .model-category .model-category-icon svg {
  width: 82%;
  height: 82%;
  stroke-width: 1.15;
}

.hub-page .model-category--add {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hub-page .model-category--add .model-category-add-icon {
  width: clamp(70px, 6vw, 96px);
  height: clamp(70px, 6vw, 96px);
  stroke-width: 0.9;
}

/* Capture/material detail: the image itself is the window. */

.hub-page :is(.captures-card, .materials-card, .models-card).is-browser-active::before {
  display: none;
  pointer-events: none;
}

.hub-page .media-detail-fade {
  top: 0;
  bottom: auto;
  height: 38%;
  background: linear-gradient(to bottom, rgba(6, 7, 10, 0.68) 0%, rgba(6, 7, 10, 0.28) 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
}

.hub-page .media-detail-title {
  top: 24px;
  right: 250px;
  bottom: auto;
  left: 26px;
  max-width: none;
}

.hub-page .media-detail-title h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.hub-page .bento-browser-view--media .capture-floating-actions {
  top: 12px;
  right: 14px;
  bottom: auto;
  gap: 1px;
}

.hub-page .bento-browser-view--media .capture-floating-actions button:hover,
.hub-page .bento-browser-view--media .capture-floating-actions button:focus-visible,
.hub-page .bento-browser-view--media .capture-floating-actions button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
}

.hub-page .bento-browser-view--media .capture-info-panel,
html[data-theme="dark"] .hub-page .bento-browser-view--media .capture-info-panel {
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1.35fr);
  align-items: center;
  gap: 22px;
  padding: 18px 22px max(18px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 0 18px 18px;
  background: rgba(18, 18, 22, 0.58);
  color: #fff;
  box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(36px) saturate(150%);
  -webkit-backdrop-filter: blur(36px) saturate(150%);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: none !important;
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease, visibility 0s;
}

.hub-page .bento-browser-view--media .capture-info-panel.hidden {
  display: grid !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(calc(100% + 18px)) !important;
  transition: transform 260ms cubic-bezier(.4, 0, .6, 1), opacity 160ms ease, visibility 0s linear 260ms;
}

.hub-page .bento-browser-view--media .capture-info-meta strong,
.hub-page .bento-browser-view--media .capture-info-meta time,
.hub-page .bento-browser-view--media .capture-info-panel .resource-note-field > span,
.hub-page .bento-browser-view--media .capture-info-panel .resource-note-field > small {
  color: rgba(255, 255, 255, 0.92);
}

.hub-page .bento-browser-view--media .capture-info-panel .resource-note-field input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hub-page .bento-browser-view--media .capture-info-panel .resource-note-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.hub-page .page-header.is-contextual .bento-library-back,
html[data-theme="dark"] .hub-page .page-header.is-contextual .bento-library-back {
  border: 1px solid color-mix(in srgb, var(--hig-separator) 78%, transparent);
  background: color-mix(in srgb, var(--hig-material-thick) 84%, transparent);
  color: var(--hig-label);
  box-shadow: 0 8px 24px rgba(30, 24, 33, 0.12), inset 0 1px rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

/* Compact project detail -------------------------------------------- */

.hub-page .bento-browser-view--project,
html[data-theme="dark"] .hub-page .bento-browser-view--project {
  top: 50%;
  bottom: auto;
  width: min(860px, calc(100vw - var(--hig-sidebar-width) - 70px));
  max-height: calc(100dvh - 80px);
  display: grid;
  grid-template-rows: auto auto auto;
  height: auto !important;
  min-height: 0 !important;
  padding: 20px;
  transform: translateY(-50%);
}

.hub-page .bento-browser-view--project .bento-browser-heading {
  min-height: 52px;
  padding-bottom: 8px;
}

.hub-page .bento-browser-view--project .bento-browser-content {
  padding: 4px 0 8px;
  overflow: hidden;
}

.hub-page .bento-browser-view--project .project-detail-overview {
  grid-template-columns: minmax(0, 1.72fr) minmax(240px, 0.78fr);
  align-items: stretch;
  gap: 14px;
}

.hub-page .bento-browser-view--project .project-detail-overview > .resource-project-preview {
  height: 292px !important;
  min-height: 292px !important;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.hub-page .bento-browser-view--project .resource-overview-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--hig-secondary-background);
}

.hub-page .bento-browser-view--project .resource-stats--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(58px, auto));
  height: auto;
  gap: 8px;
}

.hub-page .bento-browser-view--project .resource-note-field--project {
  margin: 2px 0 0;
}

.hub-page .bento-browser-view--project .resource-stat {
  min-height: 58px;
  padding: 9px;
}

.hub-page .bento-browser-nav--project,
html[data-theme="dark"] .hub-page .bento-browser-nav--project {
  top: calc(50% - 228px);
}

/* Nonmodal in-card editor ------------------------------------------- */

.hub-page .has-inline-editor {
  position: relative !important;
  min-height: 250px;
  overflow: hidden !important;
  isolation: isolate;
}

.hub-page .modal.is-inline-editor {
  position: absolute;
  z-index: 80;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  background: transparent;
}

.hub-page .modal.is-inline-editor .modal-backdrop {
  display: none;
}

.hub-page .modal.is-inline-editor .modal-card,
html[data-theme="dark"] .hub-page .modal.is-inline-editor .modal-card {
  width: 100%;
  max-width: none;
  max-height: 100%;
  padding: 18px;
  border: 0;
  border-top: 1px solid var(--hig-separator);
  border-radius: 18px 18px 0 0;
  background: color-mix(in srgb, var(--hig-material-thick) 94%, transparent);
  box-shadow: 0 -14px 34px rgba(30, 24, 33, 0.14);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  opacity: 0.92;
  transform: translateY(105%);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease;
}

.hub-page .modal.is-inline-editor.is-presented .modal-card {
  opacity: 1;
  transform: translateY(0);
}

.hub-page .modal.is-inline-editor .modal-heading {
  min-height: 36px;
  margin-bottom: 10px;
}

.hub-page .modal.is-inline-editor .modal-heading h2 {
  font-size: 1.0625rem;
}

.hub-page .modal.is-inline-editor .modal-actions {
  margin-top: 14px;
  padding-top: 10px;
}

/* Settings: subscription usage and appearance ----------------------- */

.hub-page .settings-page {
  width: min(1080px, 100%);
}

.hub-page #settings-panel-subscription {
  padding: 26px;
}

.hub-page .settings-usage-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.hub-page .settings-plan-card,
.hub-page .settings-usage-card,
.hub-page .settings-plan-options article {
  border: 1px solid var(--hig-separator);
  border-radius: 18px;
  background: var(--hig-background);
}

.hub-page .settings-plan-card,
.hub-page .settings-usage-card {
  min-height: 224px;
  padding: 20px;
}

.hub-page .settings-current-plan {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
}

.hub-page .settings-credit-summary small {
  color: var(--hig-tertiary-label);
  font-size: .7rem;
}

.hub-page .settings-usage-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hub-page .settings-usage-card > div:first-child,
.hub-page .settings-usage-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.hub-page .settings-usage-card span {
  color: var(--hig-secondary-label);
  font-size: .75rem;
}

.hub-page .settings-usage-chart {
  width: 100%;
  height: 88px;
  overflow: visible;
}

.hub-page .settings-chart-fill {
  fill: color-mix(in srgb, var(--hig-blue) 10%, transparent);
}

.hub-page .settings-chart-line {
  fill: none;
  stroke: var(--hig-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.hub-page .settings-plans-heading {
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hub-page .settings-plans-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.hub-page .settings-billing-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--hig-fill);
}

.hub-page .settings-billing-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hig-secondary-label);
  font-size: .75rem;
}

.hub-page .settings-billing-switch button.is-active {
  background: var(--hig-background);
  color: var(--hig-label);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.hub-page .settings-billing-switch span {
  margin-left: 4px;
  color: var(--hig-blue);
}

.hub-page .settings-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hub-page .settings-plan-options article {
  min-height: 240px;
  display: block;
  padding: 18px;
}

.hub-page .settings-plan-options h3 {
  margin: 4px 0 8px;
}

.hub-page .settings-plan-options p {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--hig-secondary-label);
  font-size: .78rem;
  line-height: 1.45;
}

.hub-page .settings-plan-kicker,
.hub-page .settings-plan-options article > small {
  color: var(--hig-tertiary-label);
  font-size: .68rem;
}

.hub-page .settings-plan-price {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 1.7rem;
  letter-spacing: -.03em;
}

.hub-page .settings-plan-options .text-pill {
  width: 100%;
  margin-top: 10px;
}

.hub-page .theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hub-page .theme-choice-grid > button {
  min-height: 210px;
  display: grid;
  grid-template-rows: 130px auto auto;
  align-content: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--hig-separator);
  border-radius: 18px;
  background: var(--hig-background);
  color: var(--hig-label);
  text-align: left;
}

.hub-page .theme-choice-grid > button.is-active {
  border-color: var(--hig-blue);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.hub-page .theme-choice-grid small {
  color: var(--hig-secondary-label);
}

.hub-page .theme-preview {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .22);
}

.hub-page .theme-preview--light {
  background: linear-gradient(90deg, #e9e9ed 0 26%, #fff 26% 100%);
}

.hub-page .theme-preview--dark {
  background: linear-gradient(90deg, #242428 0 26%, #111114 26% 100%);
}

.hub-page .theme-preview--auto {
  background: linear-gradient(110deg, #e9e9ed 0 26%, #fff 26% 50%, #151518 50% 100%);
}

.hub-page .settings-form:has(#settings-panel-subscription.is-active) .settings-form-actions,
.hub-page .settings-form:has(#settings-panel-appearance.is-active) .settings-form-actions {
  display: none;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .hub-page .model-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub-page .settings-plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hub-page .model-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-page .media-detail-title { top: 72px; right: 18px; bottom: auto; }
  .hub-page .bento-browser-view--media .capture-floating-actions { top: 8px; right: 8px; bottom: auto; }
  .hub-page .bento-browser-view--media .capture-info-panel { grid-template-columns: 1fr; gap: 10px; }
  .hub-page .settings-usage-grid,
  .hub-page .settings-plan-options,
  .hub-page .theme-choice-grid { grid-template-columns: 1fr; }
  .hub-page .settings-plans-heading { align-items: flex-start; flex-direction: column; }
  .hub-page .bento-browser-view--project { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page .modal.is-inline-editor .modal-card,
  .hub-page .bento-browser-view--media .capture-info-panel,
  .hub-page .sidebar-account-disclosure {
    transition-duration: 0.01ms;
  }
}

/* 2026-08-07 — annotated project, account and settings refinement. */

@media (min-width: 761px) {
  .hub-page #workspace-page-home .home-library-stack {
    grid-template-rows: minmax(172px, 3fr) auto minmax(0, 1fr);
    align-content: stretch;
  }

  .hub-page #workspace-page-home .home-promo {
    min-height: 172px;
  }

  .hub-page .bento-browser-nav--project,
  html[data-theme="dark"] .hub-page .bento-browser-nav--project {
    top: 34px;
  }
}

.hub-page .recent-project-card--all {
  grid-template-rows: auto;
}

.hub-page .recent-project-all-preview {
  width: 100%;
  aspect-ratio: 16 / 8.7;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--hig-opaque-separator);
  border-radius: 13px;
  background: var(--hig-tertiary-fill);
  color: var(--hig-label);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.hub-page .recent-project-card--all .recent-project-all-icon {
  width: 44px;
  height: 44px;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
}

.hub-page .recent-project-card--all .recent-project-all-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.hub-page .recent-project-all-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hub-page .recent-project-all-copy strong {
  overflow: hidden;
  color: var(--hig-label);
  font-size: 0.875rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .recent-project-all-copy span {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .recent-project-all-arrow {
  width: 20px;
  height: 20px;
  color: var(--hig-tertiary-label);
}

.hub-page .recent-project-card--all:hover .recent-project-all-preview,
.hub-page .recent-project-card--all:focus-visible .recent-project-all-preview {
  border-color: var(--hig-blue);
  background: var(--hig-blue-soft);
}

.hub-page .folder-inline-create {
  min-height: 32px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 2px 3px 2px 11px;
  border: 1px solid var(--hig-blue);
  border-radius: 999px;
  background: var(--hig-background);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.hub-page .folder-inline-create input {
  width: 112px;
  min-width: 0;
  height: 26px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hig-label);
  font: inherit;
  font-size: 0.75rem;
}

.hub-page .folder-inline-create input::placeholder {
  color: var(--hig-tertiary-label);
}

.hub-page .folder-inline-create button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hig-secondary-label);
}

.hub-page .folder-inline-create button[type="submit"] {
  color: var(--hig-blue);
}

.hub-page .folder-inline-create button:hover {
  background: var(--hig-fill);
}

.hub-page .folder-inline-create svg {
  width: 15px;
  height: 15px;
}

.hub-page .bento-browser-parent-tag {
  min-height: 24px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  margin: 0 0 5px;
  padding: 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
  color: var(--hig-secondary-label);
  font-size: 0.6875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .bento-browser-actions,
html[data-theme="dark"] .hub-page .bento-browser-actions {
  border-top: 0;
}

.hub-page .bento-browser-view > .bento-browser-nav,
html[data-theme="dark"] .hub-page .bento-browser-view > .bento-browser-nav {
  position: absolute;
  top: 14px;
  right: 14px;
}

.hub-page .settings-theme-control {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: var(--hig-fill);
}

.hub-page .settings-theme-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hig-secondary-label);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hub-page .settings-theme-label svg {
  width: 20px;
  height: 20px;
}

.hub-page .settings-theme-pill {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--hig-secondary-fill);
}

.hub-page .settings-theme-pill button {
  min-width: 0;
  min-height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hig-secondary-label);
  font-size: 0.6875rem;
  font-weight: 600;
}

.hub-page .settings-theme-pill button:hover {
  color: var(--hig-label);
}

.hub-page .settings-theme-pill button.is-active {
  background: var(--hig-background);
  color: var(--hig-label);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

body.hub-page.is-settings-view .sidebar-account,
body.hub-page.is-settings-view .sidebar-account:hover,
body.hub-page.is-settings-view .sidebar-account[aria-expanded="true"],
html[data-theme="dark"] body.hub-page.is-settings-view .sidebar-account {
  width: auto;
  min-width: 168px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hig-separator);
  border-radius: 999px;
  background: var(--hig-fill);
  box-shadow: none;
}

body.hub-page.is-settings-view .sidebar-account:hover {
  background: var(--hig-secondary-fill);
}

body.hub-page.is-settings-view .sidebar-account-back {
  justify-content: center;
}

.hub-page #settings-panel-subscription {
  align-self: start;
}

.hub-page .settings-plan-options {
  align-items: stretch;
}

.hub-page .settings-plan-options article {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hub-page .settings-plan-features {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 18px 0 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--hig-separator);
  list-style: none;
}

.hub-page .settings-plan-features li {
  position: relative;
  padding-left: 22px;
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
  line-height: 1.35;
}

.hub-page .settings-plan-features li::before {
  content: "";
  position: absolute;
  top: 0.22em;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 1.8px solid var(--hig-blue);
  border-left: 1.8px solid var(--hig-blue);
  transform: rotate(-45deg);
}

.hub-page .settings-plan-options .text-pill {
  margin-top: auto;
}

@media (max-width: 760px) {
  .hub-page .recent-project-all-preview {
    aspect-ratio: 16 / 10;
  }

  body.hub-page.is-settings-view .sidebar-account,
  html[data-theme="dark"] body.hub-page.is-settings-view .sidebar-account {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    bottom: auto;
    left: auto;
    width: auto;
    min-width: 154px;
  }

  .hub-page .settings-plan-options article {
    min-height: 380px;
  }
}

/* 2026-08-07 — macOS HIG geometry, hierarchy and compact-layout QA. */

.hub-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 149, 0, 0.12), transparent 30%),
    radial-gradient(circle at 92% 38%, rgba(88, 86, 214, 0.11), transparent 34%),
    linear-gradient(135deg, #f7f4f2 0%, #f3f2f6 56%, #f7f6f8 100%);
}

html[data-theme="dark"] .hub-page {
  --hig-blue: #409cff;
  --hig-blue-soft: rgba(64, 156, 255, 0.18);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 149, 0, 0.10), transparent 30%),
    radial-gradient(circle at 92% 38%, rgba(94, 92, 230, 0.13), transparent 34%),
    linear-gradient(135deg, #1d1b1c 0%, #1c1b20 56%, #1f1e22 100%);
}

@media (min-width: 761px) {
  .hub-page .dashboard-intro {
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(39, 28, 42, 0.08), inset 0 1px rgba(255, 255, 255, 0.30);
  }

  body.hub-page:not(.is-settings-view) .sidebar-account,
  html[data-theme="dark"] body.hub-page:not(.is-settings-view) .sidebar-account {
    border-radius: 12px;
    background: transparent;
  }

  body.hub-page:not(.is-settings-view) .sidebar-account:hover,
  body.hub-page:not(.is-settings-view) .sidebar-account[aria-expanded="true"],
  html[data-theme="dark"] body.hub-page:not(.is-settings-view) .sidebar-account:hover,
  html[data-theme="dark"] body.hub-page:not(.is-settings-view) .sidebar-account[aria-expanded="true"] {
    background: var(--hig-tertiary-fill);
  }
}

.hub-page .workspace-tab,
.hub-page .settings-navigation-item,
.hub-page .folder-chip,
.hub-page .folder-add-button,
.hub-page :is(.text-pill, .pill-button, .icon-pill, .more-button) {
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.hub-page :is(.project-thumb, .capture-visual, .project-create-symbol, .capture-collection-add-visual),
.hub-page .settings-panel,
.hub-page :is(.settings-plan-card, .settings-usage-card, .settings-plan-options article) {
  border-radius: 14px;
}

.hub-page .settings-form {
  position: relative;
}

.hub-page .settings-form-actions {
  position: absolute;
  z-index: 4;
  top: -82px;
  right: 0;
  width: auto;
  margin: 0;
}

/* Keep project media at its semantic 16:10 ratio at every window width. */

.hub-page .bento-browser-view--project .project-detail-overview {
  align-items: start;
}

.hub-page .bento-browser-view--project .project-detail-overview > .resource-project-preview {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10;
  align-self: start;
}

@media (max-width: 900px) {
  .hub-page .bento-browser-view--project,
  html[data-theme="dark"] .hub-page .bento-browser-view--project {
    top: 14px;
    bottom: auto;
    max-height: calc(100dvh - 28px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    transform: none;
  }

  .hub-page .bento-browser-view--project .bento-browser-content {
    overflow: auto;
    overscroll-behavior: contain;
  }

  .hub-page .bento-browser-view--project .project-detail-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-page .bento-browser-view--project .resource-stats--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 760px) {
  .hub-page .workspace-tab {
    font-size: 0.6875rem;
  }

  body.hub-page:not(.is-settings-view) .sidebar-account,
  html[data-theme="dark"] body.hub-page:not(.is-settings-view) .sidebar-account {
    border: 1px solid var(--hig-separator);
    border-radius: 50%;
    background: var(--hig-material-thick);
    box-shadow: var(--hig-shadow-small);
  }

  body.hub-page.is-settings-view .workspace-pages {
    padding-bottom: calc(142px + env(safe-area-inset-bottom));
  }

  body.hub-page:has(.bento-browser-view--media) {
    height: 100dvh;
    overflow: hidden;
  }

  body.hub-page:has(.bento-browser-view--media) :is(.app-shell, .dashboard) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body.hub-page:has(.bento-browser-view--media) .workspace-pages {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

  body.hub-page.is-settings-view .dashboard-intro {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    height: 112px;
    min-height: 112px;
    display: block;
    padding: 5px 7px;
  }

  body.hub-page.is-settings-view .settings-navigation {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 54px 40px;
    gap: 3px 6px;
  }

  body.hub-page.is-settings-view .settings-navigation-item {
    min-height: 54px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 22px auto;
    place-items: center;
    gap: 2px;
    padding: 4px 2px;
    border-radius: 11px;
    color: var(--hig-tertiary-label);
    font-size: 0.6875rem;
    text-align: center;
  }

  body.hub-page.is-settings-view .settings-navigation-item svg {
    width: 20px;
    height: 20px;
  }

  body.hub-page.is-settings-view .settings-navigation-item:hover {
    background: transparent;
    color: var(--hig-label);
  }

  body.hub-page.is-settings-view .settings-navigation-item.is-active {
    background: var(--hig-blue-soft);
    color: var(--hig-blue);
  }

  body.hub-page.is-settings-view .settings-theme-control {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px 4px;
    border-radius: 12px;
    background: transparent;
  }

  body.hub-page.is-settings-view .settings-theme-label {
    gap: 5px;
    font-size: 0.6875rem;
  }

  body.hub-page.is-settings-view .settings-theme-label svg {
    width: 16px;
    height: 16px;
  }

  body.hub-page.is-settings-view .settings-theme-pill {
    height: 34px;
    padding: 2px;
  }

  body.hub-page.is-settings-view .settings-theme-pill button {
    min-height: 30px;
    font-size: 0.6875rem;
  }

  .hub-page .settings-form-actions {
    top: -78px;
  }

  .hub-page .bento-browser-view--project,
  html[data-theme="dark"] .hub-page .bento-browser-view--project {
    top: max(12px, env(safe-area-inset-top));
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top));
    padding: 18px;
  }

  .hub-page .bento-browser-view--project .resource-stats--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-contrast: more) {
  .hub-page .dashboard-intro,
  .hub-page .settings-panel,
  .hub-page :is(.project-thumb, .capture-visual, .project-create-symbol, .capture-collection-add-visual) {
    border-color: var(--hig-opaque-separator);
  }
}

/* Final cascade guards for the latest annotated controls. */
:root,
html[data-theme="dark"] {
  --hig-blue: #FD5503;
  --hig-blue-hover: #df4800;
  --hig-blue-soft: rgba(253, 85, 3, 0.14);
}

.hub-page .home-promo--early-access,
html[data-theme="dark"] .hub-page .home-promo--early-access {
  contain: paint;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: linear-gradient(
    to bottom,
    #6BB6E6 0%,
    #DBDCD8 50%,
    #FBC28E 75%,
    #E28D67 90%,
    #A7595E 100%
  );
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(83, 54, 61, 0.12);
}

.hub-page .home-promo--early-access::before {
  content: none;
  display: none;
}

.hub-page .home-promo--early-access::after { display: none; }

.hub-page .home-promo .home-early-access-icon {
  position: absolute;
  z-index: 1;
  top: 40%;
  left: 50%;
  width: auto;
  height: min(58%, 260px);
  max-width: 44%;
  object-fit: contain;
  opacity: 0.72;
  transform: translate(-50%, -50%);
}

.hub-page .home-early-access-lockup {
  position: absolute;
  z-index: 2;
  top: 64%;
  left: 50%;
  width: min(58%, 760px);
  display: grid;
  grid-template-columns: minmax(0, 435fr) minmax(0, 788fr);
  align-items: center;
  gap: clamp(5px, 0.7vw, 12px);
  transform: translate(-50%, -50%);
}

.hub-page .home-promo .home-early-access-logo {
  position: static;
  width: 100%;
  height: auto;
  min-width: 0;
  display: block;
  object-fit: contain;
}

@media (max-width: 520px) {
  .hub-page .home-early-access-lockup {
    top: 65%;
    width: min(72%, 290px);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 7px;
  }

  .hub-page .home-promo .home-early-access-logo--spaice { width: 55%; }
  .hub-page .home-promo .home-early-access-logo--title { width: 100%; }
}

.hub-page .sidebar-search button[hidden] { display: none; }

@media (min-width: 761px) {
  .hub-page #workspace-page-home .page-header { margin-bottom: 24px; }
}

.hub-page .modal.is-inline-editor {
  inset: 0 0 auto;
  height: auto;
  aspect-ratio: 16 / 10;
  align-items: stretch;
}

.hub-page .has-inline-editor { min-height: 0; }

.hub-page .modal.is-inline-editor .modal-card,
html[data-theme="dark"] .hub-page .modal.is-inline-editor .modal-card {
  height: 100%;
  min-height: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.hub-page .modal.is-inline-editor .modal-heading {
  min-height: 28px;
  margin-bottom: 5px;
}

.hub-page .modal.is-inline-editor .modal-actions {
  margin: 0;
  padding: 0;
  border: 0;
}

.hub-page .modal.is-inline-editor :is(input, select) {
  min-height: 30px;
  height: 30px;
  border-radius: 999px;
}

.hub-page .settings-theme-control {
  display: block;
  padding: 0;
  background: transparent;
}

body.hub-page.is-settings-view .sidebar-account,
body.hub-page.is-settings-view .sidebar-account:hover,
body.hub-page.is-settings-view .sidebar-account[aria-expanded="true"],
html[data-theme="dark"] body.hub-page.is-settings-view .sidebar-account {
  width: calc(var(--hig-sidebar-width) - 52px);
  min-width: 0;
  justify-content: center;
  background: color-mix(in srgb, var(--hig-material-thick) 76%, transparent);
  box-shadow: 0 10px 28px rgba(30, 24, 33, 0.12), inset 0 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

@media (max-width: 760px) {
  body.hub-page.is-settings-view .settings-theme-control { display: block; }
  body.hub-page.is-settings-view .sidebar-account,
  html[data-theme="dark"] body.hub-page.is-settings-view .sidebar-account {
    width: auto;
    min-width: 154px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hub-page *,
  .hub-page *::before,
  .hub-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final cascade guards for the 2026-08-09 annotated feedback pass. */

.hub-page .folder-chip-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.hub-page .folder-chip.is-active,
html[data-theme="dark"] .hub-page .folder-chip.is-active {
  background: var(--hig-blue);
  color: #fff;
}

.hub-page .folder-chip-wrap:has(.folder-chip.is-active) .folder-chip-delete { color: #fff; }

.hub-page .folder-add-button,
html[data-theme="dark"] .hub-page .folder-add-button {
  border-color: color-mix(in srgb, var(--hig-separator) 70%, transparent);
  background: color-mix(in srgb, var(--hig-fill) 70%, transparent);
  color: var(--hig-secondary-label);
}

.hub-page .folder-add-button:hover {
  background: color-mix(in srgb, var(--hig-secondary-fill) 70%, transparent);
  color: var(--hig-secondary-label);
}

.hub-page :is(.project-create-symbol, .capture-collection-add-visual),
.hub-page :is(.project-create-card, .capture-collection-add):hover :is(.project-create-symbol, .capture-collection-add-visual),
.hub-page :is(.project-create-card, .capture-collection-add):focus-visible :is(.project-create-symbol, .capture-collection-add-visual) {
  border-color: var(--hig-separator);
  background: var(--hig-tertiary-fill);
  color: var(--hig-secondary-label);
}

.hub-page .recent-project-all-preview {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  color: var(--hig-secondary-label);
}

.hub-page .recent-project-all-preview svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.hub-page .home-promo--early-access,
html[data-theme="dark"] .hub-page .home-promo--early-access {
  border-color: rgba(255, 255, 255, 0.19);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(83, 54, 61, 0.12);
}

.hub-page #projects-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hub-page .has-inline-editor { min-height: 220px; }

.hub-page .modal.is-inline-editor {
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  display: block;
  padding: 0;
  overflow: visible;
}

.hub-page .modal.is-inline-editor .modal-card,
html[data-theme="dark"] .hub-page .modal.is-inline-editor .modal-card {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(420px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto auto;
  padding: 14px 16px 16px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 14px;
}

.hub-page .modal.is-inline-editor form {
  width: min(520px, 100%);
  margin-inline: auto;
}

.hub-page .modal.is-inline-editor #modal-folder-field { position: relative; }

.hub-page .modal.is-inline-editor #modal-folder {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding-inline: 13px 36px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
}

.hub-page .modal.is-inline-editor #modal-folder-field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--hig-secondary-label);
  border-bottom: 1.5px solid var(--hig-secondary-label);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.hub-page .modal.is-inline-editor #modal-submit { position: relative; }

.hub-page .modal.is-inline-editor #modal-submit::before {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  margin: 0;
  transform: translate(-50%, -64%) rotate(-45deg);
}

.hub-page .settings-billing-switch button.is-active,
html[data-theme="dark"] .hub-page .settings-billing-switch button.is-active {
  background: #fff;
  color: #1d1d1f;
}

.hub-page .settings-current-plan { display: block !important; }

.hub-page .settings-current-plan h3 {
  margin: 0;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.hub-page .settings-plan-options article { position: relative; }

.hub-page .settings-popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--hig-blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.hub-page .settings-plan-options article:has(.settings-popular-badge) h3 { padding-right: 122px; }

.hub-page :is(.settings-chart-grid, .settings-chart-labels) text {
  fill: var(--hig-secondary-label);
  font-size: 13px;
  font-weight: 650;
}

.hub-page .settings-chart-grid path {
  stroke: color-mix(in srgb, var(--hig-separator) 78%, transparent);
}

@media (min-width: 761px) {
  .hub-page #workspace-page-home .page-header { margin-bottom: 40px; }
}

@media (max-width: 760px) {
  .hub-page #workspace-page-home .page-header { margin-bottom: 28px; }
  .hub-page .settings-popular-badge { font-size: 0.6875rem; }
}

/* 2026-08-09 — final spacing and tone adjustments. */

.hub-page .home-promo--early-access::after {
  content: none;
  display: none;
}

/* Shared semantic scale for every primary workspace title. */
.hub-page {
  --workspace-page-title-size: clamp(1.875rem, 3vw, 2.5rem);
  --workspace-page-title-gap: 24px;
}

.hub-page :is(
  .workspace-page > .page-header h1,
  #projects-title
) {
  font-size: var(--workspace-page-title-size);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* One HIG rhythm for primary headings, independent of page structure. */
.hub-page :is(
  #workspace-page-home,
  #workspace-page-captures,
  #workspace-page-settings
) > .page-header {
  min-height: 0;
  margin-bottom: var(--workspace-page-title-gap);
}

.hub-page #workspace-page-projects > .projects-card > .card-heading {
  min-height: 0;
  align-items: flex-start;
  margin-bottom: var(--workspace-page-title-gap);
}

.hub-page #archive-folder-toolbar .folder-chip.is-active,
html[data-theme="dark"] .hub-page #archive-folder-toolbar .folder-chip.is-active {
  background: rgba(253, 85, 3, 0.5);
}

.hub-page #project-folder-toolbar .folder-chip.is-active,
html[data-theme="dark"] .hub-page #project-folder-toolbar .folder-chip.is-active {
  background: var(--hig-blue);
  color: #fff;
  opacity: 1;
  -webkit-text-fill-color: #fff;
}

.hub-page .bento-browser-view--project .bento-browser-actions .pill-button,
.hub-page .bento-browser-view--project .bento-browser-actions .pill-button:hover,
html[data-theme="dark"] .hub-page .bento-browser-view--project .bento-browser-actions .pill-button {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

@media (min-width: 761px) {
  .hub-page .workspace-pages { padding-top: 29px; }

  body.hub-page[data-workspace-view="home"] .workspace-pages {
    padding-top: 29px;
  }
}

@media (min-width: 901px) {
  .hub-page .bento-browser-view--project .project-detail-overview {
    grid-template-rows: 292px;
    align-items: stretch;
  }

  .hub-page .bento-browser-view--project .project-detail-overview > .resource-project-preview,
  .hub-page .bento-browser-view--project .project-detail-overview > .resource-overview-panel {
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box;
    align-self: stretch;
  }
}

@media (max-width: 760px) {
  body.hub-page.is-settings-view .workspace-pages {
    padding-top: 72px;
  }

  .hub-page #project-folder-toolbar .folder-add-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }
}

/* 2026-08-09 — stability, accessibility and compact-window hardening. */

.hub-page #account-form.settings-form {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}

.hub-page #settings-panel-subscription {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

:root,
html[data-theme="light"] {
  --hig-accent-label: #b13800;
  --hig-accent-solid: #c74300;
}

html[data-theme="dark"] {
  --hig-accent-label: #ff7a40;
  --hig-accent-solid: #c74300;
}

/* Keep the supplied #FD5503 brand accent for non-text decoration, while
   using contrast-safe variants wherever orange carries a compact label. */
.hub-page :is(
  .workspace-tab.is-active,
  .settings-navigation-item.is-active,
  .settings-photo-button,
  .settings-popular-badge,
  .settings-plan-card a,
  .account-popover-upgrade .account-upgrade-link,
  .folder-inline-create button[type="submit"]
) {
  color: var(--hig-accent-label);
}

html[data-theme="dark"] .hub-page :is(
  .workspace-tab.is-active,
  .settings-navigation-item.is-active,
  .settings-photo-button,
  .settings-popular-badge,
  .settings-plan-card a,
  .account-popover-upgrade .account-upgrade-link,
  .folder-inline-create button[type="submit"]
) {
  color: var(--hig-accent-label);
}

.hub-page .settings-billing-switch span {
  color: var(--hig-accent-label);
}

.hub-page .folder-chip.is-active,
html[data-theme="dark"] .hub-page .folder-chip.is-active,
.hub-page #project-folder-toolbar .folder-chip.is-active,
html[data-theme="dark"] .hub-page #project-folder-toolbar .folder-chip.is-active,
.hub-page #archive-folder-toolbar .folder-chip.is-active,
html[data-theme="dark"] .hub-page #archive-folder-toolbar .folder-chip.is-active {
  background: var(--hig-accent-solid);
  color: #fff;
  opacity: 1;
  -webkit-text-fill-color: #fff;
}

.hub-page .bento-browser-view--project .bento-browser-actions .pill-button,
.hub-page .bento-browser-view--project .bento-browser-actions .pill-button:hover,
html[data-theme="dark"] .hub-page .bento-browser-view--project .bento-browser-actions .pill-button {
  background: var(--hig-accent-solid);
}

@media (max-width: 760px) {
  .hub-page .folder-chip-wrap .folder-chip {
    padding-right: 44px;
  }

  .hub-page .folder-chip-delete {
    right: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .hub-page .project-tag-control,
  .hub-page .settings-photo-button,
  .hub-page .settings-billing-switch button {
    min-height: 44px;
    height: 44px;
  }

  body.hub-page.is-settings-view .workspace-pages {
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }

  body.hub-page.is-settings-view .dashboard-intro {
    height: 124px;
    min-height: 124px;
  }

  body.hub-page.is-settings-view .settings-navigation {
    grid-template-rows: 54px 48px;
  }

  body.hub-page.is-settings-view .settings-theme-pill {
    height: 48px;
    padding: 2px;
  }

  body.hub-page.is-settings-view .settings-theme-pill button,
  .hub-page .modal.is-inline-editor :is(input, select) {
    min-height: 44px;
    height: 44px;
  }
}

/* A short desktop window must scroll instead of collapsing recent files. */
@media (min-width: 761px) and (max-height: 560px) {
  body.hub-page[data-workspace-view="home"] {
    height: auto;
    min-height: 600px;
    overflow-y: auto;
  }

  body.hub-page[data-workspace-view="home"] .app-shell,
  body.hub-page[data-workspace-view="home"] .workspace-pages {
    height: auto;
    min-height: 600px;
  }

  body.hub-page[data-workspace-view="home"] .workspace-pages {
    overflow: visible;
  }

  .hub-page #workspace-page-home {
    height: auto;
    min-height: 540px;
    grid-template-rows: auto auto;
  }

  .hub-page #workspace-page-home .home-content-layout,
  .hub-page #workspace-page-home .home-library-stack {
    height: auto;
  }

  .hub-page #workspace-page-home .home-library-stack {
    grid-template-rows: 230px auto;
  }

  .hub-page #workspace-page-home .recent-project-card {
    min-height: 100px;
  }
}

/* 2026-08-10 — subscription checkout and billing management. */

.hub-page :is(.settings-page-header, .settings-form, .subscription-checkout)[hidden] {
  display: none !important;
}

.hub-page .settings-current-plan {
  position: relative;
  padding-right: 112px;
}

.hub-page .settings-current-plan p {
  margin: 4px 0 0;
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .subscription-status {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hig-green) 12%, transparent);
  color: color-mix(in srgb, var(--hig-green) 78%, var(--hig-label));
  font-size: 0.6875rem;
  font-weight: 650;
}

.hub-page .subscription-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.hub-page .subscription-status.is-paused {
  background: var(--hig-fill);
  color: var(--hig-secondary-label);
}

.hub-page .subscription-management {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--hig-separator);
  border-radius: 14px;
  background: var(--hig-secondary-background);
}

.hub-page .subscription-management-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hub-page .subscription-management-heading h3,
.hub-page .billing-history h4 {
  margin: 0;
  color: var(--hig-label);
}

.hub-page .subscription-management-heading h3 {
  font-size: 1rem;
}

.hub-page .subscription-management-heading p {
  margin: 5px 0 0;
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .subscription-management-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hub-page .subscription-management-actions .text-pill {
  min-height: 34px;
  margin: 0;
  padding-inline: 13px;
  border: 1px solid var(--hig-separator);
  background: var(--hig-secondary-background);
  color: var(--hig-accent-label);
}

.hub-page .subscription-management-actions .text-pill--quiet {
  color: var(--hig-secondary-label);
}

.hub-page .subscription-management-actions .text-pill:disabled {
  opacity: 0.45;
}

.hub-page .subscription-facts {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-separator);
}

.hub-page .subscription-facts > div {
  min-width: 0;
  padding: 13px 14px;
  background: var(--hig-secondary-background);
}

.hub-page .subscription-facts dt,
.hub-page .subscription-facts dd {
  margin: 0;
}

.hub-page .subscription-facts dt {
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
}

.hub-page .subscription-facts dd {
  margin-top: 3px;
  overflow: hidden;
  color: var(--hig-label);
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-page .billing-history {
  margin-top: 20px;
}

.hub-page .billing-history h4 {
  font-size: 0.8125rem;
}

.hub-page #billing-history-list {
  margin-top: 9px;
  border-top: 1px solid var(--hig-separator);
}

.hub-page .billing-history-empty {
  margin: 0;
  padding: 13px 0 0;
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .billing-history-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--hig-separator);
}

.hub-page .billing-history-row > span {
  display: grid;
  gap: 2px;
}

.hub-page .billing-history-row > span:last-child {
  text-align: right;
}

.hub-page .billing-history-row strong {
  color: var(--hig-label);
  font-size: 0.8125rem;
}

.hub-page .billing-history-row small {
  color: var(--hig-secondary-label);
  font-size: 0.6875rem;
}

.hub-page .subscription-checkout {
  width: min(1040px, 100%);
  min-width: 0;
  padding-bottom: 48px;
}

.hub-page .checkout-header {
  margin-bottom: 28px;
}

.hub-page .checkout-back-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 22px;
  padding: 0 10px 0 7px;
  border: 1px solid var(--hig-separator);
  border-radius: 999px;
  background: var(--hig-fill);
  color: var(--hig-label);
  font-size: 0.75rem;
  font-weight: 600;
}

.hub-page .checkout-back-button:hover {
  background: var(--hig-secondary-fill);
}

.hub-page .checkout-back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-page .checkout-eyebrow {
  color: var(--hig-accent-label);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-page .checkout-header h1 {
  margin: 7px 0 6px;
  color: var(--hig-label);
  font-size: var(--workspace-page-title-size);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hub-page :is(#checkout-title, #subscription-management-title):focus {
  outline: none;
}

.hub-page .checkout-header p {
  margin: 0;
  color: var(--hig-secondary-label);
  font-size: 0.875rem;
}

.hub-page .checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  align-items: start;
  gap: 18px;
}

.hub-page .checkout-fields {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.hub-page .checkout-section,
.hub-page .checkout-summary {
  border: 1px solid var(--hig-separator);
  border-radius: 14px;
  background: var(--hig-secondary-background);
}

.hub-page .checkout-section {
  padding: 20px;
}

.hub-page .checkout-section-heading {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
}

.hub-page .checkout-section-heading > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hig-fill);
  color: var(--hig-label);
  font-size: 0.75rem;
  font-weight: 700;
}

.hub-page .checkout-section-heading h2,
.hub-page .checkout-summary h2 {
  margin: 0;
  color: var(--hig-label);
  font-size: 1rem;
  font-weight: 650;
}

.hub-page .checkout-section-heading p {
  margin: 3px 0 0;
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
}

.hub-page .checkout-section--stripe {
  min-height: 360px;
}

.hub-page .stripe-payment-shell {
  min-height: 196px;
  display: grid;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--hig-separator);
  border-radius: 12px;
  background: var(--hig-secondary-background);
}

.hub-page .stripe-payment-shell[data-state="ready"] {
  align-items: start;
}

.hub-page .stripe-payment-status {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.hub-page .stripe-payment-status[hidden] {
  display: none;
}

.hub-page .stripe-payment-status-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hig-blue-soft);
  color: var(--hig-blue);
}

.hub-page .stripe-payment-status-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-page .stripe-status-spinner {
  display: none;
  stroke-dasharray: 28 22;
  transform-origin: center;
}

.hub-page .stripe-payment-shell:is([data-state="loading"], [data-state="mounting"]) .stripe-status-lock {
  display: none;
}

.hub-page .stripe-payment-shell:is([data-state="loading"], [data-state="mounting"]) .stripe-status-spinner {
  display: block;
  animation: stripe-status-spin 800ms linear infinite;
}

@keyframes stripe-status-spin {
  to { transform: rotate(360deg); }
}

.hub-page .stripe-payment-status-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hub-page .stripe-payment-status-copy strong {
  color: var(--hig-label);
  font-size: 0.8125rem;
  font-weight: 650;
}

.hub-page .stripe-payment-status-copy small {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
  line-height: 1.45;
}

.hub-page .stripe-retry-button {
  min-height: 34px;
  white-space: nowrap;
}

.hub-page .stripe-retry-button[hidden] {
  display: none;
}

.hub-page .stripe-payment-element {
  width: 100%;
  min-width: 0;
}

.hub-page .stripe-payment-element[hidden] {
  display: none;
}

.hub-page .stripe-payment-shell[data-state="mounting"] .stripe-payment-element {
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.hub-page .stripe-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 2px 0;
  color: var(--hig-secondary-label);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.hub-page .stripe-security-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--hig-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-page .checkout-payment-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--hig-red) 10%, transparent);
  color: var(--hig-red);
  font-size: 0.75rem;
  line-height: 1.45;
}

.hub-page .checkout-summary {
  position: sticky;
  top: 24px;
  padding: 20px;
}

.hub-page .checkout-summary-heading > span {
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
  font-weight: 650;
}

.hub-page .checkout-summary-heading h2 {
  margin-top: 5px;
  font-size: 1.25rem;
}

.hub-page .checkout-summary-heading p,
.hub-page .checkout-renewal-copy,
.hub-page .checkout-legal {
  color: var(--hig-secondary-label);
}

.hub-page .checkout-summary-heading p {
  margin: 3px 0 0;
  font-size: 0.75rem;
}

.hub-page .checkout-price-breakdown {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--hig-separator);
  border-bottom: 1px solid var(--hig-separator);
}

.hub-page .checkout-price-breakdown > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.hub-page .checkout-price-breakdown :is(dt, dd) {
  margin: 0;
  font-size: 0.75rem;
}

.hub-page .checkout-price-breakdown dt {
  color: var(--hig-secondary-label);
}

.hub-page .checkout-price-breakdown dd {
  color: var(--hig-label);
  font-weight: 600;
}

.hub-page .checkout-price-breakdown .checkout-total {
  margin-top: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--hig-separator);
}

.hub-page .checkout-price-breakdown .checkout-total :is(dt, dd) {
  color: var(--hig-label);
  font-size: 0.9375rem;
  font-weight: 700;
}

.hub-page .checkout-renewal-copy {
  margin: 14px 0 18px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.hub-page .checkout-submit {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--hig-accent-solid);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.hub-page .checkout-submit:hover:not(:disabled) {
  filter: brightness(1.06);
}

.hub-page .checkout-submit:disabled {
  cursor: not-allowed;
  background: var(--hig-fill);
  color: var(--hig-secondary-label);
  opacity: 1;
}

.hub-page .checkout-submit[aria-busy="true"] {
  cursor: progress;
  background: var(--hig-accent-solid);
  color: #fff;
}

.hub-page .checkout-legal {
  margin: 10px 2px 0;
  font-size: 0.625rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 960px) {
  .hub-page .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hub-page .checkout-summary {
    position: static;
  }
}

@media (max-width: 760px) {
  body.hub-page.is-checkout-view :is(.dashboard-intro, .sidebar-account) {
    display: none !important;
  }

  body.hub-page.is-checkout-view .workspace-pages {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .hub-page .settings-current-plan {
    padding-right: 0;
  }

  .hub-page .subscription-status {
    position: static;
    margin-bottom: 8px;
  }

  .hub-page .subscription-management {
    padding: 16px;
  }

  .hub-page .subscription-management-heading,
  .hub-page .subscription-management-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hub-page .subscription-management-actions {
    width: 100%;
    margin-top: 14px;
  }

  .hub-page .subscription-management-actions .text-pill,
  .hub-page .checkout-back-button {
    min-height: 44px;
  }

  .hub-page .subscription-facts {
    grid-template-columns: 1fr;
  }

  .hub-page .subscription-facts dd {
    white-space: normal;
  }

  .hub-page .subscription-checkout {
    padding-bottom: 32px;
  }

  .hub-page .checkout-header {
    margin-bottom: 20px;
  }

  .hub-page .checkout-section,
  .hub-page .checkout-summary {
    padding: 16px;
  }

  .hub-page .checkout-section--stripe {
    min-height: 0;
  }

  .hub-page .stripe-payment-shell {
    min-height: 184px;
    padding: 14px;
  }

  .hub-page .stripe-payment-status {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .hub-page .stripe-retry-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page .checkout-submit,
  .hub-page .checkout-back-button,
  .hub-page .stripe-status-spinner {
    transition-duration: 0.01ms;
  }

  .hub-page .stripe-status-spinner {
    animation: none;
    stroke-dasharray: none;
  }
}

/* Project page alignment and centered management sheet ---------------- */

.hub-page #workspace-page-projects > .page-header {
  margin-bottom: 28px;
}

body.hub-page.is-modal-open {
  overflow: hidden;
}

.hub-page #manage-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.hub-page #manage-modal.hidden {
  display: none;
}

.hub-page #manage-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  background: rgba(26, 22, 28, 0.3);
  backdrop-filter: blur(16px) saturate(85%);
  -webkit-backdrop-filter: blur(16px) saturate(85%);
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.hub-page #manage-modal .modal-card,
html[data-theme="dark"] .hub-page #manage-modal .modal-card {
  position: relative;
  z-index: 1;
  width: min(456px, calc(100vw - 48px));
  height: auto;
  max-height: calc(100dvh - 48px);
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--hig-separator);
  border-radius: 20px;
  background: var(--hig-elevated-background);
  box-shadow: 0 24px 70px rgba(20, 16, 23, 0.24), 0 4px 18px rgba(20, 16, 23, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 180ms ease-out, transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.hub-page #manage-modal.is-presented .modal-backdrop,
.hub-page #manage-modal.is-presented .modal-card {
  opacity: 1;
}

.hub-page #manage-modal.is-presented .modal-card {
  transform: translateY(0) scale(1);
}

.hub-page #manage-modal .modal-note-field textarea,
html[data-theme="dark"] .hub-page #manage-modal .modal-note-field textarea {
  width: 100%;
  min-height: 96px;
  max-height: 180px;
  box-sizing: border-box;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid var(--hig-opaque-separator);
  border-radius: var(--hig-radius-control);
  outline: 0;
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
}

.hub-page #manage-modal .modal-note-field textarea::placeholder {
  color: var(--hig-placeholder);
}

.hub-page #manage-modal .modal-note-field textarea:focus {
  border-color: var(--hig-blue);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.hub-page #manage-modal .modal-note-field small {
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .hub-page #manage-modal {
    place-items: center;
    padding: 16px;
  }

  .hub-page #manage-modal .modal-card,
  html[data-theme="dark"] .hub-page #manage-modal .modal-card {
    width: min(456px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 20px 18px;
    border: 1px solid var(--hig-separator);
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page #manage-modal .modal-backdrop,
  .hub-page #manage-modal .modal-card {
    transition-duration: 0.01ms;
  }
}

/* 2026-08-10 — annotated home and project-note rhythm. */

.hub-page #workspace-page-captures > .page-header.is-contextual h1 {
  color: var(--hig-secondary-label);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.hub-page .bento-browser-view--project .resource-note-field--project textarea,
html[data-theme="dark"] .hub-page .bento-browser-view--project .resource-note-field--project textarea {
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  padding: 10px 11px 24px;
  resize: vertical;
  border: 1px solid var(--hig-opaque-separator);
  border-radius: var(--hig-radius-control);
  outline: 0;
  background: var(--hig-secondary-background);
  color: var(--hig-label);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: none;
}

.hub-page .bento-browser-view--project .resource-note-field--project textarea::placeholder {
  color: var(--hig-placeholder);
}

.hub-page .bento-browser-view--project .resource-note-field--project textarea:focus {
  border-color: var(--hig-blue);
  box-shadow: 0 0 0 3px var(--hig-blue-soft);
}

.hub-page .bento-browser-view--project .resource-note-field--project small {
  right: 10px;
  bottom: 8px;
  pointer-events: none;
}

@media (min-width: 901px) {
  .hub-page #workspace-page-home > .page-header {
    min-height: 64px;
    margin-bottom: 28px;
  }

  .hub-page .bento-browser-view--project .resource-overview-panel {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
  }

  .hub-page .bento-browser-view--project .resource-note-field--project {
    min-height: 0;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hub-page .bento-browser-view--project .resource-note-field--project textarea {
    min-height: 0;
    height: 100%;
    resize: none;
  }
}

/* 2026-08-12 — Apple Design coherence pass.
   Spaice keeps its own orange identity while interaction feedback follows one
   restrained, physical and accessible motion language across the workspace. */

:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --spaice-accent: #FD5503;
  --spaice-accent-hover: #df4800;
  --spaice-accent-pressed: #c74300;
  --spaice-accent-soft: rgba(253, 85, 3, 0.14);
  --spaice-motion-response: cubic-bezier(0.22, 1, 0.36, 1);
  --spaice-motion-return: cubic-bezier(0.4, 0, 0.6, 1);
  --spaice-shadow-floating: 0 24px 70px rgba(20, 16, 23, 0.2), 0 4px 18px rgba(20, 16, 23, 0.08);
}

.hub-page {
  --hig-blue: var(--spaice-accent);
  --hig-blue-hover: var(--spaice-accent-hover);
  --hig-blue-soft: var(--spaice-accent-soft);
  font-optical-sizing: auto;
}

.hub-page :is(h1, h2, h3, button, input, select, textarea) {
  font-optical-sizing: auto;
}

.hub-page :is(
  .workspace-page > .page-header h1,
  #projects-title,
  .settings-page-header h1,
  .bento-browser-title
) {
  text-wrap: balance;
}

/* One branded selection language for primary and settings navigation. */
.hub-page :is(.workspace-tab, .settings-navigation-item) {
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 180ms var(--spaice-motion-response);
}

.hub-page :is(.workspace-tab.is-active, .settings-navigation-item.is-active),
html[data-theme="dark"] .hub-page :is(.workspace-tab.is-active, .settings-navigation-item.is-active) {
  background: var(--spaice-accent-soft);
  color: var(--hig-accent-label);
  box-shadow: none;
}

/* Pointer-down feedback is immediate; release settles without overshoot. */
.hub-page :is(
  .workspace-tab,
  .settings-navigation-item,
  .pill-button,
  .text-pill,
  .icon-pill,
  .folder-chip,
  .folder-add-button,
  .more-button,
  .sidebar-account,
  .account-popover button,
  .settings-theme-pill button,
  .checkout-back-button,
  .checkout-submit
) {
  transform-origin: center;
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 150ms, 150ms, 150ms, 180ms, 150ms, 180ms;
  transition-timing-function: ease, ease, ease, var(--spaice-motion-response), ease, var(--spaice-motion-response);
}

.hub-page :is(
  .recent-project-card,
  .project-create-card,
  .capture-collection-add,
  .capture-project-stack,
  .capture-open
) {
  transform-origin: center;
  transition:
    border-color 160ms ease,
    box-shadow 180ms var(--spaice-motion-response),
    filter 160ms ease,
    transform 200ms var(--spaice-motion-response);
}

.hub-page :is(
  .workspace-tab,
  .settings-navigation-item,
  .pill-button,
  .text-pill,
  .icon-pill,
  .folder-chip,
  .folder-add-button,
  .more-button,
  .sidebar-account,
  .account-popover button,
  .settings-theme-pill button,
  .checkout-back-button,
  .checkout-submit
):active:not(:disabled) {
  transform: scale(0.97);
  transition-duration: 70ms;
  transition-timing-function: var(--spaice-motion-return);
}

.hub-page :is(
  .recent-project-card,
  .project-create-card,
  .capture-collection-add,
  .capture-project-stack,
  .capture-open
):active:not(:disabled) {
  transform: scale(0.988);
  transition-duration: 80ms;
  transition-timing-function: var(--spaice-motion-return);
}

@media (hover: hover) and (pointer: fine) {
  .hub-page :is(.workspace-tab, .settings-navigation-item):hover {
    background: var(--hig-tertiary-fill);
    color: var(--hig-label);
  }

  .hub-page :is(.workspace-tab.is-active, .settings-navigation-item.is-active):hover {
    background: color-mix(in srgb, var(--spaice-accent) 18%, transparent);
    color: var(--hig-accent-label);
  }
}

/* Feedback materializes from its actual desktop anchor instead of the old
   inherited centered transform. On compact screens it returns above the tab bar. */
.hub-page .toast,
.plans-page .toast {
  right: 18px;
  left: auto;
  transform: translateY(10px) scale(0.98);
  transform-origin: right bottom;
  transition:
    opacity 160ms ease,
    transform 220ms var(--spaice-motion-response);
}

.hub-page .toast.is-visible,
.plans-page .toast.is-visible {
  transform: translateY(0) scale(1);
}

.hub-page #manage-modal .modal-card,
.hub-page .account-popover {
  box-shadow: var(--spaice-shadow-floating);
}

@media (max-width: 760px) {
  .hub-page .toast {
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    transform-origin: center bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page :is(
    .workspace-tab,
    .settings-navigation-item,
    .pill-button,
    .text-pill,
    .icon-pill,
    .folder-chip,
    .folder-add-button,
    .more-button,
    .sidebar-account,
    .account-popover button,
    .settings-theme-pill button,
    .checkout-back-button,
    .checkout-submit,
    .recent-project-card,
    .project-create-card,
    .capture-collection-add,
    .capture-project-stack,
    .capture-open
  ):active:not(:disabled),
  .hub-page .toast,
  .hub-page .toast.is-visible,
  .plans-page .toast,
  .plans-page .toast.is-visible {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hub-page .toast,
  .plans-page .toast {
    background: #1c1c1e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 2026-08-12 — theme parity, modal simplification and monthly usage. */

.hub-page,
.plans-page,
html[data-theme="light"] .hub-page,
html[data-theme="light"] .plans-page,
html[data-theme="dark"] .hub-page,
html[data-theme="dark"] .plans-page {
  --hig-blue: var(--spaice-accent);
  --hig-blue-hover: var(--spaice-accent-hover);
  --hig-blue-soft: var(--spaice-accent-soft);
}

/* A theme can change color and material, never geometry. Repeating the token
   for every explicit appearance prevents the higher-specificity light rule
   from diverging from :root when responsive sidebar widths are applied. */
@media (min-width: 1181px) {
  :root,
  html[data-theme="light"],
  html[data-theme="dark"] {
    --hig-sidebar-width: 240px;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  :root,
  html[data-theme="light"],
  html[data-theme="dark"] {
    --hig-sidebar-width: 220px;
  }
}

.hub-page #manage-modal .modal-actions {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

html[data-theme="light"] .hub-page #manage-modal.is-presented :is(.modal-backdrop, .modal-card),
html[data-theme="dark"] .hub-page #manage-modal.is-presented :is(.modal-backdrop, .modal-card) {
  opacity: 1;
}

html[data-theme="light"] .hub-page #manage-modal.is-presented .modal-card,
html[data-theme="dark"] .hub-page #manage-modal.is-presented .modal-card {
  transform: translateY(0) scale(1);
}

html[data-theme="light"] .hub-page .pill-button--accent,
html[data-theme="light"] .hub-page .pill-button--accent:hover,
html[data-theme="dark"] .hub-page .pill-button--accent,
html[data-theme="dark"] .hub-page .pill-button--accent:hover {
  border-color: var(--hig-accent-solid);
  background: var(--hig-accent-solid);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.hub-page .settings-usage-calendar {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(10, 17px);
  grid-auto-rows: 17px;
  place-content: center;
  gap: 6px;
  padding: 4px 0;
}

.hub-page .settings-usage-day,
.hub-page .settings-usage-legend i {
  display: block;
  border-radius: 4px;
  background: var(--hig-tertiary-fill);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hig-separator) 58%, transparent);
}

.hub-page .settings-usage-day {
  width: 17px;
  height: 17px;
}

.hub-page :is(.settings-usage-day, .settings-usage-legend i)[data-level="1"] {
  background: color-mix(in srgb, var(--spaice-accent) 22%, var(--hig-secondary-background));
}

.hub-page :is(.settings-usage-day, .settings-usage-legend i)[data-level="2"] {
  background: color-mix(in srgb, var(--spaice-accent) 44%, var(--hig-secondary-background));
}

.hub-page :is(.settings-usage-day, .settings-usage-legend i)[data-level="3"] {
  background: color-mix(in srgb, var(--spaice-accent) 70%, var(--hig-secondary-background));
}

.hub-page :is(.settings-usage-day, .settings-usage-legend i)[data-level="4"] {
  background: var(--spaice-accent);
}

.hub-page .settings-usage-legend {
  min-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--hig-tertiary-label);
  font-size: 0.6875rem;
}

.hub-page .settings-usage-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.hub-page .subscription-management {
  margin-top: 24px;
}

@media (max-width: 420px) {
  .hub-page .settings-usage-calendar {
    grid-template-columns: repeat(10, 14px);
    grid-auto-rows: 14px;
    gap: 5px;
  }

  .hub-page .settings-usage-day {
    width: 14px;
    height: 14px;
    border-radius: 3px;
  }
}

/* 2026-08-12 — functional micro-interactions.
   Motion communicates selection, hierarchy and completion. It is limited to
   composited opacity/transform changes in the 100–250 ms interaction range. */

:root,
.hub-page {
  --micro-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --micro-move: cubic-bezier(0.4, 0, 0.2, 1);
  --micro-exit: cubic-bezier(0.4, 0, 1, 1);
}

@keyframes micro-content-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes micro-value-change {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes micro-day-enter {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}

.hub-page .workspace-page.is-micro-entering,
.hub-page .settings-panel.is-micro-entering {
  animation: micro-content-enter 200ms var(--micro-enter) both;
}

.hub-page .settings-panel.is-micro-entering > :nth-child(2) {
  animation: micro-content-enter 210ms 30ms var(--micro-enter) both;
}

.hub-page .settings-panel.is-micro-entering > :nth-child(3) {
  animation: micro-content-enter 220ms 55ms var(--micro-enter) both;
}

.hub-page .settings-panel.is-micro-entering > :nth-child(4) {
  animation: micro-content-enter 220ms 80ms var(--micro-enter) both;
}

.hub-page .settings-plan-price.is-value-changing {
  animation: micro-value-change 180ms var(--micro-enter) both;
}

.hub-page .settings-panel.is-micro-entering .settings-usage-day {
  animation: micro-day-enter 170ms var(--micro-enter) both;
  animation-delay: calc(var(--day-index) * 6ms);
}

.hub-page .settings-panel.is-micro-entering .settings-credit-bar i {
  transform-origin: left center;
  animation: micro-value-change 220ms 60ms var(--micro-enter) both;
}

/* The selected navigation surface travels between destinations so position is
   preserved instead of flashing three unrelated backgrounds. */
@supports selector(:has(*)) {
  .hub-page :is(.workspace-tabs, .settings-navigation) {
    position: relative;
    isolation: isolate;
  }

  .hub-page :is(.workspace-tabs, .settings-navigation)::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    border-radius: 11px;
    background: var(--spaice-accent-soft);
    content: "";
    pointer-events: none;
    transform: translateY(0);
    transition: transform 210ms var(--micro-enter);
  }

  .hub-page .workspace-tabs:has(#workspace-tab-projects.is-active)::before,
  .hub-page .settings-navigation:has([data-settings-section="security"].is-active)::before {
    transform: translateY(48px);
  }

  .hub-page .workspace-tabs:has(#workspace-tab-captures.is-active)::before,
  .hub-page .settings-navigation:has([data-settings-section="subscription"].is-active)::before {
    transform: translateY(96px);
  }

  .hub-page :is(.workspace-tab, .settings-navigation-item) {
    z-index: 1;
  }

  .hub-page :is(.workspace-tab.is-active, .settings-navigation-item.is-active),
  html[data-theme="dark"] .hub-page :is(.workspace-tab.is-active, .settings-navigation-item.is-active) {
    background: transparent;
  }

  .hub-page :is(.workspace-tab.is-active, .settings-navigation-item.is-active):hover,
  html[data-theme="dark"] .hub-page :is(.workspace-tab.is-active, .settings-navigation-item.is-active):hover {
    background: transparent;
  }
}

/* Segment controls use a single moving selection capsule. */
@supports selector(:has(*)) {
  .hub-page :is(.settings-theme-pill, .settings-billing-switch) {
    position: relative;
    isolation: isolate;
    display: grid;
  }

  .hub-page .settings-theme-pill {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-page .settings-billing-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page :is(.settings-theme-pill, .settings-billing-switch)::before {
    position: absolute;
    z-index: 0;
    top: 3px;
    bottom: 3px;
    left: 3px;
    border-radius: 999px;
    background: var(--hig-background);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    content: "";
    pointer-events: none;
    transition: transform 200ms var(--micro-enter);
  }

  .hub-page .settings-theme-pill::before {
    width: calc((100% - 10px) / 3);
  }

  .hub-page .settings-billing-switch::before {
    width: calc((100% - 8px) / 2);
  }

  .hub-page .settings-theme-pill:has(button:nth-child(2).is-active)::before {
    transform: translateX(calc(100% + 2px));
  }

  .hub-page .settings-theme-pill:has(button:nth-child(3).is-active)::before {
    transform: translateX(calc(200% + 4px));
  }

  .hub-page .settings-billing-switch:has(button:nth-child(2).is-active)::before {
    transform: translateX(calc(100% + 2px));
  }

  .hub-page :is(.settings-theme-pill, .settings-billing-switch) button {
    position: relative;
    z-index: 1;
  }

  .hub-page :is(.settings-theme-pill, .settings-billing-switch) button.is-active,
  html[data-theme="dark"] .hub-page :is(.settings-theme-pill, .settings-billing-switch) button.is-active {
    background: transparent;
    box-shadow: none;
  }
}

.hub-page .workspace-tab-icon,
.hub-page .settings-navigation-item svg {
  transition: transform 180ms var(--micro-enter);
}

.hub-page :is(.workspace-tab.is-active .workspace-tab-icon, .settings-navigation-item.is-active svg) {
  transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
  .hub-page :is(.recent-project-card, .project-open, .capture-open, .capture-project-stack) {
    transition: transform 180ms var(--micro-enter);
  }

  .hub-page :is(.recent-project-card, .project-open, .capture-open, .capture-project-stack):hover {
    transform: translateY(-2px);
  }

  .hub-page .settings-usage-day {
    transition: transform 140ms var(--micro-enter), box-shadow 140ms ease-out;
  }

  .hub-page .settings-usage-day:hover {
    z-index: 1;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hig-separator) 58%, transparent), 0 5px 14px rgba(30, 24, 33, 0.16);
    transform: scale(1.16);
  }
}

/* Enter is graceful; dismissal is quicker so controls never feel sticky. */
.hub-page .account-popover,
html[data-theme="dark"] .hub-page .account-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: none;
  transition:
    opacity 140ms var(--micro-exit),
    transform 140ms var(--micro-exit),
    display 140ms allow-discrete;
}

.hub-page .account-popover:not([hidden]) {
  transition-duration: 200ms;
  transition-timing-function: var(--micro-enter);
}

.hub-page .account-popover[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(7px) scale(0.98);
}

@starting-style {
  .hub-page .account-popover:not([hidden]) {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
}

.hub-page #manage-modal .modal-backdrop {
  transition: opacity 140ms var(--micro-exit);
}

.hub-page #manage-modal .modal-card,
html[data-theme="dark"] .hub-page #manage-modal .modal-card {
  transition: opacity 140ms var(--micro-exit), transform 140ms var(--micro-exit);
}

.hub-page #manage-modal.is-presented .modal-backdrop {
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.hub-page #manage-modal.is-presented .modal-card,
html[data-theme="dark"] .hub-page #manage-modal.is-presented .modal-card {
  transition-duration: 210ms;
  transition-timing-function: var(--micro-enter);
}

::view-transition-old(root) {
  animation: 110ms var(--micro-exit) both micro-theme-out;
}

::view-transition-new(root) {
  animation: 180ms var(--micro-enter) both micro-theme-in;
}

@keyframes micro-theme-out {
  to { opacity: 0; }
}

@keyframes micro-theme-in {
  from { opacity: 0; }
}

@media (max-width: 760px) {
  @supports selector(:has(*)) {
    .hub-page .workspace-tabs::before,
    body.hub-page.is-settings-view .settings-navigation::before {
      top: 0;
      left: 0;
      width: calc((100% - 4px) / 3);
      height: 56px;
      transform: translateX(0);
    }

    .hub-page .workspace-tabs:has(#workspace-tab-projects.is-active)::before,
    body.hub-page.is-settings-view .settings-navigation:has([data-settings-section="security"].is-active)::before {
      transform: translateX(calc(100% + 2px));
    }

    .hub-page .workspace-tabs:has(#workspace-tab-captures.is-active)::before,
    body.hub-page.is-settings-view .settings-navigation:has([data-settings-section="subscription"].is-active)::before {
      transform: translateX(calc(200% + 4px));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page .workspace-page.is-micro-entering,
  .hub-page .settings-panel.is-micro-entering,
  .hub-page .settings-panel.is-micro-entering > *,
  .hub-page .settings-panel.is-micro-entering .settings-usage-day,
  .hub-page .settings-panel.is-micro-entering .settings-credit-bar i,
  .hub-page .settings-plan-price.is-value-changing {
    animation: none;
  }

  .hub-page :is(.workspace-tabs, .settings-navigation, .settings-theme-pill, .settings-billing-switch)::before,
  .hub-page .account-popover,
  .hub-page #manage-modal :is(.modal-backdrop, .modal-card),
  .hub-page :is(.workspace-tab-icon, .settings-navigation-item svg, .settings-usage-day) {
    transition-duration: 0.01ms;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}

/* 2026-08-12 — continuous state transitions. */

/* Detail surfaces leave along the inverse of their entrance before unmounting. */
.hub-page .bento-card > :is(
  .card-heading,
  .folder-toolbar,
  .project-list,
  .capture-library,
  .material-grid,
  .models-layout,
  .archive-list,
  .promo-open
) {
  transition:
    opacity 220ms ease,
    transform 280ms var(--spaice-motion-response),
    filter 220ms ease,
    visibility 0s;
}

.hub-page .bento-browser-view {
  opacity: 1;
  transition: opacity 140ms var(--micro-exit), transform 140ms var(--micro-exit);
}

.hub-page .bento-browser-view.is-bento-closing {
  animation: none;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.hub-page .bento-browser-view--project.is-bento-closing,
html[data-theme="dark"] .hub-page .bento-browser-view--project.is-bento-closing {
  transform: translateY(calc(-50% + 6px)) scale(0.98);
}

.hub-page .bento-browser-nav.is-bento-closing {
  animation: none;
  opacity: 0;
  transition: opacity 140ms var(--micro-exit);
}

/* Settings and checkout share one captured stage without fading the whole app. */
html.is-subscription-transitioning .hub-page #workspace-page-settings:not([hidden]) {
  view-transition-name: subscription-stage;
}

html.is-subscription-transitioning::view-transition-old(root),
html.is-subscription-transitioning::view-transition-new(root) {
  animation: none;
}

::view-transition-old(subscription-stage) {
  animation: subscription-stage-out 140ms var(--micro-exit) both;
}

::view-transition-new(subscription-stage) {
  animation: subscription-stage-in 200ms var(--micro-enter) both;
}

@keyframes subscription-stage-out {
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes subscription-stage-in {
  from { opacity: 0; transform: translateY(6px); }
}

@keyframes subscription-stage-fade-out {
  to { opacity: 0; }
}

@keyframes subscription-stage-fade-in {
  from { opacity: 0; }
}

/* Only the project row affected by a lifecycle action moves. */
.hub-page :is(.project-row, .archive-row) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 140ms var(--micro-exit), transform 140ms var(--micro-exit);
}

.hub-page :is(.project-row, .archive-row).is-collection-exiting {
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
}

.hub-page :is(.project-row, .archive-row).is-collection-entering {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.hub-page :is(.project-row, .archive-row).is-collection-settling {
  transition-duration: 200ms;
  transition-timing-function: var(--micro-enter);
}

/* Inline title editing stays mounted so rapid reversals retarget smoothly. */
.hub-page .bento-browser-title-row {
  position: relative;
}

.hub-page .bento-browser-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms var(--micro-enter), transform 160ms var(--micro-enter);
}

.hub-page .inline-title-edit-button {
  opacity: 1;
  transform: translateY(0);
  transition:
    color 150ms ease,
    background-color 150ms ease,
    opacity 160ms var(--micro-enter),
    transform 160ms var(--micro-enter);
}

.hub-page .inline-title-form {
  position: absolute;
  inset: 50% 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 4px));
  transition: opacity 140ms var(--micro-exit), transform 140ms var(--micro-exit);
}

.hub-page .bento-browser-title-row.is-editing :is(.bento-browser-title, .inline-title-edit-button) {
  animation: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition-duration: 140ms;
  transition-timing-function: var(--micro-exit);
}

.hub-page .bento-browser-title-row.is-editing .inline-title-form {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  transition-duration: 160ms;
  transition-timing-function: var(--micro-enter);
}

@media (hover: hover) and (pointer: fine) {
  .hub-page .inline-title-edit-button:hover,
  .hub-page .inline-title-edit-button:focus-visible {
    transform: rotate(-5deg) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-page .bento-browser-view,
  .hub-page .bento-browser-view.is-bento-closing,
  .hub-page .bento-browser-nav.is-bento-closing,
  .hub-page :is(.project-row, .archive-row),
  .hub-page :is(.project-row, .archive-row).is-collection-exiting,
  .hub-page :is(.project-row, .archive-row).is-collection-entering,
  .hub-page :is(.project-row, .archive-row).is-collection-settling,
  .hub-page :is(.bento-browser-title, .inline-title-edit-button, .inline-title-form),
  .hub-page .bento-browser-title-row.is-editing :is(.bento-browser-title, .inline-title-edit-button, .inline-title-form) {
    transition: opacity 100ms ease-out !important;
    transform: none !important;
  }

  .hub-page .bento-browser-view--project,
  .hub-page .bento-browser-view--project.is-bento-closing,
  .hub-page .inline-title-form,
  .hub-page .bento-browser-title-row.is-editing .inline-title-form {
    transform: translateY(-50%) !important;
  }

  ::view-transition-old(subscription-stage) {
    animation: subscription-stage-fade-out 100ms ease-out both !important;
  }

  ::view-transition-new(subscription-stage) {
    animation: subscription-stage-fade-in 100ms ease-out both !important;
  }
}
