﻿/* ============================================================================
   Maestro Creative — Projects hub (B2C home + project hub)
   Uses tokens.css + studio primitives (.mc-btn, .mc-chip, …)
   ============================================================================ */

.mc-hub-body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
}

html,
body.mc-hub-body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

.mc-hub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mc-hub-page .mc-hub-app {
  flex: 1;
  min-height: 0;
}

#mc-hub-header-slot {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

#mc-hub-header-slot .mc-hub-header {
  position: static;
  z-index: 20;
}

.mc-studio-page #mc-hub-header-slot .mc-hub-header {
  border-bottom: 1px solid var(--line-1);
}

.mc-hub-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mc-hub-boot {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-content: center;
  background: var(--bg-0);
  transition: opacity var(--t-mid), visibility var(--t-mid);
}
.mc-hub-boot.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---- Global header ------------------------------------------------------ */
.mc-hub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: var(--topbar-h);
  background: var(--topbar-gradient);
  border-bottom: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mc-hub-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.mc-hub-header__nav::-webkit-scrollbar { display: none; }

.mc-brand-mark {
  flex-shrink: 0;
}

.mc-hub-navlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.mc-hub-navlink:hover { color: var(--text-0); background: var(--bg-3); }
.mc-hub-navlink.is-active {
  color: var(--text-0);
  background: color-mix(in srgb, var(--brand-2) 14%, transparent);
  border-color: color-mix(in srgb, var(--brand-2) 30%, transparent);
}
.mc-hub-navlink.is-soon { opacity: .45; pointer-events: none; }

.mc-hub-navsep {
  width: 1px;
  height: 22px;
  background: var(--line-2);
  margin: 0 6px;
  flex-shrink: 0;
}

.mc-hub-header__spacer { flex: 1; min-width: 12px; }

.mc-hub-search {
  position: relative;
  width: min(320px, 28vw);
  display: none;
}
.mc-hub-search.is-visible { display: block; }
.mc-hub-search input {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-1);
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 999px;
  padding: 8px 12px 8px 36px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.mc-hub-search input:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 22%, transparent);
}
.mc-hub-search .mc-i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.mc-theme-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 132px;
  flex: 0 0 132px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  appearance: none;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  color: var(--text-3);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent), var(--shadow-1);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.mc-theme-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 999px;
  background: var(--bg-1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
  transition: transform var(--t-mid), background var(--t-fast), box-shadow var(--t-fast);
}

.mc-theme-switch.is-dark::before {
  transform: translateX(100%);
  background: color-mix(in srgb, var(--brand-2) 20%, var(--bg-1));
}

.mc-theme-switch:hover {
  border-color: var(--line-strong);
  background: var(--bg-3);
}

.mc-theme-switch:focus-visible {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 24%, transparent), var(--shadow-1);
}

.mc-theme-switch__option {
  min-width: 0;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--t-fast);
}

.mc-theme-switch__icon {
  width: 14px;
  height: 14px;
  display: grid;
  place-content: center;
  flex: none;
}

.mc-theme-switch .mc-svg {
  width: 14px;
  height: 14px;
}

.mc-theme-switch.is-light .mc-theme-switch__option--light,
.mc-theme-switch.is-dark .mc-theme-switch__option--dark {
  color: var(--text-0);
}

.mc-theme-switch.is-light .mc-theme-switch__option--light .mc-svg {
  color: var(--brand-warn);
}

.mc-theme-switch.is-dark .mc-theme-switch__option--dark .mc-svg {
  color: var(--brand-2);
}

.mc-hub-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--on-accent);
  border: 2px solid var(--line-1);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.mc-hub-avatar.is-initials {
  /* background set inline from colorFromString */
}
.mc-hub-avatar .mc-user-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.mc-hub-avatar:hover { transform: scale(1.04); box-shadow: var(--shadow-1); }

/* ---- Main content ------------------------------------------------------- */
.mc-hub-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  animation: mc-hub-in var(--t-mid);
}

@keyframes mc-hub-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mc-hub-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.mc-hub-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -.02em;
}
.mc-hub-hero__sub {
  margin: 6px 0 0;
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.5;
}

.mc-hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.mc-hub-filter {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.mc-hub-filter:hover { color: var(--text-0); border-color: var(--line-strong); }
.mc-hub-filter.is-active {
  color: var(--brand-1);
  background: color-mix(in srgb, var(--brand-1) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand-1) 35%, transparent);
}
.mc-hub-filter:active { transform: scale(.97); }

/* ---- Projects command surface ------------------------------------------ */
.mc-project-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -6px 0 18px;
}

.mc-project-metric {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  box-shadow: var(--shadow-1);
}

.mc-project-metric__label,
.mc-project-field__label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mc-project-metric__value {
  display: block;
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--text-0);
}

.mc-project-metric__hint {
  display: block;
  margin-top: 7px;
  color: var(--text-2);
  font-size: var(--fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-project-toolbar {
  position: sticky;
  top: calc(var(--topbar-h) + 8px);
  z-index: 20;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--bg-0) 84%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-1);
}

.mc-project-toolbar__row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .7fr) minmax(140px, .65fr) minmax(280px, 1fr) minmax(180px, .8fr);
  gap: 10px;
  align-items: end;
}

.mc-project-toolbar__row--filters-only {
  grid-template-columns: minmax(150px, .7fr) minmax(140px, .65fr) minmax(280px, 1fr) minmax(180px, .8fr);
}

.mc-project-toolbar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mc-project-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-project-count {
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.mc-project-field {
  min-width: 0;
}

.mc-project-searchbox,
.mc-project-select,
.mc-project-date-input {
  position: relative;
  display: flex;
  align-items: center;
}

.mc-project-searchbox input,
.mc-project-select select,
.mc-project-date-input input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
  background: var(--bg-2);
  color: var(--text-0);
  font: inherit;
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.mc-project-searchbox input {
  padding: 8px 12px 8px 36px;
}

.mc-project-select select {
  appearance: none;
  padding: 8px 34px 8px 12px;
  cursor: pointer;
  color-scheme: inherit;
}
.mc-project-select select option {
  background-color: var(--bg-2);
  color: var(--text-1);
}

.mc-project-date-input input {
  padding: 8px 10px 8px 32px;
}

.mc-project-searchbox input:focus,
.mc-project-select select:focus,
.mc-project-date-input input:focus {
  border-color: var(--brand-2);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 20%, transparent);
}

.mc-project-searchbox__icon,
.mc-project-select__icon,
.mc-project-date-input__icon {
  position: absolute;
  z-index: 1;
  display: grid;
  place-content: center;
  color: var(--text-3);
  pointer-events: none;
}

.mc-project-searchbox__icon,
.mc-project-date-input__icon {
  left: 10px;
}

.mc-project-select__icon {
  right: 10px;
}

.mc-project-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.mc-project-date-range__sep {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.mc-project-view {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-2);
  background: var(--bg-2);
}

.mc-project-view__btn {
  width: 34px;
  height: 32px;
  display: grid;
  place-content: center;
  border: 0;
  border-radius: var(--r-1);
  background: transparent;
  color: var(--text-3);
}

.mc-project-view__btn:hover {
  color: var(--text-0);
  background: var(--bg-3);
}

.mc-project-view__btn.is-active {
  color: var(--text-0);
  background: color-mix(in srgb, var(--brand-2) 18%, var(--bg-3));
}

.mc-project-reset {
  min-height: 38px;
}

.mc-project-results {
  min-height: 360px;
}

/* ---- Project cards grid ------------------------------------------------- */
.mc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.mc-projcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-3);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-fast);
  animation: mc-card-in var(--t-mid) backwards;
}
.mc-projcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: color-mix(in srgb, var(--pc-accent, var(--brand-2)) 40%, var(--line-1));
}
.mc-projcard:active { transform: translateY(-1px); }

@keyframes mc-card-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mc-projcard__thumb.has-cover .mc-projcard__thumb-icon {
  display: none;
}

.mc-projcard__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-projcard__cover-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--r-2);
  background: rgba(0, 0, 0, .52);
  color: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast), background var(--t-fast);
}

.mc-projcard:hover .mc-projcard__cover-btn,
.mc-projcard:focus-within .mc-projcard__cover-btn {
  opacity: 1;
}

.mc-projcard__cover-btn:hover {
  background: rgba(0, 0, 0, .72);
}

.mc-projcard__thumb {
  aspect-ratio: 16 / 10;
  background: var(--pc-gradient, var(--gradient-hero));
  position: relative;
  overflow: hidden;
}
.mc-projcard__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg-0) 55%, transparent), transparent 50%);
}
.mc-projcard__thumb-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: rgba(255, 255, 255, .92);
  opacity: .85;
}
.mc-projcard__thumb-icon svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }

.mc-projcard__quick-actions {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.mc-projcard__quick-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--r-2);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  background: color-mix(in srgb, var(--bg-0) 68%, transparent);
  color: var(--text-0);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.mc-projcard__quick-action > span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mc-projcard__quick-action svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.mc-projcard__quick-action:hover,
.mc-projcard__quick-action:focus-visible {
  transform: translateY(-1px);
  background: var(--bg-3);
  border-color: color-mix(in srgb, var(--brand-2) 45%, transparent);
  outline: none;
}

.mc-projcard__quick-action--primary {
  background: color-mix(in srgb, var(--brand-2) 82%, var(--bg-0));
  border-color: color-mix(in srgb, #fff 22%, transparent);
  color: var(--on-accent);
}

.mc-projcard__quick-action--primary:hover,
.mc-projcard__quick-action--primary:focus-visible {
  background: var(--brand-2);
  border-color: color-mix(in srgb, #fff 30%, transparent);
}

.mc-projcard__menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: var(--r-2);
  display: grid;
  place-content: center;
  background: var(--bg-overlay);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-1);
  color: var(--text-0);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.mc-projcard:hover .mc-projcard__menu { opacity: 1; }
.mc-projcard__menu:hover { background: var(--bg-3); }

.mc-projcard__body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mc-projcard__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-projcard__sub { margin: 0; font-size: var(--fs-sm); color: var(--text-3); }
.mc-projcard__desc {
  min-height: 40px;
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-projcard__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.mc-chip--ok { color: var(--brand-3); background: color-mix(in srgb, var(--brand-3) 14%, transparent); border-color: transparent; }
.mc-chip--busy { color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 14%, transparent); border-color: transparent; }
.mc-chip--warn { color: var(--brand-warn); background: color-mix(in srgb, var(--brand-warn) 16%, transparent); border-color: transparent; }
.mc-chip--muted { color: var(--text-2); background: var(--bg-3); border-color: transparent; }

/* ---- Project table ------------------------------------------------------ */
.mc-project-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-1);
  border-radius: var(--r-3);
  background: var(--bg-1);
  box-shadow: var(--shadow-1);
}

.mc-project-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.mc-project-table th,
.mc-project-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-1);
  text-align: left;
  vertical-align: middle;
  font-size: var(--fs-sm);
}

.mc-project-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-2);
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mc-project-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color var(--t-fast);
}

.mc-project-table__sort:hover {
  color: var(--text-1);
}

.mc-project-table__sort.is-active {
  color: var(--text-0);
}

.mc-project-table__sort-icon {
  display: inline-flex;
  opacity: .45;
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.mc-project-table__sort.is-active .mc-project-table__sort-icon {
  opacity: 1;
  color: var(--brand-2);
}

.mc-project-table__sort-label {
  white-space: nowrap;
}

.mc-project-table tbody tr {
  cursor: pointer;
  transition: background var(--t-fast);
}

.mc-project-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand-2) 7%, transparent);
}

.mc-project-table tbody tr:last-child td {
  border-bottom: 0;
}

.mc-project-table__project {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.mc-project-table__icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-content: center;
  border-radius: var(--r-2);
  color: #fff;
}

.mc-project-table__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mc-project-table__copy strong,
.mc-project-table__copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-project-table__copy strong {
  color: var(--text-0);
  font-size: var(--fs-sm);
}

.mc-project-table__copy small {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.mc-project-table__actions {
  width: 96px;
  text-align: right;
  white-space: nowrap;
}

.mc-project-table__actions .mc-iconbtn {
  width: 32px;
  height: 32px;
}

/* New project card */
.mc-projcard--new {
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  gap: 12px;
}
.mc-projcard--new:hover {
  border-color: var(--brand-1);
  background: color-mix(in srgb, var(--brand-1) 6%, transparent);
}
.mc-projcard--new .mc-projcard__plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-2);
  transition: transform var(--t-fast);
}
.mc-projcard--new:hover .mc-projcard__plus { transform: scale(1.06); }
.mc-projcard--new span { font-weight: 600; color: var(--text-1); }

/* Empty state */
.mc-hub-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--r-4);
  border: 1px dashed var(--line-2);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
}
.mc-hub-empty__illus {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-content: center;
  background: var(--gradient-hero);
  margin-bottom: 20px;
  animation: mc-float 2.4s ease-in-out infinite;
}
.mc-hub-empty h2 { margin: 0 0 8px; color: var(--text-0); font-size: var(--fs-xl); }
.mc-hub-empty p { margin: 0 0 20px; color: var(--text-2); max-width: 400px; line-height: 1.55; }

/* ---- Project hub page --------------------------------------------------- */
.mc-hub-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--r-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.mc-hub-back:hover { color: var(--text-0); background: var(--bg-3); }

.mc-project-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-1) 92%, transparent), color-mix(in srgb, var(--bg-2) 76%, transparent)),
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--brand-2) 20%, transparent), transparent 34%);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.mc-project-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--project-accent, var(--gradient-hero));
}

.mc-project-detail-hero__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.mc-project-detail-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--brand-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mc-project-detail-hero__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-content: center;
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--brand-2) 16%, var(--bg-2));
}

.mc-project-detail-hero__description {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.55;
}

.mc-project-detail-hero__side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  justify-items: end;
}

.mc-project-detail-hero__art {
  position: relative;
  width: 148px;
  height: 118px;
  display: grid;
  place-content: center;
}

.mc-project-detail-hero__tile {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 94px;
  display: grid;
  place-content: center;
  border-radius: 24px;
  color: #fff;
  background: var(--project-accent, var(--gradient-hero));
  box-shadow: var(--shadow-3);
}

.mc-project-detail-hero__pulse {
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--brand-2) 28%, transparent);
  transform: rotate(-8deg);
}

.mc-project-detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mc-hub-projhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.mc-hub-projhead__name {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -.02em;
}
.mc-hub-projhead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.mc-hub-projhead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mc-hub-stats {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.mc-hub-stats::-webkit-scrollbar { height: 6px; }
.mc-hub-stats--project {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}
.mc-hub-stat {
  flex: 0 0 min(220px, 78vw);
  scroll-snap-align: start;
  padding: 16px 18px;
  border-radius: var(--r-3);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-1);
  transition: border-color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.mc-hub-stat:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.mc-hub-stat__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin-bottom: 8px; }
.mc-hub-stat__val { font-size: var(--fs-2xl); font-weight: 700; color: var(--text-0); }
.mc-hub-stat__hint { font-size: var(--fs-sm); color: var(--text-2); margin-top: 6px; }

.mc-hub-section { margin-bottom: 32px; }
.mc-hub-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mc-hub-section__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-0);
}
.mc-hub-section__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-2);
  text-decoration: none;
}
.mc-hub-section__link:hover { text-decoration: underline; }

.mc-project-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.mc-hub-forge-list {
  display: grid;
  gap: 10px;
}
.mc-hub-forge-empty {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r-3);
  border: 1px dashed var(--line-2);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.mc-hub-forge-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-3);
  border: 1px solid var(--line-1);
  background: var(--bg-1);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.mc-hub-forge-card:hover {
  border-color: color-mix(in srgb, var(--brand-2) 40%, var(--line-1));
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.mc-hub-forge-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-2);
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--brand-1) 18%, var(--bg-2));
  color: var(--brand-1);
}
.mc-hub-forge-card__body { min-width: 0; display: grid; gap: 4px; }
.mc-hub-forge-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.mc-hub-forge-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 500;
}
.mc-hub-forge-card__prompt {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-hub-forge-card__time {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.mc-hub-forge-card__chev {
  color: var(--text-3);
  display: grid;
  place-content: center;
}

.mc-hub-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.mc-hub-shortcut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: var(--r-3);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.mc-hub-shortcut[href],
button.mc-hub-shortcut {
  cursor: pointer;
}
.mc-hub-shortcut:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line-1));
  box-shadow: var(--shadow-2);
}
.mc-hub-shortcut.is-disabled { opacity: .45; pointer-events: none; }
.mc-hub-shortcut__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--brand-2) 14%, transparent);
  color: var(--brand-2);
}
.mc-hub-shortcut__label { font-weight: 600; font-size: var(--fs-sm); color: var(--text-0); }
.mc-hub-shortcut__sub { font-size: var(--fs-xs); color: var(--text-3); }

.mc-project-action {
  min-height: 136px;
  padding: 18px;
}

.mc-project-action .mc-hub-shortcut__icon {
  background: color-mix(in srgb, var(--action-color, var(--brand-2)) 16%, transparent);
  color: var(--action-color, var(--brand-2));
}

.mc-project-action.is-blue { --action-color: #3b9bff; }
.mc-project-action.is-warm { --action-color: #ff7a3b; }
.mc-project-action.is-green { --action-color: #00b894; }
.mc-project-action.is-violet { --action-color: #8b5cf6; }
.mc-project-action.is-slate { --action-color: #94a3b8; }

.mc-project-action__chev {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--text-3);
  opacity: .75;
  transition: transform var(--t-fast), color var(--t-fast);
}

.mc-project-action:hover .mc-project-action__chev {
  transform: translateX(2px);
  color: var(--text-0);
}

.mc-hub-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mc-hub-feed__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-2);
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  animation: mc-card-in var(--t-mid) backwards;
}
.mc-hub-feed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--brand-2);
}
.mc-hub-feed__dot--ok { background: var(--brand-3); }
.mc-hub-feed__dot--warn { background: var(--brand-warn); }
.mc-hub-feed__text { flex: 1; font-size: var(--fs-sm); color: var(--text-1); }
.mc-hub-feed__time { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }

/* ---- Wizard overlay ----------------------------------------------------- */
.mc-wizard-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--overlay-backdrop);
  animation: mc-fade var(--t-fast);
}
.mc-wizard-layer.mc-hidden { display: none; }

.mc-wizard {
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: mc-pop var(--t-mid);
}
.mc-wizard__head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line-1);
}
.mc-wizard__steps {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.mc-wizard__step-dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line-1);
  transition: background var(--t-fast);
}
.mc-wizard__step-dot.is-done { background: var(--brand-3); }
.mc-wizard__step-dot.is-active { background: var(--brand-1); }

.mc-wizard__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.mc-wizard__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-1);
  background: var(--bg-2);
}

.mc-kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.mc-kind-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: var(--r-3);
  border: 2px solid var(--line-1);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.mc-kind-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mc-kind-card.is-selected {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 22%, transparent);
}
.mc-kind-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-2);
  display: grid;
  place-content: center;
  background: var(--kc-gradient, var(--gradient-hero));
  color: #fff;
}
.mc-kind-card__title { font-weight: 700; font-size: var(--fs-sm); color: var(--text-0); }
.mc-kind-card__desc { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.4; }

.mc-hub-memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.mc-hub-memory-card {
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--bg-1);
}

.mc-hub-memory-card__thumb {
  aspect-ratio: 16/10;
  background: var(--line-1);
  display: grid;
  place-content: center;
}

.mc-hub-memory-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.mc-hub-memory-card__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mc-hub-memory-card__body h3 {
  margin: 0;
  font-size: var(--fs-sm);
}

.mc-hub-form .mc-field { margin-bottom: 12px; }

@media (max-width: 720px) {
  .mc-hub-header { padding: 0 12px; gap: 8px; }
  .mc-hub-header__nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
  }
  .mc-hub-header__nav::-webkit-scrollbar { display: none; }
  .mc-hub-header__nav .mc-hub-navlink { padding: 6px 8px; flex-shrink: 0; }
  .mc-hub-header__nav .mc-hub-navlink span { display: none; }
  .mc-hub-navsep { display: none; }
  .mc-hub-search.is-visible { width: 100%; max-width: none; flex: 1; }
  .mc-theme-switch {
    width: 74px;
    flex: 0 0 74px;
  }
  .mc-theme-switch__label { display: none; }
  .mc-theme-switch__option { padding: 0; }
  .mc-hub-main { padding: 20px 14px 36px; }
  .mc-project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-project-toolbar { position: static; }
  .mc-project-toolbar__row { grid-template-columns: 1fr; }
  .mc-project-toolbar__footer { align-items: flex-start; flex-direction: column; }
  .mc-project-toolbar__actions { width: 100%; justify-content: space-between; }
  .mc-project-date-range { grid-template-columns: 1fr; }
  .mc-project-date-range__sep { display: none; }
  .mc-project-detail-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .mc-project-detail-hero__side {
    justify-items: stretch;
  }
  .mc-project-detail-hero__art {
    display: none;
  }
  .mc-project-detail-hero__actions {
    justify-content: stretch;
  }
  .mc-project-detail-hero__actions .mc-btn {
    flex: 1;
  }
  .mc-hub-stats--project {
    grid-template-columns: 1fr;
  }
  .mc-hub-grid { grid-template-columns: 1fr; }
  .mc-hub-projhead__actions { width: 100%; }
  .mc-hub-projhead__actions .mc-btn { flex: 1; }
}

/* ---- Video Projects gallery ---- */
.mc-video-thumb .mc-projcard__thumb-icon { opacity: .9; }
.mc-video-thumb__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font: 600 11px/1.4 var(--mono, ui-monospace, monospace);
  letter-spacing: .02em;
}

/* ── Projects pagination (shared hub pager) ─────────────────────────────── */
.mc-pager-host {
  padding: 8px 0 24px;
}
.mc-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), transparent);
}
.mc-pager.is-loading .mc-pager__controls {
  pointer-events: none;
}
.mc-pager.is-loading .mc-pager__btn:not(:disabled) {
  opacity: .55;
}
.mc-pager__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.mc-pager__range {
  color: var(--text-2);
  font-size: var(--fs-sm, 13px);
  font-weight: 500;
}
.mc-pager__size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: var(--fs-sm, 13px);
}
.mc-pager__size-label {
  white-space: nowrap;
}
.mc-pager__size-select {
  appearance: none;
  min-width: 108px;
  padding: 7px 30px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text-1);
  font: inherit;
  cursor: pointer;
  color-scheme: inherit;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.mc-pager__size-select:focus {
  border-color: var(--brand-2);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 18%, transparent);
}
.mc-pager__size-select option {
  background-color: var(--bg-2);
  color: var(--text-1);
}
.mc-pager__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.mc-pager__pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mc-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: 600 13px/1 var(--font, inherit);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mc-pager__btn:hover:not(:disabled) {
  background: var(--surface-2, rgba(255, 255, 255, .06));
  border-color: var(--border, rgba(255, 255, 255, .1));
  color: var(--text-1);
}
.mc-pager__btn.is-active {
  background: color-mix(in srgb, var(--accent, #7c5cff) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent, #7c5cff) 42%, transparent);
  color: var(--text-1);
}
.mc-pager__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.mc-pager__summary {
  color: var(--text-3);
  font-size: 12px;
}
.mc-hub-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  color: var(--text-2);
}
.mc-hub-loading__spinner {
  display: inline-flex;
  animation: mc-spin 1s linear infinite;
  opacity: .75;
}
@keyframes mc-spin {
  to { transform: rotate(360deg); }
}
/* ========================================================================== */
/* Print template gallery                                                     */
/* ========================================================================== */
.mp-template-hero { align-items: flex-end; }
.mp-template-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--text-2); font-size: 13px; text-decoration: none; }
.mp-template-back:hover { color: var(--accent); }
.mp-template-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px; margin: 0 0 22px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; }
.mp-template-search { display: flex; align-items: center; gap: 8px; flex: 1 1 280px; min-width: 220px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-0); }
.mp-template-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.mp-template-search input { width: 100%; border: 0; outline: 0; color: var(--text-1); background: transparent; }
.mp-template-select { display: grid; gap: 5px; min-width: 150px; color: var(--text-2); font-size: 11px; font-weight: 650; }
.mp-template-select select { min-height: 40px; padding: 0 32px 0 10px; color: var(--text-1); background: var(--surface-0); border: 1px solid var(--border); border-radius: 10px; color-scheme: inherit; }
.mp-template-select select option { background-color: var(--bg-2); color: var(--text-1); }
.mp-template-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.mp-template-toggle input { accent-color: var(--accent); }
.mp-template-count { margin-left: auto; align-self: center; color: var(--text-3); font-size: 12px; }
.mp-template-results { min-height: 320px; }
.mp-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.mp-template-card { min-width: 0; overflow: hidden; background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; cursor: pointer; }
.mp-template-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); box-shadow: var(--shadow-md); }
.mp-template-card.is-loading { height: 390px; background: linear-gradient(90deg, var(--surface-1), var(--surface-2), var(--surface-1)); background-size: 220% 100%; animation: mp-template-shimmer 1.3s infinite linear; }
@keyframes mp-template-shimmer { to { background-position: -220% 0; } }
.mp-template-card__preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, var(--surface-2), var(--surface-0)); }
.mp-template-card__preview > img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.mp-template-card:hover .mp-template-card__preview > img { transform: scale(1.025); }
.mp-template-placeholder { display: grid; place-content: center; justify-items: center; gap: 8px; width: 100%; height: 100%; color: var(--text-3); }
.mp-template-favorite { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--text-2); background: color-mix(in srgb, var(--surface-0) 88%, transparent); border: 1px solid var(--border); border-radius: 999px; backdrop-filter: blur(10px); }
.mp-template-favorite.is-active { color: #d99b12; background: #fff8dc; border-color: #f0cb65; }
.mp-template-pages-badge { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; color: #fff; background: #17202ccc; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mp-template-card__body { display: grid; gap: 9px; padding: 15px; }
.mp-template-card__meta { display: flex; justify-content: space-between; gap: 8px; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.mp-template-card__body h3 { margin: 0; color: var(--text-1); font-size: 17px; }
.mp-template-card__body > p { min-height: 38px; margin: 0; overflow: hidden; color: var(--text-2); font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mp-template-card__badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.mp-template-card__badges span { padding: 4px 7px; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-1)); border-radius: 999px; font-size: 10px; font-weight: 650; }
.mp-template-card__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.mp-template-pager { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 70px; color: var(--text-2); font-size: 12px; }
.mp-template-preview-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; max-height: min(58vh, 680px); overflow: auto; padding: 2px; }
.mp-template-preview-pages figure { margin: 0; }
.mp-template-preview-pages img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #e8e9eb; border: 1px solid var(--border); border-radius: 8px; }
.mp-template-preview-pages figcaption { padding: 7px 2px; color: var(--text-2); font-size: 11px; }
.mp-template-preview-info { display: grid; gap: 5px; margin-top: 14px; padding: 13px; background: var(--surface-2); border-radius: 10px; }
.mp-template-preview-info p { margin: 0; color: var(--text-2); font-size: 12px; }
.mp-template-use-field { display: grid; gap: 6px; margin-bottom: 14px; color: var(--text-2); font-size: 12px; font-weight: 650; }
.mp-template-use-status { min-height: 20px; color: var(--danger); font-size: 12px; }
.mp-template-governance { display: grid; gap: 14px; min-width: min(560px, 78vw); }
.mp-template-governance > strong { color: var(--text-1); font-size: 16px; }
.mp-template-governance > p { margin: 0; color: var(--text-2); line-height: 1.5; }
.mp-template-governance label { display: grid; gap: 7px; color: var(--text-2); font-size: 12px; font-weight: 650; }
.mp-template-governance .mc-textarea { min-height: 104px; resize: vertical; }
.mp-template-pages-badge.status-inreview { background: color-mix(in srgb, var(--warning) 82%, #111); }
.mp-wizard-source-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; padding: 5px; background: var(--surface-2); border-radius: 11px; }
.mp-wizard-source-tabs button { min-width:0; min-height:42px; padding:7px 10px; display:inline-flex; align-items:center; justify-content:center; gap:7px; color:var(--text-2); background:transparent; border:1px solid transparent; border-radius:8px; font-weight:650; line-height:1.2; cursor:pointer; }
.mp-wizard-source-tabs button .mc-svg { width:16px; height:16px; flex:0 0 16px; }
.mp-wizard-source-tabs button span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mp-wizard-source-tabs button.is-active { color: var(--accent); background: var(--surface-0); border-color: var(--border); box-shadow: var(--shadow-sm); }
.mp-wizard-import-banner { display:grid; gap:8px; margin-bottom:16px; padding:14px 16px; border:1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius:12px; background:color-mix(in srgb, var(--accent) 6%, var(--surface-1)); }
.mp-wizard-import-banner strong { font-size:14px; }
.mp-wizard-import-banner p { margin:0; color:var(--text-2); font-size:13px; line-height:1.45; }
.mp-wizard-import-banner .mc-btn { justify-self:start; }
.mp-projcard--new-split { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:0; overflow:hidden; }
.mp-projcard--new-split .mp-projcard__new-action { min-height:100%; padding:18px 14px; display:grid; justify-items:center; gap:8px; border:0; background:transparent; color:var(--text-2); cursor:pointer; }
.mp-projcard--new-split .mp-projcard__new-action--primary { color:var(--accent); background:color-mix(in srgb, var(--accent) 7%, var(--surface-1)); }
.mp-projcard--new-split .mp-projcard__new-action:hover { background:color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.mp-configured-wizard {
  width: min(920px, calc(100vw - 32px));
  --border: var(--line-1);
  --border-strong: var(--line-strong);
  --surface-1: var(--bg-2);
  --surface-2: var(--bg-3);
  --accent: var(--brand-1);
  --shadow-sm: var(--shadow-1);
}
.mp-configured-wizard__definitions { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin-bottom:16px; }
.mp-configured-wizard__definition { min-height:86px; padding:12px; display:flex; align-items:center; gap:11px; border:1px solid var(--border); border-radius:11px; color:var(--text-2); background:var(--surface-1); text-align:left; cursor:pointer; }
.mp-configured-wizard__definition:hover,.mp-configured-wizard__definition.is-selected { color:var(--accent); border-color:var(--accent); background:color-mix(in srgb,var(--accent) 7%,var(--surface-1)); }
.mp-configured-wizard__definition>span { width:42px; height:42px; flex:0 0 auto; display:grid; place-items:center; border-radius:10px; background:color-mix(in srgb,var(--accent) 10%,var(--surface-2)); }
.mp-configured-wizard__definition>div { min-width:0; display:grid; gap:4px; }
.mp-configured-wizard__definition strong { color:var(--text-0); font-size:12px; }
.mp-configured-wizard__definition small { color:var(--text-3); font-size:10px; line-height:1.4; }
.mp-configured-wizard__project-target { min-height:72px; padding:12px 14px; display:flex; align-items:center; gap:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface-1); }
.mp-configured-wizard__project-target>span { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; border-radius:9px; color:var(--accent); background:color-mix(in srgb,var(--accent) 10%,var(--surface-2)); }
.mp-configured-wizard__project-target>div { min-width:0; display:grid; gap:4px; }
.mp-configured-wizard__project-target strong { color:var(--text-0); font-size:12px; }
.mp-configured-wizard__project-target small { color:var(--text-3); font-size:10px; }
.mp-configured-wizard__description { margin:0 0 15px; color:var(--text-2); font-size:12px; line-height:1.55; }
.mp-configured-wizard__field-block { display: grid; gap: 10px; margin-bottom: 14px; }
.mp-configured-wizard__advanced-toggle {
  margin-bottom: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-3);
  background: var(--bg-2);
}
.mp-configured-wizard__advanced-link { justify-self: start; padding-inline: 0; min-height: 0; font-size: var(--fs-sm); }
.mp-configured-wizard__field-guide {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--brand-1) 22%, var(--line-1));
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--brand-1) 5%, var(--bg-2));
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.mp-configured-wizard__field-guide strong { color: var(--text-0); font-size: var(--fs-sm); }
.mp-configured-wizard__field-guide p { margin: 0; }
.mp-configured-wizard__field-guide ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.mp-configured-wizard__choices { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.mp-configured-wizard__choice { min-height: 34px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-1); border-radius: 999px; background: var(--bg-2); cursor: pointer; }
.mp-configured-wizard__choice:has(input:checked) { color: var(--brand-1); border-color: color-mix(in srgb, var(--brand-1) 45%, var(--line-1)); background: color-mix(in srgb, var(--brand-1) 8%, var(--bg-2)); }
.mp-configured-wizard__single-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.mp-configured-wizard__choice-card { min-height:88px; padding:12px; display:grid; grid-template-columns:auto 24px minmax(0,1fr); align-items:start; gap:9px; border:1px solid var(--line-1); border-radius:10px; background:var(--bg-2); cursor:pointer; }
.mp-configured-wizard__choice-card>span:last-child { display:grid; gap:4px; }
.mp-configured-wizard__choice-card strong { color:var(--text-0); font-size:var(--fs-sm); }
.mp-configured-wizard__choice-card small { color:var(--text-3); font-size:var(--fs-xs); line-height:1.45; }
.mp-configured-wizard__choice-card.is-selected,.mp-configured-wizard__choice-card:has(input:checked) { border-color:color-mix(in srgb,var(--brand-1) 55%,var(--line-1)); background:color-mix(in srgb,var(--brand-1) 8%,var(--bg-2)); }
.mp-configured-wizard__choice-card.is-disabled { opacity:.58; cursor:not-allowed; }
.mp-configured-wizard__capability { margin:0; padding:9px 11px; border:1px solid var(--line-1); border-radius:8px; color:var(--text-2); background:var(--bg-2); font-size:var(--fs-xs); line-height:1.5; }
.mp-configured-wizard__capability.is-positive { border-color:color-mix(in srgb,#2ba471 45%,var(--line-1)); background:color-mix(in srgb,#2ba471 7%,var(--bg-2)); }
.mp-configured-wizard__capability.is-flat { border-color:color-mix(in srgb,#d89b36 45%,var(--line-1)); background:color-mix(in srgb,#d89b36 7%,var(--bg-2)); }
.mp-configured-wizard__file-field { margin-bottom: 14px; display: grid; gap: 8px; }
.mp-configured-wizard__file-field > .mc-field__label { display: block; margin: 0; }
.mp-configured-wizard__drop {
  position: relative;
  width: 100%;
  min-height: 188px;
  padding: 22px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-3);
  color: var(--text-3);
  background: var(--bg-2);
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  cursor: pointer;
  outline: none;
}
.mp-configured-wizard__drop:focus-visible {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 22%, transparent);
}
.mp-configured-wizard__drop.is-over {
  color: var(--brand-1);
  border-color: var(--brand-1);
  border-style: solid;
  background: color-mix(in srgb, var(--brand-1) 8%, var(--bg-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent);
}
.mp-configured-wizard__drop.is-over .mp-configured-wizard__drop-icon {
  color: var(--brand-1);
  border-color: color-mix(in srgb, var(--brand-1) 45%, var(--line-1));
  background: color-mix(in srgb, var(--brand-1) 16%, var(--bg-3));
}
.mp-configured-wizard__drop.is-uploading { cursor: progress; border-style: solid; border-color: color-mix(in srgb, var(--brand-1) 35%, var(--line-1)); }
.mp-configured-wizard__drop.is-uploading .mp-configured-wizard__drop-icon > span { animation: mc-spin .8s linear infinite; }
.mp-configured-wizard__drop-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-3);
  color: var(--brand-1);
  background: color-mix(in srgb, var(--brand-1) 12%, var(--bg-3));
  border: 1px solid color-mix(in srgb, var(--brand-1) 22%, var(--line-1));
}
.mp-configured-wizard__drop-icon .mc-svg { width: 26px; height: 26px; }
.mp-configured-wizard__drop-title { color: var(--text-0); font-size: var(--fs-md); font-weight: 700; }
.mp-configured-wizard__drop-action { max-width: 560px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.mp-configured-wizard__drop-accept,
.mp-configured-wizard__drop-status { max-width: 560px; font-size: var(--fs-xs); line-height: 1.45; }
.mp-configured-wizard__drop-status { color: var(--text-2); font-weight: 600; }
.mp-configured-wizard__drop .mc-btn { margin-top: 4px; pointer-events: auto; }
.mp-configured-wizard__skip-hint { margin-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.mp-configured-wizard__skip-updates { padding-inline:10px; min-height:30px; font-size:11px; }
.mp-configured-wizard__skip-updates.is-active { color:var(--accent); border-color:color-mix(in srgb,var(--accent) 40%,var(--border)); background:color-mix(in srgb,var(--accent) 8%,var(--surface-1)); }
.mp-configured-wizard__import-only-note { margin-top:6px; padding:8px 10px; border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border)); border-radius:8px; color:var(--text-2); background:color-mix(in srgb,var(--accent) 5%,var(--surface-1)); }
.mp-configured-wizard__drop strong { color: var(--text-1); font-size: 12px; }
.mp-configured-wizard__drop small { max-width: 560px; font-size: 10px; line-height: 1.45; }
.mp-configured-wizard__drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mp-configured-wizard__files { display:grid; gap:5px; }
.mp-configured-wizard__files>div,.mp-configured-wizard__file { min-height:38px; padding:6px 8px; display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:7px; border:1px solid var(--border); border-radius:8px; background:var(--surface-1); }
.mp-configured-wizard__file:has(button) { grid-template-columns:22px minmax(0,1fr) auto 28px; }
.mp-configured-wizard__file.is-uploading { border-color:color-mix(in srgb,var(--accent) 35%,var(--border)); }
.mp-configured-wizard__file.is-uploading>span { animation:mc-spin .8s linear infinite; color:var(--accent); }
.mp-configured-wizard__file.is-error { border-color:color-mix(in srgb,#d95661 40%,var(--border)); }
.mp-configured-wizard__file.is-error>span { color:#d95661; }
.mp-configured-wizard__files strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.mp-configured-wizard__files small { color:var(--text-3); font-size:9px; }
.mp-configured-wizard__files button { width:27px; height:27px; display:grid; place-items:center; border:0; border-radius:6px; color:var(--text-3); background:transparent; cursor:pointer; }
.mp-configured-wizard__files button:hover { color:var(--danger,#d95661); background:var(--surface-2); }
.mp-configured-wizard__status { min-height:190px; padding:24px; display:grid; place-content:center; justify-items:center; gap:9px; color:var(--accent); text-align:center; }
.mp-configured-wizard__status strong { color:var(--text-0); font-size:15px; }
.mp-configured-wizard__status p { max-width:600px; margin:0; color:var(--text-3); font-size:11px; line-height:1.55; }
.mp-configured-wizard__status.is-spinning>span { animation:mc-spin .8s linear infinite; }
.mp-configured-wizard__progress { width:min(560px,100%); height:9px; margin:0 auto; overflow:hidden; border-radius:999px; background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--border); }
.mp-configured-wizard__progress>span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--accent),var(--brand-3,var(--accent))); transition:width .3s ease; }
.mp-configured-wizard__progress-label { display:block; margin-top:8px; color:var(--text-3); text-align:center; }
.mp-configured-wizard__error-meta { display:grid; gap:4px; margin-top:12px; color:var(--text-3); text-align:center; }
@media (max-width:720px) {
  .mp-wizard-source-tabs { grid-template-columns:1fr; }
  .mp-configured-wizard__definitions { grid-template-columns:1fr; }
  .mp-configured-wizard__single-choices { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .mp-template-filters { align-items: stretch; }
  .mp-template-search, .mp-template-select { width: 100%; }
  .mp-template-count { width: 100%; margin-left: 0; }
  .mp-template-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-template-card__actions .mc-btn { flex: 1; }
}

/* ========================================================================
   Global application sidebar
   The product navigation lives outside feature workspaces. Studio, Forge,
   Video and Print keep their own contextual rails inside the remaining area.
   ======================================================================== */
:root {
  --mc-global-sidebar-w: 236px;
  --mc-global-sidebar-collapsed-w: 72px;
  --mc-global-sidebar-current-w: var(--mc-global-sidebar-w);
}

body.mc-global-sidebar-active {
  --mc-global-sidebar-current-w: var(--mc-global-sidebar-w);
  box-sizing: border-box;
  padding-left: var(--mc-global-sidebar-current-w);
  transition: padding-left var(--t-mid);
}

body.mc-global-sidebar-active.mc-global-sidebar-collapsed {
  --mc-global-sidebar-current-w: var(--mc-global-sidebar-collapsed-w);
}

body.mc-global-sidebar-resizing,
body.mc-global-sidebar-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
  transition: none !important;
}

body.mc-global-sidebar-active #mc-hub-header-slot,
body.mc-global-sidebar-active #mc-forge-hub-header,
body.mc-global-sidebar-active #mc-print-hub-header {
  position: static;
  z-index: auto;
  width: 0;
  height: 0;
  min-height: 0;
  flex: 0 0 0;
  border: 0;
  background: transparent;
}

.mc-hub-sidebar {
  position: fixed;
  z-index: 300;
  inset: 0 auto 0 0;
  width: var(--mc-global-sidebar-current-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--text-1);
  background: var(--bg-1);
  border-right: 0;
  box-shadow: var(--shadow-2);
  transition: width var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
  container-type: inline-size;
}

.mc-hub-sidebar__head {
  min-height: 78px;
  padding: 15px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line-1);
}

.mc-hub-sidebar__head .mc-brand-mark {
  min-width: 0;
  padding: 0;
  text-decoration: none;
}

.mc-hub-sidebar__collapse {
  flex: 0 0 34px;
}

.mc-hub-sidebar .mc-hub-search {
  width: auto;
  margin: 12px 14px 4px;
  flex: 0 0 auto;
}

.mc-hub-sidebar .mc-hub-search input {
  border-radius: var(--r-1);
}

.mc-hub-sidebar__nav {
  min-height: 0;
  padding: 12px 10px 18px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.mc-hub-sidebar__nav > * {
  flex: 0 0 auto;
}

.mc-hub-sidebar .mc-hub-navlink,
.mc-hub-navgroup__toggle {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: var(--r-1);
  color: var(--text-2);
  background: transparent;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.mc-hub-sidebar .mc-hub-navlink > .mc-i,
.mc-hub-navgroup__toggle > .mc-i {
  width: 20px;
  height: 20px;
  display: grid;
  place-content: center;
  flex: 0 0 20px;
}

.mc-hub-sidebar .mc-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mc-hub-sidebar .mc-hub-navlink:hover,
.mc-hub-navgroup__toggle:hover {
  color: var(--text-0);
  background: var(--bg-3);
}

.mc-hub-sidebar .mc-hub-navlink.is-active {
  color: var(--text-0);
  background: color-mix(in srgb, var(--brand-2) 13%, var(--bg-2));
  border-color: color-mix(in srgb, var(--brand-2) 30%, var(--line-1));
}

.mc-hub-navgroup {
  display: grid;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px solid var(--line-1);
}

.mc-hub-navgroup.is-ecosystem {
  margin-top: 2px;
  padding: 7px 0 11px;
  border-bottom: 1px solid var(--line-1);
}

.mc-hub-navgroup.is-ecosystem .mc-hub-navgroup__toggle {
  min-height: 40px;
  color: var(--text-1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .085em;
}

.mc-hub-navgroup.is-ecosystem .mc-hub-navgroup__submenu {
  padding-left: 6px;
}

.mc-hub-navgroup.is-ecosystem .mc-system-navlink {
  min-height: 38px;
}

.mc-hub-navgroup__toggle {
  min-height: 36px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.mc-hub-navgroup__toggle > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.mc-hub-navgroup__chevron {
  width: 16px;
  height: 16px;
  display: grid;
  place-content: center;
  transition: transform var(--t-fast);
}

.mc-hub-navgroup:not(.is-open) .mc-hub-navgroup__chevron {
  transform: rotate(-90deg);
}

.mc-hub-navgroup__submenu {
  display: grid;
  gap: 2px;
}

.mc-hub-navlabel {
  min-width: 0;
  margin: 7px 10px 3px 15px;
  padding-top: 9px;
  overflow: hidden;
  color: var(--text-3);
  border-top: 1px solid var(--line-1);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mc-hub-sidebar .mc-hub-navlink.mc-hub-workspace-home {
  margin-top: 4px;
  color: var(--text-1);
}

.mc-hub-primary-nav {
  display: grid;
  gap: 2px;
  margin-bottom: 1px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-1);
}

.mc-hub-primary-nav .mc-hub-navlink {
  min-height: 40px;
}

.mc-hub-primary-nav .mc-hub-navlink > .mc-i {
  color: var(--brand-orange);
}

.mc-hub-primary-nav .mc-hub-navlink.is-active > .mc-i {
  color: var(--brand-red);
}

[data-theme="dark"] .mc-hub-primary-nav .mc-hub-navlink.is-active > .mc-i {
  color: var(--brand-cyan);
}

.mc-hub-project-context {
  min-width: 0;
  margin: 8px 4px 5px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--text-1);
  border: 1px solid color-mix(in srgb, var(--brand-2) 26%, var(--line-1));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-2) 8%, var(--bg-2));
  text-decoration: none;
}
.mc-hub-project-context:hover { background: color-mix(in srgb, var(--brand-2) 13%, var(--bg-2)); }
.mc-hub-project-context.is-active {
  border-color: color-mix(in srgb, var(--brand-2) 52%, var(--line-1));
  background: color-mix(in srgb, var(--brand-2) 14%, var(--bg-2));
  box-shadow: inset 3px 0 0 var(--brand-2), 0 6px 18px color-mix(in srgb, var(--brand-2) 8%, transparent);
}
.mc-hub-project-context__icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--brand-2); background: var(--bg-1); }
.mc-hub-project-context__copy { min-width: 0; display: grid; gap: 2px; }
.mc-hub-project-context__copy small { color: var(--text-3); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mc-hub-project-context__copy strong { overflow: hidden; color: var(--text-0); font-size: var(--fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.mc-hub-project-context__status { width: 7px; height: 7px; border-radius: 50%; background: #27c27a; box-shadow: 0 0 0 3px color-mix(in srgb, #27c27a 14%, transparent); }

.mc-hub-navsubgroup {
  min-width: 0;
  margin: 5px 4px 2px 10px;
  padding: 8px 0 3px 8px;
  border-left: 1px solid color-mix(in srgb, var(--brand-2) 35%, var(--line-1));
}
.mc-hub-navsubgroup__title {
  display: block;
  margin: 0 9px 6px;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mc-hub-navsubgroup__items { display: grid; gap: 2px; }
.mc-hub-navsubgroup .mc-hub-navlabel.is-subsection {
  margin: 8px 10px 2px;
  padding-top: 6px;
  font-size: 8px;
  letter-spacing: .085em;
}
.mc-hub-navsubgroup .mc-hub-navlink { min-height: 36px; padding-block: 7px; }

.mc-hub-navgroup:not(.is-open) .mc-hub-navgroup__submenu {
  display: none;
}

.mc-hub-navgroup__submenu .mc-hub-navlink {
  padding-left: 15px;
}

.mc-hub-sidebar__footer {
  padding: 11px 12px 14px;
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
  border-top: 1px solid var(--line-1);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
}

.mc-hub-sidebar__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 5px;
}

.mc-hub-sidebar__actions .mc-theme-switch {
  width: 100%;
  min-width: 0;
  flex-basis: auto;
}

.mc-hub-sidebar__user {
  min-width: 0;
  padding-top: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-1);
}

.mc-hub-sidebar__user-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mc-hub-sidebar__user-copy strong,
.mc-hub-sidebar__user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-hub-sidebar__user-copy strong {
  color: var(--text-0);
  font-size: var(--fs-sm);
}

.mc-hub-sidebar__user-copy small {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.mc-hub-sidebar__resize {
  position: absolute;
  z-index: 4;
  top: 0;
  right: -8px;
  bottom: 0;
  width: 16px;
  cursor: col-resize;
  touch-action: none;
}

.mc-hub-sidebar__resize:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -5px;
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__head {
  min-height: 112px;
  padding-inline: 10px;
  flex-direction: column;
  justify-content: center;
}

.mc-hub-sidebar.is-collapsed .mc-brand-product,
.mc-hub-sidebar.is-collapsed .mc-hub-navlink > span:last-child,
.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__user-copy {
  display: none;
}

.mc-hub-sidebar.is-collapsed .mc-hub-search,
.mc-hub-sidebar.is-collapsed .mc-hub-navgroup__toggle,
.mc-hub-sidebar.is-collapsed .mc-hub-navlabel,
.mc-hub-sidebar.is-collapsed .mc-hub-project-context,
.mc-hub-sidebar.is-collapsed .mc-hub-navsubgroup__title {
  display: none;
}

.mc-hub-sidebar.is-collapsed .mc-hub-navsubgroup {
  margin: 0;
  padding: 0;
  border-left: 0;
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__nav {
  padding-inline: 9px;
}

.mc-hub-sidebar.is-collapsed .mc-hub-navgroup {
  padding-top: 8px;
}

.mc-hub-sidebar.is-collapsed .mc-hub-navgroup__submenu,
.mc-hub-sidebar.is-collapsed .mc-hub-navgroup:not(.is-open) .mc-hub-navgroup__submenu {
  display: grid;
}

.mc-hub-sidebar.is-collapsed .mc-hub-navlink,
.mc-hub-sidebar.is-collapsed .mc-hub-navgroup__submenu .mc-hub-navlink {
  padding: 9px;
  justify-content: center;
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__footer {
  padding-inline: 9px;
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__actions {
  grid-template-columns: 1fr;
  justify-items: center;
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__actions .mc-theme-switch {
  width: 44px;
  height: 34px;
}

.mc-hub-sidebar.is-collapsed .mc-theme-switch__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__user {
  justify-content: center;
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__collapse .mc-svg {
  transform: rotate(180deg);
}

.mc-hub-sidebar.is-collapsed .mc-hub-sidebar__resize {
  display: none;
}

@container (max-width: 229px) {
  .mc-hub-sidebar:not(.is-collapsed) .mc-brand-product {
    display: none;
  }
}

.mc-global-nav-launcher,
.mc-global-nav-scrim {
  display: none;
}

/* The Studio topbar remains contextual; its duplicate product lockup does not. */
body.mc-global-sidebar-active .mc-topbar .mc-brand-mark {
  display: none;
}

@media (max-width: 1023px) {
  body.mc-global-sidebar-active,
  body.mc-global-sidebar-active.mc-global-sidebar-collapsed {
    --mc-global-sidebar-current-w: 0px;
    padding-left: 0;
  }

  body.mc-global-sidebar-mobile-open {
    overflow: hidden !important;
  }

  .mc-hub-sidebar {
    width: min(324px, calc(100vw - 24px));
    transform: translateX(calc(-100% - 18px));
    box-shadow: none;
  }

  .mc-hub-sidebar.is-mobile-open {
    transform: translateX(0);
    box-shadow: 18px 0 60px rgba(0, 0, 0, .36);
  }

  .mc-hub-sidebar__resize {
    display: none;
  }

.mc-global-nav-launcher {
    position: fixed;
    z-index: 280;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-content: center;
    border: 1px solid var(--line-2);
    border-radius: var(--r-1);
    color: var(--text-0);
    background: var(--bg-1);
    box-shadow: var(--shadow-2);
    cursor: pointer;
  }

  body.mc-global-sidebar-mobile-open .mc-global-nav-launcher {
    opacity: 0;
    pointer-events: none;
  }

  .mc-global-nav-scrim {
    position: fixed;
    z-index: 290;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    background: rgba(0, 0, 0, .52);
    cursor: default;
    transition: opacity var(--t-mid), visibility var(--t-mid);
  }

  body.mc-global-sidebar-mobile-open .mc-global-nav-scrim {
    opacity: 1;
    visibility: visible;
  }

  .mc-studio-page #mc-studio.mc-app,
  .mc-forge-page #mc-forge-app,
  .vs-page .vs-app,
  .mp-editor-page .mp-editor {
    width: 100%;
  }
}

.mc-global-nav-launcher .mc-svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 720px) {
  .mc-global-nav-launcher {
    top: 7px;
    left: 7px;
  }
}

/* ========================================================================== */
/* Projects home — intent-first creative launcher                             */
/* ========================================================================== */
.mc-start-hero {
  position: relative;
  isolation: isolate;
  min-height: 378px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  margin: 2px 0 34px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-2) 25%, var(--line-1));
  border-radius: clamp(24px, 3vw, 36px);
  background:
    linear-gradient(128deg, color-mix(in srgb, var(--bg-1) 96%, #552bff 4%), color-mix(in srgb, var(--bg-1) 88%, #ff2d8d 12%)),
    var(--bg-1);
  box-shadow: 0 28px 80px rgb(4 6 20 / 16%), inset 0 1px 0 color-mix(in srgb, #fff 11%, transparent);
}

.mc-start-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text-0) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text-0) 5%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.mc-start-hero__orb {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.mc-start-hero__orb--one {
  top: -230px;
  right: 12%;
  background: radial-gradient(circle, rgb(119 80 255 / 38%), transparent 68%);
}

.mc-start-hero__orb--two {
  right: -210px;
  bottom: -210px;
  background: radial-gradient(circle, rgb(255 57 139 / 32%), transparent 68%);
}

.mc-start-hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.mc-start-eyebrow,
.mc-start-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mc-start-eyebrow__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand-2) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-2) 12%, transparent);
}

.mc-start-eyebrow__icon .mc-svg {
  width: 14px;
  height: 14px;
}

.mc-start-hero__title {
  max-width: 760px;
  margin: 14px 0 12px;
  color: var(--text-0);
  font-size: clamp(2.15rem, 4.5vw, 4.2rem);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.mc-start-hero__sub {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: clamp(.96rem, 1.5vw, 1.08rem);
  line-height: 1.6;
}

.mc-start-dispatch {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(720px, 100%);
  min-height: 62px;
  padding: 7px 8px 7px 16px;
  border: 1px solid color-mix(in srgb, var(--brand-2) 28%, var(--line-1));
  border-radius: 19px;
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  box-shadow: 0 18px 45px rgb(7 8 20 / 18%), inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.mc-start-dispatch:focus-within {
  border-color: color-mix(in srgb, var(--brand-2) 72%, var(--line-1));
  box-shadow: 0 20px 52px rgb(7 8 20 / 22%), 0 0 0 4px color-mix(in srgb, var(--brand-2) 13%, transparent);
}

.mc-start-dispatch.is-routing {
  border-color: var(--brand-2);
}

.mc-start-dispatch__spark {
  display: grid;
  place-items: center;
  color: var(--brand-2);
}

.mc-start-dispatch__spark .mc-svg {
  width: 22px;
  height: 22px;
}

.mc-start-dispatch > .mc-voice-input {
  min-width: 0;
}

.mc-start-dispatch__input {
  width: 100%;
  min-height: 40px;
  max-height: 112px;
  padding: 10px 8px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-0);
  font: 500 var(--fs-md)/1.4 var(--font-sans);
}

.mc-start-dispatch__input::placeholder {
  color: var(--text-3);
}

.mc-start-dispatch .mc-voice-input__button {
  top: 6px;
  right: 3px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.mc-start-dispatch__submit {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #8259ff, #e443a8);
  color: #fff;
  font: 750 var(--fs-sm)/1 var(--font-sans);
  box-shadow: 0 10px 24px rgb(114 66 255 / 28%);
  cursor: pointer;
  transition: transform var(--t-fast), filter var(--t-fast), box-shadow var(--t-fast);
}

.mc-start-dispatch__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgb(114 66 255 / 36%);
}

.mc-start-dispatch__submit:disabled {
  opacity: .72;
  cursor: wait;
}

.mc-start-dispatch__submit .mc-svg {
  width: 18px;
  height: 18px;
}

.mc-start-dispatch__submit .mc-svg:last-child {
  width: 16px;
  height: 16px;
}

.mc-start-dispatch__status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.mc-start-examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.mc-start-example {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--line-1) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 74%, transparent);
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.mc-start-example:hover {
  color: var(--text-0);
  border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line-1));
  background: color-mix(in srgb, var(--brand-2) 9%, var(--bg-2));
}

.mc-start-hero__constellation {
  position: relative;
  min-height: 270px;
}

.mc-start-hero__constellation::before,
.mc-start-hero__constellation::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-2) 35%, transparent), transparent);
  transform: rotate(-24deg);
}

.mc-start-hero__constellation::after {
  transform: rotate(31deg);
}

.mc-start-hero__tile {
  --tile-accent: #8259ff;
  position: absolute;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tile-accent) 42%, var(--line-1));
  border-radius: 24px;
  color: var(--tile-accent);
  background: color-mix(in srgb, var(--tile-accent) 12%, var(--bg-1));
  box-shadow: 0 18px 40px rgb(7 8 20 / 22%), inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent);
  transform: rotate(-7deg);
  animation: mc-start-float 5.5s ease-in-out infinite;
}

.mc-start-hero__tile[data-tone="blue"] { --tile-accent: #3b9bff; }
.mc-start-hero__tile[data-tone="orange"] { --tile-accent: #ff8b3d; }
.mc-start-hero__tile[data-tone="pink"] { --tile-accent: #ff47a8; }
.mc-start-hero__tile--a { top: 4%; left: 2%; }
.mc-start-hero__tile--b { top: 11%; right: 2%; animation-delay: -1.8s; transform: rotate(8deg); }
.mc-start-hero__tile--c { left: 28%; bottom: 2%; animation-delay: -3.1s; transform: rotate(5deg); }
.mc-start-hero__tile--d { right: 12%; bottom: 15%; animation-delay: -4.2s; transform: rotate(-10deg); }

.mc-start-hero__tile .mc-svg {
  width: 30px;
  height: 30px;
}

@keyframes mc-start-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.mc-start-section {
  margin-bottom: 42px;
}

.mc-start-section__head,
.mc-start-projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.mc-start-section__head {
  margin-bottom: 17px;
}

.mc-start-section__head h2,
.mc-start-projects-head h2 {
  margin: 5px 0 0;
  color: var(--text-0);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -.025em;
}

.mc-start-section__head > p {
  max-width: 520px;
  margin: 0;
  color: var(--text-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: right;
}

.mc-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.mc-start-card {
  --start-accent: #8259ff;
  --start-accent-2: #b445ff;
  position: relative;
  min-width: 0;
  min-height: 124px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--start-accent) 18%, var(--line-1));
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--start-accent) 8%, var(--bg-1)), var(--bg-1) 62%);
  color: inherit;
  text-align: left;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  animation: mc-card-in var(--t-mid) backwards;
  transition: transform var(--t-mid), border-color var(--t-fast), box-shadow var(--t-mid), background var(--t-fast);
}

.mc-start-card--featured {
  min-height: 164px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.mc-start-card[data-tone="blue"] { --start-accent: #3b82f6; --start-accent-2: #22d3ee; }
.mc-start-card[data-tone="orange"] { --start-accent: #f97316; --start-accent-2: #fbbf24; }
.mc-start-card[data-tone="pink"] { --start-accent: #ec4899; --start-accent-2: #fb7185; }
.mc-start-card[data-tone="coral"] { --start-accent: #f05252; --start-accent-2: #fb923c; }
.mc-start-card[data-tone="cyan"] { --start-accent: #0891b2; --start-accent-2: #2dd4bf; }
.mc-start-card[data-tone="green"] { --start-accent: #10b981; --start-accent-2: #84cc16; }
.mc-start-card[data-tone="gold"] { --start-accent: #d89b21; --start-accent-2: #f97316; }

.mc-start-card:hover,
.mc-start-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--start-accent) 48%, var(--line-1));
  background: linear-gradient(145deg, color-mix(in srgb, var(--start-accent) 13%, var(--bg-1)), var(--bg-1) 66%);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--start-accent) 16%, transparent);
}

.mc-start-card__glow {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -62px;
  bottom: -76px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--start-accent-2) 30%, transparent), transparent 70%);
  transition: scale var(--t-mid);
}

.mc-start-card:hover .mc-start-card__glow { scale: 1.3; }

.mc-start-card__icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--start-accent) 28%, transparent);
  border-radius: 14px;
  color: var(--start-accent);
  background: color-mix(in srgb, var(--start-accent) 12%, var(--bg-2));
}

.mc-start-card__icon .mc-svg {
  width: 23px;
  height: 23px;
}

.mc-start-card--featured .mc-start-card__icon {
  width: 52px;
  height: 52px;
  grid-column: 1;
  grid-row: 1;
}

.mc-start-card--featured .mc-start-card__icon .mc-svg {
  width: 26px;
  height: 26px;
}

.mc-start-card__copy {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mc-start-card--featured .mc-start-card__copy {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
}

.mc-start-card__copy strong {
  color: var(--text-0);
  font-size: var(--fs-md);
  line-height: 1.2;
}

.mc-start-card--featured .mc-start-card__copy strong {
  font-size: var(--fs-lg);
}

.mc-start-card__copy small {
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.42;
}

.mc-start-card__arrow {
  position: relative;
  width: 17px;
  height: 17px;
  color: var(--text-3);
  transition: translate var(--t-fast), color var(--t-fast);
}

.mc-start-card--featured .mc-start-card__arrow {
  grid-column: 2;
  grid-row: 1;
}

.mc-start-card:hover .mc-start-card__arrow {
  color: var(--start-accent);
  translate: 3px 0;
}

.mc-start-more-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line-1);
  border-radius: 17px;
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
}

.mc-start-more-label {
  padding-top: 7px;
  flex: none;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mc-start-more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mc-start-more__item {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 650 var(--fs-xs)/1 var(--font-sans);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}

.mc-start-more__item:hover {
  color: var(--text-0);
  background: var(--bg-3);
}

.mc-start-more__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 10%, transparent);
}

.mc-start-more__icon .mc-svg {
  width: 15px;
  height: 15px;
}

.mc-start-platforms {
  margin-top: -4px;
}

.mc-start-surface-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.mc-start-surface-card {
  --surface-accent: #8259ff;
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--surface-accent) 18%, var(--line-1));
  border-radius: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-accent) 6%, var(--bg-1)), var(--bg-1) 70%);
  color: inherit;
  text-align: left;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.mc-start-surface-card[data-tone="pink"] { --surface-accent: #ec4899; }
.mc-start-surface-card[data-tone="blue"] { --surface-accent: #3b82f6; }
.mc-start-surface-card[data-tone="gold"] { --surface-accent: #d89b21; }
.mc-start-surface-card[data-tone="orange"] { --surface-accent: #f97316; }
.mc-start-surface-card[data-tone="cyan"] { --surface-accent: #0891b2; }
.mc-start-surface-card[data-tone="green"] { --surface-accent: #10b981; }
.mc-start-surface-card[data-tone="coral"] { --surface-accent: #f05252; }

.mc-start-surface-card:hover,
.mc-start-surface-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--surface-accent) 48%, var(--line-1));
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-accent) 11%, var(--bg-1)), var(--bg-1) 70%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--surface-accent) 13%, transparent);
}

.mc-start-surface-card__icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--surface-accent);
  background: color-mix(in srgb, var(--surface-accent) 11%, var(--bg-2));
}

.mc-start-surface-card__icon .mc-svg {
  width: 20px;
  height: 20px;
}

.mc-start-surface-card__copy {
  min-width: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  align-self: end;
  gap: 4px;
}

.mc-start-surface-card__copy strong {
  color: var(--text-0);
  font-size: var(--fs-sm);
  line-height: 1.25;
}

.mc-start-surface-card__copy small {
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.38;
}

.mc-start-surface-card__arrow {
  width: 16px;
  height: 16px;
  justify-self: end;
  color: var(--text-3);
  transition: translate var(--t-fast), color var(--t-fast);
}

.mc-start-surface-card__arrow .mc-svg {
  width: 16px;
  height: 16px;
}

.mc-start-surface-card:hover .mc-start-surface-card__arrow {
  color: var(--surface-accent);
  translate: 3px 0;
}

.mc-start-projects-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin: -8px auto 28px;
  padding: 15px 17px;
  border: 1px solid var(--line-1);
  border-radius: 18px;
  color: inherit;
  background: color-mix(in srgb, var(--bg-1) 86%, transparent);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.mc-start-projects-link:hover,
.mc-start-projects-link:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand-2) 44%, var(--line-1));
  background: color-mix(in srgb, var(--brand-2) 7%, var(--bg-1));
}

.mc-start-projects-link__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand-2);
  background: color-mix(in srgb, var(--brand-2) 12%, var(--bg-2));
}

.mc-start-projects-link__icon .mc-svg {
  width: 21px;
  height: 21px;
}

.mc-start-projects-link__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mc-start-projects-link__copy strong {
  color: var(--text-0);
  font-size: var(--fs-sm);
}

.mc-start-projects-link__copy small {
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.mc-start-projects-link__arrow {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: translate var(--t-fast), color var(--t-fast);
}

.mc-start-projects-link:hover .mc-start-projects-link__arrow {
  color: var(--brand-2);
  translate: 3px 0;
}

.mc-start-projects-head {
  margin: 0 0 18px;
  padding-top: 2px;
}

.mc-start-projects-head + .mc-project-summary {
  margin-top: 0;
}

@media (max-width: 1050px) {
  .mc-start-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    padding: 36px;
  }
  .mc-start-hero__title { font-size: clamp(2rem, 6vw, 3.5rem); }
  .mc-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-start-surface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .mc-hub-main { padding-inline: 14px; }
  .mc-start-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 22px;
    border-radius: 24px;
  }
  .mc-start-hero__constellation { display: none; }
  .mc-start-hero__title { font-size: clamp(2.1rem, 12vw, 3.2rem); }
  .mc-start-dispatch {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 9px 10px 9px 13px;
  }
  .mc-start-dispatch__submit {
    grid-column: 1 / -1;
    width: 100%;
  }
  .mc-start-section__head,
  .mc-start-projects-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .mc-start-section__head > p { text-align: left; }
  .mc-start-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-start-card,
  .mc-start-card--featured {
    min-height: 116px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
  }
  .mc-start-card--featured .mc-start-card__icon,
  .mc-start-card--featured .mc-start-card__copy,
  .mc-start-card--featured .mc-start-card__arrow {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }
  .mc-start-more-wrap { display: grid; }
  .mc-start-more-label { padding-top: 0; }
  .mc-start-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-start-more__item { justify-content: flex-start; text-align: left; }
  .mc-start-surface-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-start-surface-card { min-height: 108px; }
  .mc-start-projects-head .mc-btn { width: 100%; }
}

@media (max-width: 470px) {
  .mc-start-more { grid-template-columns: minmax(0, 1fr); }
  .mc-start-projects-link { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-start-hero__tile { animation: none; }
  .mc-start-card { animation: none; transition-duration: .01ms; }
}

/* Managed projects — Creative composition over Calendar + Workflow. */
.mc-hub-main--managed-project {
  --mc-project-gutter: clamp(14px, 2vw, 32px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px var(--mc-project-gutter) 48px;
}
.mc-hub-main--managed-project.mc-hub-main--embed-view { padding-bottom: 0; }
.mc-mp-contextbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-width: 0;
  min-height: 42px;
  margin: -18px calc(var(--mc-project-gutter) * -1) 16px;
  padding: 8px var(--mc-project-gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-1);
  background: color-mix(in srgb, var(--bg-0) 92%, transparent);
  backdrop-filter: blur(16px);
}
.mc-mp-contextbar .mc-hub-back { margin: 0; flex: 0 0 auto; }
.mc-mp-contextbar__divider { width: 1px; height: 20px; background: var(--line-1); }
.mc-mp-contextbar__project { min-width: 0; display: flex; align-items: center; gap: 7px; }
.mc-mp-contextbar__project > span:first-child { color: var(--brand-2); }
.mc-mp-contextbar__project small { flex: 0 0 auto; color: var(--text-3); font-size: 9px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.mc-mp-contextbar__project strong { overflow: hidden; color: var(--text-0); font-size: var(--fs-xs); text-overflow: ellipsis; white-space: nowrap; }
.mc-mp-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 24px;
}

.mc-mp-heading h1,
.mc-mp-detail-head h1 {
  margin: 0;
  color: var(--text-0);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.mc-mp-heading p,
.mc-mp-detail-head p,
.mc-mp-section__head p,
.mc-mp-embed-toolbar p {
  margin: 7px 0 0;
  color: var(--text-3);
  line-height: 1.5;
}

.mc-mp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.mc-mp-kpi {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 15px 18px;
  border: 1px solid var(--line-1);
  border-radius: 17px;
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  box-shadow: var(--shadow-1);
}

.mc-mp-kpi strong { color: var(--text-0); font-size: 1.35rem; }
.mc-mp-kpi > span:last-child { color: var(--text-2); font-size: var(--fs-sm); }
.mc-mp-kpi__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #51c5d9; }
.mc-mp-kpi.is-warn .mc-mp-kpi__dot { background: #f59e0b; }
.mc-mp-kpi.is-danger .mc-mp-kpi__dot { background: #ef5b5b; }
.mc-mp-kpi.is-success .mc-mp-kpi__dot { background: #27c27a; }

.mc-mp-section { margin: 0 0 28px; }
.mc-mp-section__head,
.mc-mp-results__head,
.mc-mp-embed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.mc-mp-section__head h2,
.mc-mp-results__head h2,
.mc-mp-embed-toolbar h2 { margin: 0; color: var(--text-0); font-size: 1.15rem; }
.mc-mp-results__head > span { color: var(--text-3); font-size: var(--fs-sm); }

.mc-mp-recent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mc-mp-recent__card,
.mc-mp-workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line-1);
  border-radius: 16px;
  background: var(--bg-1);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.mc-mp-recent__card:hover,
.mc-mp-workspace:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand-2) 44%, var(--line-1)); background: color-mix(in srgb, var(--brand-2) 5%, var(--bg-1)); }
.mc-mp-recent__copy,
.mc-mp-workspace > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.mc-mp-recent__copy strong,
.mc-mp-workspace strong { overflow: hidden; color: var(--text-0); text-overflow: ellipsis; white-space: nowrap; }
.mc-mp-recent__copy small,
.mc-mp-workspace small { color: var(--text-3); }
.mc-mp-project-icon,
.mc-mp-workspace__icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, var(--bg-2));
}

.mc-mp-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(145px, .8fr)) auto auto auto;
  align-items: center;
  gap: 9px;
  margin: 6px 0 18px;
  padding: 12px;
  border: 1px solid var(--line-1);
  border-radius: 17px;
  background: color-mix(in srgb, var(--bg-1) 87%, transparent);
}
.mc-mp-filter-dates { display: flex; gap: 7px; }
.mc-mp-filter-dates .mc-input { min-width: 128px; }
.mc-mp-check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }
.mc-mp-check input { accent-color: var(--brand-2); }

.mc-mp-results,
.mc-mp-panel,
.mc-mp-embed-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line-1);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-1) 92%, transparent);
  box-shadow: var(--shadow-1);
}
.mc-mp-table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line-1); border-radius: 14px; }
.mc-mp-table { width: 100%; min-width: 840px; border-collapse: collapse; }
.mc-mp-table th { padding: 12px 14px; color: var(--text-3); background: var(--bg-2); font-size: var(--fs-xs); text-align: left; white-space: nowrap; }
.mc-mp-table td { padding: 13px 14px; border-top: 1px solid var(--line-1); color: var(--text-2); font-size: var(--fs-sm); vertical-align: middle; }
.mc-mp-table tbody tr { cursor: pointer; transition: background var(--t-fast); }
.mc-mp-table tbody tr:hover,
.mc-mp-table tbody tr:focus-visible { outline: none; background: color-mix(in srgb, var(--brand-2) 6%, transparent); }
.mc-mp-delivery-link { display: block; color: inherit; text-decoration: none; }
.mc-mp-delivery-link:focus-visible { border-radius: 6px; outline: 2px solid var(--brand-2); outline-offset: 3px; }
.mc-mp-table td strong { display: block; color: var(--text-0); }
.mc-mp-table td small { display: block; max-width: 360px; margin-top: 3px; overflow: hidden; color: var(--text-3); text-overflow: ellipsis; white-space: nowrap; }
.mc-mp-project-cell { min-width: 210px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.mc-mp-project-cell__icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 11%, var(--bg-2)); }
.mc-mp-system-list,
.mc-mp-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-mp-status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; color: #388cab; background: color-mix(in srgb, #51c5d9 14%, transparent); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.mc-mp-status.is-success { color: #18945a; background: color-mix(in srgb, #27c27a 15%, transparent); }
.mc-mp-status.is-warn { color: #bd7600; background: color-mix(in srgb, #f59e0b 16%, transparent); }
.mc-mp-status.is-danger { color: #d23d4a; background: color-mix(in srgb, #ef5b5b 14%, transparent); }
.mc-mp-owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mc-mp-avatar { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #7c5cff, #e443a8); font-size: 10px; font-weight: 800; }
.mc-mp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mc-mp-progress { width: 104px; height: 7px; overflow: hidden; border-radius: 999px; background: var(--bg-3); }
.mc-mp-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), #44c6df); }
.mc-mp-progress.is-large { width: 100%; height: 9px; margin: 18px 0 9px; }
.mc-mp-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; color: var(--text-3); font-size: var(--fs-sm); }

.mc-mp-empty,
.mc-mp-loading { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 30px; color: var(--text-3); text-align: center; }
.mc-mp-empty h2,
.mc-mp-empty h3 { margin: 3px 0 0; color: var(--text-0); }
.mc-mp-empty p { margin: 0 0 8px; }

.mc-mp-wizard { width: min(1180px, 100%); margin: 0 auto; }
.mc-mp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0 0 16px; padding: 0; list-style: none; }
.mc-mp-steps li { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; color: var(--text-3); border-radius: 13px; background: var(--bg-2); font-size: var(--fs-xs); }
.mc-mp-steps li > span { width: 25px; height: 25px; display: grid; flex: none; place-items: center; border-radius: 50%; background: var(--bg-3); }
.mc-mp-steps li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-mp-steps li.is-active { color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 11%, var(--bg-2)); }
.mc-mp-steps li.is-active > span,
.mc-mp-steps li.is-done > span { color: #fff; background: var(--brand-2); }
.mc-mp-wizard__body { min-height: 440px; }
.mc-mp-wizard__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 2px; }
.mc-mp-actions { display: flex; justify-content: flex-end; gap: 9px; }
.mc-mp-panel__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; margin-bottom: 22px; }
.mc-mp-panel__head > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, var(--bg-2)); font-weight: 800; }
.mc-mp-panel__head h2 { margin: 0; color: var(--text-0); font-size: 1.2rem; }
.mc-mp-panel__head p { margin: 5px 0 0; color: var(--text-3); line-height: 1.45; }
.mc-mp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.mc-mp-field { min-width: 0; display: grid; gap: 7px; margin-bottom: 14px; }
.mc-mp-field[hidden],
.mc-mp-heading > [hidden],
.mc-brand-browser header [hidden] { display: none !important; }
.mc-mp-field__label,
.mc-mp-field > span:first-child { color: var(--text-1); font-size: var(--fs-sm); font-weight: 700; }
.mc-mp-field small { color: var(--text-3); line-height: 1.4; }
.mc-mp-brand-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mc-mp-brand-picker select { grid-column: 1 / -1; min-height: 150px; }
.mc-mp-brand-picker > button:last-child { grid-column: 1 / -1; justify-self: start; }
.mc-mp-inline-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mc-mp-attachment-picker { display: grid; gap: 10px; }
.mc-mp-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-mp-attachment { min-width: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line-1); border-radius: 11px; color: var(--text-1); background: var(--bg-2); }
.mc-mp-attachment > span:nth-child(2) { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-mp-system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mc-mp-system-card { position: relative; display: grid; gap: 12px; min-height: 100px; padding: 18px; border: 1px solid var(--line-1); border-radius: 17px; background: var(--bg-2); }
.mc-mp-system-card:has(input:checked) { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 8%, var(--bg-2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-2) 12%, transparent); }
.mc-mp-system-card__choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; cursor: pointer; }
.mc-mp-system-card input { position: absolute; top: -6px; right: -6px; accent-color: var(--brand-2); }
.mc-mp-system-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 11%, var(--bg-1)); }
.mc-mp-system-card__choice > span:last-child { display: grid; gap: 4px; }
.mc-mp-system-card strong { color: var(--text-0); }
.mc-mp-system-card small { color: var(--text-3); line-height: 1.4; }
.mc-mp-system-card__brand { width: 100%; }
.mc-mp-choice-list { max-height: 210px; overflow: auto; border: 1px solid var(--line-1); border-radius: 13px; background: var(--bg-2); }
.mc-mp-choice-list > label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-1); cursor: pointer; }
.mc-mp-choice-list > label:last-child { border-bottom: 0; }
.mc-mp-choice-list input { accent-color: var(--brand-2); }
.mc-mp-choice-list span { display: grid; }
.mc-mp-choice-list small { color: var(--text-3); }
.mc-mp-access-choice { display: grid; grid-template-columns: auto minmax(150px, 1fr) 110px minmax(150px, auto); align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-1); }
.mc-mp-access-choice:last-child { border-bottom: 0; }
.mc-mp-access-choice > span { min-width: 0; }
.mc-mp-access-choice__inherit { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: var(--fs-xs); cursor: pointer; }
.mc-mp-access-choice__role { min-width: 0; }
.mc-mp-deliveries { display: grid; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.mc-mp-delivery-row { min-width: 1820px; display: grid; grid-template-columns: 28px minmax(180px, 1.3fr) minmax(120px, .8fr) 120px minmax(150px, 1fr) 105px 100px minmax(145px, 1fr) 132px 132px 110px minmax(115px, .8fr) minmax(145px, 1fr) 38px; align-items: center; gap: 7px; }
.mc-mp-delivery-row__index { color: var(--text-3); font-size: var(--fs-xs); text-align: center; }
.mc-mp-muted { color: var(--text-3); line-height: 1.5; }
.mc-mp-review { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0; border: 1px solid var(--line-1); border-radius: 14px; overflow: hidden; }
.mc-mp-review dt,
.mc-mp-review dd { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--line-1); }
.mc-mp-review dt { color: var(--text-3); background: var(--bg-2); font-size: var(--fs-sm); }
.mc-mp-review dd { color: var(--text-0); }
.mc-mp-provisioning__steps { display: grid; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.mc-mp-provisioning__steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; color: var(--text-2); background: var(--bg-2); }
.mc-mp-provisioning__steps li.is-ready > span:first-child { color: #27c27a; }
.mc-mp-provisioning__steps li.is-failed { color: #ef5b5b; }

.mc-mp-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 7px 0 20px; }
.mc-mp-detail-head > div:first-child { min-width: 0; }
.mc-mp-detail-head p { max-width: 820px; }
.mc-mp-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; color: var(--text-3); font-size: var(--fs-xs); }
.mc-mp-breadcrumb > span + span:not(.mc-mp-status)::before { content: "/"; margin-right: 7px; color: var(--line-2); }
.mc-mp-detail-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line-1); border-radius: 17px; background: var(--line-1); }
.mc-mp-detail-meta > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 15px; background: var(--bg-1); }
.mc-mp-detail-meta > div > span:first-child { color: var(--text-3); }
.mc-mp-detail-meta small,
.mc-mp-detail-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-mp-detail-meta small { color: var(--text-3); font-size: 10px; }
.mc-mp-detail-meta strong { margin-top: 3px; color: var(--text-0); font-size: var(--fs-sm); }
.mc-mp-tabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 16px; border-bottom: 1px solid var(--line-1); scrollbar-width: none; }
.mc-mp-tabs button { flex: none; padding: 11px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-3); font: 650 var(--fs-sm)/1 var(--font-sans); cursor: pointer; }
.mc-mp-tabs button:hover { color: var(--text-1); }
.mc-mp-tabs button.is-active { color: var(--brand-2); border-bottom-color: var(--brand-2); }
.mc-mp-tabpanel { min-width: 0; min-height: 430px; }
.mc-mp-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mc-mp-panel--wide { grid-column: 1 / -1; }
.mc-mp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mc-mp-stats article { display: grid; gap: 3px; padding: 12px; border-radius: 13px; background: var(--bg-2); }
.mc-mp-stats strong { color: var(--text-0); font-size: 1.35rem; }
.mc-mp-stats span { color: var(--text-3); font-size: var(--fs-xs); }
.mc-mp-workspaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mc-mp-embed-panel { padding: 0; overflow: hidden; }
.mc-mp-embed-toolbar { margin: 0; padding: 17px 18px; border-bottom: 1px solid var(--line-1); }
.mc-mp-segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line-1); border-radius: 12px; background: var(--bg-2); }
.mc-mp-segmented button { padding: 8px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); font: 650 var(--fs-xs)/1 var(--font-sans); cursor: pointer; }
.mc-mp-segmented button.is-active { color: var(--text-0); background: var(--bg-1); box-shadow: var(--shadow-1); }
.mc-hub-main--embed-view .mc-mp-tabpanel { margin-inline: calc(var(--mc-project-gutter) * -1); }
.mc-hub-main--embed-view .mc-mp-embed-panel { border: 0; border-radius: 0; background: var(--bg-0); box-shadow: none; }
.mc-hub-main--embed-view .mc-mp-embed-toolbar { padding-inline: var(--mc-project-gutter); background: var(--bg-1); }
.mc-mp-frame-wrap { position: relative; min-height: 900px; background: var(--bg-0); }
.mc-mp-frame { width: 100%; min-height: 900px; display: block; border: 0; background: var(--bg-0); }
.mc-mp-frame.is-session-pending { visibility: hidden; pointer-events: none; }
.mc-mp-frame[data-project-view="table"] { min-height: 1100px; }
.mc-mp-frame[data-project-view="kanban"] { min-height: 1500px; }
.mc-mp-frame[data-project-view="gantt"] { min-height: 960px; }
.mc-mp-frame[data-project-view="calendar"] { min-height: 980px; }
.mc-mp-frame-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: var(--text-3); background: var(--bg-0); }
.mc-mp-activity { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mc-mp-activity li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 8px 0 17px; }
.mc-mp-activity li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: -2px; width: 1px; background: var(--line-1); }
.mc-mp-activity li:last-child::before { display: none; }
.mc-mp-activity li > span { width: 9px; height: 9px; margin: 5px 0 0 3px; border-radius: 50%; background: var(--brand-2); }
.mc-mp-activity li > div { display: grid; gap: 4px; }
.mc-mp-activity strong { color: var(--text-0); }
.mc-mp-activity small { color: var(--text-3); }
.mc-mp-activity p { margin: 2px 0 0; color: var(--text-2); }
.mc-mp-access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mc-mp-principal { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-1); border-radius: 14px; background: var(--bg-2); }
.mc-mp-principal > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mc-mp-principal > span:last-child { min-width: 0; display: grid; gap: 2px; }
.mc-mp-principal strong { overflow: hidden; color: var(--text-0); text-overflow: ellipsis; white-space: nowrap; }
.mc-mp-principal small { color: var(--text-3); }
.mc-mp-access-editor { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-1); }
.mc-mp-access-editor__rows { display: grid; gap: 7px; }
.mc-mp-access-editor__row { display: grid; grid-template-columns: minmax(160px, 1fr) 140px auto 38px; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: var(--bg-2); }
.mc-mp-access-editor__add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.mc-mp-dialog { width: min(720px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-1); border-radius: 20px; background: var(--bg-1); color: var(--text-1); box-shadow: 0 30px 90px rgb(0 0 0 / 38%); }
.mc-mp-dialog::backdrop { background: rgb(4 6 15 / 62%); backdrop-filter: blur(5px); }
.mc-mp-dialog form { display: grid; gap: 14px; padding: 20px; }
.mc-brand-confirm__surface { display: grid; gap: 14px; padding: 20px; }
.mc-mp-dialog header { display: flex; align-items: center; justify-content: space-between; }
.mc-mp-dialog h2 { margin: 0; color: var(--text-0); }

.mc-brand-layout { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 18px; min-height: calc(100vh - 56px); }
.mc-brand-browser { min-width: 0; display: grid; align-content: start; gap: 14px; padding: 18px; border: 1px solid var(--line-1); border-radius: 18px; background: var(--bg-1); }
.mc-brand-browser h1,
.mc-brand-detail h1 { margin: 0; color: var(--text-0); }
.mc-brand-browser p,
.mc-brand-detail__head p { margin: 5px 0 0; color: var(--text-3); line-height: 1.45; }
.mc-brand-tree { min-height: 240px; max-height: calc(100vh - 220px); overflow: auto; }
.mc-brand-tree__row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; }
.mc-brand-tree__expand { width: 30px; height: 30px; }
.mc-brand-tree__label { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 9px; border: 0; border-radius: 11px; color: var(--text-1); background: transparent; text-align: left; cursor: pointer; }
.mc-brand-tree__label:hover,
.mc-brand-tree__label.is-active { color: var(--text-0); background: color-mix(in srgb, var(--brand-2) 10%, var(--bg-2)); }
.mc-brand-tree__label > span:last-child { min-width: 0; display: grid; gap: 2px; }
.mc-brand-tree__label strong,
.mc-brand-tree__label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-brand-tree__label small { color: var(--text-3); }
.mc-brand-tree__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); }
.mc-brand-tree__children { margin-left: 22px; border-left: 1px solid var(--line-1); }
.mc-brand-load-more { width: calc(100% - 12px); margin: 6px; }
.mc-brand-detail { min-width: 0; }
.mc-brand-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.mc-brand-detail__panel { min-height: 360px; }
.mc-brand-release { display: grid; gap: 8px; }
.mc-brand-release small { overflow-wrap: anywhere; color: var(--text-3); font-family: var(--font-mono); }
.mc-brand-dna { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mc-brand-dna__items,
.mc-brand-projects { display: grid; gap: 7px; }
.mc-brand-dna__items article,
.mc-brand-projects a { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line-1); border-radius: 11px; color: var(--text-1); background: var(--bg-2); text-decoration: none; }
.mc-brand-dna__items small,
.mc-brand-projects small { color: var(--text-3); }
.mc-brand-permissions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mc-brand-stack { display: grid; gap: 14px; }
.mc-brand-inheritance-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--brand-2) 32%, var(--line-1)); border-radius: 16px; background: color-mix(in srgb, var(--brand-2) 5%, var(--bg-1)); }
.mc-brand-inheritance-banner__icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, var(--bg-1)); }
.mc-brand-inheritance-banner strong { color: var(--text-0); }
.mc-brand-inheritance-banner p { margin: 3px 0 0; color: var(--text-3); line-height: 1.45; }
.mc-brand-content-section { display: grid; gap: 14px; }
.mc-brand-content-section .mc-mp-section__head h2,
.mc-brand-library-head h2 { margin-bottom: 3px; }
.mc-brand-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.mc-brand-content-card { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px !important; padding: 13px !important; background: var(--bg-1) !important; }
.mc-brand-content-card__body { min-width: 0; display: grid; gap: 4px; }
.mc-brand-content-card__body p { margin: 0; overflow-wrap: anywhere; color: var(--text-2); line-height: 1.45; }
.mc-brand-color-swatch { width: 38px; height: 38px; border: 1px solid var(--line-1); border-radius: 12px; background: var(--swatch); box-shadow: inset 0 0 0 3px rgb(255 255 255 / 35%); }
.mc-brand-origin { width: fit-content; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mc-brand-origin.is-own { color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, var(--bg-1)); }
.mc-brand-origin.is-inherited { color: var(--text-2); background: var(--bg-2); }
.mc-brand-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.mc-btn--small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.mc-brand-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 11px; }
.mc-brand-asset { min-width: 0; display: grid; grid-template-rows: 150px auto auto; overflow: hidden; border: 1px solid var(--line-1); border-radius: 15px; background: var(--bg-1); }
.mc-brand-asset > a { min-height: 0; color: inherit; background: var(--bg-2); }
.mc-brand-asset__preview { width: 100%; height: 150px; display: block; object-fit: contain; background: var(--bg-2); }
.mc-brand-asset__file { display: grid; height: 150px; place-items: center; color: var(--text-3); background: var(--bg-2); }
.mc-brand-asset__body { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 13px; }
.mc-brand-asset__body strong { color: var(--text-0); }
.mc-brand-asset__body p { margin: 0; color: var(--text-3); line-height: 1.4; }
.mc-brand-asset > .mc-brand-card-actions { padding: 0 13px 13px; justify-content: flex-start; }
.mc-brand-rules { display: grid; gap: 8px; }
.mc-brand-rule { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line-1); border-left: 4px solid var(--line-2); border-radius: 13px; background: var(--bg-1); }
.mc-brand-rule.is-block { border-left-color: var(--danger); }
.mc-brand-rule.is-warn { border-left-color: var(--warning); }
.mc-brand-rule.is-info { border-left-color: var(--brand-2); }
.mc-brand-rule__severity { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--text-2); }
.mc-brand-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.mc-brand-kpis > div { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line-1); border-radius: 12px; background: var(--bg-1); }
.mc-brand-kpis strong { font-size: 24px; color: var(--text-0); }
.mc-brand-kpis small { color: var(--text-3); }
.mc-brand-empty-inline { padding: 20px; border: 1px dashed var(--line-2); border-radius: 13px; text-align: center; background: var(--bg-1); }
.mc-brand-empty-inline p { margin: 5px 0 0; color: var(--text-3); }
.mc-brand-editor header > div > p { margin: 4px 0 0; color: var(--text-3); }
.mc-brand-editor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-brand-editor__grid .mc-mp-field:has(textarea),
.mc-brand-editor__grid .mc-mp-field:has(input[type="file"]) { grid-column: 1 / -1; }
.mc-brand-editor--color { width: min(780px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow: auto; }
.mc-brand-editor--color form { width: auto; }
.mc-brand-editor--color footer { position: sticky; z-index: 2; bottom: -20px; margin: 0 -20px -20px; padding: 14px 20px 20px; border-top: 1px solid var(--line-1); background: color-mix(in srgb, var(--bg-1) 94%, transparent); backdrop-filter: blur(10px); }
.mc-brand-color-picker { grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--line-1); border-radius: 15px; background: var(--bg-1); }
.mc-brand-color-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line-1); }
.mc-brand-color-picker__head > div { display: grid; gap: 3px; }
.mc-brand-color-picker__head strong,
.mc-brand-color-picker__presets > strong { color: var(--text-0); }
.mc-brand-color-picker__head small { color: var(--text-3); }
.mc-brand-color-picker__preview { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 50%; background: var(--preview); box-shadow: 0 0 0 4px var(--bg-2); }
.mc-brand-color-picker__body { display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(210px, .85fr); gap: 22px; padding: 16px; }
.mc-brand-color-picker__custom { min-width: 0; display: grid; gap: 10px; }
.mc-brand-color-picker__plane { position: relative; min-height: 210px; overflow: hidden; border-radius: 12px; cursor: crosshair; touch-action: none; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), var(--picker-hue); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%); }
.mc-brand-color-picker__plane:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 55%, transparent); outline-offset: 2px; }
.mc-brand-color-picker__pointer { position: absolute; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; translate: -50% -50%; box-shadow: 0 1px 5px rgb(0 0 0 / 45%); pointer-events: none; }
.mc-brand-color-picker__hue { width: 100%; height: 18px; margin: 0; padding: 0; border-radius: 999px; appearance: none; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; }
.mc-brand-color-picker__hue::-webkit-slider-thumb { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: transparent; box-shadow: 0 1px 4px rgb(0 0 0 / 55%); }
.mc-brand-color-picker__hex { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid var(--line-1); border-radius: 10px; background: var(--bg-2); }
.mc-brand-color-picker__hex > span { padding: 10px 12px; border-right: 1px solid var(--line-1); color: var(--text-3); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.mc-brand-color-picker__hex .mc-input { border: 0; border-radius: 0; background: transparent; font-family: var(--font-mono); text-transform: uppercase; }
.mc-brand-color-picker__presets { display: grid; align-content: start; gap: 12px; }
.mc-brand-color-picker__references { display: grid; grid-template-columns: repeat(7, 28px); gap: 10px; }
.mc-brand-color-picker__reference { width: 28px; height: 28px; padding: 0; border: 2px solid var(--bg-1); border-radius: 50%; background: var(--reference); box-shadow: 0 0 0 1px var(--line-1); cursor: pointer; transition: scale 140ms ease, box-shadow 140ms ease; }
.mc-brand-color-picker__reference:hover,
.mc-brand-color-picker__reference:focus-visible { scale: 1.12; box-shadow: 0 0 0 2px var(--brand-2); outline: 0; }
.mc-brand-reference-section { display: grid; gap: 12px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-1); }
.mc-brand-reference-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mc-brand-reference-head h3 { margin: 0 0 4px; color: var(--text-0); font-size: 15px; }
.mc-brand-reference-head p { margin: 0; }
.mc-brand-assets--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mc-brand-assets--compact .mc-brand-asset { grid-template-rows: 92px auto auto; }
.mc-brand-assets--compact .mc-brand-asset__file,
.mc-brand-assets--compact .mc-brand-asset__preview { height: 92px; }
.mc-brand-dropzone { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line-1); border-radius: 14px; background: color-mix(in srgb, var(--brand-2) 2%, var(--bg-2)); }
.mc-brand-dropzone__description { min-height: 56px; resize: vertical; }
.mc-brand-dropzone__surface { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px; border: 1px dashed color-mix(in srgb, var(--brand-2) 50%, var(--line-2)); border-radius: 12px; color: var(--text-1); background: color-mix(in srgb, var(--brand-2) 3%, var(--bg-1)); text-align: left; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.mc-brand-dropzone__surface:hover,
.mc-brand-dropzone.is-dragging .mc-brand-dropzone__surface { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 8%, var(--bg-1)); transform: translateY(-1px); }
.mc-brand-dropzone.is-uploading { opacity: .72; pointer-events: none; }
.mc-brand-dropzone__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 12%, var(--bg-1)); }
.mc-brand-dropzone__copy { min-width: 0; display: grid; gap: 3px; }
.mc-brand-dropzone__copy strong { color: var(--text-0); }
.mc-brand-dropzone__copy small,
.mc-brand-dropzone__status { color: var(--text-3); }
.mc-brand-dropzone__status { min-height: 16px; font-size: 11px; }
/* Inside dialogs the drop zone is already framed by the field, so it drops its own shell. */
.mc-brand-dropzone--field { padding: 0; border: 0; background: transparent; }
.mc-brand-dropfield__files { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mc-brand-dropfield__files[hidden] { display: none; }
.mc-brand-dropfield__files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 8px 7px 11px; border: 1px solid var(--line-1); border-radius: 11px; background: var(--bg-1); }
.mc-brand-dropfield__files small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.mc-brand-dropfield__name { overflow: hidden; color: var(--text-0); text-overflow: ellipsis; white-space: nowrap; }
.mc-brand-font-file { justify-self: start; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

@media (max-width: 1180px) {
  .mc-mp-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mc-mp-filters > .mc-input:first-child { grid-column: span 2; }
  .mc-mp-filter-dates { grid-column: span 2; }
  .mc-mp-delivery-row { min-width: 0; grid-template-columns: 28px repeat(2, minmax(0, 1fr)) 38px; padding: 10px; border: 1px solid var(--line-1); border-radius: 13px; }
  .mc-mp-delivery-row__index { grid-row: span 7; }
  .mc-mp-access-choice { grid-template-columns: auto minmax(0, 1fr) 110px; }
  .mc-mp-access-choice__inherit { grid-column: 2 / -1; }
}

@media (max-width: 850px) {
  .mc-brand-layout { grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); }
  .mc-mp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-mp-recent,
  .mc-mp-workspaces,
  .mc-mp-access-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-mp-steps { grid-template-columns: repeat(5, 42px); overflow-x: auto; }
  .mc-mp-steps li { justify-content: center; }
  .mc-mp-steps li strong { display: none; }
  .mc-mp-system-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-mp-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-mp-detail-meta > div:last-child { grid-column: span 2; }
  .mc-mp-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-mp-panel--wide { grid-column: auto; }
  .mc-mp-frame-wrap,
  .mc-mp-frame { min-height: 600px; }
}

@media (max-width: 620px) {
  .mc-brand-layout { grid-template-columns: minmax(0, 1fr); }
  .mc-brand-tree { max-height: 340px; }
  .mc-brand-detail__head { flex-direction: column; }
  .mc-brand-dna { grid-template-columns: minmax(0, 1fr); }
  .mc-brand-library-head,
  .mc-brand-content-card,
  .mc-brand-rule { grid-template-columns: minmax(0, 1fr); }
  .mc-brand-library-head { flex-direction: column; }
  .mc-brand-card-actions { justify-content: flex-start; }
  .mc-brand-editor__grid { grid-template-columns: minmax(0, 1fr); }
  .mc-brand-color-picker__body { grid-template-columns: minmax(0, 1fr); }
  .mc-brand-color-picker__plane { min-height: 180px; }
  .mc-brand-dropzone__surface { grid-template-columns: auto minmax(0, 1fr); }
  .mc-brand-dropzone__surface > .mc-btn { grid-column: 1 / -1; justify-self: stretch; }
  .mc-mp-heading,
  .mc-mp-detail-head,
  .mc-mp-section__head,
  .mc-mp-embed-toolbar { align-items: stretch; flex-direction: column; }
  .mc-mp-heading .mc-btn,
  .mc-mp-detail-head .mc-btn { width: 100%; }
  .mc-mp-kpis,
  .mc-mp-filters,
  .mc-mp-form-grid { grid-template-columns: minmax(0, 1fr); }
  .mc-mp-filters > .mc-input:first-child,
  .mc-mp-filter-dates { grid-column: auto; }
  .mc-mp-filter-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-mp-results,
  .mc-mp-panel { padding: 15px; border-radius: 16px; }
  .mc-mp-wizard__footer { align-items: stretch; flex-direction: column-reverse; }
  .mc-mp-wizard__footer > div,
  .mc-mp-wizard__footer .mc-btn { width: 100%; }
  .mc-mp-review { grid-template-columns: minmax(0, 1fr); }
  .mc-mp-review dt { padding-bottom: 4px; border-bottom: 0; }
  .mc-mp-review dd { padding-top: 4px; }
  .mc-mp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-mp-detail-meta { grid-template-columns: minmax(0, 1fr); }
  .mc-mp-detail-meta > div:last-child { grid-column: auto; }
  .mc-mp-embed-toolbar { padding: 14px; }
  .mc-mp-segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-mp-access-editor__row { grid-template-columns: minmax(0, 1fr) 38px; }
  .mc-mp-access-editor__row .mc-select,
  .mc-mp-access-editor__row .mc-mp-check { grid-column: 1; }
  .mc-mp-access-editor__add { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .mc-brand-editor--color { width: calc(100vw - 18px); }
  .mc-brand-color-picker__body { padding: 12px; }
  .mc-brand-color-picker__references { grid-template-columns: repeat(6, 28px); }
  .mc-brand-dropzone { padding: 9px; }
  .mc-brand-dropzone__surface { padding: 13px; }
}
