.ncd-native-storage-filter {
  display: none !important;
}

.ncd-project-switcher {
  min-height: 40px;
  margin: 0 22px 7px 16px;
  padding: 5px 7px 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #2b2b30;
  border-radius: 11px;
  background: #171719;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  color: #a4a5ad;
}

.ncd-project-label {
  flex: 0 0 auto;
  color: #737680;
  font-size: 10px;
  font-weight: 650;
}

.ncd-project-label::after { content: "："; }

.ncd-project-tabs {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ncd-project-tabs::-webkit-scrollbar { display: none; }

.ncd-project-tab {
  height: 28px;
  flex: 0 0 auto;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #303038;
  border-radius: 8px;
  background: #202023;
  color: #9b9ca5;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.ncd-project-tab:hover {
  color: #d7d7dc;
  border-color: #454550;
}

.ncd-project-tab b {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: #777985;
  font-size: 8px;
  font-weight: 800;
}

.ncd-project-tab.is-active {
  border-color: rgba(139,92,246,.48);
  background: rgba(139,92,246,.15);
  color: #b99cff;
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.06);
}

.ncd-project-tab.is-active b {
  background: rgba(139,92,246,.2);
  color: #cbb7ff;
}

.ncd-project-total {
  flex: 0 0 auto;
  padding: 0 4px;
  color: #5f616b;
  font-size: 9px;
}

.ncd-mobile-project-launcher,
.ncd-mobile-project-modal {
  display: none;
}

.ncd-demo-gallery {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: max-content;
  align-items: start;
  align-content: start;
  gap: 18px;
}

.ncd-has-demo {
  align-items: stretch !important;
  justify-content: stretch !important;
}

.ncd-has-demo > .text-gray-500.flex.flex-col.items-center {
  display: none !important;
}

.ncd-demo-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #3b3325;
  border-radius: 16px;
  background: #1c1c1e;
  color: #d1d5db;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ncd-demo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, .62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.ncd-card-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0e0e0f;
}

.ncd-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

.ncd-project-output.is-tone-anniversary .ncd-card-visual img {
  object-fit: cover;
  filter: saturate(.9) hue-rotate(22deg) contrast(1.06);
  transform: scale(1.08);
}

.ncd-project-output.is-tone-store .ncd-card-visual img {
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(.78) sepia(.16) brightness(.92);
  transform: scale(1.12);
}

.ncd-demo-card:hover .ncd-card-visual img {
  transform: scale(1.035);
}

.ncd-demo-card.is-tone-anniversary:hover .ncd-card-visual img { transform: scale(1.11); }
.ncd-demo-card.is-tone-store:hover .ncd-card-visual img { transform: scale(1.15); }

.ncd-card-project-mark {
  position: absolute;
  left: 11px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(10,10,12,.68);
  color: rgba(255,255,255,.8);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
  backdrop-filter: blur(9px);
}

.ncd-project-output.is-tone-anniversary .ncd-demo-ribbon {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #c026d3);
  box-shadow: 0 6px 20px rgba(139,92,246,.28);
}

.ncd-project-output.is-tone-store .ncd-demo-ribbon {
  color: #042025;
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  box-shadow: 0 6px 20px rgba(56,189,248,.22);
}

@media (min-width: 981px) {
  .ncd-demo-gallery { padding-right: 16px; }
}

.ncd-demo-ribbon,
.ncd-demo-state {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(12px);
}

.ncd-demo-ribbon {
  left: 10px;
  color: #18120a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 6px 20px rgba(245, 158, 11, .28);
}

.ncd-demo-state {
  right: 10px;
  color: #fdba74;
  background: rgba(17, 17, 19, .78);
  border: 1px solid rgba(249, 115, 22, .38);
}

.ncd-card-body {
  padding: 13px 14px 14px;
}

.ncd-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.ncd-card-tags span {
  border: 1px solid #343438;
  border-radius: 6px;
  padding: 3px 7px;
  color: #8c93a1;
  background: #242426;
  font-size: 9px;
}

.ncd-card-body h3 {
  margin: 0;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ncd-card-body p {
  margin: 6px 0 0;
  color: #737b8c;
  font-size: 10px;
  line-height: 1.5;
}

.ncd-card-collab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #2d2d31;
}

.ncd-card-people {
  display: flex;
  align-items: center;
}

.ncd-mini-avatar {
  width: 22px;
  height: 22px;
  margin-left: -5px;
  border: 2px solid #1c1c1e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #34343a;
  color: #f3f4f6;
  font-size: 9px;
  font-weight: 700;
}

.ncd-mini-avatar:first-child { margin-left: 0; }
.ncd-mini-avatar.internal { background: #4c1d95; }
.ncd-mini-avatar.vendor { background: #0e7490; }
.ncd-mini-avatar img,
.ncd-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

.ncd-output-preview-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  height: min(820px, calc(100vh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #37373d;
  border-radius: 18px;
  background: #131315;
  color: #e8e8eb;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .66);
}

.ncd-output-preview-dialog::backdrop {
  background: rgba(3, 4, 6, .88);
  backdrop-filter: blur(8px);
}

.ncd-output-preview-sheet {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.ncd-output-preview-sheet header,
.ncd-output-preview-sheet footer {
  min-height: 64px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #29292e;
}

.ncd-output-preview-sheet header > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ncd-output-preview-sheet header span {
  color: #9f83f6;
  font-size: 9px;
  font-weight: 760;
}

.ncd-output-preview-sheet header strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ncd-output-preview-sheet header button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid #38383e;
  border-radius: 11px;
  background: #222225;
  color: #aaaab2;
  cursor: pointer;
}

.ncd-output-preview-sheet header svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.ncd-output-preview-canvas {
  min-height: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #252528 0, #0c0c0e 68%);
}

.ncd-output-preview-canvas img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ncd-output-preview-sheet footer {
  min-height: 54px;
  border-top: 1px solid #29292e;
  border-bottom: 0;
  color: #7f8089;
  font-size: 10px;
}

.ncd-output-preview-sheet footer b {
  flex: 0 0 auto;
  color: #bba4ff;
  font-size: 10px;
}

.ncd-card-pending {
  color: #f59e0b;
  font-size: 10px;
  font-weight: 600;
}

.ncd-demo-count {
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 5px;
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
  font-size: 8px;
  font-weight: 700;
}

html.ncd-open,
html.ncd-open body {
  overflow: hidden !important;
}

.ncd-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 4, 6, .9);
  backdrop-filter: blur(14px);
  color: #d7d9df;
}

.ncd-shell {
  width: min(1560px, 100%);
  height: min(940px, calc(100vh - 36px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #303036;
  border-radius: 18px;
  background: #121214;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .6);
}

.ncd-header {
  min-height: 62px;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #2a2a2e;
  background: #19191c;
}

.ncd-header-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ncd-header-copy h2 {
  margin: 0;
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ncd-demo-label {
  flex: 0 0 auto;
  border: 1px solid rgba(245, 158, 11, .36);
  border-radius: 6px;
  padding: 4px 7px;
  color: #fbbf24;
  background: rgba(245, 158, 11, .1);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
}

.ncd-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ncd-role-toggle,
.ncd-icon-button,
.ncd-soft-button,
.ncd-primary-button,
.ncd-danger-button {
  border: 1px solid #39393f;
  border-radius: 9px;
  background: #242428;
  color: #b7bdc9;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.ncd-role-toggle {
  height: 34px;
  padding: 0 11px;
}

.ncd-role-toggle:hover,
.ncd-soft-button:hover,
.ncd-icon-button:hover {
  color: #fff;
  border-color: #565660;
}

.ncd-icon-button {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.ncd-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
}

.ncd-artboard {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 42% 28%, rgba(66, 54, 28, .18), transparent 32%),
    #09090a;
}

.ncd-canvas {
  position: relative;
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #26262a;
  border-radius: 13px;
  background-color: #0d0d0f;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.018) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.018) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.018) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.ncd-poster-wrap {
  position: relative;
  width: min(100%, calc((100vh - 190px) * 16 / 9));
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.ncd-poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ncd-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255,255,255,.94);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f97316;
  color: #141416;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, .2), 0 8px 22px rgba(0,0,0,.45);
  animation: ncd-pin-pulse 2.2s ease-in-out infinite;
}

.ncd-pin[data-pin="2"] {
  background: #a78bfa;
  box-shadow: 0 0 0 6px rgba(167, 139, 250, .2), 0 8px 22px rgba(0,0,0,.45);
  animation-delay: .45s;
}

@keyframes ncd-pin-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(249,115,22,.16), 0 8px 22px rgba(0,0,0,.45); }
  50% { box-shadow: 0 0 0 10px rgba(249,115,22,.04), 0 8px 22px rgba(0,0,0,.45); }
}

.ncd-artboard-bar {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #707785;
  font-size: 10px;
}

.ncd-artboard-bar b { color: #b7bdc9; font-weight: 600; }
.ncd-artboard-tools { display: flex; gap: 7px; }
.ncd-artboard-tools button {
  height: 27px;
  border: 1px solid #303036;
  border-radius: 7px;
  padding: 0 9px;
  background: #18181b;
  color: #818896;
  font-size: 10px;
  cursor: pointer;
}

.ncd-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #2a2a2e;
  background: #1a1a1d;
}

.ncd-summary {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #2d2d31;
}

.ncd-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ncd-summary h3 {
  margin: 0;
  color: #f1f2f4;
  font-size: 14px;
}

.ncd-summary p {
  margin: 5px 0 0;
  color: #737a88;
  font-size: 10px;
}

.ncd-status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(249,115,22,.34);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(249,115,22,.1);
  color: #fdba74;
  font-size: 10px;
  font-weight: 700;
}

.ncd-status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ncd-status-pill.is-approved {
  color: #6ee7b7;
  border-color: rgba(16,185,129,.36);
  background: rgba(16,185,129,.1);
}

.ncd-assignment {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ncd-assignment div {
  border: 1px solid #303035;
  border-radius: 8px;
  padding: 8px 9px;
  background: #151517;
}

.ncd-assignment span {
  display: block;
  color: #656c79;
  font-size: 9px;
}

.ncd-assignment strong {
  display: block;
  margin-top: 3px;
  color: #c7cbd3;
  font-size: 10px;
  font-weight: 600;
}

.ncd-workflow {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.ncd-stage {
  position: relative;
  padding-top: 17px;
  color: #555c68;
  font-size: 8px;
  text-align: center;
  white-space: nowrap;
}

.ncd-stage::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  z-index: 2;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border: 2px solid #1a1a1d;
  border-radius: 50%;
  background: #3b3b41;
}

.ncd-stage::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #34343a;
}

.ncd-stage:first-child::after { left: 50%; width: 50%; }
.ncd-stage:last-child::after { width: 50%; }
.ncd-stage.is-done,
.ncd-stage.is-active { color: #bfc4ce; }
.ncd-stage.is-done::before,
.ncd-stage.is-active::before { background: #f59e0b; }
.ncd-stage.is-done::after { background: #76531a; }
.ncd-stage.is-active::before { box-shadow: 0 0 0 4px rgba(245,158,11,.14); }

.ncd-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #2d2d31;
  padding: 0 12px;
}

.ncd-tab {
  position: relative;
  height: 43px;
  border: 0;
  background: transparent;
  color: #6f7683;
  font-size: 10px;
  cursor: pointer;
}

.ncd-tab.is-active { color: #f3f4f6; }
.ncd-tab.is-active::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #f59e0b;
}

.ncd-tab-badge {
  margin-left: 4px;
  border-radius: 999px;
  padding: 1px 4px;
  background: rgba(249,115,22,.16);
  color: #fdba74;
  font-size: 8px;
}

.ncd-panel-area {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 18px;
}

.ncd-panel { display: none; }
.ncd-panel.is-active { display: block; }

.ncd-visibility-note {
  margin-bottom: 12px;
  border: 1px solid rgba(34,197,94,.22);
  border-radius: 9px;
  padding: 9px 10px;
  background: rgba(34,197,94,.06);
  color: #86a995;
  font-size: 9px;
  line-height: 1.55;
}

.ncd-visibility-note.internal {
  border-color: rgba(167,139,250,.26);
  background: rgba(139,92,246,.08);
  color: #b7a8dc;
}

.ncd-activity-list {
  position: relative;
  display: grid;
  gap: 10px;
}

.ncd-activity-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
}

.ncd-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #414149;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #29292e;
  color: #eff1f4;
  font-size: 9px;
  font-weight: 700;
}

.ncd-avatar.internal { background: #3b1f68; border-color: #604094; }
.ncd-avatar.vendor { background: #124e5d; border-color: #24758a; }
.ncd-avatar.system { background: #3c3320; border-color: #66552d; color: #fbbf24; }

.ncd-activity-card {
  min-width: 0;
  border: 1px solid #303035;
  border-radius: 10px;
  padding: 10px 11px;
  background: #151517;
}

.ncd-activity-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.ncd-activity-head strong {
  color: #d2d5dc;
  font-size: 10px;
}

.ncd-activity-head span {
  color: #5e6571;
  font-size: 8px;
}

.ncd-role-chip {
  border-radius: 4px;
  padding: 2px 4px;
  color: #aeb5c1 !important;
  background: #2a2a2f;
}

.ncd-activity-card p {
  margin: 0;
  color: #aeb3bd;
  font-size: 10px;
  line-height: 1.65;
}

.ncd-annotation-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f59e0b;
  font-size: 9px;
  cursor: pointer;
}

.ncd-internal-only {
  margin-top: 8px;
  border-left: 2px solid #8b5cf6;
  padding: 7px 9px;
  background: rgba(139,92,246,.08);
  color: #b9acd8;
  font-size: 9px;
  line-height: 1.55;
}

.ncd-reply {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.ncd-reply input {
  min-width: 0;
  height: 34px;
  border: 1px solid #37373d;
  border-radius: 8px;
  padding: 0 10px;
  outline: none;
  background: #101012;
  color: #d7d9de;
  font-size: 10px;
}

.ncd-reply input:focus { border-color: #785d2b; }
.ncd-reply button {
  min-width: 54px;
  border: 1px solid #705326;
  border-radius: 8px;
  background: rgba(245,158,11,.12);
  color: #fbbf24;
  font-size: 10px;
  cursor: pointer;
}

.ncd-version-list,
.ncd-check-list,
.ncd-info-list {
  display: grid;
  gap: 9px;
}

.ncd-version {
  position: relative;
  border: 1px solid #303035;
  border-radius: 11px;
  padding: 11px 12px;
  background: #151517;
}

.ncd-version.is-current { border-color: rgba(245,158,11,.34); }
.ncd-version-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ncd-version strong { color: #d6d9df; font-size: 11px; }
.ncd-version small { color: #686f7c; font-size: 9px; }
.ncd-version p { margin: 7px 0 0; color: #8e95a2; font-size: 9px; line-height: 1.5; }
.ncd-version-tag { border-radius: 5px; padding: 3px 6px; background: rgba(245,158,11,.1); color: #fbbf24; font-size: 8px; }

.ncd-check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #303035;
  border-radius: 9px;
  padding: 10px;
  background: #151517;
}

.ncd-check-item input { accent-color: #f59e0b; }
.ncd-check-item label { color: #b8bdc7; font-size: 10px; cursor: pointer; }
.ncd-check-item small { color: #636b78; font-size: 8px; }
.ncd-check-progress {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f8794;
  font-size: 9px;
}
.ncd-check-progress b { color: #fbbf24; font-size: 11px; }

.ncd-info-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #2b2b30;
  padding: 9px 0;
  font-size: 10px;
}
.ncd-info-row span { color: #626a76; }
.ncd-info-row strong { color: #c1c6d0; font-weight: 500; word-break: break-word; }

.ncd-footer {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  border-top: 1px solid #2d2d31;
  background: #17171a;
}

.ncd-footer button {
  min-height: 37px;
  padding: 0 12px;
}

.ncd-soft-button { background: #242428; }
.ncd-primary-button {
  border-color: #a6630d;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #17100a;
  font-weight: 750;
}
.ncd-primary-button:hover { filter: brightness(1.06); }
.ncd-danger-button { border-color: rgba(239,68,68,.3); color: #fca5a5; background: rgba(239,68,68,.08); }

.ncd-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 240;
  transform: translateX(-50%) translateY(12px);
  border: 1px solid #43434a;
  border-radius: 9px;
  padding: 10px 14px;
  opacity: 0;
  background: #242428;
  color: #e6e7ea;
  font-size: 11px;
  box-shadow: 0 15px 40px rgba(0,0,0,.45);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.ncd-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.ncd-perspective-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  --ncd-perspective-accent: #f59e0b;
  --ncd-perspective-accent-rgb: 245, 158, 11;
  position: fixed;
  top: 112px;
  right: 48px;
  z-index: 80;
  width: 282px;
  overflow: hidden;
  border: 1px solid #343438;
  border-radius: 16px;
  padding: 15px;
  background: rgba(24, 24, 27, .97);
  color: #e7e7eb;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  backdrop-filter: blur(18px);
}

.ncd-perspective-panel[data-perspective="internal"] {
  --ncd-perspective-accent: #8b5cf6;
  --ncd-perspective-accent-rgb: 139, 92, 246;
}

.ncd-perspective-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ncd-perspective-label {
  display: block;
  margin-bottom: 4px;
  color: #777b86;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.ncd-perspective-header h2 {
  margin: 0;
  color: #f4f4f5;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.ncd-perspective-compact-title { display: none; }

.ncd-perspective-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #343439;
  border-radius: 8px;
  padding: 0;
  background: #202023;
  color: #8c9099;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.ncd-perspective-collapse:hover {
  border-color: rgba(var(--ncd-perspective-accent-rgb), .45);
  background: rgba(var(--ncd-perspective-accent-rgb), .08);
  color: var(--ncd-perspective-accent);
}

.ncd-perspective-collapse svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.ncd-perspective-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #303034;
  border-radius: 9px;
  padding: 2px;
  background: #111113;
}

.ncd-perspective-switch button {
  min-width: 0;
  height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0 7px;
  background: transparent;
  color: #777b86;
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.ncd-perspective-switch button:hover { color: #d7d7dc; }

.ncd-perspective-switch button.is-active {
  background: rgba(var(--ncd-perspective-accent-rgb), .16);
  color: var(--ncd-perspective-accent);
  box-shadow: inset 0 0 0 1px rgba(var(--ncd-perspective-accent-rgb), .28);
}

.ncd-perspective-description {
  margin: 9px 0 12px;
  color: #979ba5;
  font-size: 10px;
  line-height: 1.55;
}

.ncd-perspective-steps {
  display: grid;
  gap: 6px;
}

.ncd-perspective-step {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #303034;
  border-radius: 10px;
  padding: 7px 9px;
  background: #1d1d20;
  color: inherit;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.ncd-perspective-step:hover {
  transform: translateX(-2px);
  border-color: rgba(var(--ncd-perspective-accent-rgb), .48);
  background: rgba(var(--ncd-perspective-accent-rgb), .06);
}

.ncd-perspective-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: rgba(var(--ncd-perspective-accent-rgb), .11);
  color: var(--ncd-perspective-accent);
  font-size: 9px;
  font-weight: 800;
}

.ncd-perspective-step-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.ncd-perspective-step-copy strong {
  overflow: hidden;
  color: #dcdce1;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ncd-perspective-step-copy small {
  overflow: hidden;
  color: #747984;
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ncd-perspective-step > svg,
.ncd-perspective-primary svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ncd-perspective-step > svg { color: #565b65; }

.ncd-perspective-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid rgba(var(--ncd-perspective-accent-rgb), .5);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--ncd-perspective-accent);
  color: #15120d;
  font-family: inherit;
  font-size: 10px;
  font-weight: 780;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}

.ncd-perspective-panel[data-perspective="internal"] .ncd-perspective-primary { color: #fff; }
.ncd-perspective-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.ncd-perspective-note {
  margin: 9px 1px 0;
  color: #5f646e;
  font-size: 9px;
  line-height: 1.5;
}

.ncd-perspective-panel.is-collapsed {
  width: 218px;
  padding: 10px 12px;
}

.ncd-perspective-panel.is-collapsed .ncd-perspective-header { align-items: center; }
.ncd-perspective-panel.is-collapsed .ncd-perspective-label,
.ncd-perspective-panel.is-collapsed .ncd-perspective-header h2,
.ncd-perspective-panel.is-collapsed .ncd-perspective-switch,
.ncd-perspective-panel.is-collapsed .ncd-perspective-description,
.ncd-perspective-panel.is-collapsed .ncd-perspective-steps,
.ncd-perspective-panel.is-collapsed .ncd-perspective-primary,
.ncd-perspective-panel.is-collapsed .ncd-perspective-note { display: none; }

.ncd-perspective-panel.is-collapsed .ncd-perspective-compact-title {
  display: block;
  color: #d9d9de;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.ncd-perspective-panel.is-collapsed .ncd-perspective-collapse svg { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .ncd-perspective-step,
  .ncd-perspective-primary { transition: none; }
}

@media (max-width: 980px) {
  .ncd-modal { padding: 0; }
  .ncd-shell { width: 100%; height: 100vh; border-radius: 0; }
  .ncd-layout { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 44vh) minmax(0, 1fr); }
  .ncd-sidebar { border-left: 0; border-top: 1px solid #2a2a2e; }
  .ncd-artboard { padding: 10px; }
  .ncd-poster-wrap { width: min(100%, calc((44vh - 84px) * 16 / 9)); }
  .ncd-artboard-bar { min-height: 36px; }
  .ncd-perspective-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: min(292px, calc(100vw - 88px));
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
  .ncd-perspective-panel.is-collapsed { width: 218px; }
  .ncd-project-total { display: none; }
}

@media (max-width: 640px) {
  html.ncd-mobile-projects-open,
  html.ncd-mobile-projects-open body {
    overflow: hidden !important;
  }

  .ncd-project-switcher {
    display: none;
  }
  .ncd-project-tab { height: 30px; }

  .ncd-mobile-project-launcher {
    position: fixed;
    left: 66px;
    bottom: 74px;
    z-index: 82;
    width: min(174px, calc(100vw - 144px));
    height: 50px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, .48);
    border-radius: 15px;
    background: rgba(25, 20, 36, .96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .05);
    color: #cfbdff;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(18px);
  }

  .ncd-mobile-project-launcher svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ncd-mobile-project-launcher span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #e2d8ff;
    font-size: 11px;
    font-weight: 720;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ncd-mobile-project-launcher b {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(139, 92, 246, .22);
    color: #cfbdff;
    font-size: 9px;
    font-weight: 820;
  }

  body:has(.ncd-perspective-panel:not(.is-collapsed)) .ncd-mobile-project-launcher {
    display: none;
  }

  .ncd-mobile-project-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 56px;
    z-index: 210;
    display: block;
    overflow: hidden;
    background: #111113;
    color: #d7d7dc;
  }

  .ncd-mobile-project-sheet {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #171719 0, #111113 116px);
  }

  .ncd-mobile-project-header {
    min-height: 68px;
    padding: 12px 12px 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #29292e;
  }

  .ncd-mobile-project-header > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .ncd-mobile-project-header strong {
    color: #f2f2f4;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.2;
  }

  .ncd-mobile-project-header span {
    color: #747681;
    font-size: 10px;
    line-height: 1.3;
  }

  .ncd-mobile-project-header button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid #34343a;
    border-radius: 11px;
    background: #202023;
    color: #a6a7af;
    cursor: pointer;
  }

  .ncd-mobile-project-header svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }

  .ncd-mobile-project-tabs {
    min-height: 52px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    border-bottom: 1px solid #252529;
    scrollbar-width: none;
  }

  .ncd-mobile-project-tabs::-webkit-scrollbar { display: none; }

  .ncd-mobile-project-tabs .ncd-project-tab {
    min-height: 32px;
    padding: 0 10px;
  }

  .ncd-mobile-project-summary {
    min-height: 45px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #252529;
  }

  .ncd-mobile-project-summary strong {
    min-width: 0;
    overflow: hidden;
    color: #c9cad0;
    font-size: 11px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ncd-mobile-project-summary span {
    flex: 0 0 auto;
    color: #777984;
    font-size: 9px;
  }

  .ncd-mobile-project-results {
    min-height: 0;
    flex: 1;
    padding: 12px 12px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ncd-mobile-project-results .ncd-demo-card {
    width: 100%;
    min-height: 0;
    border-radius: 14px;
  }

  .ncd-mobile-project-results .ncd-card-body {
    padding: 12px 13px 13px;
  }

  .ncd-output-preview-dialog {
    width: calc(100vw - 72px);
    height: calc(100vh - 20px);
    margin: 10px 10px 10px 62px;
    border-radius: 14px;
  }

  .ncd-output-preview-sheet header {
    min-height: 58px;
    padding: 9px 10px 9px 12px;
  }

  .ncd-output-preview-canvas { padding: 8px; }

  .ncd-output-preview-sheet footer {
    min-height: 48px;
    padding: 9px 12px;
  }

  .ncd-output-preview-sheet footer span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ncd-role-toggle { max-width: 122px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ncd-header-copy h2 { max-width: 150px; }
  .ncd-assignment { grid-template-columns: 1fr; }
  .ncd-stage { font-size: 0; }
  .ncd-footer { grid-template-columns: 1fr 1fr; }
  .ncd-footer .ncd-soft-button:first-child { display: none; }
  .ncd-perspective-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 76px);
    padding: 12px;
  }
  .ncd-perspective-panel.is-collapsed {
    right: 10px;
    bottom: 74px;
    width: 50px;
    height: 50px;
    padding: 7px;
    border-radius: 16px;
    overflow: visible;
  }
  .ncd-perspective-switch button,
  .ncd-perspective-primary { min-height: 44px; height: 44px; font-size: 12px; }
  .ncd-perspective-collapse { width: 36px; height: 36px; flex-basis: 36px; }
  .ncd-perspective-panel.is-collapsed .ncd-perspective-header { display: block; }
  .ncd-perspective-panel.is-collapsed .ncd-perspective-compact-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .ncd-perspective-panel.is-collapsed .ncd-perspective-collapse svg { display: none; }
  .ncd-perspective-panel.is-collapsed .ncd-perspective-collapse::before {
    color: #1b1204;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
  }
  .ncd-perspective-panel.is-collapsed[data-perspective="supplier"] .ncd-perspective-collapse::before { content: "供"; }
  .ncd-perspective-panel.is-collapsed[data-perspective="internal"] .ncd-perspective-collapse::before {
    content: "内";
    color: #fff;
  }
  .ncd-perspective-step-copy small { white-space: normal; }
}
