/* The original, locally preserved stylesheets provide typography, color,
   breakpoints, spacing, icons, gradients and surfaces. This file only makes
   the captured presentation deterministic without the original application. */
html:not([data-redesign]) *,
html:not([data-redesign]) *::before,
html:not([data-redesign]) *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* The original horizontal banner is shown at its initial slide. */
[data-feed-banner-cell] [class*="snap-x"] {
  scrollbar-width: none;
}

/* Controls are visual only in this first implementation. */
html {
  color-scheme: dark;
}

/* Logged-in Meshy uses the compact 64px rail. The page content already has
   the original --sidebar-w padding hooks; the runtime sets that variable. */
.logged-in-replica main > header {
  display: none !important;
}

.logged-sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 64px;
  overflow: hidden;
  color: #dedede;
  background: transparent;
}

.replica-rail-surface { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: rgba(14, 14, 14, .20); }

.replica-rail-logo {
  display: flex;
  width: 64px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.replica-rail-logo-svg,
.replica-rail-logo > svg { width: 28px !important; height: 28px !important; display: block; }
.replica-rail-scroll { display: flex; min-height: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; overflow: hidden auto; padding: 0 6px; }
.replica-rail-group { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.replica-rail-separator { width: 12px; height: 2px; flex: none; margin: 12px 0; border-radius: 99px; background: rgba(255,255,255,.16); }
.replica-rail-entry { box-sizing: border-box; display: flex; width: 52px; height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; border-radius: 12px; color: #dedede; background: transparent; font: 500 8px/1.3 var(--font-barlow, Barlow), sans-serif; text-decoration: none; cursor: default; }
.replica-rail-entry:hover { color: #c7ff4f; background: rgba(199,255,79,.07); }
.replica-rail-entry.active { color: #dedede; background: transparent; }
.replica-rail-icon { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.replica-rail-icon svg { display: block; width: 100%; height: 100%; }
.replica-rail-label { max-width: 52px; text-align: center; }
.replica-rail-bottom { display: flex; flex: none; width: 100%; height: 190px; box-sizing: border-box; flex-direction: column; align-items: center; padding: 0 6px 16px; }
.replica-rail-actions { gap: 6px; }
.replica-rail-action { position: relative; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 6px; border: 0; border-radius: 8px; color: #dedede; background: transparent; }
.replica-rail-action svg { width: 20px; height: 20px; }
.replica-rail-action i { position: absolute; top: 1px; right: 0; width: 6px; height: 6px; border-radius: 50%; background: #c7ff4f; }
.replica-credit { display: flex; width: 52px; flex-direction: column; align-items: center; gap: 6px; margin-top: 2px; }
.replica-credit-line { display: flex; height: 15px; align-items: center; gap: 2px; color: #f9e855; font: 600 11px/1 var(--font-barlow, Barlow), sans-serif; }
.replica-credit-line svg { width: 12px; height: 12px; }
.replica-credit button { width: 52px; height: 18px; padding: 0; border: 0; border-radius: 99px; color: #171717; background: linear-gradient(#f9e855,#e99430); font: 600 10px/18px var(--font-barlow, Barlow), sans-serif; }
.replica-avatar { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; margin-top: 14px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.replica-avatar img { width: 28px; height: 28px; border: .5px solid rgba(255,255,255,.16); border-radius: 50%; object-fit: cover; }

/* Meshy's create entry uses the same filled gradient mask as the logged-in rail. */
.replica-create-mark {
  display: block;
  width: 20px;
  height: 20px;
  background: linear-gradient(to bottom, #d2ff6f, #b3ff1d);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4.929 4.929a10 10 0 1 1 14.141 14.141a10 10 0 0 1 -14.14 -14.14zm8.071 4.071a1 1 0 1 0 -2 0v2h-2a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 1 0 1 0 0 -2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4.929 4.929a10 10 0 1 1 14.141 14.141a10 10 0 0 1 -14.14 -14.14zm8.071 4.071a1 1 0 1 0 -2 0v2h-2a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 1 0 1 0 0 -2h-2v-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.replica-logged-title-wrap { position: relative; z-index: 1; display: flex !important; max-width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.replica-greeting { max-width: min(100%, 22rem); min-width: 0; flex-shrink: 0; overflow: hidden; color: #cffff7; font-size: 28px; font-weight: 500; line-height: 36px; text-overflow: ellipsis; white-space: nowrap; }
.logged-in-replica #modal-root { display: none !important; }
.logged-in-replica [data-replica-generate] { width: 140px !important; height: 36px !important; min-height: 36px !important; padding: 0 16px !important; border: 1px solid rgba(255,255,255,.06) !important; color: rgba(255,255,255,.28) !important; background: #202020 !important; box-shadow: none !important; }
.logged-in-replica [data-replica-generate] > span[aria-hidden="true"] { opacity: 0 !important; }
.logged-in-replica [data-replica-generate] > span[aria-hidden="true"].inline-flex { display: none !important; }

@media (max-width: 767px) {
  .logged-sidebar { display: none; }
  .replica-greeting { max-width: 100%; font-size: 1.25rem; line-height: 1.75rem; }
  .replica-logged-title-wrap { gap: 4px; }
}

/* Logged-in Agent home. The dimensions mirror the workspace route at the
   captured desktop viewport; the content remains fluid below that width. */
.agent-home-body { margin: 0; overflow: hidden; color: #dedede; background: #0e0e0e; font-family: var(--font-barlow, Barlow), sans-serif; }
.agent-replica-root { position: relative; display: flex; width: 100vw; height: 100dvh; min-height: 640px; flex-direction: column; padding-top: 8px; overflow: hidden; background: #0e0e0e; }
.agent-replica-bg { position: fixed; z-index: 0; inset: 0; pointer-events: none; background-color: #0e0e0e; background-image: radial-gradient(70% 88% at 67.5% 82.8%, rgb(0 56 37) 0%, rgb(0 69 47 / 0) 86%, rgb(0 0 0 / 0) 100%), radial-gradient(61% 103% at 41.5% 46.5%, rgb(26 40 72) 0%, rgb(18 31 53) 23%, rgb(9 21 34) 46%, rgb(5 11 17) 73%, rgb(2 5 8) 86%, rgb(0 0 0 / 0) 100%); }
.agent-replica-bg::after { position: absolute; inset: 0; content: ''; opacity: .24; background-image: radial-gradient(rgb(255 255 255 / .28) .8px, transparent .8px); background-size: 16px 16px; mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .15) 37%, #000 100%); }
.agent-replica-shell { position: relative; z-index: 1; display: flex; min-height: 0; width: 100%; flex: 1; gap: 8px; padding-right: 8px; padding-bottom: 8px; }
.agent-rail { position: relative; z-index: 50; display: flex; width: 64px; flex: 0 0 64px; min-height: 0; flex-direction: column; align-items: center; margin-top: -8px; margin-bottom: -8px; overflow: hidden; color: #dedede; }
.agent-rail-bg { position: absolute; z-index: -1; inset: 0; background: rgb(14 14 14 / .2); }
.agent-rail-top { display: flex; width: 100%; flex-direction: column; align-items: center; padding-top: 8px; }
.agent-rail-logo, .agent-rail-home { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 12px; color: #dedede; background: transparent; }
.agent-rail-logo-svg { width: 28px !important; height: 28px !important; display: block; }
.agent-rail-home { margin-top: 240px; }
.agent-rail-home svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.agent-rail-nav { display: flex; width: 52px; flex-direction: column; align-items: center; margin-top: 26px; gap: 2px; }
.agent-rail-entry { box-sizing: border-box; display: flex; width: 52px; height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; border-radius: 12px; color: #dedede; background: transparent; font: 500 8px/1.3 var(--font-barlow, Barlow), sans-serif; }
.agent-rail-entry svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.agent-rail-entry.is-active { color: #c5f955; }
.agent-rail-separator { width: 12px; height: 2px; flex: none; margin: 10px 0; border-radius: 99px; background: rgb(255 255 255 / .16); }
.agent-rail-bottom { display: flex; width: 52px; flex: none; flex-direction: column; align-items: center; margin-top: auto; padding-bottom: 16px; }
.agent-rail-bottom > button { position: relative; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 6px; border: 0; color: #dedede; background: transparent; }
.agent-rail-bottom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.agent-rail-bottom i { position: absolute; top: 2px; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: #c5f955; }
.agent-agent-credit { display: flex; height: 14px; align-items: center; gap: 2px; color: #f9e855; font-size: 11px; line-height: 14px; }
.agent-recharge { width: 52px !important; height: 18px !important; margin-top: 5px; padding: 0 !important; border-radius: 99px; color: #181818 !important; background: linear-gradient(#f9e855, #e99430) !important; font: 600 10px/18px var(--font-barlow, Barlow), sans-serif; }
.agent-avatar { width: 28px; height: 28px; margin-top: 16px; border: .5px solid rgb(255 255 255 / .16); border-radius: 50%; object-fit: cover; }
.agent-replica-content { position: relative; min-width: 0; flex: 1; overflow: hidden; }
.agent-replica-scroll { position: relative; height: 100%; overflow-y: auto; padding: 48px; scrollbar-width: none; }
.agent-replica-scroll::-webkit-scrollbar { display: none; }
.agent-home { width: 940px; min-height: 1150px; margin: 0 auto; padding-top: 186px; }
.agent-composer-area { width: 740px; margin: 0 auto; }
.agent-composer-area h1 { width: 100%; height: 32px; margin: 0 0 50px; color: #fff; font-size: 32px; font-weight: 400; line-height: 32px; letter-spacing: -.03em; text-align: center; }
.agent-composer { position: relative; display: flex; height: 120px; width: 740px; flex-direction: column; overflow: hidden; border-radius: 24px; background: rgb(255 255 255 / .07); box-shadow: 0 25px 80px rgb(0 0 0 / .46); backdrop-filter: blur(32.4px); }
.agent-composer-editable { height: 76px; padding: 14px; color: rgb(255 255 255 / .3); font-size: 14px; line-height: 19.6px; }
.agent-composer-footer { display: flex; height: 44px; align-items: center; justify-content: space-between; padding: 0 10px; }
.agent-composer-left, .agent-composer-right { display: flex; align-items: center; gap: 4px; }
.agent-composer-right { gap: 4px; }
.agent-round, .agent-skill-button, .agent-composer-right button { height: 28px; border: 0; color: #fff; background: transparent; font: 500 12px/16px var(--font-barlow, Barlow), sans-serif; }
.agent-round { width: 28px; border-radius: 50%; background: rgb(255 255 255 / .15); font-size: 22px; line-height: 24px; }
.agent-skill-button { width: 64px; border-radius: 14px; background: rgb(255 255 255 / .15); }
.agent-composer-right button { padding: 0 8px; }
.agent-composer-right .agent-behavior { color: #f6992b; }
.agent-send { width: 28px; border-radius: 50%; background: rgb(100 100 100 / .3) !important; color: rgb(255 255 255 / .3) !important; font-size: 17px !important; }
.agent-feature-section { width: 940px; margin-top: 64px; }
.agent-section-title { width: 100%; margin: 0; color: rgb(255 255 255 / .5); font-size: 14px; font-weight: 500; line-height: 14px; text-align: center; }
.agent-feature-row { display: grid; width: 940px; grid-template-columns: repeat(6, 150px); gap: 8px; margin-top: 24px; }
.agent-feature-card, .agent-popular-card { position: relative; display: flex; align-items: center; gap: 8px; height: 51px; padding: 5px 12px 5px 5px; overflow: hidden; border: 0; border-radius: 14px; color: #fff; background: rgb(100 100 100 / .3); box-shadow: inset 0 1px rgb(255 255 255 / .12); font: 500 14px/20px var(--font-barlow, Barlow), sans-serif; text-align: left; white-space: nowrap; }
.agent-feature-card img { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: cover; }
.agent-tool-viewport { width: 100vw; margin-left: calc((940px - 100vw) / 2); overflow: hidden; }
.agent-tool-row { display: flex; width: max-content; align-items: center; gap: 8px; margin-top: 28px; transform: translateX(107px); }
.agent-tool-chip, .agent-tool-more { display: inline-flex; height: 32px; align-items: center; gap: 5px; padding: 0 10px; border: 0; border-radius: 14px; color: #fff; background: rgb(100 100 100 / .3); box-shadow: inset 0 1px rgb(255 255 255 / .1); font: 500 12px/16px var(--font-barlow, Barlow), sans-serif; white-space: nowrap; }
.agent-tool-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.agent-tool-more { width: 32px; justify-content: center; padding: 0; }
.agent-popular-section { width: 940px; margin-top: 56px; }
.agent-popular-row { display: grid; width: 744px; grid-template-columns: repeat(4, 180px); gap: 8px; margin: 20px auto 0; }
.agent-popular-card { height: 51px; }
.agent-popular-card img { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: cover; }
.agent-recent-section { width: 940px; margin-top: 56px; }
.agent-recent-title { height: 24px; color: #dedede; font-size: 16px; font-weight: 500; line-height: 24px; }
.agent-recent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 29px; }
.agent-recent-card { min-width: 0; }
.agent-recent-image { width: 100%; height: 175px; overflow: hidden; border-radius: 14px; background: rgb(100 100 100 / .24); }
.agent-recent-image img { width: 100%; height: 100%; object-fit: cover; }
.agent-new-project { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
.agent-recent-name { margin-top: 10px; overflow: hidden; color: #dedede; font-size: 14px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.agent-recent-date { margin-top: 2px; color: rgb(255 255 255 / .45); font-size: 12px; line-height: 16px; }

@media (max-width: 1100px) {
  .agent-home { width: min(940px, calc(100vw - 160px)); }
  .agent-feature-row { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-feature-card { width: auto; }
  .agent-composer-area, .agent-composer { width: min(740px, calc(100vw - 160px)); }
  .agent-popular-section, .agent-feature-section, .agent-recent-section { width: 100%; }
}

@media (max-width: 767px) {
  .agent-rail { display: none; }
  .agent-replica-shell { padding: 0; }
  .agent-replica-scroll { padding: 24px 16px; }
  .agent-home { width: 100%; padding-top: 110px; }
  .agent-composer-area, .agent-composer { width: 100%; }
  .agent-feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-popular-row { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
