
.publish-slug-row .publish-slug-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 0 var(--space-1);
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* 发布后地址行内的 https:// 前缀（与后缀同款展示，不可编辑）。 */
.publish-slug-scheme {
  margin-inline-end: calc(var(--space-1) * -1);
}

/* 可选别名域名的小标题（紧跟在只读发布地址下方）。加 span 提升特异性，
   盖过 .publish-readonly-field > span 的标题样式。 */
.publish-readonly-field > span.publish-alias-label {
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* 建议别名：链接样式按钮，点击填入输入框。 */
.publish-slug-suggest {
  padding: 0;
  border: none;
  background: none;
  color: var(--accent, #8ab4ff);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.publish-slug-suffix {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.publish-slug-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0.75;
}

.publish-slug-hint {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.4;
}

.publish-slug-warn {
  color: #f0a94b;
}

/* 已发布 app 的免重发域名绑定按钮（出现在 slug 行尾部）。 */
.publish-slug-bind-btn {
  flex: 0 0 auto;
  height: var(--button-height-compact);
  padding: 0 var(--space-2);
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0b0c0e;
  background: var(--accent, #8ab4ff);
  cursor: pointer;
  white-space: nowrap;
}

.publish-slug-bind-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.publish-logo-stack {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
}

.publish-logo-stack > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.publish-logo-preview {
  position: relative;
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: var(--radius-card-large);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 10px 26px rgba(0, 0, 0, 0.18);
}

.publish-logo-preview:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.28),
    0 10px 26px rgba(0, 0, 0, 0.18);
}

.publish-logo-input {
  display: none;
}

.publish-logo-preview .publish-logo-default {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.publish-logo-preview .publish-logo-custom {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publish-logo-upload-mark {
  position: absolute;
  inset-inline-end: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  box-shadow:
    0 0 0 3px #101112,
    0 8px 16px rgba(0, 0, 0, 0.26);
}

.publish-access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.publish-access-options button {
  min-height: var(--button-height-prominent);
  border-radius: var(--radius-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  box-shadow: none;
}

.publish-access-options-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publish-access-options.publish-access-options-three button {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}

.publish-access-options button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.publish-access-options button.active {
  background: rgba(29, 155, 240, 0.16);
  color: #e8f6ff;
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.publish-access-options button:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.28);
}

.publish-url-mode-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publish-url-mode-options button {
  min-width: 0;
  min-height: var(--button-height-prominent);
  flex-direction: column;
  gap: var(--space-1);
  line-height: 1.2;
}

.publish-url-mode-options button span,
.publish-url-mode-options button small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-url-mode-options button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.publish-url-mode-options button.active small {
  color: rgba(232, 246, 255, 0.7);
}

.publish-check-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.35;
}

.publish-check-option input {
  width: 16px;
  height: 16px;
  margin: var(--space-1) 0 0;
  accent-color: var(--blue);
}

.publish-check-option small {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.publish-check-option:has(input:disabled) {
  opacity: 0.58;
}

.publish-readonly-field {
  display: grid;
  gap: var(--space-2);
}

.publish-readonly-field > span {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.publish-url-readonly {
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.publish-url-readonly code {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-status {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 12px;
  line-height: 1.5;
}

.publish-audit-progress {
  padding: var(--space-3) var(--space-3);
  border-radius: 12px;
  display: grid;
  gap: var(--space-2);
  background:
    linear-gradient(180deg, rgba(112, 243, 204, 0.08), rgba(114, 199, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(154, 236, 224, 0.14);
}

.publish-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.publish-audit-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-audit-head em {
  color: #9af3dd;
  font-style: normal;
  font-weight: 820;
}

.publish-audit-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.publish-audit-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #70f3cc, #7bd7f6),
    #70f3cc;
  box-shadow: 0 0 22px rgba(112, 243, 204, 0.28);
  transition: width 0.42s ease;
}

.publish-audit-progress.passed .publish-audit-track span {
  background:
    linear-gradient(90deg, #8be7c9, #65d6a4),
    #65d6a4;
}

.publish-audit-progress small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.35;
}

.publish-audit-result {
  padding: var(--space-3);
  border-radius: var(--radius-card);
  display: grid;
  gap: var(--space-3);
  background:
    linear-gradient(180deg, rgba(251, 113, 133, 0.1), rgba(251, 191, 36, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.2);
}

.publish-audit-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.publish-audit-result-head > div {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.publish-audit-result-head strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
}

.publish-audit-result-head span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.5;
}

.publish-audit-result-head em {
  flex: 0 0 auto;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  color: #ffd0d7;
  background: rgba(251, 113, 133, 0.14);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.publish-audit-findings {
  display: grid;
  gap: var(--space-2);
}

.publish-audit-finding {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.045);
}

.publish-audit-finding > span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd0d7;
  background: rgba(251, 113, 133, 0.13);
  font-size: 11px;
  font-weight: 800;
}

.publish-audit-finding div {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.publish-audit-finding strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.publish-audit-finding small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  word-break: break-all;
}

.publish-audit-finding p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.5;
}

.publish-audit-command {
  max-height: 160px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.publish-audit-command pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.publish-audit-result-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.publish-audit-result-actions button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  font-weight: 700;
}

.publish-audit-result-actions button.primary {
  color: #eaf6ff;
  background:
    linear-gradient(180deg, rgba(29, 155, 240, 0.28), rgba(29, 155, 240, 0.18)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.publish-audit-result-actions button.primary:hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(29, 155, 240, 0.36), rgba(29, 155, 240, 0.22)),
    rgba(255, 255, 255, 0.08);
}

.publish-audit-result-actions button.primary:disabled {
  opacity: 0.68;
  cursor: wait;
}

.publish-audit-result-actions small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.publish-status.error {
  color: #ffb4b4;
  background: rgba(244, 63, 94, 0.12);
}

.publish-status.success {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  color: #92e6c5;
  background: rgba(0, 186, 124, 0.11);
}

.publish-status button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-2);
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}

.publish-success-head {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 600;
}

.publish-share-preview {
  position: relative;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-control);
  background: rgba(0, 0, 0, 0.18);
  color: #d6f7ea;
  font-size: 12px;
  line-height: 1.7;
}

.publish-share-card .publish-share-preview {
  margin-top: var(--space-1);
}

.publish-share-preview.empty {
  color: rgba(255, 255, 255, 0.46);
}

.publish-share-text {
  padding-inline-end: var(--space-10);
  white-space: pre-wrap;
  word-break: break-all;
}

.publish-share-copy {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: auto;
  min-height: 28px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  font-weight: 600;
  color: #c8f8e4;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(146, 230, 197, 0.18);
}

.publish-share-copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.publish-status code {
  display: block;
  max-width: 240px;
  margin-top: var(--space-1);
  overflow: hidden;
  color: #c8f8e4;
  font-family: var(--font-mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-modal-actions {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.publish-modal-actions button {
  min-height: var(--button-height-default);
  min-width: 82px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.publish-modal-actions button.primary {
  background: var(--blue);
  color: #ffffff;
}

/* Publish panel refresh: collect gallery-ready metadata before publishing. */
.publish-modal {
  width: min(820px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-dialog);
  background:
    radial-gradient(circle at 18% 0, rgba(123, 215, 246, 0.11), transparent 330px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 42%),
    #101112;
}

.publish-modal-head {
  margin: 0;
  padding: var(--space-5) var(--space-6) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.publish-modal-head > div {
  min-width: 0;
}

.publish-modal-head p {
  max-width: 620px;
  margin: var(--space-2) 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.55;
}

.publish-close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  box-shadow: none !important;
}

.publish-close:hover:not(:disabled) {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.publish-form {
  padding: var(--space-5) var(--space-6) var(--space-1);
  gap: var(--space-4);
}

.publish-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.publish-field-label span,
.publish-readonly-field > span,
.publish-field > span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 760;
}

.publish-field-label small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.4;
  text-align: end;
}

.publish-media-field {
  display: grid;
  gap: var(--space-2);
}

.publish-media-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #070b10;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 18px 52px rgba(0, 0, 0, 0.28);
}

.publish-media-preview img,
.publish-media-preview video,
.publish-media-auto-frame,
.publish-media-auto-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.publish-media-preview img,
.publish-media-preview video {
  object-fit: cover;
}

.publish-media-auto-frame {
  position: relative;
  overflow: hidden;
  background: #08090a;
}

.publish-media-auto-frame img {
  object-fit: cover;
  background: #08090a;
}

.publish-media-auto-frame iframe {
  position: absolute;
  top: 0;
  /* 缩略图按固定 1440px 视口等比缩放，锚点由 transform-origin: top left 决定，
     而 transform-origin 不随 dir 翻转。若改成 inset-inline-start，RTL 下元素会
     被推到右边但仍从左上角缩放，位置对不上。保持物理属性。 */
  left: 0;
  width: 1440px;
  height: 810px;
  border: 0;
  pointer-events: none;
  transform: scale(0.33);
  transform-origin: top left;
}

.publish-media-preview.is-auto::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at 50% 0, rgba(123, 215, 246, 0.12), transparent 42%);
}

.publish-media-mode-badge {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 14px;
  z-index: 1;
  min-height: 34px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.publish-media-overlay {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  z-index: 1;
  min-height: 34px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.publish-media-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-media-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.publish-media-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.publish-media-actions button,
.publish-media-foot button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-2);
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  font-weight: 720;
}

.publish-media-actions button:hover,
.publish-media-foot button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.publish-media-actions button:disabled,
.publish-media-foot button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.publish-site-card {
  min-height: 92px;
  padding: var(--space-3);
  border-radius: var(--radius-card-large);
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(circle at 10% 0, rgba(123, 215, 246, 0.13), transparent 220px),
    rgba(255, 255, 255, 0.042);
}

.publish-logo-preview {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.publish-logo-preview .publish-logo-default {
  width: 34px;
  height: 34px;
}

.publish-site-name input {
  width: 100%;
  min-width: 0;
  height: 38px;
  box-sizing: border-box;
  padding: 0 var(--space-2);
  border-radius: var(--radius-input);
  background: rgba(0, 0, 0, 0.18);
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.publish-site-name input:focus {
  padding: 0 var(--space-2);
}

.publish-url-readonly {
  height: 42px;
  border-radius: var(--radius-card);
}

.publish-check-option {
  min-height: 58px;
  padding: var(--space-3) var(--space-3);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.publish-check-option input {
  width: 18px;
  height: 18px;
  margin: var(--space-1) 0 0;
  accent-color: var(--blue);
}

.publish-check-option span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.35;
}

.publish-check-option small {
  display: block;
  margin-top: var(--space-1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
}

.publish-status {
  border-radius: var(--radius-card);
}

.publish-modal-actions {
  margin-top: 0;
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 760px) {
  .publish-modal {
    width: min(100%, calc(100vw - 24px));
  }

  .publish-modal-head,
  .publish-form,
  .publish-modal-actions {
    padding-inline-start: var(--space-4);
    padding-inline-end: var(--space-4);
  }

  .publish-field-label {
    display: grid;
  }

  .publish-field-label small {
    text-align: start;
  }

  .publish-media-preview {
    min-height: 168px;
  }

  .publish-media-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .publish-media-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Publish panel: one-screen review with explicit gallery and derivative choices. */
.publish-modal {
  width: min(920px, calc(100% - 32px));
  max-height: min(720px, calc(100% - 20px), calc(100vh - 20px));
}

.publish-modal-head {
  padding: var(--space-3) var(--space-5) var(--space-2);
  justify-content: center;
  position: relative;
}

.publish-modal h2 {
  font-size: 24px;
  text-align: center;
}

.publish-modal-head .publish-close {
  position: absolute;
  inset-inline-end: 22px;
}

.publish-modal-head p {
  max-width: 560px;
  margin-top: var(--space-1);
  font-size: 12.5px;
  line-height: 1.35;
}

.publish-form {
  grid-template-columns: minmax(300px, 1.03fr) minmax(340px, 0.97fr);
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-1);
  overflow: auto;
}

.publish-settings-column {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.publish-setting-card {
  min-width: 0;
  padding: var(--space-2);
  border-radius: var(--radius-card-large);
  display: grid;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.038);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.058);
}

.publish-project-info-card .publish-field-label {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
}

.publish-project-info-card .publish-field-label small {
  max-width: none;
  text-align: start;
}

.publish-media-field > .publish-field-label {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
}

.publish-media-field > .publish-field-label small {
  max-width: none;
  text-align: start;
}

.publish-field-label {
  align-items: flex-start;
}

.publish-field-label small {
  max-width: 340px;
}

.publish-media-field {
  gap: var(--space-2);
}

.publish-media-preview {
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: 234px;
  border-radius: var(--radius-card-large);
}

.publish-media-foot {
  min-height: 28px;
}

.publish-summary-field {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.publish-summary-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.publish-summary-field > span small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 650;
}

.publish-summary-field textarea {
  width: 100%;
  min-height: 48px;
  resize: none;
  border: 0;
  border-radius: var(--radius-input);
  outline: 0;
  padding: var(--space-2) var(--space-2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.publish-summary-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.publish-summary-field textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.38);
}

.publish-summary-field em {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.publish-site-card {
  min-height: 0;
  padding: var(--space-2);
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  border-radius: 16px;
}

.publish-name-row {
  gap: var(--space-2);
}

.publish-logo-stack {
  gap: var(--space-1);
}

.publish-logo-preview {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-card);
}

.publish-logo-preview .publish-logo-default {
  width: 30px;
  height: 30px;
}

.publish-logo-upload-mark {
  width: 18px;
  height: 18px;
  box-shadow:
    0 0 0 2px #101112,
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.publish-site-name input {
  height: 34px;
  padding: 0 var(--space-2);
  font-size: 16px;
  line-height: 34px;
}

.publish-choice-row {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.publish-access-options button {
  min-height: var(--button-height-default);
  gap: var(--space-1);
  font-size: 13px;
  white-space: nowrap;
}

.publish-remix-options button {
  padding: 0 var(--space-2);
}

.publish-check-option {
  min-height: 0;
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-card);
}

.publish-check-option span {
  font-size: 12.5px;
}

.publish-check-option small {
  font-size: 11.5px;
  line-height: 1.4;
}

.publish-readonly-field {
  gap: var(--space-1);
}

.publish-url-readonly {
  height: 38px;
  border-radius: var(--radius-card);
}

.publish-status {
  min-height: 34px;
  padding: var(--space-2) var(--space-2);
}

.publish-modal-actions {
  padding: var(--space-2) var(--space-5) var(--space-3);
}

.publish-modal-actions button {
  min-height: var(--button-height-default);
  min-width: 74px;
}

@media (max-width: 860px) {
  .publish-modal {
    width: calc(100% - 24px);
    max-height: min(calc(100% - 24px), calc(100vh - 24px));
  }

  .publish-modal-head {
    padding: var(--space-3) var(--space-4) var(--space-2);
  }

  .publish-modal h2 {
    font-size: 20px;
  }

  .publish-modal-head p {
    display: none;
  }

  .publish-form {
    grid-template-columns: minmax(150px, 0.86fr) minmax(188px, 1.14fr);
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4) var(--space-1);
    overflow: auto;
  }

  .publish-field-label {
    display: grid;
    gap: var(--space-1);
  }

  .publish-field-label small {
    max-width: none;
    font-size: 10.5px;
    line-height: 1.28;
    text-align: start;
  }

  .publish-setting-card {
    padding: var(--space-2);
    border-radius: var(--radius-card);
    gap: var(--space-2);
  }

  .publish-media-preview {
    min-height: 0;
    border-radius: var(--radius-card);
  }

  .publish-media-mode-badge,
  .publish-media-overlay {
    min-height: 26px;
    padding: 0 var(--space-2);
    bottom: 8px;
    font-size: 10.5px;
  }

  .publish-media-mode-badge {
    inset-inline-start: 8px;
  }

  .publish-media-overlay {
    inset-inline-end: 8px;
    gap: var(--space-1);
  }

  .publish-media-name {
    font-size: 10.5px;
  }

  .publish-media-foot button {
    min-height: var(--button-height-compact);
    padding: 0 var(--space-2);
    font-size: 10.5px;
  }

  .publish-summary-field {
    gap: var(--space-1);
  }

  .publish-summary-field > span {
    font-size: 11.5px;
  }

  .publish-summary-field > span small,
  .publish-summary-field em {
    font-size: 10.5px;
  }

  .publish-summary-field textarea {
    min-height: 50px;
    border-radius: var(--radius-input);
    padding: var(--space-2) var(--space-2);
    font-size: 12.5px;
  }

  .publish-site-card {
    min-height: 58px;
    padding: var(--space-2);
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    border-radius: var(--radius-card);
  }

  .publish-name-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2);
  }

  .publish-logo-preview {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .publish-logo-preview .publish-logo-default {
    width: 24px;
    height: 24px;
  }

  .publish-logo-stack > span {
    display: none;
  }

  .publish-logo-upload-mark {
    width: 16px;
    height: 16px;
  }

  .publish-site-name span {
    font-size: 11.5px;
  }

  .publish-site-name input {
    height: 31px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-input);
    font-size: 15px;
  }

  .publish-choice-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .publish-field {
    gap: var(--space-1);
  }

  .publish-field-label span,
  .publish-readonly-field > span,
  .publish-field > span {
    font-size: 11.5px;
  }

  .publish-access-options button {
    min-height: var(--button-height-compact);
    font-size: 12px;
  }

  .publish-access-options button svg {
    width: 13px;
    height: 13px;
  }

  .publish-check-option {
    padding: var(--space-2);
    border-radius: 12px;
    grid-template-columns: 15px minmax(0, 1fr);
    gap: var(--space-2);
  }

  .publish-check-option input {
    width: 15px;
    height: 15px;
  }

  .publish-check-option span {
    font-size: 11.5px;
  }

  .publish-check-option small {
    display: none;
  }

  .publish-readonly-field {
    gap: var(--space-1);
  }

  .publish-url-readonly {
    height: 30px;
    padding: 0 var(--space-2);
  }

  .publish-url-readonly code {
    font-size: 11px;
  }

  .publish-modal-actions {
    padding: var(--space-2) var(--space-4) var(--space-3);
  }

  .publish-modal-actions button {
    min-height: var(--button-height-compact);
    min-width: 68px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .publish-form {
    grid-template-columns: 1fr;
    overflow: auto;
  }
}

@media (max-width: 560px) and (min-width: 421px) {
  .publish-choice-row {
    grid-template-columns: 1fr;
  }
}

/* Publish dialog — clear review hierarchy for metadata, permissions and URL. */
.publish-modal {
  width: min(960px, calc(100% - 32px));
  max-height: min(700px, calc(100vh - 32px));
  border-radius: var(--radius-dialog);
  background:
    radial-gradient(circle at 8% -5%, rgba(72, 169, 255, 0.12), transparent 300px),
    #111315;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 36px 100px rgba(0, 0, 0, 0.58);
}

.publish-modal-head {
  min-height: 76px;
  box-sizing: border-box;
  padding: var(--space-4) var(--space-5) var(--space-3);
  justify-content: space-between;
  text-align: start;
  background: rgba(255, 255, 255, 0.012);
}

.publish-modal-head > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: var(--space-2);
}

.publish-modal-head .publish-eyebrow {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-control);
  color: #8fcfff;
  background: rgba(29, 155, 240, 0.12);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.publish-modal-head h2 {
  grid-row: 1;
  grid-column: 2;
  font-size: 21px;
  text-align: start;
  letter-spacing: -0.02em;
}

.publish-modal-head p {
  grid-row: 2;
  grid-column: 1 / -1;
  margin: var(--space-1) 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.publish-modal-head .publish-close {
  position: static;
  inset-inline-end: auto;
}

.publish-form {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: rgba(0, 0, 0, 0.08);
}

.publish-media-field,
.publish-settings-column {
  gap: var(--space-3);
}

.publish-media-field > .publish-field-label {
  min-height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.publish-media-field > .publish-field-label span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 720;
}

.publish-media-field > .publish-field-label small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-align: end;
}

.publish-media-preview {
  max-height: none;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.publish-media-mode-badge,
.publish-media-overlay {
  bottom: 12px;
  min-height: 30px;
  background: rgba(10, 12, 14, 0.76);
}

.publish-media-mode-badge {
  inset-inline-start: 12px;
}

.publish-media-overlay {
  inset-inline-end: 12px;
}

.publish-media-foot {
  min-height: 30px;
  padding: 0 var(--space-1);
}

.publish-media-actions {
  gap: var(--space-1);
}

.publish-media-foot button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
}

.publish-media-foot button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.07);
}

.publish-project-info-card,
.publish-setting-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}

.publish-project-info-card {
  padding: var(--space-2);
}

.publish-site-card {
  padding: var(--space-1);
  gap: var(--space-2);
  background: transparent;
  box-shadow: none;
}

.publish-logo-preview {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-card);
}

.publish-site-name input {
  height: 34px;
  border-radius: var(--radius-input);
  font-size: 16px;
}

.publish-summary-field textarea {
  min-height: 48px;
  border-radius: var(--radius-input);
  background: rgba(0, 0, 0, 0.16);
}

.publish-settings-column {
  display: grid;
}

.publish-settings-column > .publish-setting-card {
  padding: var(--space-3);
  gap: var(--space-3);
}

.publish-section-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.publish-section-head > div {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.publish-section-head strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 720;
}

.publish-section-head small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.publish-choice-row {
  gap: var(--space-2);
}

.publish-field {
  gap: var(--space-1);
}

.publish-field > span {
  padding-inline-start: var(--space-1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 650;
}

.publish-access-options {
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.publish-slug-status {
  flex: 0 0 auto;
  min-width: 40px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  text-align: end;
  white-space: nowrap;
}

.publish-address-row.status-checking {
  box-shadow: inset 0 0 0 1px rgba(245, 184, 64, 0.34);
}

.publish-address-row.status-checking .publish-slug-status,
.publish-address-row.status-error .publish-slug-status {
  color: #f5b840;
}

.publish-address-row.status-available,
.publish-address-row.status-bound {
  box-shadow: inset 0 0 0 1px rgba(68, 202, 135, 0.35);
}

.publish-address-row.status-available .publish-slug-status,
.publish-address-row.status-bound .publish-slug-status {
  color: #66d99a;
}

.publish-address-row.status-required,
.publish-address-row.status-unavailable {
  box-shadow: inset 0 0 0 1px rgba(255, 102, 102, 0.42);
}

.publish-address-row.status-required .publish-slug-status,
.publish-address-row.status-unavailable .publish-slug-status {
  color: #ff8585;
}

.publish-access-options button {
  min-height: var(--button-height-default);
  border-radius: var(--radius-control);
  color: rgba(255, 255, 255, 0.57);
  font-size: 12px;
}

.publish-access-options button.active {
  color: #edf8ff;
  background: rgba(29, 155, 240, 0.2);
  box-shadow: inset 0 0 0 1px rgba(75, 180, 255, 0.24);
}

.publish-check-option {
  min-height: 52px;
  box-sizing: border-box;
  padding: var(--space-2) var(--space-2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.13);
}

.publish-check-option:has(input:checked) {
  background: rgba(29, 155, 240, 0.075);
  box-shadow: inset 0 0 0 1px rgba(75, 180, 255, 0.14);
}

.publish-check-option span {
  font-size: 12px;
}

.publish-check-option small {
  margin-top: var(--space-1);
  font-size: 11px;
}

.publish-address-card.publish-readonly-field {
  gap: var(--space-2);
}

.publish-url-mode-options {
  gap: var(--space-1);
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.publish-url-mode-options button {
  min-height: var(--button-height-prominent);
  align-items: flex-start;
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.publish-url-mode-options button span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.publish-url-mode-options button small {
  width: 100%;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9.5px;
  text-align: start;
}

.publish-url-mode-options button.active {
  background: rgba(29, 155, 240, 0.11);
  box-shadow: inset 0 0 0 1px rgba(75, 180, 255, 0.3);
}

.publish-url-readonly {
  height: 40px;
  border-radius: var(--radius-card);
  color: rgba(255, 255, 255, 0.46);
  background: rgba(0, 0, 0, 0.18);
}

.publish-modal-actions {
  min-height: 58px;
  box-sizing: border-box;
  margin: 0;
  padding: var(--space-3) var(--space-5);
  align-items: center;
  background: rgba(8, 10, 12, 0.48);
}

.publish-modal-actions button {
  min-width: 76px;
  min-height: var(--button-height-default);
  border-radius: var(--radius-control);
}

.publish-modal-actions button.primary {
  min-width: 92px;
  background: linear-gradient(180deg, #27a7f5, #168ee0);
  box-shadow: 0 8px 22px rgba(29, 155, 240, 0.2);
}

@media (max-width: 780px) {
  .publish-modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .publish-modal-head {
    min-height: 66px;
    padding: var(--space-3) var(--space-4);
  }

  .publish-modal-head p {
    display: none;
  }

  .publish-form {
    grid-template-columns: 1fr;
    padding: var(--space-3) var(--space-4);
  }

  .publish-media-preview {
    max-height: 280px;
  }

  .publish-modal-actions {
    padding: var(--space-2) var(--space-4);
  }
}

@media (max-width: 480px) {
  .publish-modal-head .publish-eyebrow {
    display: none;
  }

  .publish-modal-head h2 {
    grid-column: 1 / -1;
  }

  .publish-media-field > .publish-field-label {
    display: grid;
  }

  .publish-media-field > .publish-field-label small {
    text-align: start;
  }

  .publish-choice-row {
    grid-template-columns: 1fr;
  }

  .publish-url-mode-options {
    grid-template-columns: 1fr;
  }
}

/* Desktop publish dialog: keep the default review state balanced and above the fold. */
@media (min-width: 781px) {
  .publish-modal {
    width: min(960px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
  }

  .publish-modal-head {
    min-height: 66px;
    padding-top: var(--space-3);
    padding-bottom: var(--space-2);
  }

  .publish-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    overflow-x: hidden;
  }

  .publish-media-field {
    grid-template-rows: auto auto auto auto;
    gap: var(--space-2);
  }

  .publish-media-field > .publish-field-label {
    min-height: 26px;
  }

  .publish-media-preview {
    height: clamp(196px, 32vh, 238px);
    aspect-ratio: auto;
  }

  .publish-media-foot {
    min-height: 26px;
  }

  .publish-project-info-card {
    padding: var(--space-2);
  }

  .publish-site-card {
    gap: var(--space-2);
  }

  .publish-logo-preview {
    width: 48px;
    height: 48px;
  }

  .publish-summary-field textarea {
    min-height: 42px;
    padding-top: var(--space-1);
    padding-bottom: var(--space-1);
  }

  .publish-settings-column {
    align-content: start;
    gap: var(--space-2);
  }

  .publish-access-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-2) !important;
    row-gap: var(--space-2) !important;
  }

  .publish-access-card > .publish-section-head,
  .publish-access-card > .publish-choice-row {
    grid-column: 1 / -1;
  }

  .publish-access-card .publish-check-option {
    height: 54px;
    min-width: 0;
  }

  .publish-access-card .publish-check-option span {
    min-width: 0;
  }

  .publish-access-card .publish-check-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .publish-url-mode-options button {
    min-height: var(--button-height-prominent);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .publish-modal-actions {
    min-height: 54px;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .publish-form:has(.publish-audit-result),
  .publish-form:has(.publish-status.success) {
    overflow-y: auto;
  }
}

/* Publish typography: one shared hierarchy for every content section. */
.publish-section-head {
  min-height: 34px;
  align-items: center;
}

.publish-section-head strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
}

.publish-section-head small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
}

.publish-cover-head {
  padding: 0 var(--space-1);
}

.publish-project-info-head {
  padding: var(--space-1) var(--space-1) 0;
}

.publish-project-info-card {
  gap: var(--space-2);
}

.publish-media-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 560;
  line-height: 16px;
}

.publish-media-name > span {
  color: rgba(255, 255, 255, 0.34);
  font-weight: 500;
}

@media (min-width: 781px) {
  .publish-cover-head {
    min-height: 26px;
  }

  .publish-project-info-head {
    min-height: 32px;
  }
}

.preview-frame-shell {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: var(--preview-canvas);
}

/* One stacking column for every notice that floats over the live preview, so a
   second notice pushes the first down instead of landing on top of it. The column
   itself is click-through; the notices opt back in, which keeps the gap between
   them from swallowing clicks meant for the app underneath. */
.preview-frame-notices {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.preview-frame-notices > * {
  pointer-events: auto;
}

.preview-media-skipped {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(18, 20, 22, 0.94);
  color: #f3f4f6;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.preview-media-skipped p {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.preview-media-skipped-dismiss {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -2px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.preview-media-skipped-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Same slab as .preview-media-skipped, plus a warning rail. This one can sit over
   the preview for as long as it takes to fix a build, so it stays a quiet dark
   card rather than a red block the user wants gone more than they want the fix. */
.preview-stale-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid #f0a92a;
  background: rgba(18, 20, 22, 0.94);
  color: #f3f4f6;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.preview-stale-notice-icon {
  flex: none;
  margin-top: 1px;
  color: #f0a92a;
}

.preview-stale-notice-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-stale-notice-body > strong {
  font-size: 12px;
  font-weight: 600;
}

.preview-stale-notice-body > p {
  margin: 0;
  color: rgba(243, 244, 246, 0.78);
}

.preview-stale-notice-retry {
  flex: none;
  align-self: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.preview-stale-notice-retry:hover {
  background: rgba(255, 255, 255, 0.14);
}

.preview-stale-notice-dismiss {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -2px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.preview-stale-notice-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Deploy's verbatim build error, behind a native <details> on both failure surfaces.
   Collapsed by default on purpose: the stale notice floats over the user's running
   app and the blocked panel is not tall, so a 40-line stack trace expanded on sight
   would bury "ask the AI to fix the build error" — the only thing that resolves it. */
.preview-build-log {
  margin-top: 6px;
  min-width: 0;
}

/* No `display` override: Chrome and Safari drop the native disclosure triangle the
   moment summary stops being a list-item, and that triangle is the affordance that
   says "this opens". Everything below is paint, not layout, so the marker survives. */
.preview-build-log-summary {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 6px;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.82;
}

.preview-build-log-summary:hover {
  opacity: 1;
}

.preview-build-log-summary:focus-visible {
  outline: 2px solid #67c2ff;
  outline-offset: 1px;
  opacity: 1;
}

/* Both labels are in the DOM; which one shows is decided here rather than in JS, so
   the <details> stays uncontrolled and still reads as a real expand/collapse control.
   display:none also keeps the inactive label out of the accessibility tree, so a
   screen reader hears one label, not both. */
.preview-build-log:not([open]) .preview-build-log-label-hide,
.preview-build-log[open] .preview-build-log-label-show {
  display: none;
}

/* Hard-coded dark slab for the same reason the notices themselves are hard-coded:
   this can sit over an arbitrary user app, and a themed background would leave the
   log unreadable against whatever that app happens to render. Identical on both
   surfaces, so the text the user copies looks the same wherever they found it. */
.preview-build-log-body {
  margin: 6px 0 0;
  padding: 8px 10px;
  /* The floating notice's budget. It must stay a strip over a still-usable preview,
     never a panel that has quietly taken the pane over. The blocked panel relaxes
     this below, where there is no live preview left to obscure. */
  max-height: 132px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: #e8eaed;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  /* pre-wrap keeps the compiler's own line breaks and indentation, which is what
     makes a code frame's caret line up. overflow-wrap:anywhere then folds the long
     container paths that have no space to break at, so the caret columns stay
     visible instead of being pushed off behind a horizontal scrollbar. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  /* Pasting this into the AI chat is the entire point of showing it. Nothing in this
     rule, and nothing added later, may make the text unselectable. */
  user-select: text;
  -webkit-user-select: text;
}

/* The blocking panel owns the whole pane — there is no live preview underneath left
   to hide — so it gets a wider, taller log than the floating notice above. */
.preview-blocked .preview-build-log {
  width: min(520px, calc(100% - 32px));
}

.preview-blocked .preview-build-log-summary {
  margin-inline: auto;
}

/* Capped against the viewport as well as in pixels. The panel centres itself and does
   not scroll, so the whole column — icon, title, message, button, log — has to fit:
   30vh here leaves room for the ~18vh of fixed content even when the pane is only
   half the window tall, which is the mobile split. */
.preview-blocked .preview-build-log-body {
  max-height: min(30vh, 240px);
  text-align: start;
}

.preview-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--preview-canvas);
}

.preview-empty {
  flex: 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--preview-canvas);
  color: var(--muted);
}

.preview-loading .preview-loading-mark {
  --loader-size: 56px;
  --loader-color: #67c2ff;
  filter: drop-shadow(0 0 18px rgba(29, 155, 240, 0.28));
}

.preview-loading strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.preview-loading span {
  max-width: 280px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.preview-blocked svg {
  color: var(--muted-strong);
}

.preview-blocked span {
  max-width: 360px;
}

.preview-blocked-retry {
  height: 32px;
  padding: 0 var(--space-3);
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(29, 155, 240, 0.24);
  border-radius: var(--radius-control);
  color: var(--blue);
  background: rgba(29, 155, 240, 0.06);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.preview-empty svg {
  color: var(--muted-strong);
}

.preview-empty strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

.preview-empty span {
  max-width: 240px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.sso-popup-callback {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  padding: var(--space-6);
}

.sso-popup-callback-card {
  width: min(360px, 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  text-align: center;
}

.sso-popup-callback-card h1 {
  margin: 0;
  font-size: 22px;
}

.sso-popup-callback-card p {
  margin: var(--space-2) 0 var(--space-4);
  color: var(--muted);
  font-size: 14px;
}

.sso-popup-callback-card button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  font-weight: 700;
  cursor: pointer;
}

.sso-popup-callback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
}

.sso-popup-callback-actions a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 260px minmax(360px, 1fr) 0px 0px;
    min-width: 760px;
  }

  .app.sidebar-collapsed {
    grid-template-columns: 88px minmax(360px, 1fr) 0px 0px;
  }

  .app.preview-open {
    grid-template-columns: 260px minmax(340px, 1fr) 8px clamp(400px, var(--preview-width, 560px), var(--preview-max-width, 46vw));
  }

  .app.sidebar-collapsed.preview-open {
    grid-template-columns: 88px minmax(340px, 1fr) 8px clamp(400px, var(--preview-width, 560px), var(--preview-max-width, 52vw));
  }

  .preview-pane {
    position: static;
    inset: auto;
    width: auto;
    margin: var(--space-2) var(--space-2) var(--space-2) 0;
    z-index: auto;
    background: transparent;
    box-shadow: none;
  }

  .preview-resizer {
    position: relative;
    inset: auto;
    width: auto;
    margin: var(--space-2) 0;
    z-index: auto;
    display: block;
  }
}

@media (max-width: 860px) {
  /* 高度不在这里说：应用根的 height / min-height 全部由文件末「应用根外壳」一段
     统一声明（含 ≤900 / ≤760 两个断点），这里只管栅格列宽。 */
  .app {
    min-width: 0;
    grid-template-columns: 260px minmax(0, 1fr) 0px 0px;
  }

  .app.preview-open {
    min-width: 720px;
    grid-template-columns: 260px minmax(300px, 1fr) 8px clamp(400px, var(--preview-width, 560px), var(--preview-max-width, 42vw));
  }

  .app.sidebar-collapsed {
    grid-template-columns: 88px minmax(0, 1fr) 0px 0px;
  }

  .app.sidebar-collapsed.preview-open {
    min-width: 700px;
    grid-template-columns: 88px minmax(300px, 1fr) 8px clamp(400px, var(--preview-width, 560px), var(--preview-max-width, 44vw));
  }

  .project-panel {
    min-height: 0;
    border-inline-end: 0;
    border-bottom: 0;
  }
}

/* Home refresh: Autocoder-like entry, VibeX assets. */
.main-hero {
  width: min(1240px, calc(100vw - clamp(40px, 7vw, 116px)));
  min-height: calc(100% - 56px);
  padding: clamp(var(--space-10), 9vh, var(--space-10)) 0 clamp(var(--space-9), 8vh, var(--space-10));
  place-items: start center;
}

.main-hero-shell {
  align-items: stretch;
  text-align: start;
}

.main-hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(var(--space-7), 5vw, var(--space-10));
}

.main-hero-copy-block {
  min-width: 0;
  display: grid;
  justify-items: start;
}

.main-eyebrow {
  min-height: 34px;
  padding: 0 var(--space-3) 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 14px 44px rgba(29, 155, 240, 0.08);
}

.main-eyebrow-mark {
  width: 24px;
  height: 18px;
  object-fit: contain;
}

.main-hero-copy-block h1 {
  max-width: 720px;
  margin-top: var(--space-5);
  font-size: clamp(50px, 6vw, 84px);
  line-height: 0.98;
  text-align: start;
}

.main-hero-copy-block .main-copy {
  max-width: 600px;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.58);
  font-size: 16px;
  line-height: 1.75;
}

.main-hero-copy-block .main-prompt {
  width: min(760px, 100%);
  margin-top: var(--space-7);
}

.main-hero-copy-block .main-value-strip {
  width: min(760px, 100%);
  justify-content: flex-start;
}

.main-hero-showcase {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.main-hero-showcase::before {
  content: "";
  position: absolute;
  width: min(560px, 44vw);
  height: min(560px, 44vw);
  border-radius: var(--radius-pill);
  background:
    radial-gradient(circle, rgba(116, 202, 255, 0.2), rgba(29, 155, 240, 0.065) 38%, transparent 68%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: -1;
}

.main-hero-showcase .main-logo-lockup {
  margin: 0 0 var(--space-5);
}

.main-showcase-card {
  width: min(440px, 100%);
  padding: var(--space-4);
  border-radius: var(--radius-dialog);
  display: grid;
  gap: var(--space-3);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.032) 54%, rgba(29, 155, 240, 0.06)),
    rgba(5, 7, 10, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 88px rgba(0, 0, 0, 0.44);
}

.main-showcase-head,
.main-showcase-flow {
  display: flex;
  align-items: center;
}

.main-showcase-head {
  justify-content: space-between;
}

.main-showcase-head span,
.main-showcase-head i {
  display: inline-flex;
  align-items: center;
}

.main-showcase-head span {
  gap: var(--space-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.main-showcase-head svg {
  color: var(--blue);
}

.main-showcase-head i {
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: rgba(0, 186, 124, 0.12);
  color: #20d69b;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.main-showcase-flow {
  flex-wrap: wrap;
  gap: var(--space-2);
}

.main-showcase-flow span {
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.main-showcase-terminal {
  padding: var(--space-4);
  border-radius: 16px;
  display: grid;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.main-showcase-terminal b {
  color: #20d69b;
  font-size: 13px;
}

.main-showcase-terminal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.main-community-link {
  gap: var(--space-1);
}

/* Workspace */
.workspace-page {
  width: 100vw;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80, 160, 220, 0.15), transparent 44%),
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.06), transparent 26%),
    #000;
  color: var(--text);
}

.workspace-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.74)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.workspace-page > * {
  position: relative;
  z-index: 1;
}

.workspace-nav,
.workspace-hero,
.workspace-alert,
.workspace-grid,
.workspace-empty {
  width: min(1180px, calc(100vw - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
}

.workspace-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.workspace-brand,
.workspace-nav-link,
.workspace-create,
.workspace-card {
  border: 0;
  font: inherit;
}

.workspace-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: transparent;
  color: var(--text);
}

.workspace-brand-mark {
  width: 30px;
  height: 22px;
  object-fit: contain;
}

.workspace-brand-wordmark {
  width: 78px;
  height: auto;
  object-fit: contain;
}

.workspace-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.workspace-nav-link {
  min-height: 34px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.workspace-hero {
  padding: clamp(var(--space-9), 10vh, var(--space-10)) 0 var(--space-7);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
}

.workspace-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-hero h1 {
  margin: var(--space-2) 0 0;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.workspace-hero p {
  max-width: 560px;
  margin: var(--space-4) 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  line-height: 1.8;
}

.workspace-create {
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff;
  color: #050505;
  font-size: 14px;
  font-weight: 800;
}

.workspace-alert {
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.workspace-alert.danger {
  color: #ff9aa3;
  background: rgba(244, 33, 46, 0.1);
}

.workspace-alert button {
  min-height: var(--button-height-compact);
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 750;
}

.workspace-grid {
  padding: var(--space-4) 0 var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.workspace-card {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  border-radius: var(--radius-dialog);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.022);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 24px 80px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  text-align: start;
}

.workspace-card.active {
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.42),
    0 24px 80px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(29, 155, 240, 0.12);
}

.workspace-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.workspace-card-new {
  padding: var(--space-6);
  display: grid;
  align-content: end;
  gap: var(--space-2);
}

.workspace-new-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(29, 155, 240, 0.14);
  color: var(--blue);
}

.workspace-card-new strong,
.workspace-card-body h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 780;
}

.workspace-card-new small,
.workspace-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 650;
}

.workspace-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(29, 155, 240, 0.16), transparent 48%), #07090b;
}

.workspace-cover iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transform: none;
  transform-origin: center;
  opacity: 1;
  filter: saturate(1) brightness(0.94);
}

.workspace-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.86)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 62%);
}

.workspace-cover-mark {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  width: 34px;
  height: 24px;
  opacity: 0.78;
}

.workspace-card-actions {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
  display: inline-flex;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity 140ms ease;
}

.workspace-card:hover .workspace-card-actions,
.workspace-card:focus-within .workspace-card-actions {
  opacity: 1;
}

.workspace-card-action {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.7);
  transition: background 140ms ease, color 140ms ease;
}

.workspace-card-action:hover:not(:disabled) {
  background: rgba(29, 155, 240, 0.2);
  color: #9fd8ff;
}

.workspace-card-action.danger:hover:not(:disabled) {
  background: var(--red-soft);
  color: #ff8f96;
}

.workspace-card-action:disabled {
  opacity: 0.7;
}

.workspace-card-body {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: var(--space-2);
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 760;
}

.workspace-status i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
}

.workspace-card-arrow {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.workspace-empty {
  padding-bottom: var(--space-10);
  color: rgba(255, 255, 255, 0.5);
}

.spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app.coding-focus {
  min-width: 900px;
  grid-template-columns: minmax(0, 1fr) 0px 0px;
}

.app.coding-focus.preview-open {
  grid-template-columns: minmax(500px, 1fr) 8px clamp(400px, var(--preview-width, 560px), var(--preview-max-width, 880px));
}

.app.coding-focus .chat-panel {
  margin: var(--space-2) 0 var(--space-2) var(--space-2);
}

.app.coding-focus:not(.preview-open) .chat-panel {
  margin-inline-end: var(--space-2);
}

@media (max-width: 1040px) {
  .main-hero-layout,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .main-hero-copy-block,
  .main-hero-copy-block h1,
  .main-hero-copy-block .main-copy {
    text-align: center;
    justify-items: center;
    margin-inline: auto;
  }

  .main-hero-copy-block {
    justify-items: center;
  }

  .main-hero-copy-block .main-value-strip {
    justify-content: center;
  }

  .main-hero-showcase {
    min-height: 320px;
  }
}

@media (max-width: 860px) {
  .session-switcher select {
    width: 112px;
  }

  .app.coding-focus {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 0px 0px;
  }

  .app.coding-focus.preview-open {
    min-width: 720px;
    grid-template-columns: minmax(300px, 1fr) 8px clamp(400px, var(--preview-width, 560px), var(--preview-max-width, 46vw));
  }

  .workspace-hero {
    align-items: start;
    flex-direction: column;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Home layout pass: closer to Autocoder's centered builder entry. */
.main-page {
  --home-blue: #1d9bf0;
  --home-cyan: #72c7ff;
  --home-panel: rgba(12, 14, 16, 0.72);
  --home-panel-soft: rgba(255, 255, 255, 0.046);
}

.main-page::before {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(124, 205, 255, 0.2), rgba(75, 155, 210, 0.09) 30%, transparent 62%),
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.08), transparent 56%);
  filter: blur(18px);
}

.main-nav {
  min-height: 68px;
  padding-inline: clamp(var(--space-5), 4.4vw, var(--space-10));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42));
}

.main-brand {
  gap: var(--space-3);
}

.main-brand-mark {
  width: 26px;
  height: 18px;
}

.main-brand-wordmark {
  width: 76px;
}

.main-nav-actions {
  gap: var(--space-2);
}

.main-nav-link {
  min-height: 34px;
  padding-inline: var(--space-3);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
}

.main-community-link {
  color: rgba(255, 255, 255, 0.66);
}

.main-hero {
  width: min(1280px, calc(100vw - clamp(34px, 6vw, 112px)));
  min-height: calc(100% - 68px);
  padding: clamp(var(--space-8), 7vh, var(--space-10)) 0 clamp(var(--space-9), 7vh, var(--space-10));
  display: block;
}

.main-hero-shell {
  width: 100%;
  align-items: center;
  text-align: center;
}

.main-hero-intro {
  width: min(100%, 980px);
  display: grid;
  justify-items: center;
}

.main-eyebrow {
  min-height: 32px;
  padding: 0 var(--space-3) 0 var(--space-2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 18px 60px rgba(29, 155, 240, 0.08);
}

.main-eyebrow-mark {
  width: 23px;
  height: 16px;
}

.main-hero-mark {
  width: clamp(92px, 9.2vw, 130px);
  height: auto;
  margin: clamp(var(--space-7), 5vh, var(--space-9)) 0 clamp(var(--space-4), 3vh, var(--space-6));
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 36px rgba(114, 199, 255, 0.16));
}

.main-hero-intro h1 {
  max-width: 940px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 0.55em;
  color: #fff;
  font-size: clamp(46px, 6.3vw, 88px);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: 0;
  text-align: center;
}

.main-hero-intro .main-copy {
  max-width: 720px;
  margin-top: var(--space-5);
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.85;
}

.main-hero-intro .main-prompt {
  width: min(900px, 100%);
  min-height: 72px;
  margin-top: clamp(var(--space-6), 4.8vh, var(--space-8));
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  border-radius: var(--radius-input);
  gap: var(--space-3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.042)),
    rgba(7, 8, 10, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 32px 110px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(29, 155, 240, 0.07);
}

.main-prompt-brand {
  width: 38px;
  height: 46px;
  margin-inline-start: 0;
}

.main-prompt-mark {
  width: 27px;
  height: 19px;
}

.main-hero-intro .main-prompt input {
  height: 48px;
  font-size: 16px;
  font-weight: 620;
}

.main-hero-intro .main-prompt input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.main-hero-intro .main-prompt button {
  height: var(--button-height-prominent);
  padding-inline: var(--space-5);
  border-radius: var(--radius-card-large);
  gap: var(--space-2);
  background: #ffffff;
  color: #020405;
  font-size: 15px;
  font-weight: 820;
  box-shadow:
    0 12px 36px rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.main-hero-intro .main-prompt button:hover {
  transform: translateY(-1px);
}

.main-hero-intro .main-value-strip {
  width: min(760px, 100%);
  margin-top: var(--space-4);
  justify-content: center;
  gap: var(--space-2);
}

.main-value-strip button {
  min-height: var(--button-height-compact);
  padding-inline: var(--space-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.044);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.064);
}

.main-build-panel {
  width: min(1080px, 100%);
  margin-top: clamp(var(--space-7), 5.6vh, var(--space-10));
  padding: var(--space-4);
  border-radius: var(--radius-dialog);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.028) 48%, rgba(29, 155, 240, 0.045)),
    rgba(5, 6, 8, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 34px 120px rgba(0, 0, 0, 0.42);
}

.main-build-header {
  min-height: 46px;
  padding: 0 var(--space-1) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 720;
}

.main-build-header span,
.main-build-flow span {
  display: inline-flex;
  align-items: center;
}

.main-build-header span {
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.82);
}

.main-build-header strong {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 720;
}

.main-build-logo {
  width: 24px;
  height: 17px;
  object-fit: contain;
}

.main-build-flow {
  padding: var(--space-3);
  border-radius: var(--radius-dialog);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.main-build-flow span {
  min-height: 42px;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 720;
}

.main-build-flow i {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: rgba(29, 155, 240, 0.14);
  color: var(--home-cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.main-build-panel .main-case-grid {
  width: 100%;
  margin-top: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.main-build-panel .main-case-card {
  min-height: 142px;
  border-radius: var(--radius-dialog);
  background:
    radial-gradient(circle at 14% 0%, rgba(29, 155, 240, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.028);
}

@media (max-width: 980px) {
  .main-hero {
    width: min(100% - 32px, 760px);
    padding-top: var(--space-7);
  }

  .main-nav {
    padding-inline: var(--space-4);
  }

  .main-community-link {
    display: none;
  }

  .main-build-flow,
  .main-build-panel .main-case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    min-height: 60px;
  }

  .main-brand-wordmark {
    width: 62px;
  }

  .main-nav-link {
    padding-inline: var(--space-2);
    font-size: 12px;
  }

  .main-hero {
    min-height: calc(100% - 60px);
    padding-block: var(--space-7) var(--space-8);
  }

  .main-eyebrow {
    display: none;
  }

  .main-hero-mark {
    margin-top: var(--space-4);
  }

  .main-hero-intro h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .main-hero-intro .main-copy {
    margin-top: var(--space-4);
    font-size: 14px;
  }

  .main-hero-intro .main-prompt {
    min-height: 64px;
    border-radius: 20px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .main-hero-intro .main-prompt button {
    width: 48px;
    height: var(--button-height-prominent);
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .main-build-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-build-flow,
  .main-build-panel .main-case-grid {
    grid-template-columns: 1fr;
  }
}

/* Home layout pass 2: hero + workspace shelf, matching the Autocoder rhythm. */
.main-page::before {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(73, 236, 196, 0.18), rgba(67, 181, 255, 0.12) 24%, transparent 52%),
    radial-gradient(ellipse at 50% 30%, rgba(108, 188, 255, 0.12), transparent 48%);
  filter: blur(22px);
}

.main-page::after {
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.58) 68%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0, rgba(0, 0, 0, 0.22) 54%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.84));
}

.main-hero {
  width: min(1360px, calc(100vw - clamp(24px, 4.8vw, 88px)));
  padding-top: clamp(var(--space-10), 14vh, var(--space-10));
  padding-bottom: var(--space-10);
}

.main-hero-intro {
  width: min(100%, 920px);
}

.main-hero-intro h1 {
  max-width: 900px;
  gap: 0.18em 0.42em;
  font-size: clamp(48px, 5.6vw, 78px);
  font-weight: 760;
}

.main-hero-intro h1 em {
  color: #70f3cc;
  font-style: normal;
  text-shadow:
    0 0 22px rgba(112, 243, 204, 0.2),
    0 0 58px rgba(29, 155, 240, 0.14);
}

.main-hero-intro .main-copy {
  max-width: 690px;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.52);
  font-size: 15px;
}

.main-hero-intro .main-prompt {
  width: min(760px, 100%);
  min-height: 96px;
  margin-top: var(--space-7);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-input);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.036)),
    rgba(14, 20, 20, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 28px 96px rgba(0, 0, 0, 0.46),
    0 0 96px rgba(85, 232, 201, 0.13);
}

.main-hero-intro .main-prompt input {
  height: 56px;
  font-size: 15px;
}

.main-hero-intro .main-prompt button {
  width: 48px;
  height: var(--button-height-prominent);
  padding: 0;
  justify-content: center;
  font-size: 0;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.main-hero-intro .main-prompt button svg {
  width: 19px;
  height: 19px;
}

.main-hero-intro .main-value-strip {
  margin-top: var(--space-4);
}

.main-value-strip button {
  min-height: var(--button-height-default);
  padding-inline: var(--space-3);
  background: rgba(8, 10, 12, 0.58);
  color: rgba(255, 255, 255, 0.72);
}

.main-build-panel {
  width: min(1280px, 100%);
  min-height: 360px;
  margin-top: clamp(var(--space-9), 8vh, var(--space-10));
  padding: clamp(var(--space-4), 2.4vw, var(--space-6));
  border-radius: var(--radius-dialog) var(--radius-dialog) 0 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 19, 0.88), rgba(2, 3, 4, 0.92)),
    rgba(0, 0, 0, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 -24px 90px rgba(63, 229, 196, 0.1),
    0 36px 120px rgba(0, 0, 0, 0.52);
}

.main-build-header {
  min-height: 44px;
  padding: 0 0 var(--space-4);
  border-bottom: 0;
}

.main-showcase-tabs {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.main-showcase-tabs button,
.main-showcase-all,
.main-category-row button {
  border: 0;
  font: inherit;
}

.main-showcase-tabs button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 760;
}

.main-showcase-tabs button.active {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.main-showcase-all {
  min-height: 34px;
  padding: 0 var(--space-3) 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 760;
}

.main-showcase-all:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.main-showcase-filter {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}

.main-search-fake {
  min-height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.36);
  font-size: 13px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.main-category-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
}

.main-category-row button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-3);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.44);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 720;
}

.main-category-row button.active,
.main-category-row button:hover {
  background: rgba(29, 155, 240, 0.12);
  color: #8bd5ff;
}

.main-build-flow {
  margin-top: var(--space-3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
  background: transparent;
  box-shadow: none;
}

.main-build-flow button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.052);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 760;
}

.main-build-flow button svg {
  color: var(--home-blue);
}

.main-build-panel .main-case-grid {
  margin-top: var(--space-4);
  gap: var(--space-4);
}

.main-build-panel .main-case-card {
  min-height: 190px;
  padding: var(--space-10) var(--space-4) var(--space-4);
  border-radius: var(--radius-dialog);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.026);
}

.main-build-panel .main-case-card::after {
  content: "";
  position: absolute;
  inset: 16px 16px auto;
  height: 64px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 18% 40%, rgba(112, 243, 204, 0.34), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(29, 155, 240, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
}

@media (max-width: 980px) {
  .main-hero {
    padding-top: var(--space-10);
  }

  .main-showcase-filter {
    grid-template-columns: 1fr;
  }

  .main-category-row {
    overflow-x: auto;
    padding-bottom: var(--space-1);
  }
}

@media (max-width: 640px) {
  .main-hero {
    padding-top: var(--space-9);
  }

  .main-hero-intro h1 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .main-hero-intro .main-prompt {
    min-height: 74px;
  }

  .main-build-panel {
    border-radius: var(--radius-dialog) var(--radius-dialog) 0 0;
  }

  .main-build-header {
    align-items: stretch;
    gap: var(--space-3);
  }

  .main-showcase-tabs {
    overflow-x: auto;
  }
}

/* Home layout pass 3: one-screen, focused builder entry. */
.main-page {
  overflow: hidden;
}

.main-nav {
  position: fixed;
  inset: 0 0 auto;
  min-height: 72px;
  padding: 0 clamp(var(--space-6), 4.8vw, var(--space-10));
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.main-nav-left,
.main-workspace-nav {
  display: flex;
  align-items: center;
}

.main-nav-left {
  min-width: 0;
  gap: clamp(var(--space-6), 4vw, var(--space-9));
}

.main-brand-mark {
  width: 29px;
  height: 21px;
}

.main-brand-wordmark {
  width: 88px;
}

.main-workspace-nav {
  gap: var(--space-5);
}

.main-workspace-nav button {
  min-height: var(--button-height-default);
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 760;
}

.main-workspace-nav button:hover {
  color: #fff;
}

.main-workspace-root {
  color: #fff !important;
}

.main-nav-actions {
  gap: var(--space-4);
}

.main-nav-link {
  border: 0;
  min-height: 36px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}

.main-community-link {
  gap: var(--space-2);
}

.main-workspace-entry {
  gap: var(--space-2);
  color: #fff;
}

.main-community-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.main-wecom-popover {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: -12px;
  width: 236px;
  padding: var(--space-3);
  border-radius: var(--radius-dialog);
  display: grid;
  gap: var(--space-2);
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055)),
    rgba(12, 14, 16, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 22px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.main-wecom-popover::before {
  content: '';
  position: absolute;
  top: -7px;
  inset-inline-end: 36px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: rgba(24, 27, 29, 0.96);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.main-wecom-popover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
  object-fit: contain;
  background: #fff;
}

.main-wecom-popover strong,
.main-wecom-popover span {
  padding-inline: var(--space-1);
}

.main-wecom-popover strong {
  color: #fff;
  font-size: 14px;
  font-weight: 780;
}

.main-wecom-popover span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.main-page .account-entry {
  min-height: 42px;
  padding-inline: var(--space-4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.22);
}

.main-hero {
  width: min(1100px, calc(100vw - clamp(36px, 8vw, 160px)));
  min-height: 100%;
  padding: 0;
  display: grid;
  place-items: center;
}

.main-hero-shell {
  align-items: center;
  transform: translateY(2vh);
}

.main-hero-intro h1 {
  gap: 0.12em 0.18em;
  font-size: clamp(46px, 5.1vw, 76px);
  line-height: 1.04;
}

.main-hero-intro .main-prompt {
  width: min(800px, 100%);
  min-height: 118px;
  margin-top: clamp(var(--space-8), 5vh, var(--space-10));
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-input);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.076), rgba(255, 255, 255, 0.034)),
    rgba(13, 20, 20, 0.78);
}

.main-hero-intro .main-prompt input {
  align-self: start;
  height: 46px;
  padding-top: var(--space-1);
}

.main-prompt-brand {
  align-self: start;
  margin-top: var(--space-1);
}

.main-hero-intro .main-prompt button {
  align-self: end;
}

.main-build-panel {
  display: none;
}

.main-particles {
  opacity: 0.46;
}

.workspace-tabs {
  width: fit-content;
  margin-top: var(--space-6);
  padding: var(--space-1);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.workspace-tabs button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-4);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 780;
}

.workspace-tabs button.active {
  background: rgba(255, 255, 255, 0.92);
  color: #070707;
}

.workspace-published-empty {
  width: min(1180px, calc(100vw - clamp(32px, 6vw, 96px)));
  min-height: 320px;
  margin: var(--space-4) auto var(--space-10);
  padding: var(--space-7);
  border-radius: var(--radius-dialog);
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 155, 240, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 24px 80px rgba(0, 0, 0, 0.32);
}

.workspace-published-mark {
  width: 52px;
  height: 36px;
  opacity: 0.86;
}

.workspace-published-empty h2,
.workspace-published-empty p {
  margin: 0;
}

.workspace-published-empty h2 {
  font-size: 24px;
  font-weight: 820;
}

.workspace-published-empty p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
  line-height: 1.7;
}

.workspace-status.published i {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(29, 155, 240, 0.55);
}

.workspace-revenue-empty {
  min-height: 340px;
}

.workspace-revenue-icon {
  color: var(--blue);
  filter: drop-shadow(0 0 18px rgba(29, 155, 240, 0.36));
}

@media (max-width: 760px) {
  .main-nav {
    min-height: 64px;
    padding-inline: var(--space-4);
  }

  .main-nav-left {
    gap: var(--space-4);
  }

  .main-workspace-nav {
    gap: var(--space-3);
  }

  .main-workspace-nav button {
    font-size: 13px;
  }

  .main-community-link {
    display: none;
  }

  .main-workspace-entry {
    display: inline-flex;
  }

  .main-hero {
    width: min(100% - 32px, 620px);
  }

  .main-hero-intro h1 {
    font-size: clamp(42px, 12vw, 60px);
  }
}

/* Home creation pass: prompt presets, attachments, and consistent top nav. */
.main-nav,
.workspace-nav {
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0 clamp(var(--space-6), 4.8vw, var(--space-10));
  box-sizing: border-box;
}

.workspace-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.workspace-nav-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(var(--space-6), 4vw, var(--space-9));
}

.workspace-brand {
  min-width: 0;
  flex: 0 0 auto;
}

.workspace-brand-mark,
.main-brand-mark {
  width: 29px;
  height: 21px;
}

.workspace-brand-wordmark,
.main-brand-wordmark {
  width: 88px;
}

.workspace-top-tabs button.active {
  color: #fff;
}

.workspace-top-tabs button.active::after,
.main-workspace-nav button.active::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.9);
  box-shadow: 0 0 12px rgba(29, 155, 240, 0.45);
}

.main-workspace-nav button {
  position: relative;
}

.workspace-nav-actions {
  gap: var(--space-4);
}

.workspace-nav-link {
  min-height: 36px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 760;
}

.workspace-page .account-entry {
  min-height: 42px;
  padding-inline: var(--space-4);
}

.main-hero-intro .main-prompt {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: var(--space-3);
  min-height: 138px;
  padding: var(--space-4);
}

.main-prompt-field {
  min-width: 0;
  min-height: 94px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2);
}

.main-typewriter-preview {
  pointer-events: none;
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.45;
  text-align: start;
  white-space: pre-wrap;
}

.main-typewriter-caret {
  width: 2px;
  height: 1.15em;
  margin-inline-start: var(--space-1);
  display: inline-block;
  vertical-align: -0.2em;
  border-radius: 999px;
  background: var(--blue);
  animation: mainTypeCaret 1s steps(2, start) infinite;
}

@keyframes mainTypeCaret {
  50% {
    opacity: 0;
  }
}

.main-hero-intro .main-prompt textarea {
  width: 100%;
  min-width: 0;
  height: 64px;
  padding: var(--space-1) 0 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.45;
}

.main-hero-intro .main-prompt textarea:disabled {
  color: rgba(255, 255, 255, 0.52);
}

.main-attachment-row {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.main-attachment-chip {
  max-width: min(220px, 100%);
  height: var(--button-height-compact);
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.main-attachment-chip > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-attachment-chip button {
  width: 18px;
  height: var(--button-height-compact);
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.main-prompt-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
}

.main-attach-btn {
  min-height: var(--button-height-default);
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.main-attach-btn:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.main-attach-btn input {
  display: none;
}

.main-hero-intro .main-prompt .main-submit-btn {
  min-width: 122px;
  height: var(--button-height-prominent);
  padding: 0 var(--space-4);
  border-radius: var(--radius-card);
  justify-content: center;
}

.main-hero-intro .main-prompt .main-submit-btn:disabled {
  opacity: 0.72;
  cursor: progress;
}

.main-prompt-error {
  width: min(800px, 100%);
  margin: var(--space-3) auto 0;
  color: #ff8f8f;
  font-size: 13px;
  line-height: 1.5;
  text-align: start;
}

@media (max-width: 900px) {
  .main-nav,
  .workspace-nav {
    padding-inline: var(--space-6);
  }

  .workspace-nav-left {
    gap: var(--space-5);
  }

  .workspace-nav-actions .workspace-nav-link {
    display: none;
  }
}

@media (max-width: 760px) {
  .main-nav,
  .workspace-nav {
    min-height: 64px;
    padding-inline: var(--space-4);
  }

  .workspace-top-tabs,
  .main-workspace-nav {
    gap: var(--space-3);
  }

  .workspace-top-tabs button,
  .main-workspace-nav button {
    font-size: 13px;
  }

  .main-hero-intro .main-prompt {
    grid-template-columns: 1fr;
    min-height: 176px;
  }

  .main-prompt-brand {
    display: none;
  }

  .main-prompt-actions {
    flex-direction: row;
    align-items: center;
  }

  .main-hero-intro .main-prompt .main-submit-btn {
    min-width: 112px;
  }

  .main-nav-actions .main-community-link {
    display: inline-flex;
  }

  .main-nav-actions {
    gap: var(--space-2);
  }
}

/* Home prompt final layout: tools left, send right, no mark inside the composer. */
.main-prompt-brand,
.main-prompt-mark {
  display: none;
}

.main-hero-intro .main-prompt {
  width: min(960px, 100%);
  min-height: clamp(210px, 21vh, 260px);
  padding: var(--space-6) var(--space-6) var(--space-6);
  border-radius: var(--radius-input);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.main-prompt-field {
  flex: 1;
  min-height: 118px;
}

.main-typewriter-preview {
  top: 0;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 650;
  line-height: 1.55;
}

.main-hero-intro .main-prompt textarea {
  height: 100%;
  min-height: 116px;
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 650;
  line-height: 1.55;
}

.main-prompt-actions {
  min-height: 58px;
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
}

.main-prompt-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.main-attach-btn,
.main-model-picker {
  height: var(--button-height-prominent);
  min-height: var(--button-height-prominent);
  padding: 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 760;
}

.main-attach-btn:hover,
.main-model-picker:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.main-model-picker {
  position: relative;
  cursor: pointer;
}

.main-model-picker select {
  min-width: 54px;
  border: 0;
  outline: none;
  appearance: none;
  background: transparent;
  color: currentColor;
  font: inherit;
  cursor: pointer;
}

.main-model-picker select:disabled {
  cursor: progress;
}

.main-model-picker option {
  background: #111;
  color: #fff;
}

.main-hero-intro .main-prompt .main-submit-btn {
  min-width: 136px;
  height: var(--button-height-prominent);
  padding: 0 var(--space-5);
  border-radius: var(--radius-input);
  gap: var(--space-2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 241, 255, 0.9)),
    #fff;
  color: #050607;
  font-size: 16px;
  font-weight: 820;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 44px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(123, 246, 209, 0.12);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.main-hero-intro .main-prompt .main-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 20px 54px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(123, 246, 209, 0.18);
}

.main-hero-intro .main-prompt .main-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.main-hero-intro .main-prompt .main-submit-btn:disabled {
  opacity: 0.78;
}

@media (max-width: 760px) {
  .main-hero-intro .main-prompt {
    min-height: 206px;
    padding: var(--space-5);
  }

  .main-prompt-actions {
    align-items: stretch;
  }

  .main-hero-intro .main-prompt .main-submit-btn {
    min-width: 108px;
    height: var(--button-height-prominent);
    border-radius: var(--radius-card-large);
  }
}

/* Workspace behavior: the page owns scrolling and project entry has a real loading state. */
.workspace-page {
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.workspace-page::-webkit-scrollbar {
  width: 10px;
}

.workspace-page::-webkit-scrollbar-track {
  background: transparent;
}

.workspace-page::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}

.workspace-page::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.34);
  background-clip: padding-box;
}

.workspace-grid {
  padding-bottom: clamp(var(--space-10), 12vh, var(--space-10));
}

.workspace-card.is-busy {
  cursor: progress;
}

.workspace-card.is-busy iframe {
  opacity: 0.16;
}

.workspace-card-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(29, 155, 240, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.64));
  backdrop-filter: blur(12px) saturate(132%);
  -webkit-backdrop-filter: blur(12px) saturate(132%);
  pointer-events: none;
}

.workspace-card-loading::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.workspace-card-loading-mark {
  --loader-size: 62px;
  --loader-color: #7bd8ff;
  filter:
    drop-shadow(0 0 16px rgba(29, 155, 240, 0.46))
    drop-shadow(0 0 34px rgba(112, 243, 204, 0.18));
}

.workspace-card-loading-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 780;
}

/* Current refinement: cleaner home prompt, clearer published covers, named project creation. */
.main-hero-intro .main-prompt {
  position: relative;
  width: min(900px, calc(100vw - 44px));
  min-height: clamp(190px, 19vh, 236px);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 90px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(112, 243, 204, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.main-hero-intro .main-prompt::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at var(--prompt-x, 18%) var(--prompt-y, 18%), rgba(114, 199, 255, 0.16), transparent 34%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.09) 34%, transparent 58%);
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
  animation: mainPromptAurora 7s ease-in-out infinite alternate;
}

.main-hero-intro .main-prompt:focus-within {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(114, 199, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 110px rgba(0, 0, 0, 0.5),
    0 0 62px rgba(112, 243, 204, 0.12);
}

.main-hero-intro .main-prompt.is-creating::before {
  opacity: 1;
  animation-duration: 2.4s;
}

@keyframes mainPromptAurora {
  from {
    --prompt-x: 14%;
    --prompt-y: 18%;
    filter: hue-rotate(0deg);
  }
  to {
    --prompt-x: 84%;
    --prompt-y: 72%;
    filter: hue-rotate(12deg);
  }
}

.main-typewriter-preview {
  color: rgba(255, 255, 255, 0.5);
}

.main-typewriter-caret {
  box-shadow: 0 0 14px rgba(29, 155, 240, 0.55);
}

.main-hero-intro .main-prompt .main-submit-btn {
  min-width: 118px;
  padding-inline: var(--space-4);
}

.main-prompt-tools {
  gap: var(--space-2);
}

.main-attach-btn {
  padding-inline: var(--space-3);
}

.workspace-published-card .workspace-cover iframe {
  opacity: 0.86;
  filter: saturate(1.04) brightness(0.92);
}

.workspace-published-card .workspace-cover-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 58%);
}

.workspace-published-card .workspace-cover-mark {
  display: none;
}

.workspace-create-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background:
    radial-gradient(circle at 50% 18%, rgba(29, 155, 240, 0.14), transparent 36%),
    rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px) saturate(124%);
  -webkit-backdrop-filter: blur(18px) saturate(124%);
}

.workspace-create-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: var(--space-6);
  border-radius: var(--radius-dialog);
  display: grid;
  gap: var(--space-4);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.08), transparent 260px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), transparent 44%),
    #101112;
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 32px 110px rgba(0, 0, 0, 0.56);
}

.workspace-create-dialog button {
  border: 0;
  font: inherit;
}

.workspace-create-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.66);
}

.workspace-create-eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-create-dialog h2 {
  margin: calc(var(--space-2) * -1) 0 0;
  font-size: 28px;
  line-height: 1.12;
}

.workspace-create-field {
  display: grid;
  gap: var(--space-2);
}

.workspace-create-field span,
.workspace-create-dialog p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 680;
}

.workspace-create-dialog .workspace-create-error {
  margin: calc(var(--space-1) * -1) 0 0;
  color: #ff9aa3;
}

.workspace-create-field input {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--radius-input);
  outline: 0;
  padding: 0 var(--space-3);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 730;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.workspace-create-field input:focus {
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.44),
    0 0 0 4px rgba(29, 155, 240, 0.11);
}

.workspace-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.workspace-create-actions button {
  min-height: var(--button-height-prominent);
  padding: 0 var(--space-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 780;
}

.workspace-create-actions button.primary {
  background: var(--blue);
  color: #fff;
}

/* Homepage template alignment: keep current VibeX assets and current nav deletions. */
.main-page {
  --home-cyan: #7bd7f6;
  --home-mint: #70f3cc;
  --home-panel: rgba(9, 12, 13, 0.66);
  --home-panel-strong: rgba(13, 19, 19, 0.82);
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(123, 215, 246, 0.115), transparent 34%),
    radial-gradient(circle at 50% 68%, rgba(112, 243, 204, 0.075), transparent 38%),
    linear-gradient(180deg, #02090d 0%, #000 82%);
}

.main-page::before {
  background:
    radial-gradient(circle at 50% 43%, rgba(168, 232, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 38%, rgba(72, 190, 232, 0.25), transparent 44%);
  filter: blur(10px);
  opacity: 0.82;
}

.main-page::after {
  background:
    radial-gradient(ellipse at 50% 42%, transparent 0%, transparent 32%, rgba(0, 0, 0, 0.22) 62%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(4, 24, 38, 0.34), rgba(2, 13, 24, 0.56)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 23%, transparent 77%, rgba(0, 0, 0, 0.72));
}

.main-particles {
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: saturate(1.12);
}

.main-nav {
  position: fixed;
  inset: 0 auto auto 50%;
  width: min(1760px, calc(100% - clamp(40px, 7.6vw, 160px)));
  min-height: 86px;
  padding: 0;
  transform: translateX(-50%);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.main-brand {
  gap: var(--space-3);
  padding: 0;
}

.main-brand-mark {
  width: 41px;
  height: 29px;
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 36px rgba(123, 215, 246, 0.12));
}

.main-brand-wordmark {
  width: 144px;
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.16))
    drop-shadow(0 0 30px rgba(123, 215, 246, 0.08));
}

.main-nav-actions {
  gap: clamp(var(--space-3), 1.3vw, var(--space-5));
  color: rgba(255, 255, 255, 0.82);
}

.main-nav-link {
  min-height: 38px;
  padding: 0;
  border-radius: 0;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  font-weight: 760;
  box-shadow: none;
}

.main-nav-link:hover {
  background: transparent;
  color: #fff;
}

.main-nav-link svg {
  width: 17px;
  height: 17px;
}

.main-page .account-entry {
  min-height: 50px;
  padding-inline: var(--space-4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.072);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 40px rgba(0, 0, 0, 0.28);
}

.main-wecom-popover {
  top: calc(100% + 16px);
  inset-inline-end: -8px;
}

.main-hero {
  width: min(1120px, calc(100vw - clamp(44px, 8vw, 160px)));
  min-height: 100%;
  padding: clamp(var(--space-10), 30vh, var(--space-10)) 0 clamp(var(--space-8), 8vh, var(--space-10));
  place-items: start center;
}

.main-hero-shell {
  transform: none;
  width: 100%;
  align-items: center;
}

.main-hero-intro {
  width: 100%;
  align-items: center;
}

.main-hero-intro h1 {
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-2) clamp(var(--space-6), 2.7vw, var(--space-8));
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(42px, 4.05vw, 72px);
  font-weight: 220;
  line-height: 1.04;
  letter-spacing: 0;
}

.main-hero-intro h1 span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 220;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.12);
}

.main-hero-intro h1 em {
  color: #9fe8ff;
  font-style: normal;
  font-weight: 780;
  text-shadow:
    0 0 18px rgba(111, 219, 255, 0.48),
    0 0 72px rgba(111, 219, 255, 0.26);
}

.main-hero-intro .main-prompt {
  position: relative;
  width: min(860px, 100%);
  min-height: 238px;
  margin-top: clamp(var(--space-8), 5vh, var(--space-9));
  padding: var(--space-6) var(--space-5) var(--space-5) var(--space-7);
  border-radius: var(--radius-input);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    var(--home-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 120px rgba(90, 204, 242, 0.22);
  backdrop-filter: blur(34px) saturate(148%);
  -webkit-backdrop-filter: blur(34px) saturate(148%);
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.main-hero-intro .main-prompt::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at var(--prompt-x, 18%) var(--prompt-y, 18%), rgba(123, 215, 246, 0.12), transparent 34%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.07) 34%, transparent 58%);
  opacity: 0.76;
  animation: mainPromptAurora 7s ease-in-out infinite alternate;
}

.main-hero-intro .main-prompt:focus-within {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024)),
    var(--home-panel-strong);
  box-shadow:
    inset 0 0 0 1px rgba(123, 215, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 34px 110px rgba(0, 0, 0, 0.58),
    0 0 126px rgba(90, 204, 242, 0.3);
}

.main-prompt-field {
  flex: 1;
  min-height: 126px;
  justify-content: flex-start;
}

.main-typewriter-preview {
  top: 0;
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.54);
  font-size: clamp(19px, 1.42vw, 25px);
  font-weight: 300;
  line-height: 2.05;
  letter-spacing: 0.02em;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.main-typewriter-caret {
  width: 2px;
  height: 1.08em;
  margin-inline-start: var(--space-1);
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(159, 232, 255, 0.78);
  box-shadow: 0 0 16px rgba(111, 219, 255, 0.34);
  transform: translateY(0.16em);
  animation: mainTypeCaretBlink 920ms steps(1) infinite;
}

.main-hero-intro .main-prompt textarea {
  height: 100%;
  min-height: 124px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(19px, 1.42vw, 25px);
  font-weight: 300;
  line-height: 2.05;
  letter-spacing: 0.02em;
}

.main-attachment-row {
  margin-top: auto;
}

.main-prompt-actions {
  min-height: 48px;
  align-items: end;
}

.main-attach-btn {
  height: var(--button-height-default);
  min-height: var(--button-height-default);
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 760;
}

.main-attach-btn:hover {
  background: transparent;
  color: #fff;
}

.main-hero-intro .main-prompt .main-submit-btn {
  min-width: 132px;
  height: var(--button-height-prominent);
  padding: 0 var(--space-4);
  border-radius: var(--radius-card);
  gap: var(--space-2);
  background: linear-gradient(135deg, #bcefff, #62c9f0);
  color: #050607;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    -16px 0 50px rgba(98, 201, 240, 0.22),
    0 16px 44px rgba(0, 0, 0, 0.3);
}

.main-hero-intro .main-prompt .main-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #d7f7ff, #74d8ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    -18px 0 58px rgba(98, 201, 240, 0.28),
    0 20px 54px rgba(0, 0, 0, 0.35);
}

.main-prompt-error {
  width: min(860px, 100%);
}

@media (max-width: 900px) {
  .main-nav {
    width: min(100% - 40px, 1760px);
    min-height: 76px;
  }

  .main-brand-mark {
    width: 34px;
    height: 24px;
  }

  .main-brand-wordmark {
    width: 116px;
  }

  .main-nav-link {
    font-size: 14px;
  }

  .main-hero {
    width: min(100% - 40px, 1120px);
    padding-top: clamp(var(--space-10), 18vh, var(--space-10));
  }

  .main-hero-intro h1 {
    font-size: clamp(42px, 10vw, 72px);
  }

  .main-hero-intro .main-prompt {
    min-height: 238px;
  }
}

@media (max-width: 560px) {
  .main-nav {
    width: min(100% - 28px, 1760px);
    min-height: 66px;
  }

  .main-brand-wordmark {
    width: 96px;
  }

  .main-nav-actions {
    gap: var(--space-2);
  }

  .main-nav-actions .main-community-link,
  .main-nav-actions .main-workspace-entry span {
    display: none;
  }

  .main-hero {
    width: min(100% - 28px, 1120px);
    padding-top: var(--space-10);
  }

  .main-hero-intro h1 {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .main-hero-intro .main-prompt {
    min-height: 260px;
    padding: var(--space-5) var(--space-5) var(--space-5);
  }

  .main-typewriter-preview,
  .main-hero-intro .main-prompt textarea {
    font-size: 20px;
  }

  .main-prompt-actions {
    align-items: center;
  }

  .main-hero-intro .main-prompt .main-submit-btn {
    min-width: 102px;
  }
}

/* Workspace density pass: remove repeated "workspace" entry and give projects the first screen. */
.workspace-hero {
  width: min(1760px, calc(100% - clamp(40px, 7.6vw, 160px)));
  min-height: 0;
  padding: clamp(var(--space-4), 3vh, var(--space-7)) 0 var(--space-4);
  align-items: center;
}

.workspace-section-heading {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
}

.workspace-section-heading h1 {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

.workspace-section-heading span {
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 720;
}

.workspace-hero .workspace-create {
  min-height: 42px;
  padding-inline: var(--space-4);
}

.workspace-grid {
  width: min(1760px, calc(100% - clamp(40px, 7.6vw, 160px)));
  padding-top: var(--space-2);
}

.workspace-published-empty {
  width: min(1760px, calc(100% - clamp(40px, 7.6vw, 160px)));
  margin-top: var(--space-2);
}

@media (max-width: 760px) {
  .workspace-hero {
    width: min(100% - 28px, 1760px);
    flex-direction: row;
    align-items: center;
  }

  .workspace-grid,
  .workspace-published-empty {
    width: min(100% - 28px, 1760px);
  }
}

/* Silk reference pass: borrow the background/dialog feel without changing layout. */
.main-page {
  background: #071724;
}

.main-page::before {
  background:
    radial-gradient(circle at 50% 43%, rgba(168, 232, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 38%, rgba(72, 190, 232, 0.26), transparent 44%);
  filter: blur(12px);
  opacity: 0.76;
}

.main-page::after {
  background:
    radial-gradient(ellipse at 50% 44%, transparent 0%, transparent 34%, rgba(0, 0, 0, 0.2) 62%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(4, 24, 38, 0.32), rgba(2, 13, 24, 0.5)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.78));
}

.silk-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  background: #071724;
}

.silk-background canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.main-hero-intro .main-prompt {
  --prompt-x: 50%;
  --prompt-y: 50%;
  border-radius: 20px;
  background: rgba(9, 9, 11, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 2px rgba(130, 226, 255, 0.045),
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 120px rgba(90, 204, 242, 0.22);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
}

.main-hero-intro .main-prompt::before,
.main-hero-intro .main-prompt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.main-hero-intro .main-prompt::before {
  z-index: 0;
  background:
    radial-gradient(300px circle at var(--prompt-x) var(--prompt-y),
      rgba(232, 251, 255, 0.62),
      rgba(127, 208, 255, 0.3) 26%,
      rgba(226, 176, 255, 0.12) 48%,
      transparent 68%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.055) 34%, transparent 58%);
  filter: blur(22px);
  animation: none;
}

.main-hero-intro .main-prompt::after {
  z-index: 1;
  padding: var(--space-1);
  background:
    radial-gradient(250px circle at var(--prompt-x) var(--prompt-y),
      rgba(255, 255, 255, 0.9) 0%,
      rgba(135, 230, 255, 0.75) 24%,
      rgba(216, 182, 255, 0.38) 44%,
      rgba(255, 221, 176, 0.32) 54%,
      transparent 72%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.main-hero-intro .main-prompt:hover::before,
.main-hero-intro .main-prompt:hover::after,
.main-hero-intro .main-prompt:focus-within::before,
.main-hero-intro .main-prompt:focus-within::after {
  opacity: 1;
}

.main-prompt-field,
.main-prompt-actions {
  position: relative;
  z-index: 2;
}

.main-hero-intro .main-prompt:focus-within {
  background: rgba(9, 11, 13, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 0 0 2px rgba(130, 226, 255, 0.06),
    0 34px 110px rgba(0, 0, 0, 0.58),
    0 0 126px rgba(90, 204, 242, 0.26);
}

.main-typewriter-caret {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.main-hero-intro .main-prompt textarea {
  caret-color: rgba(255, 255, 255, 0.86);
}

.main-typewriter-text {
  display: inline;
  min-width: 0;
  overflow-wrap: anywhere;
}

.main-typewriter-preview {
  opacity: 1;
  transform: translateY(0);
}

.main-typewriter-preview.is-holding {
  color: rgba(255, 255, 255, 0.62);
}

.main-typewriter-preview.is-deleting {
  color: rgba(255, 255, 255, 0.42);
  opacity: 0.72;
}

.main-typewriter-preview.is-switching {
  opacity: 0;
  transform: translateY(5px);
}

@keyframes mainTypeCaretBlink {
  0%,
  46% {
    opacity: 1;
  }

  47%,
  100% {
    opacity: 0.18;
  }
}

/* Workspace brand lockup should match the homepage header exactly. */
.workspace-nav {
  width: min(1760px, calc(100% - clamp(40px, 7.6vw, 160px)));
  min-height: 86px;
  margin-inline: auto;
  padding: 0;
}

.workspace-nav-left {
  gap: clamp(var(--space-9), 4.8vw, var(--space-10));
}

.workspace-brand {
  gap: var(--space-3);
  padding: 0;
}

.workspace-brand-mark {
  width: 41px;
  height: 29px;
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.2))
    drop-shadow(0 0 36px rgba(123, 215, 246, 0.12));
}

.workspace-brand-wordmark {
  width: 144px;
  height: auto;
  filter:
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.16))
    drop-shadow(0 0 30px rgba(123, 215, 246, 0.08));
}

@media (max-width: 900px) {
  .workspace-nav {
    width: min(100% - 40px, 1760px);
    min-height: 76px;
  }

  .workspace-brand-mark {
    width: 34px;
    height: 24px;
  }

  .workspace-brand-wordmark {
    width: 116px;
  }
}

@media (max-width: 560px) {
  .workspace-nav {
    width: min(100% - 28px, 1760px);
    min-height: 66px;
  }

  .workspace-brand-wordmark {
    width: 96px;
  }
}

/* Lovable-style dashboard: left workspace rail + centered builder + collections. */
.workspace-page.dashboard-page {
  width: 100vw;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 57% 18%, rgba(108, 147, 255, 0.26), transparent 23%),
    radial-gradient(circle at 74% 35%, rgba(255, 83, 150, 0.18), transparent 24%),
    radial-gradient(circle at 50% 58%, rgba(255, 45, 95, 0.24), transparent 31%),
    linear-gradient(180deg, #171717 0%, #070707 64%, #000 100%);
  color: var(--text);
  transition: grid-template-columns 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.workspace-page.dashboard-page.dashboard-sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.workspace-page.dashboard-page::after {
  background:
    radial-gradient(ellipse at 62% 34%, transparent 0%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.56) 68%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 24%, transparent 74%, rgba(0, 0, 0, 0.64));
}

.dashboard-sidebar,
.dashboard-content {
  position: relative;
  z-index: 1;
}

.dashboard-sidebar {
  --sidebar-icon-rail: 42px;
  --sidebar-icon-size: 18px;
  /* 稿旁注点名的那条侧栏：这里从 100vh 换成 100%，横幅一加它才会跟着往下走
     而不是多出一条溢出 */
  height: 100%;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(8, 8, 9, 0.88);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.07),
    14px 0 46px rgba(0, 0, 0, 0.22);
  transition:
    padding 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 260ms ease,
    background 260ms ease;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 8px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
}

.dashboard-sidebar button,
.dashboard-topbar button,
.dashboard-shelf button,
.dashboard-prompt button,
.dashboard-file-dialog button,
.dashboard-share-dialog button,
.dashboard-project-card,
.dashboard-template-card {
  border: 0;
  font: inherit;
}

.dashboard-sidebar-top {
  position: relative;
  display: grid;
  gap: var(--space-3);
}

.dashboard-sidebar-brand-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.dashboard-sidebar-logo {
  position: relative;
  width: fit-content;
  min-height: 34px;
  padding: 0;
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) auto;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  background: transparent;
  color: #fff;
}

.dashboard-sidebar-mark {
  justify-self: center;
  width: 28px;
  height: 22px;
  transition:
    opacity 0.18s ease,
    transform 0.2s ease;
}

.dashboard-sidebar-wordmark {
  width: 78px;
  height: auto;
}

.dashboard-sidebar-expand-glyph {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  transition:
    opacity 0.18s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.dashboard-sidebar-expand-glyph svg {
  transform: rotate(-90deg);
}

.dashboard-sidebar-collapse {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
}

.dashboard-sidebar-collapse:hover {
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}

.dashboard-sidebar-collapsed .dashboard-sidebar {
  padding: var(--space-4) var(--space-3);
  align-items: stretch;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-top,
.dashboard-sidebar-collapsed .dashboard-menu,
.dashboard-sidebar-collapsed .dashboard-recents,
.dashboard-sidebar-collapsed .dashboard-sidebar-bottom {
  width: 100%;
}

.dashboard-sidebar-collapsed .dashboard-project-menu,
.dashboard-sidebar-collapsed .dashboard-recents,
.dashboard-sidebar-collapsed .dashboard-sidebar-bottom {
  display: none;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-brand-row {
  display: grid;
  justify-content: start;
  align-content: start;
  min-height: 86px;
  gap: 0;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-logo {
  width: 42px;
  height: 42px;
  grid-template-columns: 42px;
  justify-content: start;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-sidebar-collapsed .dashboard-sidebar-logo .dashboard-sidebar-expand-glyph {
  display: grid;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-logo:hover .dashboard-sidebar-expand-glyph,
.dashboard-sidebar-collapsed .dashboard-sidebar-logo:focus-visible .dashboard-sidebar-expand-glyph {
  color: #fff;
  opacity: 1;
  transform: scale(1);
}

.dashboard-sidebar-collapsed .dashboard-sidebar-wordmark {
  display: none;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-mark {
  width: 25px;
  height: 19px;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-collapse {
  margin: 0;
}

.dashboard-workspace-switch {
  min-height: 34px;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  text-align: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dashboard-workspace-avatar {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ef44ff, #5d5bff);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-workspace-copy {
  min-width: 0;
  display: grid;
  align-items: center;
}

.dashboard-workspace-copy strong,
.dashboard-workspace-copy small,
.dashboard-recents button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-workspace-copy strong {
  font-size: 13px;
  font-weight: 760;
}

.dashboard-workspace-copy small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 620;
}

.dashboard-workspace-menu {
  position: absolute;
  top: 84px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 8;
  padding: var(--space-2);
  border-radius: var(--radius-card);
  display: grid;
  gap: var(--space-1);
  background: rgba(24, 24, 26, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    0 20px 48px rgba(0, 0, 0, 0.38);
}

.dashboard-workspace-menu-head {
  padding: var(--space-2) var(--space-2) var(--space-2);
  display: grid;
  gap: var(--space-1);
}

.dashboard-workspace-menu-head strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 760;
}

.dashboard-workspace-menu-head span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  font-weight: 650;
}

.dashboard-workspace-menu button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-2);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: start;
  cursor: pointer;
}

.dashboard-workspace-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dashboard-workspace-menu button span,
.dashboard-workspace-menu button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-workspace-menu button span {
  font-size: 12px;
  font-weight: 700;
}

.dashboard-workspace-menu button small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 650;
}

.dashboard-menu {
  display: grid;
  gap: var(--space-1);
}

.dashboard-project-menu {
  margin-top: var(--space-3);
}

.dashboard-menu-title {
  margin: var(--space-3) var(--space-2) var(--space-2);
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 720;
}

.dashboard-menu button,
.dashboard-recents button {
  width: 100%;
  min-height: var(--button-height-prominent);
  padding: 0 var(--space-2) 0 0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  text-align: start;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-expandable-row {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) minmax(0, 1fr);
  align-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-expandable-row:hover,
.dashboard-expandable-row.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dashboard-expandable-row.active {
  box-shadow: none;
}

.dashboard-menu .dashboard-expandable-toggle,
.dashboard-menu .dashboard-expandable-main {
  min-height: var(--button-height-prominent);
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.dashboard-menu .dashboard-expandable-toggle {
  width: var(--sidebar-icon-rail);
  min-width: var(--sidebar-icon-rail);
  border-radius: 12px;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;
}

.dashboard-menu .dashboard-expandable-main {
  border-radius: 0 12px 12px 0;
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-menu .dashboard-expandable-toggle:hover,
.dashboard-menu .dashboard-expandable-main:hover {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.dashboard-menu button > svg:first-child,
.dashboard-recents button > svg:first-child,
.dashboard-menu button > .dashboard-expandable-icon:first-child {
  justify-self: center;
  width: var(--sidebar-icon-size);
  height: var(--sidebar-icon-size);
}

.dashboard-menu button > .dashboard-expandable-icon:first-child {
  width: 30px;
  height: 30px;
}

.dashboard-expandable-icon {
  position: relative;
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.68);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.2s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dashboard-expandable-icon svg {
  grid-area: 1 / 1;
  transition:
    opacity 0.16s ease,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dashboard-expandable-base-icon {
  opacity: 1;
  transform: scale(1);
}

.dashboard-expandable-chevron {
  opacity: 0;
  transform: rotate(-90deg) scale(0.84);
}

.dashboard-expandable-row:hover .dashboard-expandable-icon,
.dashboard-expandable-row.active .dashboard-expandable-icon,
.dashboard-expandable-row.expanded .dashboard-expandable-icon,
.dashboard-project-root-row:hover .dashboard-expandable-icon,
.dashboard-project-root-main:hover .dashboard-expandable-icon,
.dashboard-project-root-row.active .dashboard-expandable-icon,
.dashboard-project-root-row.expanded .dashboard-expandable-icon,
.dashboard-project-root-row.menu-open .dashboard-expandable-icon {
  background: rgba(255, 255, 255, 0.105);
  color: #fff;
}

.dashboard-expandable-row:hover .dashboard-expandable-base-icon,
.dashboard-expandable-row.expanded .dashboard-expandable-base-icon,
.dashboard-project-root-row:hover .dashboard-expandable-base-icon,
.dashboard-project-root-main:hover .dashboard-expandable-base-icon,
.dashboard-project-root-row.expanded .dashboard-expandable-base-icon {
  opacity: 0;
  transform: scale(0.78);
}

.dashboard-expandable-row:hover .dashboard-expandable-chevron,
.dashboard-expandable-row.expanded .dashboard-expandable-chevron,
.dashboard-project-root-row:hover .dashboard-expandable-chevron,
.dashboard-project-root-main:hover .dashboard-expandable-chevron,
.dashboard-project-root-row.expanded .dashboard-expandable-chevron {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.dashboard-menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    opacity 0.18s ease,
    transform 0.2s ease;
}

.dashboard-menu-trailing {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: var(--space-1);
  transition:
    opacity 0.18s ease,
    transform 0.2s ease;
}

.dashboard-sidebar-collapsed .dashboard-menu {
  justify-items: start;
}

.dashboard-sidebar-collapsed .dashboard-menu-title {
  width: 100%;
  height: 1px;
  margin: var(--space-2) 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
  color: transparent;
}

.dashboard-sidebar-collapsed .dashboard-menu button,
.dashboard-sidebar-collapsed .dashboard-recents button {
  position: relative;
  width: var(--sidebar-icon-rail);
  min-width: var(--sidebar-icon-rail);
  min-height: var(--button-height-prominent);
  padding: 0;
  border-radius: 12px;
  grid-template-columns: var(--sidebar-icon-rail);
  justify-content: start;
  gap: 0;
}

.dashboard-sidebar-collapsed .dashboard-menu-label,
.dashboard-sidebar-collapsed .dashboard-menu-trailing,
.dashboard-sidebar-collapsed .dashboard-recents button span {
  display: none;
}

.dashboard-sidebar-collapsed .dashboard-project-root-row {
  width: var(--sidebar-icon-rail);
  min-width: var(--sidebar-icon-rail);
  min-height: var(--sidebar-icon-rail);
  grid-template-columns: var(--sidebar-icon-rail);
  justify-self: start;
}

.dashboard-sidebar-collapsed .dashboard-menu .dashboard-project-root-main {
  min-height: var(--sidebar-icon-rail);
  border-radius: 12px;
  grid-template-columns: var(--sidebar-icon-rail);
}

.dashboard-sidebar-collapsed .dashboard-menu .dashboard-project-more,
.dashboard-sidebar-collapsed .dashboard-project-action-menu {
  display: none;
}

.dashboard-sidebar-collapsed .dashboard-expandable-row {
  width: var(--sidebar-icon-rail);
  min-width: var(--sidebar-icon-rail);
  min-height: var(--sidebar-icon-rail);
  grid-template-columns: var(--sidebar-icon-rail);
  justify-self: start;
}

.dashboard-sidebar-collapsed .dashboard-menu .dashboard-expandable-toggle {
  width: var(--sidebar-icon-rail);
  min-width: var(--sidebar-icon-rail);
  min-height: var(--button-height-prominent);
  border-radius: 12px;
  grid-template-columns: 1fr;
}

.dashboard-sidebar-collapsed .dashboard-menu .dashboard-expandable-main {
  display: none;
}

.dashboard-sidebar-collapsed .dashboard-menu-badge {
  position: absolute;
  top: 5px;
  inset-inline-end: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 var(--space-1);
  background: rgba(29, 155, 240, 0.72);
  color: #fff;
  font-size: 9px;
}

.dashboard-menu button:hover,
.dashboard-recents button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.dashboard-menu button.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.dashboard-project-root-row {
  position: relative;
  min-height: 40px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.dashboard-project-root-row:hover,
.dashboard-project-root-row.active,
.dashboard-project-root-row.menu-open {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.dashboard-project-root-row.active {
  box-shadow: none;
}

.dashboard-menu .dashboard-project-root-main {
  min-height: 40px;
  padding: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.dashboard-menu .dashboard-project-root-main:hover,
.dashboard-menu .dashboard-project-root-main.active,
.dashboard-project-root-row.active .dashboard-project-root-main {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.dashboard-menu .dashboard-project-more {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-control);
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  justify-self: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-menu .dashboard-project-more:hover,
.dashboard-project-root-row.menu-open .dashboard-project-more {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-project-action-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 2px;
  z-index: 30;
  width: 196px;
  padding: var(--space-2);
  border-radius: var(--radius-card-large);
  display: grid;
  gap: var(--space-1);
  background: rgba(18, 18, 18, 0.98);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: dashboardProjectMenuIn 160ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.dashboard-menu .dashboard-project-action-menu button {
  min-height: var(--button-height-prominent);
  padding: 0 var(--space-3) 0 0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 620;
}

.dashboard-menu .dashboard-project-action-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-menu .dashboard-project-action-menu button > svg:first-child {
  justify-self: center;
}

@keyframes dashboardProjectMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dashboard-menu-chevron {
  color: rgba(255, 255, 255, 0.36);
  transform: rotate(-90deg);
  transition: transform 160ms ease, color 160ms ease;
}

.dashboard-menu-chevron.expanded {
  color: rgba(139, 213, 255, 0.82);
  transform: rotate(0deg);
}

.dashboard-directory-group {
  display: grid;
  grid-template-rows: 0fr;
  gap: 0;
  margin: 0 0 var(--space-1);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    grid-template-rows 260ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dashboard-directory-group.open {
  grid-template-rows: 1fr;
  gap: var(--space-1);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dashboard-directory-inner {
  min-height: 0;
  display: grid;
  gap: var(--space-1);
  overflow: hidden;
}

.dashboard-folder-row {
  min-height: 34px;
  margin: 0;
  padding: 0 var(--space-2) 0 0;
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 560;
}

.dashboard-folder-row::before {
  content: "";
  justify-self: center;
  width: var(--sidebar-icon-size);
  height: var(--sidebar-icon-size);
}

.dashboard-sidebar-collapsed .dashboard-directory-group,
.dashboard-sidebar-collapsed .dashboard-folder-row {
  display: none;
}

.dashboard-folder-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-folder-empty {
  min-height: 30px;
  padding: 0 var(--space-2) 0 0;
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) minmax(0, 1fr);
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 540;
}

.dashboard-folder-empty::before {
  content: "";
  justify-self: center;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-folder-list {
  display: grid;
  gap: var(--space-1);
  margin: 0 0 var(--space-1);
}

.dashboard-folder-list button {
  width: 100%;
  min-height: var(--button-height-default);
  padding: 0 var(--space-2) 0 0;
  border-radius: var(--radius-control);
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  text-align: start;
  font-size: 12px;
  font-weight: 650;
}

.dashboard-folder-list button > svg:first-child {
  justify-self: center;
  width: calc(var(--sidebar-icon-size) - 2px);
  height: calc(var(--sidebar-icon-size) - 2px);
}

.dashboard-folder-list button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.dashboard-folder-list button.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  box-shadow: none;
}

.dashboard-folder-list span,
.dashboard-folder-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-folder-list small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

.dashboard-sidebar-collapsed .dashboard-folder-list {
  display: none;
}

.dashboard-created-preview {
  margin: 0 0 var(--space-1);
  display: grid;
  grid-template-rows: 0fr;
  gap: var(--space-1);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    grid-template-rows 260ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dashboard-created-preview.open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dashboard-created-preview-inner {
  min-height: 0;
  display: grid;
  gap: var(--space-1);
  overflow: hidden;
  padding: 0;
  transition: padding 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dashboard-created-preview.open .dashboard-created-preview-inner {
  padding: var(--space-1) 0 var(--space-1);
}

.dashboard-created-preview button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-2) 0 0;
  border-radius: var(--radius-control);
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  text-align: start;
  font-size: 12px;
  font-weight: 650;
}

.dashboard-created-preview button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-created-preview i {
  justify-self: center;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.035);
}

.dashboard-created-preview span,
.dashboard-created-preview small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-created-preview small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-created-preview .dashboard-created-more {
  color: rgba(255, 255, 255, 0.46);
}

.dashboard-nested-empty {
  min-height: 34px;
  padding: 0 var(--space-2) 0 0;
  display: grid;
  grid-template-columns: var(--sidebar-icon-rail) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 540;
}

.dashboard-nested-empty::before {
  content: "";
  justify-self: center;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-folder-dialog {
  max-width: 430px;
}

.dashboard-folder-manager {
  max-width: 560px;
}

.dashboard-folder-manager-list {
  display: grid;
  gap: var(--space-2);
  max-height: 330px;
  overflow: auto;
  padding: var(--space-1) var(--space-1) var(--space-1);
}

.dashboard-folder-manager-list::-webkit-scrollbar {
  width: 8px;
}

.dashboard-folder-manager-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-folder-manager-item {
  min-height: 58px;
  padding: var(--space-2);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
}

.dashboard-folder-manager-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.9);
  text-align: start;
}

.dashboard-folder-manager-open span,
.dashboard-folder-manager-open small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-folder-manager-open span {
  font-size: 14px;
  font-weight: 760;
}

.dashboard-folder-manager-open small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 680;
}

.dashboard-folder-manager-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.dashboard-folder-manager-actions button,
.dashboard-folder-manager-edit button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-2);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-folder-manager-actions button:hover,
.dashboard-folder-manager-edit button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-folder-manager-actions button.danger,
.dashboard-folder-manager-actions button:first-child:last-child {
  color: #ff9aa2;
}

.dashboard-folder-manager-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: var(--space-2);
}

.dashboard-folder-manager-edit input {
  min-height: 34px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dashboard-folder-manager-edit input:focus {
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.78),
    0 0 0 3px rgba(29, 155, 240, 0.12);
}

.dashboard-folder-manager-empty {
  min-height: 150px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065);
}

.dashboard-folder-manager-empty strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.dashboard-folder-manager-empty span {
  font-size: 13px;
  font-weight: 640;
}

.dashboard-menu kbd {
  min-width: 18px;
  height: 18px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-control);
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-family: inherit;
  font-weight: 760;
}

.dashboard-menu-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 var(--space-1);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1;
  font-weight: 760;
}

.dashboard-menu-badge-loading {
  width: 18px;
  padding: 0;
  color: transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  background-size: 160% 100%;
  animation: dashboard-badge-loading 1.1s ease-in-out infinite;
}

@keyframes dashboard-badge-loading {
  0% { background-position: 120% 0; }
  100% { background-position: -60% 0; }
}

.dashboard-menu button.active .dashboard-menu-badge {
  background: rgba(29, 155, 240, 0.16);
  color: rgba(139, 213, 255, 0.94);
}

.dashboard-menu button.active .dashboard-menu-badge-loading {
  color: transparent;
  background: linear-gradient(90deg, rgba(139, 213, 255, 0.08), rgba(139, 213, 255, 0.2), rgba(139, 213, 255, 0.08));
  background-size: 160% 100%;
}

.dashboard-recents {
  flex: 0 0 auto;
  display: grid;
  align-content: start;
  gap: var(--space-1);
}

.dashboard-sidebar-collapsed .dashboard-recents {
  justify-items: center;
}

.dashboard-recents p {
  margin: var(--space-1) var(--space-2) 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.dashboard-sidebar-bottom {
  flex: 0 0 auto;
  padding-bottom: var(--space-1);
  display: grid;
  gap: var(--space-2);
}

.dashboard-sidebar-collapsed .dashboard-side-card {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  grid-template-columns: 1fr;
  place-items: center;
}

.dashboard-sidebar-collapsed .dashboard-side-card span,
.dashboard-sidebar-collapsed .dashboard-side-card > svg:last-child {
  display: none;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-bottom .account-entry {
  width: 42px;
  min-height: 42px;
  padding: 0;
  justify-content: center;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-bottom .account-entry span,
.dashboard-sidebar-collapsed .dashboard-sidebar-bottom .account-entry strong,
.dashboard-sidebar-collapsed .dashboard-sidebar-bottom .account-entry small {
  display: none;
}

.dashboard-side-card {
  min-height: 54px;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  text-align: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dashboard-side-card span {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

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

.dashboard-side-card strong {
  font-size: 13px;
  font-weight: 760;
}

.dashboard-side-card small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
}

.dashboard-sidebar-bottom .account-entry {
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 var(--space-2);
  background: transparent;
  box-shadow: none;
}

.dashboard-content {
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.dashboard-content::-webkit-scrollbar {
  width: 10px;
}

.dashboard-content::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}

.dashboard-topbar {
  min-height: 62px;
  padding: var(--space-3) var(--space-7) 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.dashboard-topbar-brand {
  display: none;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: #fff;
}

.dashboard-topbar-mark {
  width: 27px;
  height: 20px;
}

.dashboard-topbar-wordmark {
  width: 86px;
}

.dashboard-topbar-actions {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-topbar-actions > button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 720;
}

.dashboard-topbar-actions > button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-alert {
  width: min(1000px, calc(100% - 64px));
  margin: var(--space-3) auto 0;
}

.dashboard-hero {
  min-height: 545px;
  padding: clamp(var(--space-10), 10vh, var(--space-10)) var(--space-7) var(--space-9);
  display: grid;
  justify-items: center;
  align-content: center;
}

.dashboard-connectors-pill {
  min-height: 38px;
  padding: 0 var(--space-3) 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(20, 20, 22, 0.52);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 760;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 42px rgba(0, 0, 0, 0.26);
}

.dashboard-connector-orbs {
  display: inline-flex;
  align-items: center;
}

.dashboard-connector-orbs i {
  width: 22px;
  height: 22px;
  margin-inline-start: calc(var(--space-1) * -1);
  border-radius: var(--radius-pill);
  display: block;
  background: linear-gradient(145deg, #ff7a45, #fff2d6);
  box-shadow: 0 0 0 2px rgba(8, 8, 8, 0.9);
}

.dashboard-connector-orbs i:first-child {
  margin-inline-start: 0;
}

.dashboard-connector-orbs i:nth-child(2) {
  background: linear-gradient(145deg, #42d6ff, #e8fbff);
}

.dashboard-connector-orbs i:nth-child(3) {
  background: linear-gradient(145deg, #9d8cff, #fff);
}

.dashboard-hero h1 {
  margin: var(--space-5) 0 var(--space-6);
  color: #fff;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: 0;
  text-align: center;
}

.dashboard-prompt {
  width: min(680px, 100%);
  min-height: 108px;
  padding: var(--space-5);
  border-radius: var(--radius-dialog);
  display: grid;
  gap: var(--space-3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(22, 22, 22, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 120px rgba(0, 0, 0, 0.36),
    0 0 100px rgba(255, 55, 115, 0.08);
}

.dashboard-prompt textarea {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.5;
}

.dashboard-prompt textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dashboard-prompt-attachments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.dashboard-attachment-chip {
  min-width: 0;
  max-width: min(260px, 100%);
  min-height: var(--button-height-prominent);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-1);
  border-radius: var(--radius-card);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.072);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 680;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.085);
}

.dashboard-attachment-thumb {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(114, 229, 255, 0.24), transparent 70%),
    rgba(255, 255, 255, 0.08);
  color: rgba(186, 236, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
}

.dashboard-attachment-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dashboard-attachment-copy {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

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

.dashboard-attachment-copy strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 720;
}

.dashboard-attachment-copy small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 620;
}

.dashboard-attachment-chip > button {
  width: 22px;
  height: var(--button-height-compact);
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
}

.dashboard-attachment-chip > button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-attachments-clear {
  min-height: 30px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-attachments-clear:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-prompt-drop-hint {
  position: absolute;
  inset: 8px;
  z-index: 3;
  border-radius: var(--radius-dialog);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  pointer-events: none;
  background: rgba(29, 155, 240, 0.13);
  color: #dff5ff;
  font-size: 14px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(118, 225, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dashboard-prompt.is-dragging-files,
.dashboard-file-drop.is-dragging-files {
  box-shadow:
    inset 0 0 0 1px rgba(118, 225, 255, 0.44),
    0 0 0 1px rgba(118, 225, 255, 0.08),
    0 0 54px rgba(29, 155, 240, 0.16);
}

.dashboard-share-layer,
.dashboard-file-layer,
.dashboard-notice-layer,
.dashboard-resource-preview-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background:
    radial-gradient(circle at 52% 24%, rgba(29, 155, 240, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(14px);
}

.dashboard-share-dialog,
.dashboard-file-dialog,
.dashboard-notice-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: var(--space-6);
  border-radius: var(--radius-dialog);
  display: grid;
  gap: var(--space-3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(18, 18, 20, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    0 28px 110px rgba(0, 0, 0, 0.48);
}

.dashboard-share-dialog {
  width: min(620px, 100%);
  gap: var(--space-4);
}

.dashboard-notice-dialog {
  width: min(560px, 100%);
  gap: var(--space-4);
}

.dashboard-share-dialog > span,
.dashboard-file-dialog > span,
.dashboard-notice-dialog > span {
  width: fit-content;
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(29, 155, 240, 0.13);
  color: #8ed5ff;
  font-size: 12px;
  font-weight: 820;
}

.dashboard-share-dialog h2,
.dashboard-share-dialog p,
.dashboard-file-dialog h2,
.dashboard-file-dialog p,
.dashboard-notice-dialog h2,
.dashboard-notice-dialog p {
  margin: 0;
}

.dashboard-share-dialog h2,
.dashboard-file-dialog h2,
.dashboard-notice-dialog h2 {
  color: #fff;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 820;
}

.dashboard-share-dialog p,
.dashboard-file-dialog p,
.dashboard-notice-dialog p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-share-close,
.dashboard-file-close,
.dashboard-notice-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-share-close:hover,
.dashboard-file-close:hover,
.dashboard-notice-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-notice-list {
  display: grid;
  gap: var(--space-2);
}

.dashboard-notice-list div {
  min-height: 42px;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.052);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.066);
}

.dashboard-notice-list i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  display: block;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(29, 155, 240, 0.65);
}

.dashboard-notice-qr {
  width: min(280px, 100%);
  margin: var(--space-1) auto 0;
  padding: var(--space-3);
  border-radius: 20px;
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.052)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 64px rgba(0, 0, 0, 0.3);
}

.dashboard-notice-qr img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  display: block;
  object-fit: contain;
  background: #fff;
}

.dashboard-notice-qr strong,
.dashboard-notice-qr small {
  padding-inline: var(--space-1);
  text-align: center;
}

.dashboard-notice-qr strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 780;
}

.dashboard-notice-qr small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 620;
}

.dashboard-notice-actions {
  margin-top: var(--space-1);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.dashboard-notice-actions button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 780;
}

.dashboard-notice-actions button:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.dashboard-notice-actions button.primary {
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
}

.dashboard-share-preview {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border-radius: 20px;
  background: #06080a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.085),
    0 22px 70px rgba(0, 0, 0, 0.32);
}

.dashboard-share-preview .dashboard-cover iframe {
  opacity: 0.96;
  filter: saturate(1.02) brightness(0.96);
}

.dashboard-share-preview .dashboard-cover-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.68)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 62%);
}

.dashboard-share-preview .dashboard-cover-mark {
  width: 42px;
  height: 30px;
}

.dashboard-share-preview-copy {
  position: absolute;
  inset-inline-start: 22px;
  inset-inline-end: 22px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: var(--space-2);
}

.dashboard-share-preview-copy span,
.dashboard-share-preview-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 720;
}

.dashboard-share-preview-copy span {
  width: fit-content;
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(29, 155, 240, 0.15);
  color: #8ed5ff;
}

.dashboard-share-preview-copy strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 820;
}

.dashboard-share-url {
  display: grid;
  gap: var(--space-2);
}

.dashboard-share-url span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-share-url input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-input);
  outline: none;
  padding: 0 var(--space-3);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
}

.dashboard-share-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.dashboard-share-actions button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 780;
}

.dashboard-share-actions button:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.dashboard-share-actions button:last-child {
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
}

.dashboard-file-drop {
  min-height: 132px;
  padding: var(--space-5);
  border-radius: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-2);
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 155, 240, 0.14), transparent 56%),
    rgba(255, 255, 255, 0.052);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(29, 155, 240, 0.08);
}

.dashboard-file-drop strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.dashboard-file-drop small {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-file-drop:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 155, 240, 0.2), transparent 56%),
    rgba(255, 255, 255, 0.072);
}

.dashboard-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.dashboard-file-list .dashboard-attachment-chip {
  max-width: 100%;
}

.dashboard-file-actions {
  margin-top: var(--space-1);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.dashboard-file-actions button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 780;
}

.dashboard-file-actions button.primary {
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
}

.dashboard-file-actions button:disabled {
  opacity: 0.45;
}

.dashboard-command-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: start center;
  padding: min(11vh, var(--space-10)) var(--space-6) var(--space-6);
  background:
    radial-gradient(circle at 50% 7%, rgba(29, 155, 240, 0.16), transparent 32%),
    rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(16px);
}

.dashboard-command-dialog {
  width: min(720px, 100%);
  overflow: hidden;
  border-radius: var(--radius-dialog);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(17, 18, 20, 0.97);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 36px 120px rgba(0, 0, 0, 0.56);
}

.dashboard-command-search {
  min-height: 68px;
  padding: 0 var(--space-4);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-command-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 650;
}

.dashboard-command-search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.dashboard-command-search kbd {
  min-width: 38px;
  height: 26px;
  padding: 0 var(--space-2);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-family: inherit;
  font-weight: 780;
}

.dashboard-command-body {
  max-height: min(68vh, 620px);
  overflow-y: auto;
  padding: var(--space-3);
  display: grid;
  gap: var(--space-3);
}

.dashboard-command-body::-webkit-scrollbar {
  width: 8px;
}

.dashboard-command-body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  background-clip: padding-box;
}

.dashboard-command-section {
  display: grid;
  gap: var(--space-2);
}

.dashboard-command-section > span {
  padding: 0 var(--space-1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.dashboard-command-actions,
.dashboard-command-results {
  display: grid;
  gap: var(--space-1);
}

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

.dashboard-command-actions.compact {
  grid-template-columns: 1fr;
}

.dashboard-command-actions button,
.dashboard-command-results button {
  min-width: 0;
  min-height: var(--button-height-prominent);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  text-align: start;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.dashboard-command-actions button:hover,
.dashboard-command-results button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.28),
    0 14px 42px rgba(0, 0, 0, 0.26);
}

.dashboard-command-actions button span,
.dashboard-command-results button span {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.dashboard-command-actions strong,
.dashboard-command-actions small,
.dashboard-command-results strong,
.dashboard-command-results small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-command-actions strong,
.dashboard-command-results strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 790;
}

.dashboard-command-actions small,
.dashboard-command-results small,
.dashboard-command-results em {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-style: normal;
  font-weight: 680;
}

.dashboard-command-results i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.dashboard-command-empty {
  min-height: 86px;
  padding: var(--space-4);
  border-radius: var(--radius-card);
  display: grid;
  align-content: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.dashboard-command-empty strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.dashboard-command-empty small {
  font-size: 12px;
}

.dashboard-prompt-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-prompt-plus,
.dashboard-mic-btn,
.dashboard-send-btn {
  width: 34px;
  height: var(--button-height-default);
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}

.dashboard-build-mode {
  margin-inline-start: auto;
  min-height: 32px;
  padding: 0 var(--space-2) 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-send-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dashboard-send-btn:hover:not(:disabled),
.dashboard-prompt-plus:hover:not(:disabled),
.dashboard-mic-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
}

.dashboard-send-btn:disabled,
.dashboard-prompt-plus:disabled,
.dashboard-mic-btn:disabled {
  opacity: 0.55;
}

.dashboard-shelf {
  width: min(1100px, calc(100% - 64px));
  min-height: 330px;
  margin: 0 auto var(--space-10);
  padding: var(--space-4);
  border-radius: var(--radius-dialog) var(--radius-dialog) 0 0;
  background:
    linear-gradient(180deg, rgba(17, 9, 12, 0.88), rgba(5, 5, 6, 0.95)),
    rgba(0, 0, 0, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 -28px 100px rgba(255, 49, 113, 0.1);
}

.dashboard-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.dashboard-shelf-tabs {
  min-height: 38px;
  padding: var(--space-1);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.dashboard-shelf-tabs button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-shelf-tabs button small {
  min-width: 18px;
  height: 18px;
  padding: 0 var(--space-1);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  line-height: 1;
  font-weight: 780;
}

.dashboard-shelf-tabs button.active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.dashboard-shelf-tabs button.active small {
  background: rgba(29, 155, 240, 0.16);
  color: rgba(139, 213, 255, 0.94);
}

.dashboard-browse-all {
  min-height: 34px;
  padding: 0 var(--space-2) 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-collection {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(var(--space-8), 6vh, var(--space-10)) 0 var(--space-10);
}

.dashboard-collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.dashboard-collection-head > div {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.dashboard-collection-head > div > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-collection-head h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-collection-head p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.75;
}

.dashboard-collection-action {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 var(--space-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
  font-size: 14px;
  font-weight: 820;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 255, 255, 0.08);
}

.dashboard-collection-action:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.dashboard-collection-action:disabled {
  cursor: progress;
  opacity: 0.58;
}

.dashboard-search-panel {
  width: min(760px, 100%);
  margin-bottom: var(--space-5);
  display: grid;
  gap: var(--space-2);
}

.dashboard-search-box {
  width: 100%;
  min-height: 46px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dashboard-search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.dashboard-search-box kbd {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 760;
}

.dashboard-search-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-search-scopes {
  min-width: 0;
  padding: var(--space-1);
  border-radius: 999px;
  display: inline-flex;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065);
  overflow-x: auto;
}

.dashboard-search-scopes button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.dashboard-search-scopes button.active {
  background: rgba(29, 155, 240, 0.16);
  color: #9bdcff;
}

.dashboard-project-grid,
.dashboard-template-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.dashboard-home-starter {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: var(--space-3);
}

.dashboard-home-create,
.dashboard-home-template {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-card-large);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.022);
  color: var(--text);
  text-align: start;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 24px 80px rgba(0, 0, 0, 0.34);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-home-create:hover:not(:disabled),
.dashboard-home-template:hover:not(:disabled) {
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.036)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 92px rgba(0, 0, 0, 0.4);
}

.dashboard-home-create:disabled,
.dashboard-home-template:disabled {
  cursor: progress;
  opacity: 0.62;
}

.dashboard-home-create {
  min-height: 188px;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: end;
  gap: var(--space-3);
}

.dashboard-home-create > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.dashboard-home-create strong,
.dashboard-home-template span {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

.dashboard-home-create strong {
  font-size: 22px;
}

.dashboard-home-create small,
.dashboard-home-template small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.dashboard-home-create > svg {
  justify-self: end;
  width: 34px;
  height: 34px;
  padding: var(--space-2);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-home-templates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.dashboard-home-template {
  min-height: 188px;
  padding: var(--space-4);
  display: grid;
  align-content: end;
  gap: var(--space-2);
}

.dashboard-home-template::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background:
    radial-gradient(circle at 22% 16%, rgba(29, 155, 240, 0.22), transparent 40%),
    radial-gradient(circle at 84% 0%, rgba(255, 255, 255, 0.1), transparent 26%);
  pointer-events: none;
}

.dashboard-home-template.tone-paper::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 82% 80%, rgba(218, 188, 119, 0.18), transparent 38%);
}

.dashboard-home-template.tone-event::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(129, 118, 255, 0.2), transparent 40%),
    radial-gradient(circle at 82% 80%, rgba(255, 49, 113, 0.15), transparent 38%);
}

.dashboard-home-template span,
.dashboard-home-template small {
  position: relative;
  z-index: 1;
}

.dashboard-home-template span {
  font-size: 18px;
}

.dashboard-project-card,
.dashboard-template-card {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  border-radius: var(--radius-card-large);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.022);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 24px 80px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  text-align: start;
}

.dashboard-project-card.active {
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.46),
    0 24px 80px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(29, 155, 240, 0.16);
}

.dashboard-project-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.dashboard-new-card {
  padding: var(--space-6);
  display: grid;
  align-content: end;
  gap: var(--space-2);
}

.dashboard-new-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(29, 155, 240, 0.14);
  color: var(--blue);
}

.dashboard-new-card strong,
.dashboard-card-body h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 780;
}

.dashboard-new-card small,
.dashboard-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 650;
}

.dashboard-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(29, 155, 240, 0.16), transparent 48%), #07090b;
}

.dashboard-cover iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transform: none;
  transform-origin: center;
  opacity: 1;
  filter: saturate(1) brightness(0.94);
}

.dashboard-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 62%);
}

.dashboard-cover-mark {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  width: 34px;
  height: 24px;
  opacity: 0.78;
}

.dashboard-card-actions {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.dashboard-project-card:hover .dashboard-card-actions,
.dashboard-project-card:focus-within .dashboard-card-actions,
.dashboard-card-actions.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dashboard-card-action {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-card-action:hover:not(:disabled) {
  background: rgba(29, 155, 240, 0.2);
  color: #9fd8ff;
}

.dashboard-card-action.share {
  width: auto;
  min-width: 66px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  grid-auto-flow: column;
  gap: var(--space-1);
}

.dashboard-card-action.share span {
  font-size: 12px;
  font-weight: 720;
}

.dashboard-card-action.star.is-starred {
  background: rgba(255, 255, 255, 0.92);
  color: #101010;
}

.dashboard-card-action.star.is-starred:hover:not(:disabled) {
  background: #fff;
  color: #101010;
}

.dashboard-card-action.danger:hover:not(:disabled) {
  background: var(--red-soft);
  color: #ff8f96;
}

.dashboard-card-menu {
  position: absolute;
  top: 40px;
  inset-inline-end: 0;
  width: 170px;
  max-height: 218px;
  padding: var(--space-1);
  border-radius: var(--radius-card);
  display: grid;
  gap: var(--space-1);
  overflow: auto;
  background: rgba(20, 20, 22, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.36);
}

.dashboard-card-menu button {
  min-height: var(--button-height-compact);
  padding: 0 var(--space-2);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 690;
  text-align: start;
}

.dashboard-card-menu-section {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  margin: var(--space-1) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-card-menu-section > span {
  padding: var(--space-1) var(--space-2) var(--space-1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 760;
}

.dashboard-card-menu button.is-current {
  color: rgba(159, 216, 255, 0.72);
  background: rgba(29, 155, 240, 0.12);
}

.dashboard-card-menu button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-card-menu button.danger:hover:not(:disabled) {
  background: rgba(255, 78, 91, 0.12);
  color: #ff98a0;
}

.dashboard-card-body {
  position: absolute;
  inset: auto 18px 18px;
  display: grid;
  gap: var(--space-2);
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 780;
}

.dashboard-status i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
}

.dashboard-status.published i {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(29, 155, 240, 0.55);
}

.dashboard-card-arrow {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.dashboard-published-card .dashboard-cover iframe {
  opacity: 0.82;
  filter: saturate(1.02) brightness(0.9);
}

.dashboard-published-card .dashboard-cover-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22) 46%, rgba(0, 0, 0, 0.62)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 58%);
}

.dashboard-template-card {
  min-height: 188px;
  padding: var(--space-6);
  display: grid;
  align-content: end;
  gap: var(--space-2);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.dashboard-template-card svg {
  color: var(--blue);
}

.dashboard-template-card h2,
.dashboard-template-card p {
  margin: 0;
}

.dashboard-template-card h2 {
  font-size: 22px;
  font-weight: 800;
}

.dashboard-template-card p {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-template-card > span {
  width: fit-content;
  min-height: 26px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-template-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 92px rgba(0, 0, 0, 0.4);
}

.dashboard-template-card:disabled {
  cursor: progress;
  opacity: 0.62;
}

.dashboard-template-card.tone-rose {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 49, 113, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028));
}

.dashboard-template-card.tone-violet {
  background:
    radial-gradient(circle at 20% 20%, rgba(129, 118, 255, 0.2), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028));
}

.dashboard-resource-gallery {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4) var(--space-5);
}

.dashboard-resource-card {
  min-width: 0;
  padding: var(--space-2) var(--space-2) var(--space-3);
  border-radius: var(--radius-card-large);
  display: grid;
  gap: var(--space-3);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.028);
  color: var(--text);
  text-align: start;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 22px 58px rgba(0, 0, 0, 0.26);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.dashboard-resource-card-link {
  text-decoration: none;
}

.dashboard-resource-card:disabled {
  cursor: progress;
  opacity: 0.62;
}

.dashboard-resource-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.dashboard-resource-cover {
  position: relative;
  min-height: 146px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.68), transparent 17%),
    linear-gradient(135deg, rgba(29, 155, 240, 0.56), rgba(255, 49, 113, 0.52) 58%, rgba(255, 135, 50, 0.58)),
    #15161a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 54px rgba(0, 0, 0, 0.24);
}

.dashboard-resource-cover iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  background: #111;
}

.dashboard-resource-cover.has-media {
  background: #061019;
}

.dashboard-resource-cover.has-media::before,
.dashboard-resource-cover.has-media::after,
.dashboard-resource-cover.has-media i {
  display: none;
}

.dashboard-resource-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dashboard-resource-cover::before,
.dashboard-resource-cover::after,
.dashboard-resource-cover i {
  content: "";
  position: absolute;
  border-radius: 12px;
  display: block;
}

.dashboard-resource-cover::before {
  inset-inline-start: 18px;
  inset-inline-end: 18px;
  bottom: 18px;
  height: 42px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 -50px 0 -18px rgba(255, 255, 255, 0.2),
    0 -84px 0 -26px rgba(255, 255, 255, 0.18);
}

.dashboard-resource-cover::after {
  top: 22px;
  inset-inline-start: 22px;
  width: 72px;
  height: 28px;
  background: rgba(0, 0, 0, 0.2);
}

.dashboard-resource-cover i {
  inset-inline-end: 22px;
  bottom: 26px;
  width: 74px;
  height: 30px;
  background: rgba(0, 0, 0, 0.76);
}

.dashboard-resource-card.tone-paper .dashboard-resource-cover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(235, 237, 232, 0.96)),
    #f4f1e8;
}

.dashboard-resource-card.tone-paper .dashboard-resource-cover::before {
  background: rgba(20, 24, 28, 0.08);
  box-shadow:
    0 -45px 0 -20px rgba(20, 24, 28, 0.12),
    0 -78px 0 -25px rgba(20, 24, 28, 0.08);
}

.dashboard-resource-card.tone-event .dashboard-resource-cover {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.82), transparent 16%),
    radial-gradient(circle at 16% 72%, rgba(94, 77, 255, 0.54), transparent 28%),
    linear-gradient(145deg, #fff, #f4f3ff 44%, #ffeef5);
}

.dashboard-resource-card.tone-finance .dashboard-resource-cover {
  background:
    linear-gradient(180deg, rgba(10, 24, 28, 0.3), transparent 42%),
    linear-gradient(140deg, #1a2628, #f3f0e7 58%, #ffffff);
}

.dashboard-resource-card.tone-studio .dashboard-resource-cover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(135deg, #1d1d1f, #6d7078 52%, #eeeeee);
}

.dashboard-resource-card.tone-habit .dashboard-resource-cover {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.74), transparent 18%),
    linear-gradient(135deg, #33270f, #d8b36b 44%, #ead8aa);
}

.dashboard-resource-copy {
  min-width: 0;
  padding: 0 var(--space-1);
  display: grid;
  gap: var(--space-1);
}

.dashboard-resource-copy strong,
.dashboard-resource-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-resource-copy strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.dashboard-resource-copy small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.45;
  display: block;
  white-space: nowrap;
}

.dashboard-resource-action {
  width: fit-content;
  min-height: 24px;
  margin-top: var(--space-1);
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-resource-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.dashboard-resource-card-metrics {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.dashboard-resource-card-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dashboard-resource-byline {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-resource-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.dashboard-resource-avatar-img {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-resource-author-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dashboard-resource-footer .dashboard-resource-action {
  margin-top: 0;
  margin-inline-start: auto;
}

.dashboard-resource-remix-hint {
  flex: 0 0 auto;
  min-height: 24px;
  margin-inline-start: auto;
  padding: 0 var(--space-3);
  border: 1px solid rgba(157, 225, 255, 0.68);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7657ff 0%, #168cff 58%, #00c7ff 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(43, 132, 255, 0.3);
  transition: filter 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-resource-remix-hint.is-off {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.dashboard-resource-card:hover .dashboard-resource-remix-hint:not(.is-off) {
  filter: saturate(1.18) brightness(1.08);
  box-shadow: 0 7px 20px rgba(43, 132, 255, 0.42);
  transform: translateY(-1px);
}

.dashboard-resource-card:hover .dashboard-resource-cover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 22px 66px rgba(0, 0, 0, 0.3);
}

.dashboard-resource-card:hover:not(:disabled) {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.036)),
    rgba(255, 255, 255, 0.032);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    0 28px 74px rgba(0, 0, 0, 0.34);
}

/* 加载态骨架：复用真实卡片的类名（见 ResourceGallerySkeleton），
   所以这里只需要把内容染成灰块，布局一概不碰——封面比例、正文栅格、
   作者位、列宽全部由真实卡片那套规则决定，高度也就天然对齐。 */
.dashboard-resource-card.is-skeleton {
  pointer-events: none;
}

.dashboard-resource-card.is-skeleton .dashboard-resource-cover,
.dashboard-resource-card.is-skeleton .dashboard-resource-copy strong,
.dashboard-resource-card.is-skeleton .dashboard-resource-copy small,
.dashboard-resource-card.is-skeleton .dashboard-resource-avatar,
.dashboard-resource-card.is-skeleton .dashboard-resource-author-name {
  color: transparent;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.07);
  animation: inspiration-pulse 1.3s ease-in-out infinite;
}

/* 真实头像是圆的，方块灰会很扎眼 */
.dashboard-resource-card.is-skeleton .dashboard-resource-avatar {
  border-radius: var(--radius-pill);
}

/* strong / small / 作者名里放的是 &nbsp;：撑住各自的行高，宽度由栅格给。
   这里只把简介和作者名收窄，免得几条等长看着像真有内容。 */
.dashboard-resource-card.is-skeleton .dashboard-resource-copy small {
  width: 62%;
}

.dashboard-resource-card.is-skeleton .dashboard-resource-author-name {
  display: inline-block;
  width: 72px;
}

/* 名字是老灵感广场留下的，那套 .inspiration-* 规则已删；动画本身还有两处在用：
   上面的 dashboard-resource-card 骨架，以及 lovable 版的 showcase 骨架。改名要同步改这两处。 */
@keyframes inspiration-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.dashboard-resource-preview-layer {
  z-index: 72;
  padding: clamp(var(--space-3), 2.6vw, var(--space-7));
  background:
    radial-gradient(circle at 52% 14%, rgba(123, 215, 246, 0.16), transparent 34%),
    rgba(0, 0, 0, 0.72);
}

.dashboard-resource-preview-dialog {
  width: min(1280px, calc(100vw - clamp(28px, 5.2vw, 72px)));
  height: min(900px, calc(100vh - clamp(28px, 5.2vw, 68px)));
  border-radius: var(--radius-dialog);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% -14%, rgba(126, 227, 255, 0.11), transparent 32%),
    rgba(14, 14, 15, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.105),
    0 36px 110px rgba(0, 0, 0, 0.58);
}

.dashboard-resource-preview-dialog.is-busy {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.dashboard-resource-preview-head {
  min-width: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
}

.dashboard-resource-preview-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dashboard-resource-preview-author-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #fff;
  font-size: 16px;
  font-weight: 760;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.25);
}

.dashboard-resource-preview-title h2,
.dashboard-resource-preview-title p {
  margin: 0;
}

.dashboard-resource-preview-title h2 {
  overflow: hidden;
  color: #fff;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-resource-preview-title p {
  overflow: hidden;
  max-width: min(720px, 56vw);
  margin-top: var(--space-1);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
  font-weight: 520;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-resource-preview-actions {
  grid-column: 3;
  grid-row: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-resource-preview-primary-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-resource-preview-actions a,
.dashboard-resource-preview-actions button,
.dashboard-resource-preview-primary-actions a,
.dashboard-resource-preview-primary-actions button {
  min-height: var(--button-height-default);
  padding: 0 var(--space-4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  border: 0;
}

.dashboard-resource-preview-actions a:hover,
.dashboard-resource-preview-actions button:hover:not(:disabled),
.dashboard-resource-preview-primary-actions a:hover,
.dashboard-resource-preview-primary-actions button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dashboard-resource-preview-primary-actions .site {
  background: rgba(255, 255, 255, 0.94);
  color: #080808;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.dashboard-resource-preview-primary-actions .site:hover {
  background: #fff;
  color: #050505;
}

.dashboard-resource-preview-primary-actions .template {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.dashboard-resource-preview-primary-actions .template:disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.dashboard-resource-preview-actions .icon {
  width: 38px;
  padding: 0;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-resource-preview-actions .icon:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 640px) {
  .dashboard-resource-preview-head {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .dashboard-resource-preview-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .dashboard-resource-preview-primary-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    align-items: stretch;
  }

  .dashboard-resource-preview-primary-actions a,
  .dashboard-resource-preview-primary-actions button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: var(--space-3);
  }
}

.dashboard-resource-preview-progress {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(112, 243, 204, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
}

.dashboard-resource-preview-frame {
  min-height: 0;
  padding: var(--space-4);
  background: #080808;
}

.dashboard-resource-preview-frame iframe,
.dashboard-resource-preview-empty {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-card-large);
  display: block;
  background: #050505;
}

.dashboard-resource-preview-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 650;
}

.dashboard-resource-preview-empty svg {
  width: 48px;
  height: 48px;
}

.dashboard-connector-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: var(--space-4);
  align-items: stretch;
}

.dashboard-connector-hero,
.dashboard-connector-card {
  border-radius: var(--radius-dialog);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.026);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.078),
    0 24px 80px rgba(0, 0, 0, 0.28);
}

.dashboard-connector-hero {
  min-height: 320px;
  padding: var(--space-6);
  display: grid;
  align-content: end;
  gap: var(--space-3);
  background:
    radial-gradient(circle at 24% 20%, rgba(29, 155, 240, 0.2), transparent 44%),
    radial-gradient(circle at 78% 84%, rgba(0, 186, 124, 0.1), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032));
}

.dashboard-connector-hero span,
.dashboard-connector-copy > span {
  width: fit-content;
  min-height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(29, 155, 240, 0.14);
  color: #8bd4ff;
  font-size: 11px;
  font-weight: 820;
}

.dashboard-connector-hero h2,
.dashboard-connector-hero p,
.dashboard-connector-copy h3,
.dashboard-connector-copy p {
  margin: 0;
}

.dashboard-connector-hero h2 {
  max-width: 430px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  font-weight: 820;
}

.dashboard-connector-hero p,
.dashboard-connector-copy p,
.dashboard-connector-copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 1.72;
  font-weight: 610;
}

.dashboard-connector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.dashboard-connector-card {
  min-height: 153px;
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.dashboard-connector-card.tone-green {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 186, 124, 0.17), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032));
}

.dashboard-connector-card.tone-blue {
  background:
    radial-gradient(circle at 18% 18%, rgba(29, 155, 240, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032));
}

.dashboard-connector-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blue);
}

.dashboard-connector-copy {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}

.dashboard-connector-copy h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 820;
}

.dashboard-connector-copy small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 720;
}

.dashboard-connector-action {
  width: fit-content;
  min-height: 30px;
  margin-top: var(--space-1);
  padding: 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.068);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.dashboard-connector-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-empty,
.dashboard-placeholder {
  border-radius: var(--radius-dialog);
  background: rgba(255, 255, 255, 0.042);
  color: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.dashboard-empty {
  min-height: 214px;
  padding: var(--space-6);
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-2);
  text-align: center;
}

.dashboard-empty-mark {
  width: 44px;
  height: 32px;
  opacity: 0.78;
}

.dashboard-empty strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 800;
}

.dashboard-empty span {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.7;
}

.dashboard-grid-empty {
  grid-column: span 2;
}

.dashboard-placeholder {
  min-height: 340px;
  padding: var(--space-7);
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  text-align: center;
}

.dashboard-placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-card-large);
  display: grid;
  place-items: center;
  background: rgba(29, 155, 240, 0.12);
  color: var(--blue);
}

.dashboard-placeholder h2,
.dashboard-placeholder p {
  margin: 0;
}

.dashboard-placeholder h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 820;
}

.dashboard-placeholder p {
  max-width: 520px;
  line-height: 1.75;
}

.dashboard-placeholder-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.dashboard-placeholder-chips span {
  min-height: 30px;
  padding: 0 var(--space-3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
}

.dashboard-placeholder small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.dashboard-capability {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: var(--space-4);
  align-items: stretch;
}

.dashboard-capability-summary,
.dashboard-capability-card {
  border-radius: var(--radius-dialog);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.075),
    0 24px 80px rgba(0, 0, 0, 0.28);
}

.dashboard-capability-summary {
  min-height: 274px;
  padding: var(--space-6);
  display: grid;
  align-content: end;
  gap: var(--space-3);
  background:
    radial-gradient(circle at 20% 18%, rgba(29, 155, 240, 0.2), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.025);
}