body.customer-v3-body {
  --cp-bg: #f6f8fb;
  --cp-surface: #ffffff;
  --cp-surface-strong: #ffffff;
  --cp-border: #d9e1ec;
  --cp-border-strong: #c7d2e0;
  --cp-text: #1f2937;
  --cp-text-soft: #64748b;
  --cp-title: #111827;
  --cp-dark: #182235;
  --cp-accent: #2563eb;
  --cp-accent-soft: #e8f0ff;
  --cp-success: #047857;
  --cp-success-soft: #e6f6ef;
  --cp-warning: #b45309;
  --cp-warning-soft: #fff4df;
  --cp-muted-soft: #eef2f7;
  --cp-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.05);
  --cp-radius-xl: 8px;
  --cp-radius-lg: 8px;
  --cp-radius-md: 6px;
  min-width: 1180px;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cp-text);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.7) 0, rgba(239, 246, 255, 0) 18rem),
    var(--cp-bg);
}

.customer-v3-body .customer-preview-glow {
  display: none;
}

.customer-v3-body .container-xxl {
  width: 1320px;
  max-width: 1320px;
  padding-right: 12px;
  padding-left: 12px;
}

.customer-v3-body h1,
.customer-v3-body h2,
.customer-v3-body h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.customer-v3-body h1 {
  font-size: 1.75rem;
  line-height: 1.18;
  font-weight: 800;
}

.customer-v3-body h2 {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
}

.v3-preview-banner {
  background: #fff7ed;
  border-bottom-color: #fed7aa;
}

.v3-topbar {
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--cp-border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.v3-topbar-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.v3-brand {
  gap: 0.7rem;
}

.v3-brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.customer-v3-body .customer-brand-title {
  font-size: 0.94rem;
  letter-spacing: 0;
}

.customer-v3-body .customer-brand-subtitle {
  font-size: 0.72rem;
}

.v3-nav {
  justify-content: center;
  gap: 0.2rem;
}

.v3-nav a {
  min-height: 2.1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 6px;
  color: #475569;
  font-size: 0.88rem;
}

.v3-nav a:hover,
.v3-nav a.is-active {
  color: #0f172a;
  background: #eef5ff;
}

.v3-topbar-actions {
  justify-content: flex-end;
}

.v3-shell {
  position: relative;
  z-index: 1;
  padding-top: 1.35rem;
  padding-bottom: 3rem;
}

.customer-v3-body .btn,
.customer-v3-body .form-control,
.customer-v3-body .form-select,
.customer-v3-body .input-group-text {
  border-radius: 6px !important;
}

.customer-v3-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  font-weight: 700;
}

.customer-v3-body .btn-dark {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18);
}

.customer-v3-body .btn-dark:hover,
.customer-v3-body .btn-dark:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.customer-v3-body .btn-outline-secondary {
  color: #344256;
  background: #ffffff;
  border-color: var(--cp-border);
}

.customer-v3-body .btn-outline-secondary:hover,
.customer-v3-body .btn-outline-secondary:focus {
  color: #0f172a;
  background: #f8fafc;
  border-color: #b9c6d6;
}

.customer-v3-body .form-control,
.customer-v3-body .input-group-text {
  border-color: var(--cp-border);
  background: #ffffff;
}

.customer-v3-body .form-control {
  color: var(--cp-text);
}

.v3-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.v3-heading-main {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.v3-section-chip {
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.71rem;
  letter-spacing: 0.08em;
}

.v3-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  gap: 0.55rem;
}

.v3-stat {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--cp-shadow);
}

.v3-stat span,
.v3-count-label,
.v3-row-meta,
.v3-media-label {
  color: var(--cp-text-soft);
}

.v3-stat span {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v3-stat strong {
  display: block;
  color: var(--cp-title);
  font-size: 1.16rem;
  line-height: 1.1;
}

.v3-toolbar,
.v3-section {
  margin-bottom: 1rem;
}

.v3-toolbar {
  padding: 0.75rem;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--cp-shadow);
}

.v3-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
}

.v3-search-input .form-control,
.v3-search-input .input-group-text {
  min-height: 2.45rem;
}

.v3-layout-create-form {
  gap: 0.65rem;
}

.v3-layout-create-toolbar > h2 {
  margin-bottom: 0.65rem;
}

.v3-layout-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.v3-layout-create-row .form-control,
.v3-layout-create-row .btn {
  min-height: 2.45rem;
}

.v3-layout-create-toolbar .template-summary-card {
  gap: 0.7rem;
  padding: 0.65rem;
  border-radius: 7px;
  background: #ffffff;
}

.v3-layout-create-toolbar .template-summary-card.is-empty {
  background: #ffffff;
}

.v3-layout-create-toolbar .template-summary-preview {
  width: 4.5rem;
  height: 3.2rem;
  border-radius: 6px;
  background: #f8fafc;
}

.v3-layout-create-toolbar .template-summary-preview.is-empty {
  background: #f8fafc;
}

.v3-layout-create-toolbar .template-summary-copy strong {
  font-size: 0.9rem;
}

.v3-layout-create-toolbar .template-summary-meta {
  margin-top: 0.16rem;
  font-size: 0.78rem;
}

.v3-layout-create-toolbar .template-summary-actions .btn {
  min-height: 2rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.1;
}

.v3-layout-detail-quick-export {
  min-height: 2.35rem;
}

.v3-layout-detail-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: end;
  margin-top: 0.1rem;
}

.v3-layout-detail-template-panel {
  display: flex;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  gap: 0.55rem;
}

.v3-layout-detail-template-panel .template-summary-card {
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--cp-shadow);
}

.v3-layout-detail-template-panel .template-summary-card.is-empty {
  background: #ffffff;
}

.v3-layout-detail-template-panel .template-summary-preview {
  width: 4.1rem;
  height: 2.9rem;
  border-radius: 6px;
  background: #f8fafc;
}

.v3-layout-detail-template-panel .template-summary-preview.is-empty {
  background: #f8fafc;
}

.v3-layout-detail-template-panel .template-summary-copy strong,
.v3-layout-detail-template-panel .template-summary-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-layout-detail-template-panel .template-summary-copy strong {
  font-size: 0.88rem;
}

.v3-layout-detail-template-panel .template-summary-meta {
  margin-top: 0.12rem;
  font-size: 0.74rem;
}

.v3-layout-detail-template-panel .template-summary-actions .btn {
  min-height: 2rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.1;
}

.v3-layout-detail-export-form {
  display: grid;
  gap: 0.55rem;
}

.v3-layout-detail-export-form .form-select,
.v3-layout-detail-export-form .btn {
  min-height: 2.35rem;
}

.customer-v3-body [data-v3-body-modal] {
  z-index: 1080;
}

.v3-export-modal-content {
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.customer-v3-body #layout-detail-export-modal .modal-dialog {
  max-width: min(760px, calc(100vw - 2rem));
}

.v3-export-modal-content .modal-header,
.v3-export-modal-content .modal-footer {
  padding: 0.75rem 0.9rem;
}

.v3-export-modal-content .modal-body {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
}

.v3-export-modal-content h2,
.v3-export-modal-content .form-label,
.v3-export-modal-copy {
  margin-bottom: 0;
}

.v3-export-modal-copy {
  color: var(--cp-text-soft);
  font-size: 0.84rem;
}

.v3-export-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.v3-export-overview div {
  padding: 0.55rem 0.62rem;
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  background: #f8fafc;
}

.v3-export-overview span {
  display: block;
  color: var(--cp-text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v3-export-overview strong {
  display: block;
  color: var(--cp-title);
  font-size: 0.95rem;
}

.v3-export-warning {
  display: flex;
  gap: 0.42rem;
  padding: 0.55rem 0.62rem;
  border: 1px solid #f7d998;
  border-radius: 7px;
  color: #92400e;
  background: #fffaf0;
  font-size: 0.78rem;
}

.v3-export-preset-details-list {
  min-height: 5rem;
}

.v3-export-preset-details {
  display: grid;
  gap: 0.48rem;
}

.v3-export-preset-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
}

.v3-export-preset-head strong {
  color: var(--cp-title);
  font-size: 0.9rem;
}

.v3-export-preset-head span,
.v3-export-preset-empty {
  color: var(--cp-text-soft);
  font-size: 0.75rem;
}

.v3-export-variant-list {
  display: grid;
  gap: 0.38rem;
  max-height: 18rem;
  overflow-y: auto;
}

.v3-export-variant {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.58rem;
  align-items: center;
  padding: 0.42rem;
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  background: #f8fafc;
}

.v3-export-variant-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.2rem;
  border: 1px solid var(--cp-border);
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.v3-export-variant-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.v3-export-variant-copy {
  min-width: 0;
}

.v3-export-variant-copy > strong {
  display: block;
  overflow: hidden;
  color: var(--cp-title);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-export-variant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.22rem;
}

.v3-export-variant-meta span {
  padding: 0.12rem 0.32rem;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: 0.68rem;
  font-weight: 700;
}

.v3-export-variant-copy small {
  display: block;
  margin-top: 0.22rem;
  color: var(--cp-text-soft);
  font-size: 0.69rem;
}

.customer-v3-body [data-template-picker-modal] {
  z-index: 1080;
}

.customer-v3-body .template-picker-modal-dialog {
  max-width: min(1040px, calc(100vw - 2rem));
}

.customer-v3-body .template-picker-modal-content {
  max-height: calc(100vh - 2rem);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.customer-v3-body .template-picker-modal-header,
.customer-v3-body .template-picker-modal-footer {
  padding: 0.75rem 0.9rem;
}

.customer-v3-body .template-picker-modal-copy {
  gap: 0.18rem;
}

.customer-v3-body .template-picker-modal-copy .section-chip {
  color: #2563eb;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.customer-v3-body .template-picker-modal-copy h2 {
  font-size: 1.05rem;
}

.customer-v3-body .template-picker-modal-body {
  gap: 0.7rem;
  padding: 0.75rem 0.9rem 0.9rem;
}

.customer-v3-body .template-picker-toolbar .form-control {
  min-height: 2.4rem;
  font-size: 0.88rem;
}

.customer-v3-body .template-picker-grid {
  gap: 0.55rem;
}

.customer-v3-body .template-option-card {
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 7px;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.customer-v3-body .template-option-card:hover {
  border-color: #b9c6d6;
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transform: none;
}

.customer-v3-body .template-option-card.is-selected {
  border-color: #93b4ff;
  background: #eef5ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.customer-v3-body .template-option-preview {
  position: relative;
  min-height: 8rem;
  padding: 0.45rem;
  border-radius: 6px;
  background: #f8fafc;
}

.customer-v3-body .template-option-preview-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cp-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.customer-v3-body .template-option-preview img {
  position: relative;
  z-index: 1;
  max-height: 7.2rem;
  transition: opacity 0.16s ease;
}

.customer-v3-body .template-option-preview img.is-loading {
  opacity: 0;
}

.customer-v3-body .template-option-body {
  gap: 0.12rem;
}

.customer-v3-body .template-option-body strong {
  font-size: 0.88rem;
}

.customer-v3-body .template-option-meta {
  font-size: 0.76rem;
}

.v3-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.65rem;
  padding-top: 0.2rem;
}

.v3-section-heading > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.v3-count-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.v3-sort-toggle {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.v3-sort-toggle .sort-label {
  flex: 0 0 auto;
  font-size: 0.8rem;
}

.v3-sort-toggle .btn {
  flex: 0 0 auto;
  width: auto;
}

.v3-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.v3-list-row {
  display: grid;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.v3-project-row {
  grid-template-columns: minmax(280px, 1fr) max-content minmax(184px, auto);
}

.v3-ring-row {
  grid-template-columns: minmax(260px, 1fr) max-content minmax(184px, auto);
}

.v3-project-detail-ring-row {
  grid-template-columns: minmax(260px, 1fr) max-content minmax(184px, auto) 32px;
  min-height: 3.35rem;
  padding: 0.35rem 0.55rem;
  box-shadow: none;
}

.v3-project-detail-ring-row .v3-media-meter {
  padding: 0.24rem 0.42rem;
}

.v3-project-detail-ring-row .v3-row-actions .btn {
  min-height: 1.85rem;
}

.v3-project-detail-ring-row .ring-select-box:not(:checked):not(:disabled) {
  border-color: #64748b;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(100, 116, 139, 0.18);
}

.v3-layout-row {
  grid-template-columns: minmax(280px, 1fr) minmax(92px, auto);
}

.v3-layout-detail-entry-row {
  grid-template-columns: minmax(0, 1fr) max-content minmax(92px, auto);
  min-height: 3.25rem;
  padding: 0.42rem 0.65rem;
}

.v3-layout-entry-editor {
  display: grid;
  grid-template-columns: minmax(13.75rem, max-content) max-content auto minmax(2.3rem, auto);
  align-items: center;
  gap: 0.38rem;
  margin-top: 0;
}

.v3-layout-entry-ring-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.v3-layout-entry-editor .v3-row-title-line {
  flex: 0 0 auto;
  min-width: 0;
}

.v3-layout-entry-editor .v3-row-title-line h3 {
  overflow: visible;
  text-overflow: clip;
}

.v3-layout-entry-editor .layout-entry-name-row {
  min-width: 0;
  width: 30rem;
  max-width: 30rem;
}

.v3-layout-entry-editor .layout-entry-gender-row {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.22rem;
  align-items: center;
  flex-wrap: nowrap;
}

.v3-layout-entry-editor .form-control {
  max-width: 100%;
  min-height: 1.9rem;
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
  font-size: 0.78rem;
}

.v3-layout-entry-save {
  min-height: 1.9rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
}

.v3-layout-entry-save:disabled {
  opacity: 0.48;
}

.v3-layout-entry-editor .layout-gender-button {
  min-width: auto;
  width: 1.72rem;
  min-height: 1.72rem;
  padding: 0;
  border-color: #c7d2e0;
  border-radius: 999px !important;
  color: #475569;
  background: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
}

.v3-layout-entry-editor .layout-gender-button:hover,
.v3-layout-entry-editor .layout-gender-button:focus {
  border-color: #93b4ff;
  color: #1d4ed8;
  background: #eef5ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.v3-layout-entry-editor .layout-gender-button.is-active,
.v3-layout-entry-editor .layout-gender-button.is-active:hover,
.v3-layout-entry-editor .layout-gender-button.is-active:focus {
  border-color: #182235;
  color: #ffffff;
  background: #182235;
  box-shadow: 0 1px 2px rgba(24, 34, 53, 0.18);
}

.v3-file-status-wrap {
  position: relative;
  justify-self: start;
}

.v3-file-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.32rem 0.48rem;
  border: 1px solid var(--cp-border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.v3-file-status.state-ready {
  border-color: #b6e7d2;
  color: #047857;
  background: #f0fbf6;
}

.v3-file-status.state-partial,
.v3-file-status.state-missing {
  border-color: #f7d998;
  color: #92400e;
  background: #fffaf0;
}

.v3-file-status-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 0;
  color: currentColor;
  background: transparent;
  opacity: 0.72;
}

.v3-file-status-link {
  color: inherit;
  text-decoration: none;
}

.v3-file-status-link:hover,
.v3-file-status-link:focus {
  color: inherit;
  text-decoration: underline;
}

.v3-file-status-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.08rem;
}

.v3-file-status-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.4rem);
  right: 0;
  display: grid;
  gap: 0.32rem;
  min-width: 12rem;
  padding: 0.58rem 0.62rem;
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  visibility: hidden;
  opacity: 0;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

.v3-file-status-info-wrap:hover .v3-file-status-popover,
.v3-file-status-info-wrap:focus-within .v3-file-status-popover {
  visibility: visible;
  opacity: 1;
}

.v3-file-status-popover strong {
  color: var(--cp-title);
  font-size: 0.78rem;
}

.v3-file-status-popover span {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.74rem;
}

.v3-file-status-popover .is-ready {
  color: #047857;
}

.v3-file-status-popover .is-missing {
  color: #b45309;
}

.v3-layout-entry-editor .layout-inline-feedback {
  min-width: 2.3rem;
  min-height: 0;
  font-size: 0.72rem;
  line-height: 1.1;
}

.v3-ring-layout-row {
  grid-template-columns: minmax(260px, 1fr) minmax(184px, auto);
  min-height: 3.5rem;
  padding: 0.42rem 0.55rem;
}

.v3-list-row:hover {
  border-color: #b9c6d6;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.v3-row-primary {
  min-width: 0;
}

.v3-row-title-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.v3-row-title-line h3 {
  min-width: 0;
  overflow: hidden;
  color: var(--cp-title);
  font-size: 0.98rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-row-title-line h3 a {
  color: inherit;
  text-decoration: none;
}

.v3-row-title-line h3 a:hover {
  color: #1d4ed8;
}

.v3-row-title-line h3.is-fallback {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.94rem;
}

.v3-row-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.42rem;
  min-width: 0;
  margin-top: 0.22rem;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.25;
}

.v3-row-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-row-meta span + span::before {
  content: "/";
  margin-right: 0.42rem;
  color: #c7d2e0;
}

.v3-platform-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.v3-platform-pipa {
  border-color: rgba(72, 159, 247, 0.36);
  background: rgba(72, 159, 247, 0.14);
  color: #489ff7;
}

.v3-platform-private {
  border-color: rgba(139, 92, 246, 0.34);
  background: rgba(139, 92, 246, 0.13);
  color: #7c3aed;
}

.v3-platform-other {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.v3-status-pill {
  flex: 0 0 auto;
  min-height: 1.45rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0;
}

.customer-v3-body .tone-success {
  color: #047857;
  background: #dff7ed;
}

.customer-v3-body .tone-warning {
  color: #b45309;
  background: #fff0d1;
}

.customer-v3-body .tone-accent {
  color: #1d4ed8;
  background: #e5edff;
}

.customer-v3-body .tone-muted {
  color: #64748b;
  background: #eef2f7;
}

.v3-media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(5.2rem, 6rem));
  gap: 0.38rem;
  justify-self: start;
  min-width: 0;
  width: auto;
  max-width: none;
}

.v3-media-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "label"
    "value";
  align-items: center;
  min-width: 0;
  padding: 0.36rem 0.46rem;
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  background: #f8fafc;
}

.v3-media-label {
  grid-area: label;
  overflow: hidden;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.v3-media-meter strong {
  grid-area: value;
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 0.73rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-media-meter.state-ready {
  border-color: #b6e7d2;
  background: #f0fbf6;
}

.v3-media-meter.state-partial {
  border-color: #bfd0ff;
  background: #f3f6ff;
}

.v3-media-meter.state-waiting {
  border-color: #f7d998;
  background: #fffaf0;
}

.v3-media-meter.state-muted,
.v3-media-meter.state-not_expected {
  border-color: #d9e1ec;
  background: #f8fafc;
}

.v3-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
  min-width: 0;
}

.v3-layout-detail-entry-row .v3-row-actions {
  grid-template-columns: minmax(0, 1fr);
}

.v3-row-actions .btn {
  min-height: 2rem;
  padding: 0.32rem 0.48rem;
  font-size: 0.76rem;
  line-height: 1.1;
  white-space: nowrap;
}

.v3-layout-row-actions {
  grid-template-columns: minmax(0, 1fr);
}

.v3-empty-panel {
  padding: 0.9rem;
  border-radius: 8px;
  background: #ffffff;
}

.v3-ring-nav {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.v3-ring-jump {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.v3-ring-jump span {
  color: var(--cp-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.v3-ring-jump .form-select {
  min-height: 2.35rem;
  border-color: var(--cp-border);
}

.v3-ring-nav-actions,
.v3-ring-media-actions {
  display: flex;
  gap: 0.38rem;
  align-items: center;
}

.v3-ring-nav-actions .btn {
  min-height: 2.35rem;
}

.v3-ring-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.v3-ring-media-card {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.v3-ring-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.v3-ring-media-head h3 {
  margin: 0.12rem 0 0;
  color: var(--cp-title);
  font-size: 0.98rem;
  font-weight: 800;
}

.v3-ring-media-frame,
.v3-ring-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(19rem, 34vw, 34rem);
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  background: #f8fafc;
  overflow: hidden;
}

.v3-ring-media-frame {
  position: relative;
}

.v3-ring-media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.v3-ring-media-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--cp-text-soft);
  background: rgba(248, 250, 252, 0.94);
  font-size: 0.82rem;
  font-weight: 700;
}

.v3-ring-media-frame.has-error .v3-ring-media-loading {
  color: var(--cp-warning);
}

.v3-ring-media-empty {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-style: dashed;
  color: var(--cp-text-soft);
}

.v3-ring-media-empty i {
  color: var(--cp-warning);
  font-size: 1.2rem;
}

.v3-ring-media-empty span {
  font-size: 0.82rem;
}

.customer-v3-body .infinite-list-status {
  margin-top: 0.7rem;
  color: var(--cp-text-soft);
  font-size: 0.78rem;
}

.v3-project-detail-stats {
  margin-bottom: 1rem;
}

.customer-v3-body .v3-layout-detail-head {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.75rem;
}

.customer-v3-body .v3-layout-detail-actions {
  display: flex;
  justify-self: stretch;
  justify-content: flex-end;
  width: 100%;
  margin-top: 0;
}

.customer-v3-body .v3-layout-detail-actions .btn {
  flex: 0 0 auto;
  justify-content: center;
}

.customer-v3-body .v3-layout-detail-actions .v3-action-label-full {
  display: inline;
}

.customer-v3-body .v3-layout-detail-actions .v3-action-label-short {
  display: none;
}

.customer-v3-body .v3-selection-toolbar {
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.55rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.54);
}

.customer-v3-body .customer-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  margin-bottom: 1rem;
}

.customer-v3-body .customer-page-head > div:first-child {
  justify-self: start;
  align-self: end;
  min-width: 0;
  text-align: left;
}

.customer-v3-body .page-head-actions {
  justify-self: end;
  align-items: center;
  flex-direction: row;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.customer-v3-body .page-head-actions .btn {
  flex: 0 0 auto;
  min-height: 2.35rem;
}

.v3-action-label-short {
  display: none;
}

.customer-v3-body .page-head-meta,
.customer-v3-body .project-card-meta {
  color: var(--cp-text-soft);
  font-size: 0.76rem;
}

.customer-v3-body .section-card,
.customer-v3-body .sub-panel,
.customer-v3-body .photo-card,
.customer-v3-body .auth-card,
.customer-v3-body .auth-aside {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--cp-shadow);
}

.customer-v3-body .section-card {
  padding: 1rem;
  margin-bottom: 1rem;
}

.customer-v3-body .stat-strip {
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.customer-v3-body .stat-card {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--cp-shadow);
}

.customer-v3-body .stat-card strong {
  font-size: 1.02rem;
  letter-spacing: 0;
}

.customer-v3-body .project-list {
  gap: 0.38rem;
}

.customer-v3-body .project-list-item {
  grid-template-columns: minmax(260px, 1fr) max-content minmax(128px, auto);
  min-height: 4.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.customer-v3-body .ring-list-item {
  grid-template-columns: minmax(220px, 1fr) max-content minmax(128px, auto) 32px;
}

.customer-v3-body .layout-picker-ring-list-item {
  grid-template-columns: minmax(190px, 1fr) max-content minmax(92px, auto);
}

.customer-v3-body .layout-list-item,
.customer-v3-body .layout-entry-list-item {
  grid-template-columns: minmax(260px, 1fr) max-content minmax(128px, auto);
}

.customer-v3-body .project-list-status {
  justify-self: start;
}

.customer-v3-body .project-list-chip-row,
.customer-v3-body .media-chip-row.compact {
  grid-template-columns: repeat(2, minmax(5.2rem, 6rem));
  width: auto;
}

.customer-v3-body .project-list-chip-row .media-chip,
.customer-v3-body .media-chip {
  min-width: 0;
  padding: 0.36rem 0.46rem;
  border-radius: 7px;
}

.customer-v3-body .media-chip-label {
  font-size: 0.65rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.customer-v3-body .media-chip-value {
  overflow: hidden;
  font-size: 0.73rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-v3-body .project-list-actions {
  display: flex;
  justify-self: start;
  width: max-content;
  max-width: 100%;
}

.customer-v3-body .project-card-actions {
  gap: 0.38rem;
}

.customer-v3-body .project-card-actions .btn {
  min-height: 2rem;
  padding: 0.32rem 0.48rem;
  font-size: 0.76rem;
  line-height: 1.1;
}

@media (max-width: 1199.98px) {
  body.customer-v3-body .customer-page-head {
    flex-direction: row;
  }

  body.customer-v3-body .template-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.customer-v3-body .customer-topbar-inner {
    align-items: center;
    flex-direction: row;
    border-radius: 0;
    padding: 0;
  }

  body.customer-v3-body .customer-nav,
  body.customer-v3-body .customer-topbar-actions {
    justify-content: flex-start;
  }

  body.customer-v3-body .project-card-actions,
  body.customer-v3-body .page-head-actions,
  body.customer-v3-body .hero-search-actions,
  body.customer-v3-body .filters-row,
  body.customer-v3-body .selection-toolbar,
  body.customer-v3-body .simple-list-item {
    align-items: center;
    flex-direction: row;
  }

  body.customer-v3-body .page-head-actions {
    justify-content: flex-end;
  }

  body.customer-v3-body .page-head-actions .btn,
  body.customer-v3-body .hero-search-actions .btn {
    width: auto;
  }

  body.customer-v3-body .project-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.customer-v3-body .project-card-actions .btn {
    width: 100%;
  }

  body.customer-v3-body .template-summary-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  body.customer-v3-body .template-summary-preview {
    width: 4.5rem;
    height: 3.2rem;
  }

  body.customer-v3-body .template-summary-preview.is-empty {
    height: 3.2rem;
  }

  body.customer-v3-body .template-summary-actions {
    width: auto;
    justify-content: flex-end;
  }

  body.customer-v3-body .template-summary-actions .btn {
    width: auto;
  }

  body.customer-v3-body .v3-layout-detail-template-panel .template-summary-preview {
    width: 4.1rem;
    height: 2.9rem;
  }

  body.customer-v3-body .v3-layout-detail-template-panel .template-summary-preview.is-empty {
    height: 2.9rem;
  }

  body.customer-v3-body .sort-toggle {
    width: auto;
  }

  body.customer-v3-body .v3-sort-toggle {
    justify-content: flex-start;
  }

  body.customer-v3-body .layout-title-bar,
  body.customer-v3-body .layout-title-edit-row {
    flex-wrap: nowrap;
  }

  body.customer-v3-body .layout-title-edit-row .form-control {
    flex: 1 1 auto;
    max-width: 28rem;
  }

  body.customer-v3-body .layout-entry-name-row {
    align-items: center;
    flex-direction: row;
  }

  body.customer-v3-body .layout-gender-button {
    flex: 0 0 auto;
  }
}

.customer-v3-body .v3-selection-bar {
  align-items: center;
  gap: 1rem;
}

.customer-v3-body .v3-row-select {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  min-width: 1rem;
}

.customer-v3-body .v3-row-select .form-check-input {
  flex: 0 0 auto;
  float: none;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
}

.customer-v3-body .v3-dashboard-list .v3-list-row.v3-selectable-row {
  grid-template-columns: 1rem minmax(0, 1fr) auto auto;
  column-gap: 0.55rem;
}

.customer-v3-body .v3-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.customer-v3-body .v3-pagination .pagination {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.customer-v3-body .v3-pagination .page-link {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: #111827;
  min-width: 2.25rem;
  text-align: center;
}

.customer-v3-body .v3-pagination .page-link.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.customer-v3-body .v3-pagination .page-link.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.customer-v3-body .v3-ring-reset-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin-left: 0.35rem;
  border-radius: 999px;
  vertical-align: middle;
}

.customer-v3-body .v3-ring-reset-btn:hover,
.customer-v3-body .v3-ring-reset-btn:focus {
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
}

.customer-v3-body .v3-possible-match-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 3.65rem;
}

.customer-v3-body .v3-match-pair {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.customer-v3-body .v3-match-item {
  min-width: 0;
}

.customer-v3-body .v3-match-label {
  display: block;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customer-v3-body .v3-match-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--cp-title);
  font-size: 0.96rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-v3-body .v3-match-actions,
.customer-v3-body .v3-other-match-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.customer-v3-body .v3-other-match-row {
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--cp-border);
}

.customer-v3-body .v3-other-match-row:last-child {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .customer-v3-body .v3-dashboard-list .v3-list-row.v3-selectable-row {
    grid-template-columns: 1rem minmax(0, 1fr);
  }

  .customer-v3-body .v3-possible-match-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-v3-body .v3-match-pair,
  .customer-v3-body .v3-match-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-v3-body .v3-row-actions {
    grid-column: 1 / -1;
  }
}
