@font-face {
  font-family: "Spaice Inter";
  src: url("./assets/fonts/Inter-VariableFont.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171417;
  --graphite: #343034;
  --slate: #716b71;
  --fog: #999299;
  --pearl: rgba(39, 31, 40, 0.1);
  --paper: rgba(255, 255, 255, 0.91);
  --glass-surface: rgba(255, 255, 255, 0.55);
  --paper-solid: #ffffff;
  --ash: #f4f2f3;
  --lavender: #f1efff;
  --iris: #6865ef;
  --coral: #eb5a63;
  --orange: #f38a54;
  --blue: #4187e8;
  --green: #48a979;
  --amber: #cf9350;
  --danger: #c8444e;
  --page-width: 1240px;
  --account-drawer-width: 400px;
  --card-radius: 24px;
  --image-radius: 14px;
  --pill-radius: 999px;
  --card-shadow: 0 1px 2px rgba(29, 21, 31, 0.05), 0 3px 12px rgba(42, 31, 47, 0.045);
  --body-bg:
    radial-gradient(circle at 10% -4%, rgba(255, 166, 104, 0.46), transparent 31%),
    radial-gradient(circle at 92% 42%, rgba(131, 110, 255, 0.27), transparent 35%),
    radial-gradient(circle at 44% 84%, rgba(255, 219, 167, 0.48), transparent 29%),
    linear-gradient(118deg, #fff8ef 0%, #f8ece4 38%, #f3f0fa 70%, #fffaf5 100%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #faf8fb;
  --graphite: #e7e1e8;
  --slate: #aaa2ac;
  --fog: #817a84;
  --pearl: rgba(255, 255, 255, 0.12);
  --paper: rgba(31, 27, 34, 0.76);
  --glass-surface: rgba(8, 7, 9, 0.68);
  --paper-solid: #211e23;
  --ash: #2c282e;
  --lavender: #34314d;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 10px 28px rgba(0, 0, 0, 0.12);
  --body-bg:
    radial-gradient(circle at 10% -4%, rgba(190, 81, 45, 0.38), transparent 31%),
    radial-gradient(circle at 92% 42%, rgba(93, 71, 204, 0.34), transparent 35%),
    radial-gradient(circle at 44% 84%, rgba(160, 102, 55, 0.28), transparent 29%),
    linear-gradient(118deg, #20191a 0%, #241b20 38%, #1d1b27 70%, #211b1d 100%);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--graphite);
  background: var(--body-bg);
  background-attachment: fixed;
  font-family: "Spaice Inter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.36;
}

body.is-locked { overflow: hidden; }

button,
input,
select { font: inherit; }

button {
  color: inherit;
  cursor: pointer;
}

button,
input,
select { outline: none; }

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  width: 100%;
  min-height: 100vh;
  container-type: inline-size;
  transition: width 340ms cubic-bezier(.22, .8, .25, 1);
}

@media (min-width: 1081px) {
  body.is-account-drawer-open .app-shell { width: calc(100% - var(--account-drawer-width)); }
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 max(24px, calc((100% - 1152px) / 2 + 24px));
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px rgba(34, 23, 36, 0.045);
  backdrop-filter: blur(24px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
}

.brand-icon-wrap {
  width: 36px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.brand-wordmark-wrap {
  width: 110px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 75%, transparent 100%);
  mask-image: linear-gradient(to right, #000 75%, transparent 100%);
}

.brand-wordmark {
  width: auto;
  height: 20px;
  display: block;
  filter: invert(1);
}

.global-search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 15px;
  border: 1px solid rgba(48, 40, 49, 0.08);
  border-radius: var(--pill-radius);
  background: rgba(247, 245, 247, 0.82);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.global-search:focus-within {
  border-color: rgba(104, 101, 239, 0.32);
  background: white;
  box-shadow: 0 0 0 4px rgba(104, 101, 239, 0.08);
}

.global-search svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--slate);
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.global-search input::placeholder { color: #99939a; }

.global-search kbd {
  min-width: 38px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--pearl);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--fog);
  font-family: inherit;
  font-size: 10px;
  line-height: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pill-button,
.text-pill,
.icon-pill,
.folder-chip,
.promo-link {
  border-radius: var(--pill-radius);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

button:active:not(:disabled),
a.text-pill:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 90ms;
}

.pill-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(104, 101, 239, 0.36);
  background: rgba(255, 255, 255, 0.68);
  color: #4f4bcd;
  font-size: 13px;
  font-weight: 600;
}

.pill-button--accent {
  border-color: rgba(104, 101, 239, 0.34);
  background: rgba(241, 239, 255, 0.92);
}

.pill-button:hover,
.text-pill:hover,
.icon-pill:hover,
.folder-chip:hover,
.promo-link:hover { transform: translateY(-1px); }

.pill-button:hover {
  background: white;
  border-color: rgba(104, 101, 239, 0.52);
}

.pill-button svg {
  width: 16px;
  height: 16px;
}

.user-chip {
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(48, 40, 49, 0.08);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.52);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(104, 101, 239, 0.24);
  background: white;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  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;
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.user-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.user-copy strong,
.user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.user-copy small {
  color: var(--slate);
  font-size: 10px;
}

.dashboard {
  width: calc(100% - 40px);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 52px 0 88px;
  scroll-margin-top: 142px;
}

.dashboard-intro {
  padding: 0 6px 30px;
  text-align: center;
}

.tracked-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--slate);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--iris);
}

.status-dot--coral { background: var(--coral); }
.status-dot--blue { background: var(--blue); }
.status-dot--green { background: var(--green); }
.status-dot--amber { background: var(--amber); }
.status-dot--slate { background: #8e8990; }
.status-dot--light { background: rgba(255, 255, 255, 0.9); }

.dashboard-intro h1 {
  max-width: 720px;
  margin: 0 auto;
  color: #171417;
  font-size: clamp(36px, 3.6vw, 46px);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-shadow: none;
}


.bento-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 22px;
}

.bento-primary-stack {
  min-width: 0;
  display: grid;
  grid-column: 1 / span 8;
  grid-template-rows: 456px 460px;
  gap: 22px;
}

.bento-primary-lower {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.bento-secondary-stack {
  min-width: 0;
  height: 938px;
  display: grid;
  grid-column: 9 / span 6;
  grid-template-rows: minmax(0, 1fr) auto 230px;
  gap: 22px;
}

.bento-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--card-radius);
  background: var(--glass-surface);
  box-shadow: 0 1px 3px rgba(29, 21, 31, 0.045), 0 6px 22px rgba(42, 31, 47, 0.035);
  backdrop-filter: blur(24px) saturate(120%);
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(50, 42, 51, 0.025);
}

.bento-scroll-fade {
  position: absolute;
  z-index: 25;
  left: 0;
  right: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  transition: opacity 260ms cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(42px);
}

.bento-scroll-fade--top {
  top: 0;
  height: 116px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 42%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 42%, transparent 100%);
  backdrop-filter: blur(52px);
}

.bento-scroll-fade--bottom {
  bottom: 0;
  height: 58px;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 76%);
  mask-image: linear-gradient(to bottom, transparent, #000 76%);
  backdrop-filter: blur(42px);
}

.bento-card.has-scroll-up .bento-scroll-fade--top,
.bento-card.has-scroll-down .bento-scroll-fade--bottom { opacity: 1; }

.bento-browser-view:has(.bento-browser-actions) > .bento-scroll-fade--bottom { bottom: 56px; }

.bento-card > .card-heading,
.bento-card > .folder-toolbar,
.bento-browser-heading,
.bento-browser-actions {
  position: relative;
  z-index: 27;
}

.bento-card > .card-heading,
.bento-card > .folder-toolbar,
.bento-card > .project-list,
.bento-card > .capture-library,
.bento-card > .material-grid,
.bento-card > .models-layout,
.bento-card > .archive-list,
.bento-card > .promo-open {
  transition: opacity 220ms ease, transform 280ms cubic-bezier(.2,.8,.2,1), filter 220ms ease, visibility 0s linear 220ms;
}

.is-bento-root-hidden {
  visibility: hidden;
  opacity: 0;
  filter: blur(7px);
  transform: translateX(-12px);
}

.bento-card.is-browser-active > .card-heading,
.bento-card.is-browser-active > .folder-toolbar {
  z-index: auto;
}

.bento-browser-nav {
  position: absolute;
  z-index: 30;
  top: 17px;
  right: 17px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(48, 40, 49, 0.09);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 20px rgba(39, 31, 41, 0.12);
  backdrop-filter: blur(14px);
  animation: floating-controls-enter 240ms cubic-bezier(.2,.8,.2,1);
}

@keyframes floating-controls-enter {
  from { opacity: 0; transform: translateY(-5px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bento-browser-nav button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--graphite);
}

.bento-browser-nav button:hover:not(:disabled) {
  background: var(--lavender);
  color: #4d49c0;
}

.bento-browser-nav button:disabled {
  color: var(--fog);
  cursor: default;
  opacity: 0.38;
}

.bento-browser-nav svg { width: 14px; height: 14px; }

.bento-card.is-browser-active > .card-heading { padding-right: 80px; }

.bento-card.is-browser-active > .card-heading > .quiet-count,
.bento-card.is-browser-active .card-heading-actions > .quiet-count { display: none; }

.bento-browser-view {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.16);
  animation: bento-browser-enter 220ms cubic-bezier(.2, .8, .2, 1);
  backdrop-filter: blur(24px) saturate(125%);
}

@keyframes bento-browser-enter {
  from { opacity: 0; transform: translateX(22px); filter: blur(5px); }
  to { opacity: 1; transform: translateX(0); }
}

.bento-browser-heading {
  min-height: 56px;
  flex: 0 0 auto;
  padding-right: 78px;
}

.bento-browser-parent-title {
  display: block;
  margin: 0 0 4px;
  color: var(--slate);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transform-origin: left top;
  animation: bento-title-condense 320ms cubic-bezier(.2,.8,.2,1);
}

@keyframes bento-title-condense {
  from {
    color: var(--graphite);
    font-size: 22px;
    letter-spacing: -0.035em;
    opacity: 0.72;
    transform: translateY(8px);
  }
  to {
    color: var(--slate);
    font-size: 10px;
    letter-spacing: 0.02em;
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-browser-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.bento-browser-title-tag {
  max-width: 120px;
  min-height: 23px;
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  overflow: hidden;
  padding: 0 9px;
  border: 1px solid rgba(48, 40, 49, 0.08);
  border-radius: var(--pill-radius);
  background: rgba(247, 245, 246, 0.75);
  color: var(--slate);
  font-size: 8px;
  font-weight: 620;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: bento-detail-title-enter 280ms 110ms cubic-bezier(.2,.8,.2,1) both;
}

.bento-browser-title-row.is-editing .bento-browser-title-tag { display: none; }

.bento-browser-title {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--graphite);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: bento-detail-title-enter 280ms 70ms cubic-bezier(.2,.8,.2,1) both;
}

.bento-browser-title:focus { outline: none; }

@keyframes bento-detail-title-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.inline-title-edit-button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--slate);
  opacity: 0.66;
  transition: opacity 180ms ease, color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.inline-title-edit-button:hover,
.inline-title-edit-button:focus-visible {
  background: var(--lavender);
  color: #4d49c0;
  opacity: 1;
  transform: rotate(-5deg) scale(1.04);
}

.inline-title-edit-button svg { width: 14px; height: 14px; }

.inline-title-form {
  min-width: 0;
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29px 29px;
  align-items: center;
  gap: 5px;
}

.inline-title-form input {
  width: 100%;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(104, 101, 239, 0.28);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--graphite);
  font-size: 15px;
  font-weight: 620;
  box-shadow: 0 0 0 4px rgba(104, 101, 239, 0.07);
}

.inline-title-form button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lavender);
  color: #4d49c0;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), background 180ms ease;
}

.inline-title-form button:hover { transform: scale(1.06); }
.inline-title-form button:last-child { background: var(--ash); color: var(--slate); }
.inline-title-form svg { width: 13px; height: 13px; }

.bento-browser-content {
  min-height: 0;
  flex: 1;
  margin-top: -56px;
  padding: 57px 6px 18px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.bento-browser-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(48, 40, 49, 0.07);
}

.bento-browser-view .resource-hero { min-height: 138px; }
.projects-card .bento-browser-view .resource-hero,
.captures-card .bento-browser-view .resource-hero { min-height: 190px; }
.bento-browser-view .resource-material-hero,
.bento-browser-view .resource-capture-hero { min-height: 160px; }

.material-import-zone {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px dashed rgba(104, 101, 239, 0.28);
  border-radius: 18px;
  background: rgba(241, 239, 255, 0.56);
  color: var(--slate);
  text-align: center;
}

.material-import-zone strong { color: var(--graphite); font-size: 12px; }
.material-import-zone > span:last-child { font-size: 9px; }
.material-import-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: white;
  color: var(--iris);
  box-shadow: 0 3px 10px rgba(48, 40, 49, 0.08);
}
.material-import-icon svg { width: 20px; height: 20px; }

.projects-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.captures-card {
  display: flex;
  flex-direction: column;
}

.materials-card {
  display: flex;
  flex-direction: column;
}

.models-card {
  display: flex;
  flex-direction: column;
}

.archives-card {
  display: flex;
  flex-direction: column;
}

.card-heading,
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-heading {
  min-height: 48px;
  margin-bottom: 18px;
}

.card-heading--compact {
  min-height: 42px;
  margin-bottom: 13px;
}

.card-heading h2 {
  margin: 0;
  color: var(--graphite);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.modal-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 610;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.card-title-group {
  min-width: 0;
}

.card-subtitle {
  margin: 5px 0 0;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.35;
}

.text-pill,
.icon-pill {
  flex: 0 0 auto;
  border: 1px solid var(--pearl);
  background: rgba(255, 255, 255, 0.62);
  color: var(--graphite);
  font-size: 11px;
  font-weight: 560;
}

.text-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.text-pill:hover,
.icon-pill:hover {
  border-color: rgba(104, 101, 239, 0.22);
  background: var(--lavender);
  color: #4d49c0;
}

.text-pill svg {
  width: 14px;
  height: 14px;
}

.icon-pill {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-pill svg {
  width: 15px;
  height: 15px;
}

.quiet-count {
  padding-top: 3px;
  color: var(--fog);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.card-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

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

.folder-toolbar::-webkit-scrollbar { display: none; }

.folder-toolbar--small {
  margin-top: -3px;
  margin-bottom: 10px;
}

.folder-chip {
  height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid transparent;
  background: var(--ash);
  color: var(--slate);
  font-size: 10px;
  font-weight: 530;
}

.folder-chip:hover,
.folder-chip.is-active {
  border-color: rgba(104, 101, 239, 0.12);
  background: var(--lavender);
  color: #4d49c0;
}

.folder-chip--add {
  width: 29px;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  border-color: var(--pearl);
  background: transparent;
}

.folder-chip--editor {
  width: 176px;
  margin-left: auto;
  padding: 0 4px 0 11px;
  border-color: rgba(104, 101, 239, 0.2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(104, 101, 239, 0.07);
}

.folder-chip--editor input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--graphite);
  font-size: 10px;
}

.folder-chip--editor button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--lavender);
  color: #4d49c0;
}

.folder-chip--editor button svg { width: 11px; height: 11px; }

.folder-chip svg {
  width: 12px;
  height: 12px;
}

.project-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  flex: 1;
  padding: 0 6px 12px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.project-row {
  position: relative;
  z-index: 0;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 18px;
  background: rgba(248, 246, 247, 0.74);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.project-row:has(.item-menu:not(.hidden)) {
  z-index: 20;
}

.project-row:hover,
.project-row:focus-within {
  transform: translateY(-1px);
  border-color: rgba(104, 101, 239, 0.12);
  background: rgba(247, 245, 255, 0.9);
  box-shadow: 0 4px 12px rgba(45, 35, 48, 0.06);
}

.project-open {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 66px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.project-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 13px;
  background: #eee9e8;
  box-shadow: 0 1px 2px rgba(30, 23, 30, 0.08);
}

.project-thumb--plan { background: linear-gradient(145deg, #f4eee5, #ded2c1); }

.project-thumb--plan::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid rgba(89, 65, 46, 0.28);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(89, 65, 46, 0.28) 44% 49%, transparent 50%),
    linear-gradient(0deg, transparent 54%, rgba(89, 65, 46, 0.28) 55% 61%, transparent 62%),
    linear-gradient(145deg, #d7b883 0 31%, #b78a66 32% 55%, #cdbca3 56%);
  transform: rotate(-4deg);
  box-shadow: 4px 5px 8px rgba(70, 52, 42, 0.12);
}

.project-thumb--warm {
  background:
    linear-gradient(155deg, transparent 0 48%, rgba(84, 52, 43, 0.2) 49% 52%, transparent 53%),
    radial-gradient(circle at 72% 25%, rgba(255, 245, 216, 0.9) 0 9%, transparent 10%),
    linear-gradient(150deg, #dba179 0 42%, #8c6254 43% 61%, #d9c0aa 62%);
}

.project-thumb--cool {
  background:
    linear-gradient(145deg, transparent 0 53%, rgba(44, 55, 73, 0.32) 54% 57%, transparent 58%),
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.66), transparent 22%),
    linear-gradient(145deg, #a9bfd0 0 45%, #687b8e 46% 65%, #d9d8d2 66%);
}

.project-thumb--neutral {
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.6), transparent 18%),
    linear-gradient(145deg, #d9d0c9 0 42%, #9e8e83 43% 62%, #ece7e2 63%);
}

.project-copy {
  min-width: 0;
  height: 66px;
  display: block;
  padding: 8px 3px 2px;
  overflow: hidden;
}

.project-title-line {
  display: block;
  min-width: 0;
}

.project-copy strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  color: var(--ink);
  font-size: 12px;
  font-weight: 610;
  line-height: 1.22;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-copy p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--slate);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-folder-tag {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 77px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 3px 7px;
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.84);
  color: var(--slate);
  font-size: 8px;
  font-weight: 560;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(35, 27, 36, 0.08);
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.project-actions {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  flex: 0 0 auto;
}

.more-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.82);
  color: var(--graphite);
  box-shadow: 0 2px 8px rgba(30, 23, 30, 0.1);
  backdrop-filter: blur(10px);
}

.more-button:hover,
.more-button[aria-expanded="true"] {
  background: white;
  color: var(--graphite);
}

.more-button svg {
  width: 16px;
  height: 16px;
}

.item-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 5px);
  right: 0;
  width: 174px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(48, 40, 49, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(40, 30, 42, 0.13);
  backdrop-filter: blur(20px);
  animation: item-menu-enter 200ms cubic-bezier(.2,.8,.2,1);
}

@keyframes item-menu-enter {
  from { opacity: 0; transform: translateY(-5px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.item-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--graphite);
  font-size: 11px;
  text-align: left;
}

.item-menu button:hover {
  background: var(--lavender);
  color: #4d49c0;
}

.empty-card-state {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(48, 40, 49, 0.14);
  border-radius: 16px;
  color: var(--slate);
  text-align: center;
}

.empty-card-state strong {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 600;
}

.empty-card-state span {
  max-width: 260px;
  font-size: 10px;
  line-height: 1.45;
}

.capture-library {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 13px;
  flex: 1;
  padding: 2px 6px 18px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.capture-section {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.capture-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.capture-section-heading h3 {
  margin: 0;
  color: var(--graphite);
  font-size: 10px;
  font-weight: 620;
}

.capture-section-heading span {
  color: var(--fog);
  font-size: 8px;
}

.capture-section-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.capture-more-button {
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid var(--pearl);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--slate);
  font-size: 8px;
  font-weight: 580;
}

.capture-more-button:hover {
  border-color: rgba(104, 101, 239, 0.18);
  background: var(--lavender);
  color: #4d49c0;
}

.capture-recent-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.capture-project-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.capture-card {
  position: relative;
  min-width: 0;
  animation: capture-card-enter 280ms cubic-bezier(.2,.8,.2,1) both;
}

.capture-card:nth-child(2) { animation-delay: 35ms; }
.capture-card:nth-child(3) { animation-delay: 70ms; }
.capture-card:nth-child(n + 4) { animation-delay: 105ms; }

@keyframes capture-card-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.capture-open {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.capture-visual {
  position: relative;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(30, 23, 30, 0.07);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, filter 220ms ease;
}

.capture-open:hover .capture-visual {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 3px 9px rgba(30, 23, 30, 0.1);
}

.capture-visual::before {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 13%;
  width: 54%;
  height: 28%;
  border-radius: 5px 5px 2px 2px;
  background: rgba(74, 55, 55, 0.58);
  box-shadow: -23px 6px 0 -8px rgba(52, 41, 41, 0.45);
}

.capture-visual::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 28%;
  height: 44%;
  border: 2px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 -12px 20px rgba(255, 255, 255, 0.14);
}

.capture-visual--warm {
  background:
    linear-gradient(166deg, transparent 0 57%, rgba(105, 67, 51, 0.26) 58% 61%, transparent 62%),
    radial-gradient(circle at 72% 22%, #ffe8b2 0 7%, transparent 8%),
    linear-gradient(145deg, #d69b73, #ba7867 56%, #e4c3a9 57%);
}

.capture-visual--neutral {
  background:
    linear-gradient(160deg, transparent 0 56%, rgba(68, 63, 60, 0.2) 57% 60%, transparent 61%),
    radial-gradient(circle at 69% 23%, #fff8e9 0 7%, transparent 8%),
    linear-gradient(145deg, #d8d1c8, #a79c92 55%, #eee9e3 56%);
}

.capture-visual--blue {
  background:
    linear-gradient(158deg, transparent 0 55%, rgba(41, 60, 75, 0.24) 56% 60%, transparent 61%),
    radial-gradient(circle at 72% 22%, #eaf7ff 0 7%, transparent 8%),
    linear-gradient(145deg, #a8c4d3, #6e8798 55%, #d6e0e4 56%);
}

.capture-open strong {
  overflow: hidden;
  display: block;
  color: var(--graphite);
  font-size: 9px;
  font-weight: 560;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-open > span:last-child {
  overflow: hidden;
  display: block;
  margin-top: -3px;
  color: var(--fog);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-project-stack {
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 14px;
  background: rgba(248, 246, 247, 0.7);
  text-align: left;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.capture-project-stack:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 101, 239, 0.14);
  background: rgba(247, 245, 255, 0.9);
}

.capture-stack-visual {
  position: relative;
  height: 44px;
  display: block;
}

.capture-stack-layer {
  position: absolute;
  inset: 0 8px 0 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9px;
  box-shadow: 0 2px 5px rgba(38, 29, 39, 0.1);
  transform: translateX(calc(var(--stack-index) * 4px)) rotate(calc((var(--stack-index) - 1) * 1.8deg));
}

.capture-stack-layer:nth-child(1) { z-index: 3; }
.capture-stack-layer:nth-child(2) { z-index: 2; opacity: 0.88; }
.capture-stack-layer:nth-child(3) { z-index: 1; opacity: 0.72; }

.capture-stack-copy { min-width: 0; }
.capture-stack-copy strong,
.capture-stack-copy span { display: block; }
.capture-stack-copy strong {
  overflow: hidden;
  color: var(--graphite);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.capture-stack-copy span {
  margin-top: 4px;
  color: var(--fog);
  font-size: 8px;
}
.capture-project-stack > svg {
  width: 14px;
  height: 14px;
  color: var(--slate);
}

.capture-folder-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--graphite);
  opacity: 0;
  box-shadow: 0 1px 3px rgba(25, 20, 26, 0.12);
  transition: opacity 150ms ease, transform 150ms ease;
}

.capture-card:hover .capture-folder-button,
.capture-folder-button:focus-visible { opacity: 1; }

.capture-folder-button:hover { transform: scale(1.05); }

.capture-folder-button svg {
  width: 12px;
  height: 12px;
}

.material-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  flex: 1;
  padding: 1px 5px 10px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.material-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.material-card .material-swatch {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.material-card:hover .material-swatch,
.material-card:focus-visible .material-swatch {
  border-color: rgba(104, 101, 239, 0.2);
  box-shadow: 0 8px 18px rgba(49, 39, 52, 0.12);
  transform: translateY(-2px);
}

.material-swatch {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(30, 23, 30, 0.07);
}

.material-swatch--custom { background: linear-gradient(145deg, #e8e4e6, #c9c2c8); }

.material-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.material-swatch--travertine {
  background:
    radial-gradient(ellipse at 20% 32%, rgba(133, 102, 69, 0.23) 0 2%, transparent 3%),
    radial-gradient(ellipse at 70% 66%, rgba(115, 83, 55, 0.2) 0 2%, transparent 3%),
    linear-gradient(145deg, #e7d5ba, #cbb18c);
}

.material-swatch--walnut {
  background:
    repeating-linear-gradient(96deg, rgba(42, 19, 10, 0.17) 0 2px, transparent 2px 8px),
    linear-gradient(145deg, #8e5a38, #5f3827);
}

.material-swatch--boucle {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.74) 0 16%, transparent 18%) 0 0 / 8px 8px,
    linear-gradient(145deg, #d9d4cc, #b7afa5);
}

.material-swatch--metal {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(50, 55, 58, 0.06) 1px 3px),
    linear-gradient(145deg, #adb2b3, #737a7c 54%, #c2c7c6);
}

.material-swatch--marble {
  background:
    linear-gradient(118deg, transparent 0 35%, rgba(112, 106, 104, 0.26) 36% 38%, transparent 39% 62%, rgba(139, 130, 126, 0.2) 63% 65%, transparent 66%),
    linear-gradient(145deg, #f0ece7, #d8d1cb);
}

.material-swatch--oak {
  background:
    repeating-linear-gradient(93deg, rgba(91, 57, 30, 0.11) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #d8bd91, #b88f61);
}

.material-swatch--linen {
  background:
    repeating-linear-gradient(0deg, rgba(97, 82, 65, 0.08) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 4px),
    #cdbda9;
}

.material-swatch--brass {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #c8a765, #8f6f33 58%, #d3b575);
}

.material-swatch--slate {
  background:
    linear-gradient(160deg, transparent 0 44%, rgba(255, 255, 255, 0.08) 45% 47%, transparent 48%),
    linear-gradient(145deg, #5f6266, #303438);
}

.material-swatch--ashwood {
  background:
    repeating-linear-gradient(96deg, rgba(78, 58, 37, 0.09) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #e3d2b7, #bea27c);
}

.material-swatch--velvet {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #bc735a, #774538);
}

.material-swatch--steel {
  background:
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 3px),
    linear-gradient(145deg, #5e6469, #252a2f 58%, #777d81);
}

.material-card strong {
  overflow: hidden;
  color: var(--graphite);
  font-size: 9px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.models-layout {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 1px 5px 12px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.latest-model {
  min-width: 0;
  min-height: 278px;
  display: flex;
  flex: 0 0 278px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 18px;
  background: linear-gradient(145deg, #f3f0eb, #dfdbd4);
}

.model-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 8%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(150deg, #eeeae4 0 56%, #d6d0c9 57%);
}

.model-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(65, 57, 56, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 57, 56, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, black 75%);
}

.model-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  filter: drop-shadow(0 18px 13px rgba(64, 47, 39, 0.17));
}

.model-canvas:active { cursor: grabbing; }

.model-interaction-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 12px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--slate);
  font-size: 8px;
  font-weight: 560;
  opacity: 0.92;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(10px);
}

.model-interaction-hint svg {
  width: 12px;
  height: 12px;
}

.model-stage.is-interacting .model-interaction-hint {
  opacity: 0;
  transform: translate(-50%, 4px);
}

.model-load-error {
  position: relative;
  z-index: 2;
  color: var(--slate);
  font-size: 10px;
}

.model-stage-badge {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--slate);
  font-size: 9px;
  font-weight: 560;
  backdrop-filter: blur(10px);
}

.model-meta {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.68);
}

.model-meta strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 610;
}

.model-meta span {
  display: block;
  margin-top: 3px;
  color: var(--slate);
  font-size: 9px;
}

.model-open-button {
  max-width: 150px;
  min-height: 31px;
  text-align: center;
}

.model-format {
  padding: 5px 8px;
  border-radius: var(--pill-radius);
  background: var(--ash);
  color: var(--slate) !important;
  font-size: 8px !important;
  font-weight: 610;
  letter-spacing: 0.06em;
}

.model-categories {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 96px;
  align-content: start;
  gap: 10px;
}

.model-category {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 16px;
  background: rgba(246, 244, 245, 0.76);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.model-category:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 101, 239, 0.13);
  background: var(--lavender);
}

.model-category-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: white;
  color: var(--slate);
  box-shadow: 0 1px 2px rgba(30, 23, 30, 0.07);
}

.model-category-icon svg {
  width: 19px;
  height: 19px;
}

.model-category strong {
  overflow: hidden;
  display: block;
  color: var(--graphite);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-category span {
  display: block;
  margin-top: 3px;
  color: var(--fog);
  font-size: 8px;
}

.promo-card {
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  box-shadow: none;
}

.promo-open {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: default;
}

.promo-open > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 39% 54%;
}

.promo-card::after { display: none; }

.promo-content {
  position: relative;
  z-index: 4;
  width: 68%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 0 20px 23px;
}

.tracked-label--light {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.promo-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.promo-card h2 {
  max-width: 210px;
  margin: 10px 0 6px;
  color: white;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.promo-card p:not(.tracked-label) {
  max-width: 205px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  line-height: 1.4;
}

.promo-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 9px;
  font-weight: 600;
}

.promo-link:hover { background: rgba(255, 255, 255, 0.24); }

.promo-link svg {
  width: 12px;
  height: 12px;
}

.promo-visual {
  position: absolute;
  z-index: 3;
  right: -16px;
  bottom: -16px;
  width: 48%;
  height: 78%;
  transform: rotate(-6deg);
}

.promo-plane {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(126, 52, 54, 0.15);
  backdrop-filter: blur(8px);
}

.promo-plane::before,
.promo-plane::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.promo-plane::before {
  top: 14px;
  left: 14px;
  width: 42%;
  height: 8px;
}

.promo-plane::after {
  right: 14px;
  bottom: 14px;
  width: 44%;
  height: 42%;
}

.promo-plane--back {
  top: 0;
  right: 0;
  width: 100%;
  height: 78%;
  transform: translate(12px, -4px) rotate(10deg);
  opacity: 0.58;
}

.promo-plane--front {
  right: 16px;
  bottom: 0;
  width: 96%;
  height: 82%;
}

.promo-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(3px);
}

.promo-orb--one {
  top: -45px;
  right: 18%;
  width: 130px;
  height: 130px;
  background: rgba(255, 222, 166, 0.42);
}

.promo-orb--two {
  bottom: -56px;
  left: 26%;
  width: 120px;
  height: 120px;
  background: rgba(210, 71, 128, 0.3);
}

.promo-spark {
  position: absolute;
  z-index: 5;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.92);
}

.promo-spark--one { top: 18%; left: 5%; }
.promo-spark--two { top: 48%; right: 1%; width: 4px; height: 4px; }

.archive-list {
  min-height: 0;
  display: grid;
  gap: 7px;
  flex: 1;
  max-height: none;
  padding-right: 2px;
  overflow-y: auto;
  scrollbar-color: rgba(113, 107, 113, 0.35) transparent;
  scrollbar-width: thin;
}

.project-list,
.capture-library,
.material-grid,
.models-layout,
.archive-list,
.bento-browser-content,
.account-sections {
  scrollbar-color: rgba(113, 107, 113, 0.32) transparent;
  scrollbar-width: thin;
}

.project-list::-webkit-scrollbar,
.capture-library::-webkit-scrollbar,
.material-grid::-webkit-scrollbar,
.models-layout::-webkit-scrollbar,
.archive-list::-webkit-scrollbar,
.bento-browser-content::-webkit-scrollbar,
.account-sections::-webkit-scrollbar { width: 6px; }

.project-list::-webkit-scrollbar-thumb,
.capture-library::-webkit-scrollbar-thumb,
.material-grid::-webkit-scrollbar-thumb,
.models-layout::-webkit-scrollbar-thumb,
.archive-list::-webkit-scrollbar-thumb,
.bento-browser-content::-webkit-scrollbar-thumb,
.account-sections::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(113, 107, 113, 0.28);
}

.project-list,
.capture-library,
.material-grid,
.models-layout,
.archive-list,
.bento-browser-content {
  --scroll-fade-top: 72px;
  --scroll-fade-bottom: 52px;
  --scroll-top-opacity: 1;
  --scroll-bottom-opacity: 1;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--scroll-top-opacity)) 0,
    #000 var(--scroll-fade-top),
    #000 calc(100% - var(--scroll-fade-bottom)),
    rgba(0, 0, 0, var(--scroll-bottom-opacity)) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--scroll-top-opacity)) 0,
    #000 var(--scroll-fade-top),
    #000 calc(100% - var(--scroll-fade-bottom)),
    rgba(0, 0, 0, var(--scroll-bottom-opacity)) 100%
  );
}

.project-list.can-scroll-up,
.capture-library.can-scroll-up,
.material-grid.can-scroll-up,
.models-layout.can-scroll-up,
.archive-list.can-scroll-up,
.bento-browser-content.can-scroll-up { --scroll-top-opacity: 0; }

.project-list.can-scroll-down,
.capture-library.can-scroll-down,
.material-grid.can-scroll-down,
.models-layout.can-scroll-down,
.archive-list.can-scroll-down,
.bento-browser-content.can-scroll-down { --scroll-bottom-opacity: 0; }

.project-list,
.capture-library,
.material-grid,
.models-layout,
.archive-list {
  margin-bottom: -24px;
  padding-bottom: 40px;
}

.projects-card > .project-list {
  --scroll-fade-top: 106px;
  margin-top: -109px;
  padding-top: 109px;
}

.captures-card > .capture-library {
  --scroll-fade-top: 58px;
  margin-top: -55px;
  padding-top: 57px;
}

.materials-card > .material-grid {
  --scroll-fade-top: 92px;
  margin-top: -91px;
  padding-top: 92px;
}

.models-card > .models-layout {
  --scroll-fade-top: 70px;
  margin-top: -66px;
  padding-top: 67px;
}

.archives-card > .archive-list {
  --scroll-fade-top: 58px;
  margin-top: -55px;
  padding-top: 55px;
}

.folder-toolbar.can-scroll-left.can-scroll-right {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 12px), transparent 100%);
}

.folder-toolbar.can-scroll-right:not(.can-scroll-left) {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 12px), transparent 100%);
}

.folder-toolbar.can-scroll-left:not(.can-scroll-right) {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 10px, #000 100%);
}

.archive-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(48, 40, 49, 0.06);
  border-radius: 13px;
  background: rgba(246, 244, 245, 0.72);
}

.archive-open {
  min-width: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.archive-open:hover strong,
.archive-open:focus-visible strong { color: var(--iris); }

.archive-row strong {
  overflow: hidden;
  display: block;
  color: var(--graphite);
  font-size: 10px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-row p {
  margin: 3px 0 0;
  color: var(--fog);
  font-size: 8px;
}

.archive-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.archive-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--slate);
}

.archive-action:hover {
  border-color: rgba(104, 101, 239, 0.12);
  background: var(--lavender);
  color: #4d49c0;
}

.archive-action--danger:hover {
  border-color: rgba(200, 68, 78, 0.12);
  background: #fff0f1;
  color: var(--danger);
}

.archive-action svg {
  width: 13px;
  height: 13px;
}

.archives-card .empty-card-state {
  min-height: 100%;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(34, 25, 36, 0.26);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(42, 30, 45, 0.18);
}

.resource-hero {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 19px;
  box-shadow: 0 8px 28px rgba(38, 29, 39, 0.09);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease;
}

.resource-overview {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.resource-overview > .resource-hero {
  width: 100%;
  min-height: 200px;
  animation: resource-media-enter 320ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes resource-media-enter {
  from { opacity: 0; transform: translateX(-12px) scale(0.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.resource-overview-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  animation: resource-info-enter 320ms 60ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes resource-info-enter {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.resource-project-preview {
  background-color: #ddd7d1;
  background-position: center;
  background-size: cover;
}

.resource-project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 19, 25, 0.22), transparent 55%);
}

.resource-capture-hero { min-height: 250px; }

.resource-material-hero {
  min-height: 260px;
  border-radius: 19px;
}

.resource-promo-hero {
  width: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.resource-lead {
  margin: 16px 2px 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.58;
}

.resource-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.resource-stats--compact {
  height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
}

.resource-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 14px;
  background: rgba(247, 245, 246, 0.72);
}

.resource-stats--compact .resource-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 14px;
}

.resource-note-field--project { margin: 16px 2px 0; }

.resource-stat span,
.resource-stat strong { display: block; }
.resource-stat span {
  color: var(--fog);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.resource-stat strong {
  overflow: hidden;
  margin-top: 5px;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-generation {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 18px;
  background: rgba(247, 245, 246, 0.62);
}

.resource-generation span {
  color: var(--fog);
  font-size: 8px;
  font-weight: 590;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resource-generation strong {
  margin-top: 7px;
  color: var(--graphite);
  font-size: 11px;
  font-weight: 640;
  line-height: 1.25;
}

.resource-generation time {
  margin-top: 3px;
  color: var(--slate);
  font-size: 9px;
}

.resource-note-field {
  position: relative;
  display: grid;
  gap: 6px;
}

.resource-note-field > span {
  color: var(--slate);
  font-size: 9px;
  font-weight: 590;
}

.resource-note-field input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(48, 40, 49, 0.11);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--graphite);
  font-size: 10px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.resource-note-field input:focus {
  border-color: rgba(104, 101, 239, 0.34);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(104, 101, 239, 0.08);
  transform: translateY(-1px);
}

.resource-note-field small {
  position: absolute;
  right: 12px;
  bottom: -12px;
  color: var(--green);
  font-size: 7px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.resource-note-field.is-saved small {
  opacity: 1;
  transform: translateY(0);
}

.materials-card .resource-generation {
  min-height: 92px;
  padding: 8px;
}

.materials-card .resource-generation strong {
  font-size: 8px;
  white-space: nowrap;
}

.materials-card .resource-generation time { font-size: 8px; }
.materials-card .resource-note-field input {
  height: 36px;
  padding: 0 8px;
  font-size: 8px;
}

.resource-section { margin-top: 22px; }
.resource-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.resource-section-heading h3 {
  margin: 0;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 640;
}
.resource-section-heading span {
  color: var(--fog);
  font-size: 9px;
}

.resource-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.resource-mini-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.resource-mini-card .capture-visual {
  height: 92px;
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.resource-mini-card:hover .capture-visual,
.resource-mini-card:focus-visible .capture-visual {
  box-shadow: 0 7px 16px rgba(44, 34, 46, 0.12);
  transform: translateY(-2px);
}

.resource-mini-card strong {
  overflow: hidden;
  color: var(--graphite);
  font-size: 9px;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resource-category-card,
.resource-object-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 14px;
  background: rgba(247, 245, 246, 0.72);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.resource-category-card:hover,
.resource-category-card:focus-visible,
.resource-object-row:hover,
.resource-object-row:focus-visible {
  border-color: rgba(104, 101, 239, 0.14);
  background: var(--lavender);
  transform: translateY(-1px);
}

.resource-category-card .model-category-icon,
.resource-object-row .model-category-icon { flex: 0 0 auto; }

.resource-category-card > span:last-child,
.resource-object-row > span:last-child { min-width: 0; }
.resource-category-card strong,
.resource-category-card small,
.resource-object-row strong,
.resource-object-row small { display: block; }
.resource-category-card strong,
.resource-object-row strong {
  overflow: hidden;
  color: var(--graphite);
  font-size: 10px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource-category-card small,
.resource-object-row small {
  margin-top: 3px;
  color: var(--fog);
  font-size: 8px;
}

.resource-object-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-object-row {
  display: grid;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.resource-object-row:hover,
.resource-object-row:focus-visible {
  border-color: transparent;
  background: transparent;
  transform: translateY(-2px);
}

.resource-object-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.92), transparent 31%),
    linear-gradient(145deg, #eee8e2, #d7d0ca);
  box-shadow: 0 2px 7px rgba(38, 29, 39, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.resource-object-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(65, 57, 56, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 57, 56, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
  mask-image: linear-gradient(to bottom, transparent, #000);
}

.resource-object-preview--seat { background: linear-gradient(145deg, #f0d9cf, #d6b7ab); }
.resource-object-preview--table { background: linear-gradient(145deg, #eadfcf, #cbb79e); }
.resource-object-preview--light { background: linear-gradient(145deg, #f5e8bd, #d9c58a); }
.resource-object-preview--storage { background: linear-gradient(145deg, #dcd6d0, #b9aea6); }
.resource-object-preview--bed { background: linear-gradient(145deg, #e6e1dc, #c6beb7); }
.resource-object-preview--decor { background: linear-gradient(145deg, #ead7cd, #c7aaa0); }
.resource-object-preview--outdoor { background: linear-gradient(145deg, #dbe4d4, #aebca6); }
.resource-object-preview--kitchen { background: linear-gradient(145deg, #d8dce0, #abb2b9); }

.resource-object-illustration {
  position: relative;
  z-index: 1;
  width: 54%;
  height: 54%;
  display: grid;
  place-items: center;
  color: rgba(67, 56, 57, 0.72);
  filter: drop-shadow(0 12px 10px rgba(58, 43, 41, 0.14));
}

.resource-object-illustration svg { width: 100%; height: 100%; stroke-width: 1.15; }

.resource-object-caption {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.resource-object-caption strong {
  min-width: 0;
  flex: 1;
  font-size: 10px;
}

.resource-object-open-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ash);
  color: var(--slate);
}

.resource-object-open-icon svg { width: 11px; height: 11px; }

.resource-object-row:hover .resource-object-preview,
.resource-object-row:focus-visible .resource-object-preview {
  border-color: rgba(104, 101, 239, 0.18);
  box-shadow: 0 8px 18px rgba(44, 34, 46, 0.12);
}

.inline-project-picker {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.inline-project-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 14px;
  background: rgba(247, 245, 246, 0.72);
  text-align: left;
}

.inline-project-choice:hover,
.inline-project-choice:focus-visible {
  border-color: rgba(104, 101, 239, 0.16);
  background: var(--lavender);
}

.inline-project-preview {
  position: relative;
  width: 54px;
  height: 46px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: #ded8d2;
}

.bento-browser-view:not(:has(.bento-browser-actions)) .bento-browser-content {
  margin-bottom: -24px;
  padding-bottom: 40px;
}

.inline-project-choice > span:nth-child(2) { min-width: 0; }
.inline-project-choice strong,
.inline-project-choice small { display: block; }
.inline-project-choice strong {
  overflow: hidden;
  color: var(--graphite);
  font-size: 10px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-project-choice small { margin-top: 4px; color: var(--fog); font-size: 8px; }
.inline-project-choice > svg { width: 13px; height: 13px; color: var(--slate); }

.resource-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.resource-chip {
  padding: 6px 9px;
  border-radius: var(--pill-radius);
  background: var(--ash);
  color: var(--slate);
  font-size: 8px;
  font-weight: 590;
}

.modal-heading { margin-bottom: 22px; }
.modal-heading .tracked-label { margin-bottom: 5px; }

#manage-form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--slate);
  font-size: 10px;
  font-weight: 580;
  letter-spacing: 0.05em;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(48, 40, 49, 0.11);
  border-radius: var(--pill-radius);
  background: #f7f5f6;
  color: var(--ink);
  font-size: 13px;
}

.field input:focus,
.field select:focus {
  border-color: rgba(104, 101, 239, 0.34);
  background: white;
  box-shadow: 0 0 0 4px rgba(104, 101, 239, 0.08);
}

.modal-copy {
  margin: -4px 0 2px;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.modal-submit--danger {
  border-color: rgba(200, 68, 78, 0.24);
  background: #fff0f1;
  color: var(--danger);
}

.account-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(var(--account-drawer-width), 100vw);
  height: 100dvh;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 340ms cubic-bezier(.22, .8, .25, 1),
    visibility 0s linear 340ms;
}

.account-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.account-drawer.is-open .account-section {
  animation: account-section-enter 320ms cubic-bezier(.2,.8,.2,1) both;
}

.account-drawer.is-open .account-section:nth-child(2) { animation-delay: 45ms; }
.account-drawer.is-open .account-section:nth-child(3) { animation-delay: 90ms; }
.account-drawer.is-open .account-section:nth-child(4) { animation-delay: 135ms; }

@keyframes account-section-enter {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.account-modal-card {
  width: 100%;
  height: 100dvh;
  max-height: none;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: -1px 0 0 rgba(48, 40, 49, 0.08);
}

.account-heading {
  flex: 0 0 auto;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(48, 40, 49, 0.08);
}

.account-description {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: 11px;
}

#account-form {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.account-sections {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0;
  flex: 1;
  padding: 1px 6px 18px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.account-section {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(48, 40, 49, 0.08);
  border-radius: 0;
  background: transparent;
}

.account-section-heading {
  margin-bottom: 13px;
}

.account-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.account-section-heading p {
  margin: 4px 0 0;
  color: var(--slate);
  font-size: 10px;
  line-height: 1.4;
}

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}

.profile-photo-control {
  position: relative;
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  cursor: pointer;
}

.account-avatar-preview {
  width: 58px;
  height: 58px;
  display: block;
  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);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.profile-photo-icon {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper-solid);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-solid);
  box-shadow: none;
}

.profile-photo-icon svg {
  width: 12px;
  height: 12px;
}

.profile-photo-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.profile-photo-control:focus-within {
  outline: 2px solid rgba(104, 101, 239, 0.72);
  outline-offset: 3px;
}

.profile-photo-row > div strong,
.profile-photo-row > div span { display: block; }
.profile-photo-row > div strong {
  color: var(--graphite);
  font-size: 11px;
  font-weight: 610;
}
.profile-photo-row > div span {
  margin-top: 4px;
  color: var(--fog);
  font-size: 9px;
}

.account-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-field--wide { grid-column: 1 / -1; }

.field > span small {
  color: var(--fog);
  font-size: 9px;
  font-weight: 450;
  letter-spacing: 0;
}

.security-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 0;
  background: transparent;
}

.security-toggle span { min-width: 0; }

.security-toggle strong,
.security-toggle small { display: block; }

.security-toggle strong {
  color: var(--graphite);
  font-size: 11px;
  font-weight: 610;
}

.security-toggle small {
  margin-top: 3px;
  color: var(--slate);
  font-size: 9px;
}

.security-toggle input {
  width: 34px;
  height: 19px;
  flex: 0 0 auto;
  accent-color: var(--iris);
}

.plan-summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.plan-summary div > span,
.plan-summary div > strong { display: block; }
.plan-summary div > span {
  color: var(--fog);
  font-size: 8px;
}
.plan-summary div > strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.plan-manage-link {
  text-decoration: none;
  white-space: nowrap;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: var(--pill-radius);
  background: var(--ash);
}

.theme-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.theme-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.theme-options span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--pill-radius);
  background: transparent;
  color: var(--slate);
  font-size: 10px;
  font-weight: 570;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.theme-options input:checked + span {
  background: var(--paper-solid);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(48, 40, 49, 0.1);
}

.account-modal-card .field input,
.account-modal-card .field select {
  padding: 0 14px;
  border: 1px solid rgba(48, 40, 49, 0.11);
  border-radius: var(--pill-radius);
  background: rgba(247, 245, 246, 0.74);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.account-modal-card .field input:focus,
.account-modal-card .field select:focus {
  border-color: rgba(104, 101, 239, 0.34);
  background: var(--paper-solid);
  box-shadow: 0 0 0 4px rgba(104, 101, 239, 0.08);
  transform: translateY(-1px);
}

.theme-options input:focus-visible + span {
  outline: 2px solid rgba(104, 101, 239, 0.72);
  outline-offset: 2px;
}

.account-actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(48, 40, 49, 0.07);
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  max-width: min(440px, calc(100% - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--pill-radius);
  background: rgba(28, 24, 29, 0.9);
  color: white;
  font-size: 11px;
  box-shadow: 0 8px 24px rgba(35, 28, 36, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(104, 101, 239, 0.72);
  outline-offset: 2px;
}

html[data-theme="dark"] body::before {
  mix-blend-mode: soft-light;
  opacity: 0.2;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .bento-card {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .brand-icon,
html[data-theme="dark"] .brand-wordmark { filter: none; }
html[data-theme="dark"] .topbar { background: rgba(23, 21, 24, 0.6); }
html[data-theme="dark"] .dashboard-intro h1 { color: var(--ink); }

html[data-theme="dark"] .global-search,
html[data-theme="dark"] .user-chip,
html[data-theme="dark"] .pill-button,
html[data-theme="dark"] .text-pill,
html[data-theme="dark"] .icon-pill,
html[data-theme="dark"] .more-button,
html[data-theme="dark"] .model-interaction-hint {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 18, 22, 0.58);
}

html[data-theme="dark"] .global-search:focus-within,
html[data-theme="dark"] .user-chip:hover,
html[data-theme="dark"] .user-chip[aria-expanded="true"] {
  background: rgba(25, 22, 28, 0.92);
}

html[data-theme="dark"] .project-row,
html[data-theme="dark"] .capture-project-stack,
html[data-theme="dark"] .model-category,
html[data-theme="dark"] .archive-row,
html[data-theme="dark"] .account-section,
html[data-theme="dark"] .resource-stat,
html[data-theme="dark"] .resource-generation,
html[data-theme="dark"] .resource-category-card,
html[data-theme="dark"] .inline-project-choice {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 18, 22, 0.46);
}

html[data-theme="dark"] .project-row:hover,
html[data-theme="dark"] .project-row:focus-within,
html[data-theme="dark"] .capture-project-stack:hover,
html[data-theme="dark"] .model-category:hover,
html[data-theme="dark"] .resource-category-card:hover,
html[data-theme="dark"] .inline-project-choice:hover {
  background: rgba(52, 49, 77, 0.72);
}

html[data-theme="dark"] .item-menu,
html[data-theme="dark"] .modal-card {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(31, 28, 34, 0.97);
}

html[data-theme="dark"] .latest-model {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #302c2a, #201e21);
}

html[data-theme="dark"] .model-stage {
  background:
    radial-gradient(circle at 30% 8%, rgba(255, 255, 255, 0.09), transparent 32%),
    linear-gradient(150deg, #302d2b 0 56%, #211f22 57%);
}

html[data-theme="dark"] .model-category-icon,
html[data-theme="dark"] .model-meta,
html[data-theme="dark"] .security-toggle,
html[data-theme="dark"] .plan-summary,
html[data-theme="dark"] .theme-options span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 18, 22, 0.68);
}

html[data-theme="dark"] .resource-object-preview {
  border-color: rgba(255, 255, 255, 0.08);
  filter: brightness(0.72) saturate(0.88);
}

html[data-theme="dark"] .resource-object-open-icon,
html[data-theme="dark"] .folder-chip--editor {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 18, 22, 0.78);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 18, 22, 0.65);
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus {
  background: rgba(20, 18, 22, 0.92);
}

html[data-theme="dark"] .theme-options input:checked + span {
  background: var(--lavender);
  color: #c5c2ff;
}

html[data-theme="dark"] .bento-browser-view {
  background: rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .account-modal-card {
  border: 0;
  background: rgba(13, 12, 14, 0.96);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .account-section,
html[data-theme="dark"] .account-modal-card .security-toggle,
html[data-theme="dark"] .account-modal-card .plan-summary {
  background: transparent;
}

html[data-theme="dark"] .account-modal-card .field input,
html[data-theme="dark"] .account-modal-card .field select {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(20, 18, 22, 0.68);
}

html[data-theme="dark"] .resource-note-field input,
html[data-theme="dark"] .inline-title-form input {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(20, 18, 22, 0.72);
}

html[data-theme="dark"] .account-modal-card .theme-options span { background: transparent; }
html[data-theme="dark"] .account-modal-card .theme-options input:checked + span {
  background: var(--paper-solid);
  color: var(--ink);
}

html[data-theme="dark"] .bento-browser-nav {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 18, 22, 0.78);
}

html[data-theme="dark"] .material-import-zone {
  border-color: rgba(159, 155, 255, 0.25);
  background: rgba(52, 49, 77, 0.54);
}

html[data-theme="dark"] .material-import-icon {
  background: rgba(20, 18, 22, 0.72);
}

html[data-theme="dark"] .bento-browser-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@container (max-width: 1080px) {
  .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .bento-primary-stack,
  .bento-primary-lower,
  .bento-secondary-stack { display: contents; }

  .projects-card {
    grid-column: span 6;
    grid-row: auto;
    height: 510px;
    order: 1;
  }

  .captures-card,
  .promo-card {
    grid-column: span 3;
    grid-row: auto;
    height: 360px;
  }

  .captures-card { order: 2; }
  .promo-card {
    order: 3;
    aspect-ratio: auto;
  }

  .models-card,
  .materials-card {
    grid-column: span 3;
    grid-row: auto;
    height: 510px;
  }

  .models-card { order: 4; }
  .materials-card { order: 5; }

  .archives-card {
    grid-column: span 6;
    grid-row: auto;
    height: 190px;
    order: 6;
  }

  .archives-card .archive-list { max-height: none; }
  .models-layout { min-height: 0; }
  .latest-model { min-height: 300px; flex-basis: 300px; }
  .model-categories { grid-auto-rows: 126px; }
}

@media (max-width: 1080px) {
  .topbar { grid-template-columns: 1fr auto; }

  .user-chip {
    min-width: 46px;
    width: 46px;
    padding-right: 4px;
  }

  .bento-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .bento-primary-stack,
  .bento-primary-lower,
  .bento-secondary-stack { display: contents; }

  .projects-card {
    grid-column: span 6;
    grid-row: auto;
    height: 510px;
  }

  .captures-card,
  .promo-card {
    grid-column: span 3;
    grid-row: auto;
    height: 360px;
  }

  .promo-card { aspect-ratio: auto; }

  .models-card,
  .materials-card {
    grid-column: span 3;
    grid-row: auto;
    height: 510px;
  }

  .archives-card {
    grid-column: span 6;
    grid-row: auto;
    height: 190px;
  }

  .projects-card { order: 1; }
  .captures-card { order: 2; }
  .promo-card { order: 3; }
  .models-card { order: 4; }
  .materials-card { order: 5; }
  .archives-card { order: 6; }
  .archives-card .archive-list { max-height: none; }
  .models-layout { min-height: 0; }
  .latest-model { min-height: 300px; flex-basis: 300px; }
  .model-categories { grid-auto-rows: 126px; }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 64px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 0;
    padding: 0 24px;
    border-radius: 0;
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .dashboard {
    width: calc(100% - 24px);
    padding: 42px 0 60px;
  }

  .dashboard-intro {
    padding: 0 4px 28px;
  }

  .dashboard-intro h1 { font-size: clamp(32px, 10vw, 42px); }

  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .bento-card,
  .projects-card,
  .captures-card,
  .materials-card,
  .models-card,
  .promo-card,
  .archives-card {
    width: 100%;
    min-height: 0;
    padding: 20px;
  }

  .projects-card { order: 1; }
  .captures-card { order: 2; }
  .promo-card { order: 3; }
  .models-card { order: 4; }
  .materials-card { order: 5; }

  .projects-card { height: 560px; }

  .captures-card { height: 420px; }

  .materials-card { height: 400px; }

  .models-card { height: 700px; }

  .promo-card {
    min-height: 360px;
    padding: 0;
  }

  .archives-card {
    order: 6;
    height: 220px;
  }

  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .capture-recent-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capture-visual { height: 92px; }
  .material-swatch { height: auto; }

  .capture-folder-button { opacity: 1; }

  .models-layout {
    min-height: 0;
  }

  .latest-model { min-height: 340px; flex-basis: 340px; }
  .model-categories { grid-auto-rows: 116px; }

  .promo-content {
    width: 73%;
    padding: 24px 0 22px 22px;
  }

  .promo-card h2 { font-size: 21px; }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .modal-card {
    padding: 22px;
    border-radius: 24px;
  }

  .account-modal-card {
    width: 100%;
    height: 100dvh;
    padding: 22px 18px 16px;
    border-radius: 0;
  }

  .bento-browser-view { padding: 20px; }
  .bento-browser-nav { top: 14px; right: 14px; }
  .bento-browser-heading { padding-right: 72px; }
  .bento-browser-title { font-size: 19px; }

  .resource-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .project-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .card-heading h2 { font-size: 22px; }
  .modal-heading h2 { font-size: 18px; }

  .bento-browser-actions > button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .project-folder-tag { display: none; }

  .account-field-grid { grid-template-columns: 1fr; }
  .account-field--wide { grid-column: auto; }

  .promo-visual {
    right: -34px;
    width: 53%;
  }
}

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

/* Page-based workspace ---------------------------------------------------- */

.dashboard {
  width: calc(100% - 64px);
  max-width: 1280px;
  padding: 44px 0 104px;
}

.dashboard-intro {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 0 6px 42px;
}

.dashboard-intro h1 {
  color: var(--ink);
}

.workspace-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 18px rgba(40, 29, 43, 0.06);
  scrollbar-width: none;
  backdrop-filter: blur(22px) saturate(125%);
}

.workspace-tabs::-webkit-scrollbar { display: none; }

.workspace-tab {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill-radius);
  background: transparent;
  color: var(--slate);
  font-size: 12px;
  font-weight: 580;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.workspace-tab:hover {
  color: var(--ink);
}

.workspace-tab.is-active {
  background: var(--paper-solid);
  color: var(--ink);
  box-shadow: 0 2px 9px rgba(39, 29, 41, 0.09);
}

.workspace-tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(104, 101, 239, 0.16);
}

.workspace-pages {
  min-width: 0;
}

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

.workspace-page.is-active {
  animation: workspace-page-enter 280ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes workspace-page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.workspace-page-heading {
  min-height: 178px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0 0 34px;
  border-bottom: 1px solid rgba(48, 40, 49, 0.12);
}

.workspace-page-heading > div {
  max-width: 760px;
}

.workspace-eyebrow {
  margin: 0 0 10px;
  color: var(--slate);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.workspace-page-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 570;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.workspace-page-heading > div > p:last-child {
  max-width: 620px;
  margin: 15px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}

.workspace-primary-action {
  min-height: 46px;
  padding: 0 20px;
  margin-bottom: 2px;
  white-space: nowrap;
}

.workspace-section,
.workspace-module {
  min-width: 0;
  padding: 38px 0 0;
}

.workspace-section-heading,
.workspace-module > .card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  margin: 0 0 22px;
}

.workspace-section-heading h3,
.workspace-module > .card-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.workspace-section-heading .workspace-eyebrow,
.workspace-module > .card-heading .workspace-eyebrow {
  margin-bottom: 7px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid rgba(48, 40, 49, 0.18);
  background: transparent;
  color: var(--graphite);
  font-size: 11px;
  font-weight: 600;
}

.section-link:hover {
  border-color: var(--iris);
  color: var(--iris);
}

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

.recent-project-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.recent-project-preview {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(48, 40, 49, 0.07);
  border-radius: 16px;
  background: #eee9e8;
  box-shadow: 0 2px 8px rgba(31, 23, 31, 0.07);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}

.recent-project-card:hover .recent-project-preview,
.recent-project-card:focus-visible .recent-project-preview {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(35, 26, 36, 0.12);
}

.recent-project-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

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

.recent-project-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-project-copy small {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: var(--pill-radius);
  background: rgba(255, 255, 255, 0.46);
  color: var(--slate);
  font-size: 8px;
  font-weight: 600;
}

.recent-project-copy > span:last-child {
  color: var(--fog);
  font-size: 10px;
}

.home-secondary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  align-items: stretch;
  gap: 48px;
  margin-top: 46px;
  padding-top: 2px;
  border-top: 1px solid rgba(48, 40, 49, 0.12);
}

.home-captures-section {
  padding-top: 36px;
}

.home-capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
}

.home-capture-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.home-capture-card .capture-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.home-capture-card:hover .capture-visual,
.home-capture-card:focus-visible .capture-visual {
  transform: translateY(-3px);
  box-shadow: 0 9px 20px rgba(35, 26, 36, 0.12);
}

.home-capture-card > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-capture-card strong,
.home-capture-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-capture-card strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 610;
}

.home-capture-card small {
  color: var(--fog);
  font-size: 9px;
}

.home-promo {
  position: relative;
  min-height: 390px;
  align-self: stretch;
  margin-top: 36px;
  overflow: hidden;
  border-radius: 20px;
  background: #8a6e6a;
  color: white;
}

.home-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 21, 28, 0.66), transparent 58%);
  pointer-events: none;
}

.home-promo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 45% 54%;
}

.home-promo-copy {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 8px;
}

.home-promo-copy span {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-promo-copy strong {
  max-width: 280px;
  font-size: 23px;
  font-weight: 580;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.workspace-module.bento-card {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 46px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workspace-module.bento-card::after,
.workspace-module .bento-scroll-fade {
  display: none !important;
}

.workspace-module--archives {
  margin-top: 58px;
  border-top: 1px solid rgba(48, 40, 49, 0.12) !important;
}

.workspace-module > .folder-toolbar {
  z-index: auto;
  margin: 0 0 22px;
  overflow-x: auto;
}

.workspace-module > .project-list,
.workspace-module > .capture-library,
.workspace-module > .material-grid,
.workspace-module > .models-layout,
.workspace-module > .archive-list {
  min-height: 0;
  flex: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  scrollbar-gutter: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.workspace-module > .is-bento-root-hidden {
  display: none;
}

.projects-card .project-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.projects-card .project-row {
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.32);
}

.projects-card .project-open {
  grid-template-rows: minmax(0, 1fr) 72px;
}

.projects-card .project-copy {
  height: 72px;
  padding-top: 10px;
}

.project-list > .empty-card-state,
.material-grid > .empty-card-state {
  grid-column: 1 / -1;
}

.archives-card .archive-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.archives-card .empty-card-state {
  min-height: 130px;
  grid-column: 1 / -1;
}

.captures-card .capture-library {
  gap: 42px;
}

.captures-card .capture-section {
  gap: 15px;
}

.captures-card .capture-section-heading h3 {
  font-size: 13px;
}

.captures-card .capture-more-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 9px;
}

.captures-card .capture-recent-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.captures-card .capture-visual {
  height: auto;
  aspect-ratio: 16 / 10;
}

.captures-card .capture-open strong {
  font-size: 11px;
}

.captures-card .capture-project-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.captures-card .capture-project-stack {
  min-height: 78px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.captures-card .capture-stack-visual { height: 58px; }

.resource-library-layout {
  display: grid;
  gap: 68px;
}

.resource-library-layout > .workspace-module + .workspace-module {
  border-top: 1px solid rgba(48, 40, 49, 0.12);
}

.models-card .models-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  gap: 24px;
}

.models-card .latest-model {
  min-height: 440px;
  height: 440px;
  flex: none;
}

.models-card .model-categories {
  grid-auto-rows: minmax(96px, 1fr);
  gap: 12px;
}

.models-card .model-category {
  min-height: 96px;
}

.materials-card .material-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.materials-card .material-card {
  gap: 9px;
}

.materials-card .material-card strong {
  font-size: 10px;
}

.workspace-module .bento-browser-view {
  position: relative;
  inset: auto;
  min-height: 440px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.workspace-module .bento-browser-nav {
  top: 44px;
  right: 0;
}

.workspace-module .bento-browser-heading {
  min-height: 76px;
  padding: 0 84px 22px 0;
  border-bottom: 1px solid rgba(48, 40, 49, 0.12);
}

.workspace-module .bento-browser-parent-title {
  margin-bottom: 7px;
  font-size: 11px;
}

.workspace-module .bento-browser-title {
  font-size: clamp(24px, 3vw, 38px);
}

.workspace-module .bento-browser-content {
  min-height: 0;
  flex: none;
  margin: 0;
  padding: 28px 0 18px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.workspace-module .bento-browser-actions {
  padding: 18px 0 0;
}

.workspace-module .resource-overview {
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, .7fr);
  gap: 22px;
}

.workspace-module .resource-overview > .resource-hero,
.workspace-module .bento-browser-view .resource-hero,
.workspace-module.projects-card .bento-browser-view .resource-hero,
.workspace-module.captures-card .bento-browser-view .resource-hero {
  min-height: 340px;
}

.workspace-module .resource-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-module .resource-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-module .resource-object-list,
.workspace-module .inline-project-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-theme="dark"] .workspace-tabs {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(18, 16, 20, 0.4);
}

html[data-theme="dark"] .workspace-tab.is-active,
html[data-theme="dark"] .recent-project-copy small,
html[data-theme="dark"] .projects-card .project-row {
  background: rgba(33, 30, 35, 0.88);
}

html[data-theme="dark"] .workspace-page-heading,
html[data-theme="dark"] .home-secondary-layout,
html[data-theme="dark"] .workspace-module--archives,
html[data-theme="dark"] .resource-library-layout > .workspace-module + .workspace-module,
html[data-theme="dark"] .workspace-module .bento-browser-heading {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 980px) {
  .dashboard { width: calc(100% - 40px); }
  .workspace-page-heading { min-height: 150px; }
  .recent-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-secondary-layout { grid-template-columns: 1fr; gap: 0; }
  .home-promo { min-height: 340px; margin-top: 44px; }
  .projects-card .project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .captures-card .capture-recent-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .captures-card .capture-project-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models-card .models-layout { grid-template-columns: 1fr; }
  .models-card .model-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .materials-card .material-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .dashboard {
    width: calc(100% - 28px);
    padding: 34px 0 72px;
  }
  .dashboard-intro { gap: 24px; padding-bottom: 32px; }
  .workspace-tabs { width: 100%; justify-content: flex-start; }
  .workspace-tab { flex: 1 0 auto; padding: 0 14px; }
  .workspace-page-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 28px 0;
  }
  .workspace-page-heading h2 { font-size: 36px; }
  .workspace-primary-action { margin: 0; }
  .workspace-section,
  .workspace-module.bento-card { padding-top: 34px; }
  .workspace-section-heading,
  .workspace-module > .card-heading { align-items: flex-start; }
  .recent-project-grid { gap: 18px 12px; }
  .home-capture-grid { grid-template-columns: 1fr; }
  .home-promo { min-height: 320px; }
  .projects-card .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .captures-card .capture-recent-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .captures-card .capture-project-groups,
  .archives-card .archive-list { grid-template-columns: 1fr; }
  .models-card .model-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-card .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-module .resource-overview,
  .workspace-module .resource-object-list,
  .workspace-module .inline-project-picker { grid-template-columns: 1fr; }
  .workspace-module .resource-mini-grid,
  .workspace-module .resource-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-module .bento-browser-view { padding: 0; }
  .workspace-module .bento-browser-nav { top: 32px; right: 0; }
}

@media (max-width: 480px) {
  .dashboard-intro h1 { font-size: 34px; }
  .workspace-tab { min-height: 36px; padding: 0 12px; font-size: 11px; }
  .workspace-page-heading h2 { font-size: 32px; }
  .recent-project-grid,
  .projects-card .project-list { grid-template-columns: 1fr; }
  .recent-project-preview { aspect-ratio: 16 / 10; }
  .materials-card .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models-card .latest-model { min-height: 360px; height: 360px; }
  .workspace-module .bento-browser-heading { padding-right: 76px; }
}

/* First-viewport category density ---------------------------------------- */

.dashboard {
  padding-top: 24px;
  padding-bottom: 30px;
}

.dashboard-intro {
  gap: 16px;
  padding-bottom: 22px;
}

.dashboard-intro h1 {
  font-size: clamp(32px, 3vw, 40px);
}

.workspace-tabs {
  padding: 4px;
}

.workspace-tab {
  min-height: 36px;
  padding-right: 17px;
  padding-left: 17px;
}

.workspace-page > .workspace-module:first-child,
.resource-library-layout > .workspace-module,
.workspace-section {
  padding-top: 0;
}

.workspace-section-heading,
.workspace-module > .card-heading {
  min-height: 38px;
  margin-bottom: 12px;
}

.workspace-section-heading h3,
.workspace-module > .card-heading h2 {
  font-size: 22px;
}

.workspace-primary-action {
  min-height: 38px;
  padding: 0 16px;
  margin: 0;
}

.home-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  gap: 32px;
}

.home-library-stack {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 22px;
}

.home-captures-section {
  padding-top: 0;
}

.recent-project-grid,
.home-capture-grid {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5.15);
  grid-template-columns: none;
  gap: 12px;
  padding: 4px 34px 4px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
}

.recent-project-grid::-webkit-scrollbar,
.home-capture-grid::-webkit-scrollbar { display: none; }

.recent-project-card,
.home-capture-card {
  scroll-snap-align: start;
}

.recent-project-preview,
.home-capture-card .capture-visual {
  aspect-ratio: 16 / 10;
  border-radius: 13px;
}

.recent-project-card,
.home-capture-card {
  gap: 7px;
}

.recent-project-copy {
  gap: 5px;
}

.recent-project-copy > span:first-child {
  gap: 5px;
}

.recent-project-copy strong {
  font-size: 11px;
}

.recent-project-copy small {
  padding: 3px 5px;
  font-size: 7px;
}

.recent-project-copy > span:last-child,
.home-capture-card small {
  font-size: 8px;
}

.home-promo {
  min-height: 0;
  height: auto;
  align-self: stretch;
  margin: 0;
  border-radius: 18px;
}

.home-promo-copy {
  right: 20px;
  bottom: 20px;
  left: 20px;
}

.home-promo-copy strong {
  font-size: 21px;
}

.workspace-module.bento-card {
  padding-top: 0;
}

.workspace-module > .folder-toolbar {
  margin-bottom: 10px;
}

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

.projects-card .project-row {
  aspect-ratio: 4 / 3;
  padding: 7px;
  border-radius: 15px;
}

.projects-card .project-open {
  grid-template-rows: minmax(0, 1fr) 48px;
}

.projects-card .project-copy {
  height: 48px;
  padding: 7px 2px 0;
}

.projects-card .project-copy strong {
  font-size: 10px;
  -webkit-line-clamp: 1;
}

.projects-card .project-copy p {
  margin-top: 4px;
  font-size: 7px;
}

.projects-card .project-folder-tag {
  top: 9px;
  bottom: auto;
  left: 9px;
  max-width: calc(100% - 44px);
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  font-size: 7px;
}

.projects-card .project-actions {
  top: 9px;
  right: 9px;
}

.projects-card .more-button {
  width: 27px;
  height: 27px;
}

.workspace-module--archives {
  margin-top: 20px;
  padding-top: 14px !important;
}

.archives-card .archive-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.archives-card .archive-row {
  padding: 8px 10px;
}

.archives-card .empty-card-state {
  min-height: 72px;
  padding: 12px;
}

.captures-card .capture-library {
  gap: 18px;
}

.captures-card .capture-section {
  gap: 8px;
}

.captures-card .capture-recent-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.captures-card .capture-visual {
  aspect-ratio: 16 / 9;
}

.captures-card .capture-open {
  gap: 5px;
}

.captures-card .capture-open strong {
  font-size: 9px;
}

.captures-card .capture-project-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.captures-card .capture-project-stack {
  min-height: 64px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 6px 9px 6px 7px;
}

.captures-card .capture-stack-visual {
  height: 46px;
}

.resource-library-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(400px, .8fr);
  align-items: start;
  gap: 30px;
}

.resource-library-layout > .workspace-module + .workspace-module {
  padding-top: 0;
  padding-left: 30px;
  border-top: 0;
  border-left: 1px solid rgba(48, 40, 49, 0.12);
}

.models-card .models-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 14px;
}

.models-card .latest-model {
  min-height: 438px;
  height: 438px;
}

.models-card .model-categories {
  grid-auto-rows: 101px;
  gap: 10px;
}

.models-card .model-category {
  min-height: 0;
  gap: 7px;
  padding: 10px;
  border-radius: 13px;
}

.models-card .model-category-icon {
  width: 30px;
  height: 30px;
}

.materials-card .material-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.materials-card .material-card {
  gap: 5px;
}

.materials-card .material-card strong {
  font-size: 8px;
}

html[data-theme="dark"] .resource-library-layout > .workspace-module + .workspace-module {
  border-left-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .home-content-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }
  .recent-project-grid,
  .home-capture-grid {
    grid-auto-columns: calc((100% - 36px) / 4.15);
  }
  .projects-card .project-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .captures-card .capture-recent-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .resource-library-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    gap: 22px;
  }
  .resource-library-layout > .workspace-module + .workspace-module { padding-left: 22px; }
  .models-card .models-layout { grid-template-columns: 1fr; }
  .models-card .latest-model { min-height: 240px; height: 240px; }
  .models-card .model-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 82px;
  }
}

@media (max-width: 760px) {
  .dashboard { padding-top: 32px; padding-bottom: 64px; }
  .dashboard-intro { gap: 22px; padding-bottom: 30px; }
  .home-content-layout { grid-template-columns: 1fr; }
  .home-library-stack { gap: 30px; }
  .home-promo { min-height: 320px; }
  .recent-project-grid,
  .home-capture-grid { grid-auto-columns: minmax(152px, 44%); }
  .projects-card .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .captures-card .capture-recent-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 42%);
    grid-template-columns: none;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .captures-card .capture-project-groups { grid-template-columns: 1fr; }
  .resource-library-layout { grid-template-columns: 1fr; gap: 42px; }
  .resource-library-layout > .workspace-module + .workspace-module {
    padding-top: 36px;
    padding-left: 0;
    border-top: 1px solid rgba(48, 40, 49, 0.12);
    border-left: 0;
  }
  .materials-card .material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Sidebar navigation and adaptive media cards ---------------------------- */

:root {
  --workspace-gutter: 32px;
  --workspace-sidebar-width: 196px;
  --workspace-column-gap: 28px;
}

.topbar {
  padding-right: var(--workspace-gutter);
  padding-left: var(--workspace-gutter);
}

.dashboard {
  width: 100%;
  max-width: none;
  height: calc(100dvh - 64px);
  min-height: 620px;
  display: grid;
  grid-template-columns: var(--workspace-sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: var(--workspace-column-gap);
  margin: 0;
  padding: 20px var(--workspace-gutter) 24px;
}

.dashboard-intro {
  grid-column: 1;
  grid-row: 1;
  display: block;
  min-width: 0;
  padding: 0;
}

.workspace-tabs {
  width: 100%;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workspace-tab {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  text-align: left;
}

.workspace-tab.is-active {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 5px 18px rgba(39, 29, 41, 0.07);
  backdrop-filter: blur(18px) saturate(120%);
}

.workspace-tab-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--slate);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.workspace-tab.is-active .workspace-tab-icon {
  background: var(--lavender);
  color: var(--iris);
}

.workspace-pages {
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-column: 2;
  grid-row: 1;
}

.workspace-page {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.home-content-layout {
  --home-promo-width: clamp(340px, 31%, 430px);
  position: relative;
  height: 100%;
  display: block;
}

.home-library-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-files-section,
.home-captures-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.home-files-section .workspace-section-heading,
.home-captures-section .workspace-section-heading {
  flex: 0 0 38px;
  padding-right: calc(var(--home-promo-width) + 22px);
}

.recent-project-grid,
.home-capture-grid {
  width: 100%;
  min-height: 0;
  height: 100%;
  flex: 1;
  grid-auto-columns: clamp(240px, 25%, 310px);
  align-items: stretch;
  gap: 14px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-mask-image: none;
  mask-image: none;
}

.recent-project-card,
.home-capture-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 38px;
  gap: 8px;
}

.recent-project-preview,
.home-capture-card .capture-visual {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.recent-project-copy,
.home-capture-card > span:last-child {
  align-content: start;
}

.home-promo {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--home-promo-width);
  height: 100%;
  min-height: 0;
  margin: 0;
  box-shadow: -26px 0 42px rgba(43, 31, 43, 0.14);
}

.home-promo::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: -34px;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(45, 32, 43, 0.2));
  pointer-events: none;
}

.projects-card .project-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.projects-card .project-row {
  aspect-ratio: 4 / 3;
}

.captures-card .capture-recent-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4.2);
  grid-template-columns: none;
  gap: 14px;
  padding: 2px 28px 6px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
}

.captures-card .capture-recent-row::-webkit-scrollbar { display: none; }

.captures-card .capture-visual {
  aspect-ratio: 16 / 10;
}

html[data-theme="dark"] .workspace-tab.is-active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(30, 27, 33, 0.82);
}

html[data-theme="dark"] .workspace-tab-icon {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1000px) {
  :root {
    --workspace-gutter: 24px;
    --workspace-sidebar-width: 168px;
    --workspace-column-gap: 20px;
  }
  .workspace-tab { padding: 0 11px; }
  .home-content-layout { --home-promo-width: clamp(270px, 32%, 340px); }
  .recent-project-grid,
  .home-capture-grid { grid-auto-columns: clamp(210px, 30%, 270px); }
  .projects-card .project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .captures-card .capture-recent-row { grid-auto-columns: calc((100% - 28px) / 3.2); }
}

@media (max-width: 760px) {
  :root { --workspace-gutter: 14px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .dashboard {
    width: calc(100% - 28px);
    height: auto;
    min-height: calc(100dvh - 64px);
    display: block;
    margin: 0 auto;
    padding: 28px 0 64px;
  }
  .dashboard-intro { margin-bottom: 28px; }
  .workspace-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--pill-radius);
    background: rgba(255, 255, 255, 0.4);
  }
  .workspace-tab {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    flex: 1 0 auto;
    justify-content: center;
    padding: 0 12px;
  }
  .workspace-tab-icon { width: 21px; height: 21px; font-size: 15px; }
  .workspace-pages,
  .workspace-page { height: auto; }
  .home-content-layout { height: auto; display: grid; }
  .home-library-stack {
    height: auto;
    grid-template-rows: none;
    gap: 30px;
  }
  .home-files-section,
  .home-captures-section { min-height: 260px; }
  .home-files-section .workspace-section-heading,
  .home-captures-section .workspace-section-heading { padding-right: 0; }
  .recent-project-grid,
  .home-capture-grid {
    grid-auto-columns: minmax(190px, 64%);
    min-height: 210px;
  }
  .home-promo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 340px;
    margin-top: 30px;
  }
  .home-promo::before { display: none; }
  .projects-card .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .captures-card .capture-recent-row { grid-auto-columns: minmax(180px, 58%); }
}

/* Unified compact rail and card consistency ------------------------------ */

@media (min-width: 761px) {
  :root {
    --workspace-sidebar-width: 82px;
    --workspace-column-gap: 24px;
  }

  .workspace-tabs {
    width: 72px;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0 7px 24px rgba(39, 29, 41, 0.06);
    backdrop-filter: blur(20px) saturate(120%);
  }

  .workspace-tab {
    width: 60px;
    min-height: 62px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px 3px;
    border-radius: 15px;
    font-size: 8px;
    line-height: 1;
    text-align: center;
  }

  .workspace-tab-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 17px;
  }

  .workspace-tab > span:last-child {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.home-content-layout {
  height: 100%;
  display: block;
}

.home-library-stack {
  height: 100%;
  grid-template-rows: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.home-promo {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  box-shadow: none;
}

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

.home-files-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.home-files-section .workspace-section-heading {
  flex: 0 0 38px;
  padding-right: 0;
}

.recent-project-grid {
  width: 100%;
  min-height: 0;
  height: 100%;
  flex: 1;
  grid-auto-columns: clamp(250px, 24%, 330px);
  padding-right: 34px;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
}

.projects-card .project-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.projects-card .project-row {
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.projects-card .project-open {
  height: auto;
  display: grid;
  grid-template-rows: auto 48px;
}

.projects-card .project-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}

.projects-card .project-row:hover .project-thumb,
.projects-card .project-open:focus-visible .project-thumb {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(35, 26, 36, 0.12);
}

.projects-card .project-copy {
  height: 48px;
  padding: 8px 2px 0;
}

.projects-card .project-copy strong {
  font-size: 11px;
}

.projects-card .project-copy p {
  margin-top: 5px;
  font-size: 8px;
}

.folder-chip--add,
.folder-chip--editor {
  margin-left: 0;
}

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

.captures-card .capture-project-stack {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 36px;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
}

.captures-card .capture-stack-visual {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.captures-card .capture-stack-layer {
  inset: 7% 11% 7% 5%;
  border-radius: 13px;
}

.captures-card .capture-stack-copy {
  min-width: 0;
  align-self: end;
}

.captures-card .capture-stack-copy strong {
  font-size: 10px;
}

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

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

@media (max-width: 1000px) and (min-width: 761px) {
  :root { --workspace-sidebar-width: 74px; --workspace-column-gap: 18px; }
  .workspace-tabs { width: 68px; }
  .workspace-tab { width: 56px; }
  .projects-card .project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .captures-card .capture-project-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-library-stack {
    height: auto;
    grid-template-rows: 320px auto;
  }
  .home-promo { height: 320px; margin: 0; }
  .projects-card .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .captures-card .capture-project-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Spaice editor identity ------------------------------------------------- */

:root {
  --spaice-ui-surface: rgba(233, 233, 233, 0.8);
  --spaice-ui-surface-solid: #e9e9e9;
  --spaice-ui-foreground: #060c0f;
  --spaice-ui-muted: rgba(6, 12, 15, 0.58);
  --spaice-ui-subtle: rgba(6, 12, 15, 0.4);
  --spaice-ui-border: rgba(84, 84, 84, 0.2);
  --spaice-ui-control: rgba(6, 12, 15, 0.1);
  --spaice-ui-hover: rgba(6, 12, 15, 0.06);
  --spaice-ui-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  --spaice-ui-accent: #f15a24;
  --spaice-ui-selection: #fd5503;
  --spaice-ui-accent-shadow: 0 2px 6px rgba(241, 90, 36, 0.35);
  --spaice-ui-danger: #c8444e;
  --spaice-radius-control: 4px;
  --spaice-radius-item: 6px;
  --spaice-radius-card: 8px;
  --spaice-radius-shell: 12px;
}

html[data-theme="dark"] {
  --spaice-ui-surface: rgba(6, 12, 15, 0.8);
  --spaice-ui-surface-solid: #060c0f;
  --spaice-ui-foreground: #fff;
  --spaice-ui-muted: rgba(255, 255, 255, 0.62);
  --spaice-ui-subtle: rgba(255, 255, 255, 0.42);
  --spaice-ui-border: rgba(255, 255, 255, 0.2);
  --spaice-ui-control: rgba(255, 255, 255, 0.1);
  --spaice-ui-hover: rgba(255, 255, 255, 0.07);
  --spaice-ui-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* The rail keeps its position and dimensions, but uses the editor shell. */
.workspace-tabs,
html[data-theme="dark"] .workspace-tabs {
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-shell);
  background: var(--spaice-ui-surface);
  box-shadow: var(--spaice-ui-shadow);
  backdrop-filter: blur(60px) saturate(110%);
}

.workspace-tab {
  border-radius: var(--spaice-radius-item);
  color: var(--spaice-ui-muted);
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0.01em;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.workspace-tab:hover {
  background: var(--spaice-ui-hover);
  color: var(--spaice-ui-foreground);
}

.workspace-tab.is-active,
html[data-theme="dark"] .workspace-tab.is-active {
  border-color: transparent;
  background: var(--spaice-ui-accent);
  color: #fff;
  box-shadow: var(--spaice-ui-accent-shadow);
}

.workspace-tab-icon,
html[data-theme="dark"] .workspace-tab-icon,
.workspace-tab.is-active .workspace-tab-icon {
  border-radius: var(--spaice-radius-item);
  background: transparent;
  color: currentColor;
}

.workspace-tab-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.workspace-tab:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--spaice-ui-selection);
  outline-offset: 2px;
  box-shadow: none;
}

/* Dense type hierarchy from the editor panels. */
.workspace-section-heading,
.workspace-module > .card-heading {
  align-items: center;
  gap: 16px;
  min-height: 32px;
  margin-bottom: 12px;
}

.workspace-section-heading h3,
.workspace-module > .card-heading h2,
.card-heading h2 {
  color: var(--spaice-ui-foreground);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card-subtitle,
.workspace-eyebrow,
.quiet-count,
.capture-section-heading span,
.recent-project-copy > span:last-child,
.project-copy p,
.capture-open > span:last-child,
.material-card strong,
.model-category span,
.archive-row p,
.resource-section-heading span {
  color: var(--spaice-ui-muted);
}

.section-link {
  min-height: 32px;
  padding: 0 2px;
  border: 0;
  color: var(--spaice-ui-muted);
  font-size: 11px;
  font-weight: 560;
}

.section-link:hover {
  border-color: transparent;
  color: var(--spaice-ui-accent);
}

/* Compact controls. Pills remain reserved for navigation and filters. */
.pill-button,
.text-pill,
.icon-pill,
.more-button,
.archive-action,
.bento-browser-nav button,
.inline-title-edit-button,
.resource-object-open-icon {
  min-height: 32px;
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-item);
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-foreground);
  box-shadow: none;
}

.pill-button,
.text-pill {
  height: 32px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
}

.icon-pill,
.more-button,
.archive-action,
.bento-browser-nav button,
.inline-title-edit-button,
.resource-object-open-icon {
  width: 32px;
  height: 32px;
  padding: 0;
}

.pill-button:hover,
.text-pill:hover,
.icon-pill:hover,
.more-button:hover,
.archive-action:hover,
.bento-browser-nav button:hover:not(:disabled),
.inline-title-edit-button:hover,
.inline-title-edit-button:focus-visible {
  transform: none;
  border-color: var(--spaice-ui-border);
  background: var(--spaice-ui-hover);
  color: var(--spaice-ui-foreground);
}

.pill-button--accent,
.pill-button--accent:hover {
  border-color: var(--spaice-ui-accent);
  background: var(--spaice-ui-accent);
  color: #fff;
  box-shadow: var(--spaice-ui-accent-shadow);
}

.workspace-primary-action {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
}

.folder-toolbar {
  gap: 4px;
}

.folder-chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-muted);
  font-size: 10px;
  font-weight: 560;
}

.folder-chip:hover {
  transform: none;
  border-color: var(--spaice-ui-border);
  background: var(--spaice-ui-hover);
  color: var(--spaice-ui-foreground);
}

.folder-chip.is-active {
  border-color: var(--spaice-ui-accent);
  background: var(--spaice-ui-accent);
  color: #fff;
  box-shadow: var(--spaice-ui-accent-shadow);
}

.folder-chip--add {
  width: 28px;
  border-color: var(--spaice-ui-border);
  border-radius: 50%;
  background: var(--spaice-ui-control);
}

.folder-chip--editor {
  border-color: var(--spaice-ui-accent);
  background: var(--spaice-ui-surface);
  box-shadow: 0 0 0 2px rgba(241, 90, 36, 0.14);
}

.folder-chip--editor button {
  border-radius: var(--spaice-radius-control);
  background: var(--spaice-ui-accent);
  color: #fff;
}

/* Content cards stay large; their treatment becomes quieter and technical. */
.recent-project-card,
.projects-card .project-row,
.capture-card,
.material-card,
.resource-mini-card,
.resource-object-row {
  border-radius: var(--spaice-radius-card);
}

.recent-project-preview,
.projects-card .project-thumb,
.capture-visual,
.home-capture-card .capture-visual,
.material-swatch,
.resource-object-preview,
.resource-hero,
.resource-material-hero,
.inline-project-preview {
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-item);
  box-shadow: none;
}

.recent-project-card:hover .recent-project-preview,
.recent-project-card:focus-visible .recent-project-preview,
.projects-card .project-row:hover .project-thumb,
.projects-card .project-open:focus-visible .project-thumb,
.capture-open:hover .capture-visual,
.capture-open:focus-visible .capture-visual,
.material-card:hover .material-swatch,
.material-card:focus-visible .material-swatch,
.resource-mini-card:hover .capture-visual,
.resource-mini-card:focus-visible .capture-visual,
.resource-object-row:hover .resource-object-preview,
.resource-object-row:focus-visible .resource-object-preview {
  transform: none;
  border-color: var(--spaice-ui-selection);
  box-shadow: 0 0 0 1px var(--spaice-ui-selection);
}

.recent-project-card:focus-visible,
.projects-card .project-open:focus-visible,
.capture-open:focus-visible,
.material-card:focus-visible,
.resource-mini-card:focus-visible,
.resource-object-row:focus-visible {
  outline: 0;
}

.recent-project-card,
.projects-card .project-row,
.capture-card,
.material-card {
  animation-duration: 180ms;
}

.recent-project-copy {
  gap: 4px;
}

.recent-project-copy strong,
.project-copy strong,
.capture-open strong,
.capture-stack-copy strong,
.material-card strong,
.model-category strong,
.archive-row strong,
.resource-mini-card strong,
.resource-object-caption strong {
  color: var(--spaice-ui-foreground);
  font-size: 11px;
  font-weight: 600;
}

.recent-project-copy small,
.project-folder-tag,
.model-stage-badge,
.model-interaction-hint,
.model-format,
.resource-chip {
  border: 1px solid var(--spaice-ui-border);
  background: var(--spaice-ui-surface);
  color: var(--spaice-ui-muted);
  box-shadow: none;
  backdrop-filter: blur(60px);
}

.recent-project-copy small,
.project-folder-tag,
.model-stage-badge,
.model-interaction-hint,
.model-format,
.resource-chip {
  border-radius: 999px;
}

.project-folder-tag {
  font-weight: 560;
}

.capture-more-button {
  min-height: 28px;
  border: 1px solid var(--spaice-ui-border);
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-muted);
}

.capture-more-button:hover {
  border-color: var(--spaice-ui-border);
  background: var(--spaice-ui-hover);
  color: var(--spaice-ui-foreground);
}

.captures-card .capture-project-stack,
.model-category,
.archive-row,
.resource-stat,
.resource-generation,
.resource-category-card,
.inline-project-choice,
html[data-theme="dark"] .captures-card .capture-project-stack,
html[data-theme="dark"] .model-category,
html[data-theme="dark"] .archive-row,
html[data-theme="dark"] .resource-stat,
html[data-theme="dark"] .resource-generation,
html[data-theme="dark"] .resource-category-card,
html[data-theme="dark"] .inline-project-choice {
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-card);
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-foreground);
  box-shadow: none;
}

.captures-card .capture-project-stack:hover,
.model-category:hover,
.archive-row:hover,
.resource-category-card:hover,
.resource-category-card:focus-visible,
.inline-project-choice:hover,
.inline-project-choice:focus-visible,
html[data-theme="dark"] .captures-card .capture-project-stack:hover,
html[data-theme="dark"] .model-category:hover,
html[data-theme="dark"] .resource-category-card:hover,
html[data-theme="dark"] .inline-project-choice:hover {
  transform: none;
  border-color: var(--spaice-ui-border);
  background: var(--spaice-ui-hover);
}

.captures-card .capture-stack-layer {
  border-color: var(--spaice-ui-border);
  border-radius: var(--spaice-radius-item);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.home-promo,
.latest-model {
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-card);
  box-shadow: none;
}

.home-promo-copy {
  right: 16px;
  bottom: 16px;
  left: 16px;
  gap: 6px;
}

.home-promo-copy span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-promo-copy strong {
  max-width: 360px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.latest-model {
  overflow: hidden;
}

.model-meta {
  min-height: 56px;
  padding: 8px 12px;
  border-top: 1px solid var(--spaice-ui-border);
  background: var(--spaice-ui-surface);
  color: var(--spaice-ui-foreground);
  backdrop-filter: blur(60px);
}

.model-meta strong {
  color: var(--spaice-ui-foreground);
  font-size: 12px;
}

.model-meta span {
  color: var(--spaice-ui-muted);
}

.model-category {
  padding: 10px;
}

.model-category-icon,
html[data-theme="dark"] .model-category-icon,
.material-import-icon,
html[data-theme="dark"] .material-import-icon {
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-item);
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-muted);
  box-shadow: none;
}

.workspace-module--archives {
  border-color: var(--spaice-ui-border) !important;
}

.archive-open:hover strong,
.archive-open:focus-visible strong {
  color: var(--spaice-ui-accent);
}

.archive-action--danger:hover {
  border-color: rgba(200, 68, 78, 0.35);
  background: rgba(200, 68, 78, 0.1);
  color: var(--spaice-ui-danger);
}

/* Detail views follow the editor's panel and field language. */
.workspace-module .bento-browser-heading {
  min-height: 56px;
  padding-bottom: 12px;
  border-color: var(--spaice-ui-border);
}

.workspace-module .bento-browser-parent-title {
  margin-bottom: 4px;
  color: var(--spaice-ui-muted);
  font-size: 10px;
  font-weight: 560;
}

.workspace-module .bento-browser-title {
  color: var(--spaice-ui-foreground);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bento-browser-title-tag {
  min-height: 22px;
  border: 1px solid var(--spaice-ui-border);
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-muted);
}

.workspace-module .bento-browser-nav,
html[data-theme="dark"] .workspace-module .bento-browser-nav {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-card);
  background: var(--spaice-ui-surface);
  box-shadow: var(--spaice-ui-shadow);
  backdrop-filter: blur(60px);
}

.workspace-module .bento-browser-content {
  padding-top: 20px;
}

.workspace-module .bento-browser-actions {
  border-color: var(--spaice-ui-border);
}

.resource-overview-panel {
  gap: 8px;
}

.resource-stat,
.resource-generation {
  padding: 8px 10px;
}

.resource-stat span,
.resource-generation span,
.resource-note-field > span {
  color: var(--spaice-ui-muted);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
}

.resource-stat strong,
.resource-generation strong {
  color: var(--spaice-ui-foreground);
  font-size: 11px;
  font-weight: 600;
}

.resource-generation time,
.resource-lead {
  color: var(--spaice-ui-muted);
}

.resource-note-field input,
.inline-title-form input,
.field input,
.field select,
.account-modal-card .field input,
.account-modal-card .field select,
html[data-theme="dark"] .resource-note-field input,
html[data-theme="dark"] .inline-title-form input,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .account-modal-card .field input,
html[data-theme="dark"] .account-modal-card .field select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-control);
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-foreground);
  font-size: 11px;
  box-shadow: none;
}

.resource-note-field input:focus,
.inline-title-form input:focus,
.field input:focus,
.field select:focus,
.account-modal-card .field input:focus,
.account-modal-card .field select:focus,
html[data-theme="dark"] .resource-note-field input:focus,
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus {
  border-color: var(--spaice-ui-selection);
  background: var(--spaice-ui-control);
  box-shadow: 0 0 0 2px rgba(253, 85, 3, 0.14);
  transform: none;
}

.field > span {
  color: var(--spaice-ui-muted);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0;
}

.material-import-zone,
html[data-theme="dark"] .material-import-zone {
  border: 1px dashed var(--spaice-ui-border);
  border-radius: var(--spaice-radius-card);
  background: var(--spaice-ui-control);
  color: var(--spaice-ui-muted);
}

/* Dialogs and account drawer use the same single-surface hierarchy. */
.modal-backdrop {
  background: rgba(6, 12, 15, 0.28);
  backdrop-filter: blur(12px);
}

.modal-card,
html[data-theme="dark"] .modal-card {
  padding: 20px;
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-shell);
  background: var(--spaice-ui-surface);
  color: var(--spaice-ui-foreground);
  box-shadow: var(--spaice-ui-shadow);
  backdrop-filter: blur(80px) saturate(110%);
}

.modal-heading {
  margin-bottom: 16px;
}

.modal-heading h2 {
  color: var(--spaice-ui-foreground);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tracked-label,
.modal-copy,
.account-description,
.account-section-heading p,
.profile-photo-row > div span,
.security-toggle small {
  color: var(--spaice-ui-muted);
}

.tracked-label {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.account-modal-card,
html[data-theme="dark"] .account-modal-card {
  padding: 20px 18px 16px;
  border: 0;
  border-left: 1px solid var(--spaice-ui-border);
  border-radius: 0;
  background: var(--spaice-ui-surface);
  box-shadow: var(--spaice-ui-shadow);
  backdrop-filter: blur(80px) saturate(110%);
}

.account-heading,
.account-section,
.account-actions,
.security-toggle {
  border-color: var(--spaice-ui-border);
}

.account-section-heading h3,
.profile-photo-row > div strong,
.security-toggle strong,
.plan-summary div > strong {
  color: var(--spaice-ui-foreground);
}

.account-section-heading h3 {
  font-size: 14px;
  font-weight: 650;
}

.theme-options {
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-card);
  background: var(--spaice-ui-control);
}

.theme-options span {
  min-height: 32px;
  border-radius: var(--spaice-radius-control);
  color: var(--spaice-ui-muted);
}

.theme-options input:checked + span,
html[data-theme="dark"] .account-modal-card .theme-options input:checked + span {
  background: var(--spaice-ui-accent);
  color: #fff;
  box-shadow: var(--spaice-ui-accent-shadow);
}

.security-toggle input {
  accent-color: var(--spaice-ui-accent);
}

.modal-submit--danger,
.modal-submit--danger:hover {
  border-color: rgba(200, 68, 78, 0.45);
  background: var(--spaice-ui-danger);
  color: #fff;
  box-shadow: none;
}

.item-menu,
html[data-theme="dark"] .item-menu {
  padding: 4px;
  border: 1px solid var(--spaice-ui-border);
  border-radius: var(--spaice-radius-card);
  background: var(--spaice-ui-surface);
  color: var(--spaice-ui-foreground);
  box-shadow: var(--spaice-ui-shadow);
  backdrop-filter: blur(60px);
}

.item-menu button {
  min-height: 32px;
  border-radius: var(--spaice-radius-control);
  color: var(--spaice-ui-foreground);
  font-size: 11px;
}

.item-menu button:hover {
  background: var(--spaice-ui-hover);
  color: var(--spaice-ui-foreground);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--spaice-radius-card);
  background: rgba(6, 12, 15, 0.9);
  box-shadow: var(--spaice-ui-shadow);
  backdrop-filter: blur(60px);
}

@media (max-width: 760px) {
  .workspace-tabs,
  html[data-theme="dark"] .workspace-tabs {
    border-radius: var(--spaice-radius-shell);
  }

  .workspace-tab {
    border-radius: var(--spaice-radius-item);
  }

  .workspace-tab-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Full-height category sidebar ------------------------------------------ */

@media (min-width: 761px) {
  :root {
    --workspace-sidebar-width: 124px;
    --workspace-column-gap: 24px;
  }

  .dashboard {
    padding: 0 var(--workspace-gutter) 0 0;
  }

  .dashboard-intro {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 18px 10px;
    border-right: 1px solid rgba(84, 84, 84, 0.12);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
    text-align: left;
    backdrop-filter: blur(24px) saturate(110%);
  }

  html[data-theme="dark"] .dashboard-intro {
    border-right-color: rgba(255, 255, 255, 0.1);
    background: rgba(23, 21, 24, 0.72);
  }

  .workspace-tabs,
  html[data-theme="dark"] .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;
  }

  .workspace-tab {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 0 9px;
    border: 0;
    border-radius: var(--spaice-radius-item);
    background: transparent;
    color: var(--spaice-ui-muted);
    font-size: 11px;
    font-weight: 560;
    line-height: 1.2;
    text-align: left;
  }

  .workspace-tab:hover {
    background: var(--spaice-ui-hover);
  }

  .workspace-tab.is-active,
  html[data-theme="dark"] .workspace-tab.is-active {
    border: 0;
    background: var(--spaice-ui-control);
    color: var(--spaice-ui-foreground);
    box-shadow: none;
  }

  .workspace-tab.is-active::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 2px;
    border-radius: 2px;
    background: var(--spaice-ui-accent);
  }

  .workspace-tab-icon,
  html[data-theme="dark"] .workspace-tab-icon,
  .workspace-tab.is-active .workspace-tab-icon {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: transparent;
    color: currentColor;
  }

  .workspace-tab-icon svg {
    width: 20px;
    height: 20px;
  }

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

  .workspace-pages {
    min-height: 0;
    padding: 20px 0 24px;
  }
}
