/*
 * Daryng Retail Labels v4.28.1 — major professional UI overhaul.
 * Loaded after the legacy layers so business behaviour remains unchanged while
 * the visual system, spacing, shell and media treatment are unified.
 */

:root {
  --canvas: #f3f5f4;
  --surface: #ffffff;
  --surface-subtle: #f8faf9;
  --surface-inset: #edf1ef;
  --surface-raised: #ffffff;
  --ink: #12202c;
  --ink-secondary: #46545d;
  --ink-muted: #6e7a80;
  --ink-faint: #929ca0;
  --line: #dfe5e2;
  --line-strong: #cbd5d0;
  --ui-accent: #0f8988;
  --ui-accent-hover: #0a6f72;
  --ui-accent-active: #075b60;
  --ui-accent-soft: #e5f3f1;
  --ui-accent-contrast: #ffffff;
  --focus-ring: rgba(15, 137, 136, .20);
  --tenant-chrome: #10232f;
  --tenant-chrome-text: #f6faf9;
  --radius-control: 8px;
  --radius-panel: 10px;
  --radius-overlay: 12px;
  --shadow-raised: 0 1px 2px rgba(15, 35, 47, .04), 0 12px 34px rgba(15, 35, 47, .055);
  --shadow-overlay: 0 24px 70px rgba(15, 35, 47, .18);
  --sidebar-width: 238px;
  --workspace-bar-height: 68px;
  --content-max: 1480px;
  --content-gutter: clamp(22px, 3vw, 48px);
  --page-block-start: 38px;
  --page-block-end: 76px;
  --ease-standard: cubic-bezier(.16, 1, .3, 1);
}

html { background: var(--canvas); }
body.saas-body,
body.platform-body {
  background:
    radial-gradient(circle at 82% -18%, rgba(15, 137, 136, .045), transparent 31rem),
    var(--canvas);
  color: var(--ink);
  letter-spacing: -.006em;
}

/* ---------- Global media integrity ---------- */
img,
video,
svg { max-width: 100%; }
img { height: auto; }
.saas-brand-logo,
.media-thumb img,
.media-card img,
.asset-card img,
.template-card img,
.template-preview img,
.product-thumb img,
.product-image img,
.brand-hero-scene,
.brand-product-window > img,
.brand-case figure img,
.brand-intro figure img,
.brand-outcome figure img {
  object-position: center;
}
.saas-brand-logo,
.media-thumb img,
.media-card img,
.asset-card img,
.template-card img,
.template-preview img,
.product-thumb img,
.product-image img {
  object-fit: contain !important;
}
.media-thumb,
.media-card figure,
.asset-card figure,
.template-preview,
.product-thumb,
.product-image {
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(16,35,47,.035) 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(45deg, transparent 75%, rgba(16,35,47,.035) 75%) 0 0/14px 14px,
    #fff;
}
.media-thumb img,
.media-card img,
.asset-card img,
.template-preview img,
.product-thumb img,
.product-image img { width: 100%; height: 100%; padding: 10px; }

/* ---------- Core controls ---------- */
.button,
button.button,
a.button {
  min-height: 40px;
  gap: 8px;
  padding: 0 15px;
  border-radius: var(--radius-control);
  font-size: calc(12px * var(--type-scale, 1));
  font-weight: 680;
  letter-spacing: -.008em;
  box-shadow: none;
  transition:
    transform 160ms var(--ease-standard),
    background-color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard),
    box-shadow 180ms var(--ease-standard);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.985); }
.button-primary {
  border: 1px solid transparent;
  background: var(--ui-accent);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 7px 16px rgba(15,137,136,.12);
}
.button-primary:hover { background: var(--ui-accent-hover); box-shadow: inset 0 1px rgba(255,255,255,.16), 0 10px 22px rgba(15,137,136,.16); }
.button-secondary,
.button-ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  box-shadow: 0 1px 1px rgba(15,35,47,.025);
}
.button-secondary:hover,
.button-ghost:hover { border-color: #aebbb5; background: var(--surface-subtle); color: var(--ink); }
.button-small { min-height: 34px; padding-inline: 12px; }
.text-button { color: var(--ui-accent-hover); font-weight: 660; }

.field,
.choice-field,
.colour-field { gap: 7px; }
.field > span,
.field-label,
.choice-field legend,
.colour-field > label {
  color: var(--ink-secondary);
  font-size: calc(11px * var(--type-scale, 1));
  font-weight: 650;
  letter-spacing: .005em;
}
.field input,
.field select,
.field textarea,
.search-form input,
.bulk-toolbar input,
.bulk-toolbar select,
.first-print-form select,
.search-input {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 1px rgba(16,35,47,.015);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #adbab4; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-form input:focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.helper,
.helper-text { color: var(--ink-muted); line-height: 1.5; }

/* ---------- Authenticated shell ---------- */
.app-layout { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.app-sidebar {
  background:
    radial-gradient(circle at 0 -5%, rgba(23,176,166,.16), transparent 19rem),
    linear-gradient(180deg, #112936 0%, #10232f 54%, #0d202b 100%);
  box-shadow: inset -1px 0 rgba(255,255,255,.055);
}
.sidebar-brand {
  min-height: 78px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.sidebar-brand .saas-brand { gap: 11px; }
.saas-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
}
.saas-brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.brand-copy strong {
  color: #fff;
  font-size: calc(14px * var(--type-scale, 1));
  font-weight: 720;
  letter-spacing: -.025em;
}
.brand-copy small {
  margin-top: 4px;
  color: rgba(235,247,244,.58);
  font-size: calc(8px * var(--type-scale, 1));
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sidebar-nav { padding: 18px 12px 24px; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-group-title {
  padding: 0 10px 7px;
  color: rgba(226,240,236,.36);
  font-size: calc(9px * var(--type-scale, 1));
  font-weight: 700;
  letter-spacing: .085em;
}
.nav-item {
  min-height: 39px;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 9px;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(237,246,244,.66);
  font-size: calc(12px * var(--type-scale, 1));
  font-weight: 570;
}
.nav-item i { color: rgba(218,237,233,.48); font-size: calc(17px * var(--type-scale, 1)); }
.nav-item:hover {
  background: rgba(255,255,255,.055);
  color: #fff;
  transform: translateX(1px);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(19,157,153,.24), rgba(19,157,153,.12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(45,195,185,.17);
}
.nav-item.active::before {
  top: 7px;
  bottom: 7px;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #3cc7bd;
}
.nav-item.active i { color: #79d8d0; }
.sidebar-status {
  margin: 8px 12px 14px;
  padding: 13px 8px 4px;
  border-top-color: rgba(255,255,255,.075);
}
.sidebar-status-icon { background: rgba(255,255,255,.065); border-radius: 8px; }

.workspace-bar {
  min-height: var(--workspace-bar-height);
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  padding-inline: var(--content-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  box-shadow: 0 1px 0 rgba(16,35,47,.015);
}
.workspace-context { gap: 22px; }
.context-switcher label { gap: 1px; }
.context-switcher label > span {
  color: var(--ink-muted);
  font-size: calc(9px * var(--type-scale, 1));
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.context-switcher label > span b {
  border-radius: 4px;
  background: var(--ui-accent-soft);
  color: var(--ui-accent-hover);
  font-size: calc(8px * var(--type-scale, 1));
}
.context-switcher select {
  min-height: 31px;
  color: var(--ink);
  font-size: calc(12px * var(--type-scale, 1));
  font-weight: 680;
  letter-spacing: -.012em;
}
.workspace-help { border-radius: 8px; }
.account-menu > summary { min-width: 150px; border-radius: 9px; }
.account-avatar { border-radius: 8px; background: #dff1ee; color: #076c6d; }
.account-popover {
  border-radius: 12px;
  border-color: var(--line);
  box-shadow: var(--shadow-overlay);
}
.account-popover a,
.account-popover button { border-radius: 7px; }

/* ---------- Page geometry ---------- */
.page-shell {
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
  margin-inline: auto;
  padding: var(--page-block-start) 0 var(--page-block-end);
  gap: 24px;
}
.page-header {
  align-items: flex-end;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page-header > div:first-child { max-width: 820px; }
.page-header .eyebrow,
.eyebrow,
.section-kicker,
.step-kicker {
  margin-bottom: 8px;
  color: var(--ui-accent-hover);
  font-size: calc(9px * var(--type-scale, 1));
  font-weight: 760;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.page-header h1 {
  max-width: 900px;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 710;
  letter-spacing: -.052em;
  line-height: 1.02;
}
.page-header h1 + p,
.page-header > div:first-child > p:last-child {
  max-width: 68ch;
  margin-top: 11px;
  color: var(--ink-secondary);
  font-size: calc(13px * var(--type-scale, 1));
  line-height: 1.58;
}
.header-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.panel,
.form-card,
.overview-metrics,
.attention-panel,
.operation-summary,
.governance-summary,
.validation-summary,
.metric-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16,35,47,.025);
}
.panel-heading {
  min-height: 66px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 { font-size: calc(15px * var(--type-scale, 1)); font-weight: 690; letter-spacing: -.025em; }
.panel-heading p { margin-top: 4px; color: var(--ink-muted); }
.panel-body { padding: 20px; }
.form-card { padding: 22px; }

/* ---------- Dashboard composition ---------- */
.dashboard-page { gap: 22px; }
.workflow-rail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.workflow-step {
  min-height: 68px;
  padding: 14px 16px;
  transition: background-color 180ms var(--ease-standard), color 180ms var(--ease-standard);
}
.workflow-step:hover { background: var(--surface-subtle); }
.workflow-step > span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--surface-subtle);
}
.workflow-step.is-current { background: linear-gradient(90deg, var(--ui-accent-soft), rgba(229,243,241,.32)); }
.workflow-step.is-current > span:first-child,
.workflow-step.is-complete > span:first-child { border-color: var(--ui-accent); background: var(--ui-accent); }
.dashboard-overview {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .62fr);
  gap: 18px;
}
.overview-metrics { overflow: hidden; }
.overview-heading { min-height: 67px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.overview-heading h2 { font-size: calc(15px * var(--type-scale, 1)); font-weight: 690; }
.overview-metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-metric-grid article {
  min-height: 118px;
  padding: 19px 20px;
  border-right: 1px solid var(--line);
  background: transparent;
}
.overview-metric-grid article:last-child { border-right: 0; }
.overview-metric-grid article > span { color: var(--ink-muted); font-size: calc(11px * var(--type-scale,1)); font-weight: 650; }
.overview-metric-grid article > strong {
  margin-block: 9px 7px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 630;
  letter-spacing: -.055em;
  line-height: 1;
}
.overview-metric-grid article > small { color: var(--ink-faint); line-height: 1.35; }
.attention-panel { overflow: hidden; }
.attention-heading { min-height: 58px; padding: 0 17px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.attention-panel > a {
  min-height: 61px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms var(--ease-standard), transform 160ms var(--ease-standard);
}
.attention-panel > a:hover { background: var(--surface-subtle); transform: translateX(2px); }
.attention-panel > a strong { font-family: var(--font-mono); font-size: 17px; }
.attention-foot { padding: 13px 16px; background: #f8faf9; }
.pilot-strip {
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.pilot-strip > div { min-width: 0; padding: 15px 18px; border-right: 1px solid var(--line); }
.pilot-strip span { color: var(--ink-muted); font-size: 10px; font-weight: 650; }
.pilot-strip strong { margin-top: 5px; font-family: var(--font-mono); font-size: 17px; font-weight: 650; }
.dashboard-grid { grid-template-columns: minmax(0, 1.62fr) minmax(300px, .62fr); gap: 18px; }
.quick-actions { padding: 8px; }
.quick-action {
  min-height: 64px;
  grid-template-columns: 36px minmax(0,1fr) 18px;
  gap: 11px;
  padding: 10px 10px;
  border-radius: 8px;
  border: 0;
}
.quick-action + .quick-action { border-top: 1px solid var(--line); border-radius: 0; }
.quick-action:hover { background: var(--surface-subtle); transform: translateX(2px); }
.quick-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--ui-accent-soft); color: var(--ui-accent-hover); }

/* ---------- Tables and data density ---------- */
.table-wrap,
.table-scroll { border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
.data-table thead th {
  padding: 12px 15px;
  background: #f7f9f8;
  color: var(--ink-muted);
  font-size: calc(9px * var(--type-scale, 1));
  font-weight: 740;
  letter-spacing: .055em;
}
.data-table td {
  padding: 14px 15px;
  color: var(--ink-secondary);
  font-size: calc(12px * var(--type-scale, 1));
}
.data-table tbody tr { transition: background-color 150ms var(--ease-standard); }
.data-table tbody tr:hover { background: #f5faf8; }
.table-title { color: var(--ink); font-weight: 670; }
.status-badge { border-radius: 5px; padding: 5px 8px; font-size: 9px; font-weight: 730; letter-spacing: .025em; }
.toolbar,
.media-filter-bar,
.bulk-toolbar,
.branch-queue-toolbar,
.change-toolbar {
  padding: 10px;
  border-radius: var(--radius-panel);
  background: var(--surface);
}

/* ---------- Media centre and visual libraries ---------- */
.media-grid,
.template-grid,
.asset-grid {
  align-items: start;
  gap: 14px;
}
.media-card,
.template-card,
.asset-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: none;
  transition: transform 180ms var(--ease-standard), border-color 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard);
}
.media-card:hover,
.template-card:hover,
.asset-card:hover {
  border-color: #b9c6c0;
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}
.media-card figure,
.asset-card figure,
.template-preview { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.media-card-body,
.asset-card-body,
.template-card-body { padding: 14px; }
.media-card img,
.asset-card img,
.template-preview img { transition: transform 420ms var(--ease-standard); }
.media-card:hover img,
.asset-card:hover img,
.template-card:hover img { transform: scale(1.018); }
.upload-dropzone {
  border: 1px dashed #adbbb5;
  border-radius: var(--radius-panel);
  background: #f8fbfa;
}
.upload-dropzone:hover,
.upload-dropzone.is-dragging { border-color: var(--ui-accent); background: var(--ui-accent-soft); }

/* ---------- Empty, loading and notification states ---------- */
.empty-state {
  min-height: 230px;
  padding: 34px 24px;
  background: linear-gradient(180deg, #fff, #fafcfb);
}
.empty-state::before { width: 50px; height: 50px; border-radius: 10px; background: var(--ui-accent-soft); color: var(--ui-accent-hover); }
.flash,
.toast { border-radius: 9px; box-shadow: var(--shadow-raised); }
.skeleton { border-radius: 6px; background: linear-gradient(90deg, #edf1ef 25%, #f7f9f8 45%, #edf1ef 65%); }

/* ---------- Responsive shell ---------- */
@media (max-width: 1180px) {
  :root { --sidebar-width: 220px; --content-gutter: 26px; }
  .brand-copy small { display: none; }
  .overview-metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-metric-grid article:nth-child(2) { border-right: 0; }
  .overview-metric-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pilot-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pilot-strip > a { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  :root { --content-gutter: 20px; }
  .app-layout { display: block; }
  .app-sidebar { display: none; }
  .workspace-bar { grid-template-columns: auto minmax(0,1fr) auto; }
  .mobile-menu { display: block; }
  .workspace-context { gap: 12px; }
  .workspace-context .context-switcher:nth-child(n+2) { display: none; }
  .account-copy,
  .account-menu > summary > i,
  .workspace-help span { display: none; }
  .account-menu > summary { min-width: auto; grid-template-columns: 32px; padding: 4px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .header-buttons { justify-content: flex-start; }
  .workflow-rail { grid-template-columns: repeat(5, minmax(150px,1fr)); overflow-x: auto; }
  .dashboard-overview,
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --content-gutter: 16px; --page-block-start: 26px; --page-block-end: 54px; }
  .workspace-bar { min-height: 62px; padding-inline: 12px; gap: 8px; }
  .workspace-context .context-switcher { max-width: calc(100vw - 150px); }
  .context-switcher label > span { display: none; }
  .context-switcher select { width: 100%; min-height: 38px; padding: 0 28px 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); }
  .workspace-help { width: 38px; padding: 0; justify-content: center; }
  .page-header h1 { font-size: clamp(28px, 9vw, 38px); }
  .header-buttons { width: 100%; }
  .header-buttons .button { flex: 1 1 auto; justify-content: center; }
  .overview-metric-grid { grid-template-columns: 1fr 1fr; }
  .overview-metric-grid article { min-height: 104px; padding: 16px; }
  .pilot-strip { grid-template-columns: 1fr 1fr; }
  .pilot-strip > div:nth-child(2n) { border-right: 0; }
  .panel-heading { align-items: flex-start; }
  .data-table { min-width: 720px; }
  .media-grid,
  .template-grid,
  .asset-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .overview-metric-grid,
  .pilot-strip,
  .media-grid,
  .template-grid,
  .asset-grid { grid-template-columns: 1fr; }
  .overview-metric-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-metric-grid article:last-child { border-bottom: 0; }
  .pilot-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .media-card:hover,
  .template-card:hover,
  .asset-card:hover,
  .button:hover,
  .quick-action:hover,
  .attention-panel > a:hover { transform: none; }
}

/* ---------- Dark appearance ---------- */
body[data-theme="dark"] {
  --canvas: #111718;
  --surface: #182022;
  --surface-subtle: #1e282a;
  --surface-raised: #222d30;
  --line: #314043;
  --line-strong: #435558;
  --ink: #f1f5f4;
  --ink-secondary: #c1ccca;
  --ink-muted: #91a09d;
  --ui-accent-soft: #133b3a;
  --shadow-raised: 0 16px 38px rgba(0, 0, 0, .22);
  color: var(--ink);
  background: var(--canvas);
}
body[data-theme="dark"] .app-main,
body[data-theme="dark"] .page-content { background: var(--canvas); }
body[data-theme="dark"] .workspace-bar,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .card,
body[data-theme="dark"] .data-table-wrap,
body[data-theme="dark"] .overview-metric-grid,
body[data-theme="dark"] .pilot-strip,
body[data-theme="dark"] .empty-state,
body[data-theme="dark"] .media-card,
body[data-theme="dark"] .asset-card,
body[data-theme="dark"] .template-card { background: var(--surface); border-color: var(--line); }
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea,
body[data-theme="dark"] .context-switcher select { color: var(--ink); background: var(--surface-subtle); border-color: var(--line); }
body[data-theme="dark"] .upload-dropzone { background: var(--surface-subtle); border-color: var(--line-strong); }
body[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #222c2e 25%, #2a3638 45%, #222c2e 65%); }

/* ---------- v4.29.0 refinement pass ---------- */
.app-sidebar {
  padding: 22px 16px 18px;
}
.sidebar-brand {
  padding: 4px 6px 12px;
}
.saas-brand,
.brand-logo {
  gap: 12px;
}
.saas-brand-logo,
.brand-logo img,
.daryng-mark img {
  object-fit: contain;
}
.workspace-bar {
  min-height: 74px;
  padding-inline: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
}
.page-shell {
  gap: 24px;
}
.page-header {
  padding: 8px 0 4px;
}
.page-header > div:first-child {
  max-width: 820px;
}
.page-header p,
.page-header .eyebrow + h1 + p {
  max-width: 72ch;
}
.header-buttons {
  gap: 12px;
  flex-wrap: wrap;
}
.panel,
.form-card,
.operation-summary,
.workflow-rail,
.overview-metric-grid,
.pilot-strip,
.attention-panel,
.table-wrap,
.empty-state,
.upload-drop,
.import-upload-card,
.usage-card {
  border-radius: 18px;
}
.panel,
.form-card,
.operation-summary,
.workflow-rail,
.pilot-strip,
.attention-panel,
.table-wrap,
.import-upload-card,
.usage-card {
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}
.panel,
.form-card,
.import-upload-card,
.usage-card {
  padding: 22px;
}
.panel-heading,
.side-card-heading,
.import-card-heading,
.overview-heading {
  margin-bottom: 18px;
}
.operation-summary {
  padding: 8px;
  gap: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.96));
}
.operation-summary article,
.overview-metric-grid article {
  min-height: 122px;
}
.bulk-toolbar,
.toolbar,
.bulk-print-hint,
.rollback-bar,
.rollback-notice {
  border-radius: 16px;
}
.bulk-toolbar,
.toolbar {
  padding: 14px;
}
.data-table th,
.data-table td {
  padding-top: 14px;
  padding-bottom: 14px;
  vertical-align: middle;
}
.data-table .table-title {
  font-weight: 700;
}
.tag-quantity {
  min-width: 78px;
}
.two-column-page,
.dashboard-grid,
.dashboard-overview,
.import-layout {
  gap: 24px;
}
.catalogue-sidebar,
.sticky-panel,
.dashboard-grid > aside,
.import-layout > aside {
  min-width: 0;
}
.workflow-step {
  min-height: 84px;
}
.quick-action,
.attention-panel > a,
.sample-links a,
.recent-import {
  border-radius: 14px;
}
.quick-action {
  padding: 14px 16px;
}
.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.sample-links a {
  padding: 8px 10px;
  background: rgba(15, 23, 42, .03);
}
.upload-drop {
  min-height: 240px;
  padding: 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.upload-drop [data-file-name] {
  display: inline-flex;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .05);
}
.branding-preview img,
.media-thumb img,
.asset-card img,
.template-card img,
.brand-hero-scene,
.brand-intro-grid img,
.brand-case img,
.brand-outcome figure img,
.brand-workflow-media img {
  object-fit: contain;
}
@media (min-width: 1100px) {
  .two-column-page { grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); }
  .dashboard-overview { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); }
  .import-layout { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
}
@media (max-width: 900px) {
  .panel,
  .form-card,
  .import-upload-card,
  .usage-card { padding: 18px; }
}
