/* Cadrane Commerce / 6 November 2026. Shared product primitives.
   TrendTrack reference: neutral surfaces and green actions; public/auth own their surface styles.
   Measurements and provenance:
   analyses-marketing/ui-ux-concurrents-20261031/design-system.md and
   analyses-marketing/uberdesigner-audit-code-et-couleurs-20261101.md.
   Original implementation: licensed templates are references, never runtime dependencies. */
@font-face {
  font-family: "Cadrane DM Sans";
  src: url("/assets/cadence/fonts/dm-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --cd-font: "Inter Variable", Inter, system-ui, sans-serif;
  --cd-canvas: #f7f7f5;
  --cd-surface: #ffffff;
  --cd-ink: #0a0a0a;
  --cd-muted: #636363;
  --cd-subtle: #efeeeb;
  --cd-border: #e5e4e0;
  --cd-border-hover: #b7b3ab;
  --cd-primary: #3d7f03;
  --cd-on-primary: #ffffff;
  --cd-focus: #4d65ff;
  --cd-accent: #3d7f03;
  --cd-accent-soft: #e9f4dc;
  --cd-success: #137355;
  --cd-danger: #b63a33;
  --cd-space-1: 4px;
  --cd-space-2: 8px;
  --cd-space-3: 12px;
  --cd-space-4: 16px;
  --cd-space-5: 20px;
  --cd-space-6: 24px;
  --cd-space-8: 32px;
  --cd-control-radius: 8px;
  --cd-card-radius: 16px;
  --cd-panel-radius: 16px;
  --cd-duration-fast: 120ms;
  --cd-duration-base: 180ms;
  --cd-duration-panel: 220ms;
  --cd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cd-success-soft: #e9f6ef;
  --cd-warning: #975a00;
  --cd-warning-soft: #fff4d9;
  --cd-danger-soft: #fff0ed;
  --cd-activity: #b8430b;
  --cd-activity-soft: #fff1e8;
  --cd-violet: #7050bf;
  --cd-violet-soft: #f2edfb;
  --cd-shadow-card: 0 1px 2px #19161205, 0 8px 24px -20px #19161235;
  --cd-shadow-lift: 0 12px 28px -16px #25375a40;
  --cd-shadow-button:
    inset 0 1px 0 #ffffff26, inset 0 -1px 2px #00000014,
    0 3px 8px -4px #25272e70;
}
html,
.studio.studio-v2,
.public-page {
  font-family: var(--cd-font);
  font-optical-sizing: auto;
  color-scheme: light;
  --font-sans: var(--cd-font);
  --paper: var(--cd-canvas);
  --surface: var(--cd-surface);
  --ink: var(--cd-ink);
  --muted: var(--cd-muted);
  --line: var(--cd-border);
  --soft: var(--cd-subtle);
  --accent: var(--cd-primary);
  --radius: var(--cd-card-radius);
  --ease-out: var(--cd-ease);
  color: var(--cd-ink);
}
.studio.studio-v2 {
  --cd-canvas: #fcfcfd;
  --cd-canvas-dot: #d7dbe3;
  --cd-canvas-grid: 20px;
}
.studio.studio-v2 {
  background: var(--cd-canvas);
}
.studio-workspace .content {
  background: var(--cd-surface);
}
.studio-workspace .cadrane-symbol {
  color: var(--cd-primary);
}
.studio-workspace .active-brand-note {
  border-color: var(--cd-border);
  border-radius: var(--cd-control-radius);
}
.studio-workspace .active-brand-note button {
  color: var(--cd-accent);
}
.studio-workspace
  :where(.workshop-state, .inspector-plan p) {
  color: var(--cd-muted);
}
.studio-workspace .inspector-plan {
  border-color: var(--cd-border);
  border-radius: 10px;
}
.studio-workspace .inspector-plan > div {
  border-color: var(--cd-border);
}
.studio-workspace .inspector-primary {
  background: var(--cd-primary);
  color: var(--cd-on-primary);
  border-radius: var(--cd-control-radius);
}
.studio.studio-v2 .button,
.public-page .button,
.modal-drawer .button {
  border-radius: var(--cd-control-radius);
  min-height: 44px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 14px;
  transition:
    background var(--cd-duration-fast),
    color var(--cd-duration-fast),
    border-color var(--cd-duration-fast),
    box-shadow var(--cd-duration-base) var(--cd-ease);
}
.studio.studio-v2 .button:not(.secondary):not(.ghost):not(.danger),
.public-page .button:not(.secondary):not(.ghost):not(.danger),
.modal-drawer .button:not(.secondary) {
  background: var(--cd-primary);
  border-color: var(--cd-primary);
  color: var(--cd-on-primary);
  box-shadow: var(--cd-shadow-button);
}
.studio.studio-v2 .button:hover:not(:disabled),
.public-page .button:hover:not(:disabled) {
  transform: none;
  box-shadow: var(--cd-shadow-lift);
}
.studio.studio-v2 .button.secondary,
.public-page .button.secondary,
.modal-drawer .button.secondary {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  color: var(--cd-ink);
  box-shadow: 0 1px 2px #00000006;
}
.studio.studio-v2 .button.secondary:hover {
  border-color: var(--cd-border-hover);
  background: #faf9f6;
}
.studio.studio-v2 .button.danger {
  background: var(--cd-danger);
  color: #fff;
}
.studio.studio-v2 .field :is(input, select, textarea),
.public-page .field :is(input, select, textarea) {
  background: #fff;
  border: 1px solid #deddd8;
  border-radius: 10px;
  color: var(--cd-ink);
  min-height: 44px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 2px #19161203;
}
.studio.studio-v2 .field :is(input, select, textarea):hover {
  border-color: var(--cd-border-hover);
}
.studio.studio-v2 .field > span {
  color: var(--cd-ink);
  font-size: 13px;
  font-weight: 500;
}
.studio.studio-v2 .field small {
  color: var(--cd-muted);
  font-size: 12px;
  line-height: 1.6;
}
.studio-workspace
  :where(a, button, summary, input, select, textarea):focus-visible,
.public-page :where(a, button, summary, input, select, textarea):focus-visible,
.modal-drawer :where(a, button):focus-visible {
  outline: 2px solid var(--cd-focus);
  outline-offset: 3px;
}
.studio.studio-v2 :where(.panel, .creative-card, .brand-card, .product-card) {
  border-color: var(--cd-border);
  border-radius: var(--cd-card-radius);
  box-shadow: var(--cd-shadow-card);
}
.modal.modal-drawer {
  font-family: var(--cd-font);
  border-color: var(--cd-border);
  border-radius: var(--cd-panel-radius);
}
.modal-drawer .modal-head {
  border-color: var(--cd-border);
}
.workshop-brand-label {
  color: var(--cd-muted);
}
@media (max-width: 700px) {
  .studio.studio-v2 .field :is(input, select, textarea),
  .public-page .field :is(input, select, textarea) {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-workspace *,
  .modal-drawer *,
  .modal-drawer,
  .public-page * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layout and navigation: one strong active landmark, one quiet content canvas. */
.studio-workspace .content {
  background-color: var(--cd-canvas);
  background-image: radial-gradient(
    circle,
    var(--cd-canvas-dot) 0.75px,
    transparent 0.9px
  );
  background-size: var(--cd-canvas-grid) var(--cd-canvas-grid);
  background-position: 10px 10px;
}
.studio-workspace .active-brand-note {
  background: #fff;
}
.studio-workspace
  :where(
    .page-title h1,
    .research-heading h1,
    .strategy-page > header h1,
    .campaign-heading h1
  ) {
  font-weight: 600;
  letter-spacing: -0.045em;
}
.studio-workspace .desk-section-title h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}
.studio-workspace .desk-section-title > span {
  font-size: 12px;
  color: var(--cd-muted);
}
.studio-workspace .desk-context-title {
  background: #f8f9fd;
  color: var(--cd-ink);
  padding: 18px;
}
.studio-workspace .inspector-plan {
  background: #f8f9fd;
}

/* The same controls across research, strategy, studio, account and data views. */
.studio.studio-v2
  :where(.panel, .brand-card, .product-card, .result-card, .opportunity-card, .strategy-panel, .campaign-review, .market-coverage, .research-empty) {
  background-color: #fff;
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-card-radius);
  box-shadow: var(--cd-shadow-card);
}
.studio.studio-v2
  :where(.brand-card, .product-card, .creative-card, .opportunity-card) {
  transition:
    border-color 180ms,
    box-shadow 180ms;
}
.studio.studio-v2
  :where(.brand-card, .product-card, .creative-card, .opportunity-card):hover {
  border-color: #b7b3ab;
  box-shadow: 0 8px 24px -16px #25272e35;
}
.studio.studio-v2 :where(.tabs) {
  background: #efeeeb;
  border: 1px solid #e5e4e0;
  border-radius: 11px;
  padding: 5px;
  gap: 5px;
}
.studio.studio-v2 :where(.tabs) button {
  border-radius: 7px;
  border-color: transparent;
  padding: 10px 14px;
  color: var(--cd-muted);
  transition:
    background 160ms,
    color 160ms;
}
.studio.studio-v2
  :where(.tabs)
  button:is(.active, [aria-selected="true"], [aria-current]) {
  background: #fff;
  color: #25272e;
  box-shadow: 0 1px 3px #22242a0a;
}
.studio.studio-v2 .market-tag {
  border-radius: 6px;
  background: #f1f0ed;
  border-color: #e5e4e0;
  color: #6b6c72;
}
.studio.studio-v2 .notice:not(.error):not(.success) {
  border-color: #e4e3de;
  background: #f3f2ef;
  color: #63666d;
  border-radius: 11px;
}
.studio.studio-v2 .data-table {
  font-variant-numeric: tabular-nums;
}
.studio.studio-v2 .data-table th {
  font-weight: 600;
  font-size: 11px;
  color: var(--cd-muted);
  background: #f8f7f4;
}
.studio.studio-v2 .data-table td {
  border-color: #ebeae6;
}
.studio.studio-v2 .data-table tbody tr:hover {
  background: #f8f6f2;
}
.studio.studio-v2 .field :is(input, select, textarea):focus {
  border-color: #a77941;
  box-shadow: 0 0 0 3px #25272e0d;
  outline: none;
}
.studio.studio-v2 .button:active:not(:disabled) {
  transform: translateY(1px);
}
.studio.studio-v2 .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.modal.modal-drawer {
  background: #fff;
  color: var(--cd-ink);
}
.modal-drawer .modal-head {
  background: #fff;
}

/* Loading is a product state, not a fabricated percentage. */
.work-loader {
  background:
    radial-gradient(ellipse at 50% 30%, #f1dfc4, transparent 65%), #fbfaf8;
  border-color: var(--cd-border);
  border-radius: 20px;
  color: var(--cd-ink);
}
.work-loader-top,
.work-loader-top > span:first-child {
  color: #7b6d5c;
}
.work-loader-copy h3 {
  color: #22242a;
  letter-spacing: -0.035em;
}
.work-loader-copy p,
.loading-patience {
  color: var(--cd-muted);
}
.loading-tags span {
  background: #fff;
  border-color: var(--cd-border);
  color: var(--cd-muted);
}
.loading-track {
  background: #e5ebfb;
}
.loading-track > span {
  background: #25272e;
}
.loading-halo {
  background: radial-gradient(circle, #e2eaff 0, transparent 66%);
}
.skeleton-header span,
.skeleton-cards > div {
  background-color: #e9edf6;
}

/* Authentication and landing carry the same identity. */

/* Commerce identity: a product-to-idea scene and an honest, navigable journey. */
.desk-scene-label {
  position: absolute;
  left: -10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: #eef0ff;
  color: #344270;
  border: 1px solid #fff7;
  box-shadow: 0 8px 16px #0002;
  border-radius: 9px;
  font-size: 11px;
  transform: rotate(-5deg);
}
.desk-scene-label.second {
  top: auto;
  bottom: 8px;
  left: auto;
  right: -5px;
  background: #ffe4d5;
  color: #733e24;
  transform: rotate(4deg);
}

/* Status colours describe state; agent colours never stand in for performance. */
.studio.studio-v2 .notice.success {
  background: var(--cd-success-soft);
  color: #176347;
  border-color: #cce7d8;
}
.studio.studio-v2 .notice.error {
  background: var(--cd-danger-soft);
  color: var(--cd-danger);
  border-color: #f2c9c1;
}
.studio.studio-v2 .notice.warning {
  background: var(--cd-warning-soft);
  color: var(--cd-warning);
  border-color: #e8d6ad;
}
.studio.studio-v2 .button.ghost {
  background: transparent;
  color: var(--cd-muted);
  border-color: transparent;
  box-shadow: none;
}
.studio.studio-v2 .button.ghost:hover {
  background: var(--cd-subtle);
  color: var(--cd-ink);
}
.studio.studio-v2 .field :is(input, textarea, select)[aria-invalid="true"] {
  border-color: var(--cd-danger);
}
.studio.studio-v2 .field :is(input, textarea, select):disabled {
  background: #efeeeb;
  color: var(--cd-muted);
  cursor: not-allowed;
}
.studio.studio-v2 .field :is(input, textarea)::placeholder {
  color: #73747a;
  opacity: 1;
}
.studio-workspace .content {
  container-type: inline-size;
}
@container (max-width: 600px) {
  .studio-workspace .desk-section-title {
    align-items: start;
  }
  .studio-workspace .desk-section-title > span {
    display: block;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #desk-task-panel {
    animation: commerce-panel-arrive 200ms var(--cd-ease);
  }
}
@keyframes commerce-label-arrive {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes commerce-panel-arrive {
  from {
    opacity: 0.5;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
