:root {
  --cg-shell-bg: #ffffff;
  --cg-shell-surface: #ffffff;
  --cg-shell-soft: #f8fafc;
  --cg-shell-strong: #e0e2e6;
  --cg-shell-ink: #181d26;
  --cg-shell-body: #333840;
  --cg-shell-muted: #6b7280;
  --cg-shell-line: #dddddd;
  --cg-shell-border-strong: #9297a0;
  --cg-shell-link: #1b61c9;
  --cg-shell-info: #254fad;
  --cg-shell-success: #006400;
  --cg-shell-warn: #9a6700;
  --cg-shell-warn-soft: #fff9e8;
  --cg-shell-danger: #b42318;
  --cg-shell-danger-soft: #fff5f3;
  --cg-shell-radius: 10px;
}

.cg-workspace {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  color: var(--cg-shell-body);
  background: var(--cg-shell-bg);
  font: 14px/22px Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

.cg-workspace *,
.cg-workspace *::before,
.cg-workspace *::after { box-sizing: border-box; }

.cg-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--cg-shell-line);
}

.cg-eyebrow {
  margin: 0 0 4px;
  color: var(--cg-shell-info);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cg-title,
.cg-page-title,
.cg-card-title,
.cg-state-title { margin: 0; }
.cg-title { font-size: 20px; line-height: 30px; font-weight: 500; }
.cg-platform,
.cg-page-detail,
.cg-field-label,
.cg-list-meta,
.cg-state-detail { color: var(--cg-shell-muted); }
.cg-platform { margin: 3px 0 0; }
.cg-account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cg-account .cg-platform-select { min-width: 0; flex: 1 1 auto; }
.cg-account .cg-badge,
.cg-account > .cg-button { flex-shrink: 0; white-space: nowrap; }

.cg-nav {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 16px;
  border-right: 1px solid var(--cg-shell-line);
  background: var(--cg-shell-soft);
}

.cg-nav .cg-button { flex: 0 0 auto; border: 0; background: transparent; color: var(--cg-shell-muted); }
.cg-nav .cg-button.is-active,
.cg-nav .cg-button:hover { background: #fff; color: var(--cg-shell-ink); }

.cg-main { grid-column: 2; grid-row: 2; width: 100%; max-width: 1244px; padding: 32px; }
.cg-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.cg-page-title { color: var(--cg-shell-ink); font-size: 28px; line-height: 36px; font-weight: 500; }
.cg-page-detail { max-width: 720px; margin: 5px 0 0; }
.cg-card { margin: 0 0 24px; padding: 20px; border: 1px solid var(--cg-shell-line); border-radius: var(--cg-shell-radius); background: var(--cg-shell-surface); }
.cg-card-title { margin-bottom: 14px; font-size: 16px; }
.cg-data-grid { display: grid; grid-template-columns: minmax(150px, .45fr) 1fr; margin: 0; border-top: 1px solid var(--cg-shell-line); }
.cg-data-grid-compact { margin-top: 10px; font-size: 13px; }
.cg-data-key,
.cg-data-value { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--cg-shell-line); }
.cg-data-key { color: var(--cg-shell-muted); }
.cg-data-value { font-variant-numeric: tabular-nums; }

.cg-button { min-height: 40px; padding: 10px 16px; border: 1px solid var(--cg-shell-line); border-radius: 10px; background: var(--cg-shell-surface); color: var(--cg-shell-ink); cursor: pointer; font: inherit; font-weight: 500; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.cg-button:hover:not(:disabled) { border-color: var(--cg-shell-border-strong); color: var(--cg-shell-ink); }
.cg-button:active:not(:disabled) { transform: translateY(1px); }
.cg-button:disabled { cursor: not-allowed; opacity: .5; }
.cg-primary { border-color: var(--cg-shell-ink); background: var(--cg-shell-ink); color: #fff; }
.cg-primary:hover:not(:disabled) { border-color: #303742; background: #303742; color: #fff; }
.cg-link-button { padding: 0; border: 0; background: transparent; color: var(--cg-shell-link); text-align: left; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.cg-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid var(--cg-shell-line); border-radius: 6px; background: var(--cg-shell-soft); color: var(--cg-shell-success); font-size: 12px; font-weight: 700; }
.cg-badge-suspended,
.cg-badge-disabled { background: var(--cg-shell-warn-soft); color: var(--cg-shell-warn); }

.cg-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cg-list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--cg-shell-line); }
.cg-list-row:last-child { border-bottom: 0; }
.cg-list-row-stack { align-items: flex-start; }
.cg-list-main { display: block; }
.cg-list-meta { display: block; font-size: 13px; }

.cg-state { margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--cg-shell-line); border-radius: var(--cg-shell-radius); background: var(--cg-shell-surface); }
.cg-state-title { font-size: 16px; }
.cg-state-detail { margin: 5px 0 0; }
.cg-state-loading { background: #f4f8f4; }
.cg-state-empty { margin: 12px 0 0; padding: 14px; box-shadow: none; }
.cg-state-success { border-color: #b8ddc0; background: #f3fbf4; }
.cg-state-preview { border-color: #cce9d2; background: #f3fff5; }
.cg-state-suspended { border-color: #eed9a5; background: var(--cg-shell-warn-soft); }
.cg-state-error,
.cg-state-forbidden,
.cg-state-conflict { border-color: #efc7c1; background: var(--cg-shell-danger-soft); }
.cg-state-session { border-color: #c8d5ee; background: #f1f5ff; }

.cg-form { display: grid; gap: 14px; }
.cg-master-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cg-master-grid .cg-card { margin: 0; }
.cg-provision-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cg-provision-form > .cg-form-help,
.cg-provision-form > .cg-fieldset,
.cg-provision-form > .cg-password-tools,
.cg-provision-form > .cg-inline-status,
.cg-provision-form > .cg-actions { grid-column: 1 / -1; }
.cg-fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; }
.cg-fieldset .cg-field { margin-top: 8px; }
.cg-form-help { margin: 0; color: var(--cg-shell-muted); font-size: 12px; line-height: 18px; }
.cg-inline-status { min-height: 22px; margin: 0; color: var(--cg-shell-muted); }
.cg-inline-status-error { color: var(--cg-shell-danger); }
.cg-inline-status-info { color: var(--cg-shell-info); }
.cg-inline-status-success { color: var(--cg-shell-success); }
.cg-workspace .hidden { display: none !important; }
.cg-analysis-history-actions { margin-top: -6px; }
.cg-analysis-choice-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 29, 38, .38);
}
.cg-analysis-choice-dialog {
  width: min(640px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--cg-shell-border-strong);
  border-radius: var(--cg-shell-radius);
  background: var(--cg-shell-surface);
}
.cg-analysis-choice-title { margin: 0; color: var(--cg-shell-ink); font-size: 20px; line-height: 28px; }
.cg-analysis-choice-description { margin: 8px 0 18px; color: var(--cg-shell-muted); }
.cg-analysis-history-list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.cg-analysis-history-item { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-analysis-history-item-latest { border-color: #b8c8e8; background: #f4f7ff; }
.cg-analysis-history-title { color: var(--cg-shell-ink); }
.cg-analysis-choice-actions { justify-content: flex-end; }
.cg-shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cg-shortcut { min-width: 0; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-shortcut-link { display: block; max-width: 100%; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.cg-shortcut-detail { min-height: 44px; margin: 7px 0 10px; color: var(--cg-shell-muted); font-size: 12px; line-height: 18px; }
.cg-shortcut-count { display: block; color: var(--cg-shell-ink); font-size: 13px; font-weight: 650; }
.cg-status-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cg-status-metric { min-width: 0; padding: 12px 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-status-metric-label,
.cg-status-metric-value { display: block; overflow-wrap: anywhere; }
.cg-status-metric-label { color: var(--cg-shell-muted); font-size: 12px; }
.cg-status-metric-value { margin-top: 4px; color: var(--cg-shell-ink); font-size: 20px; line-height: 26px; }
.cg-page.cg-editor-kpi { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.cg-editor-kpi > * { min-width: 0; }
.cg-editor-kpi-filter-card { margin-bottom: 16px; }
.cg-editor-kpi-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.cg-editor-kpi-filters .cg-field { flex: 1 1 180px; max-width: 250px; min-width: 0; }
.cg-editor-kpi-filter-actions { margin: 0; align-self: end; }
.cg-editor-kpi-filter-error { margin: 12px 0 0; color: var(--cg-shell-danger, #b42318); font-size: 13px; }
.cg-editor-kpi-range { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 0 0 14px; color: var(--cg-shell-muted); font-size: 12px; }
.cg-editor-kpi-range p { margin: 0; }
.cg-editor-kpi-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.cg-editor-kpi-metric { min-width: 0; padding: 20px; background: var(--cg-shell-surface); border: 1px solid var(--cg-shell-line); border-radius: var(--cg-shell-radius); }
.cg-editor-kpi-metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cg-shell-muted); font-size: 13px; }
.cg-editor-kpi-metric-heading .cg-icon { flex: 0 0 22px; width: 22px; height: 22px; color: #24963f; }
.cg-editor-kpi-metric-value { display: block; margin: 12px 0 8px; color: var(--cg-shell-ink); font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cg-editor-kpi-metric-note { margin: 0; color: var(--cg-shell-muted); font-size: 12px; line-height: 1.6; }
.cg-editor-kpi-table-wrap { max-width: 100%; overflow-x: auto; }
.cg-editor-kpi-table { width: 100%; min-width: 1220px; border-collapse: collapse; }
.cg-editor-kpi-login-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-editor-kpi-table th, .cg-editor-kpi-table td { padding: 14px 12px; border-bottom: 1px solid var(--cg-shell-line); text-align: left; vertical-align: middle; font-size: 13px; }
.cg-editor-kpi-table thead th { color: var(--cg-shell-muted); font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--cg-shell-soft); }
.cg-editor-kpi-table .cg-editor-kpi-member { min-width: 120px; max-width: 240px; color: var(--cg-shell-ink); font-weight: 600; overflow-wrap: anywhere; }
.cg-editor-kpi-member-status { white-space: nowrap; }
.cg-editor-kpi-member-status small { display: block; margin-top: 5px; color: var(--cg-shell-muted); }
.cg-editor-kpi-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cg-editor-kpi-scope ul { display: grid; gap: 8px; padding-left: 20px; margin: 0; color: var(--cg-shell-muted); font-size: 13px; line-height: 1.7; }
@media (max-width: 1100px) {
  .cg-editor-kpi-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cg-editor-kpi-metrics { grid-template-columns: minmax(0, 1fr); }
  .cg-editor-kpi-filters .cg-field { max-width: none; flex-basis: 100%; }
  .cg-editor-kpi-filter-actions { width: 100%; }
}
.cg-summary-more { margin: 0 0 24px; border: 1px solid var(--cg-shell-line); border-radius: var(--cg-shell-radius); background: var(--cg-shell-surface); }
.cg-summary-more-title { padding: 14px 20px; color: var(--cg-shell-ink); cursor: pointer; font-weight: 650; }
.cg-summary-more[open] > .cg-summary-more-title { border-bottom: 1px solid var(--cg-shell-line); }
.cg-summary-more > .cg-card { margin: 0; border: 0; border-radius: 0; }
.cg-summary-more > .cg-card + .cg-card { border-top: 1px solid var(--cg-shell-line); }
.cg-live-project-page { min-width: 0; }
.cg-platform-page-header { align-items: center; }
.cg-platform-page-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 22px; min-width: 0; }
.cg-platform-page-title .cg-page-detail { max-width: none; margin: 0; }
.cg-live-project-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.cg-live-project-filters .cg-field { min-width: 0; }
.cg-live-project-status-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.cg-live-project-status-card.cg-button { position: relative; display: flex; align-items: flex-start; gap: 16px; min-width: 0; min-height: 121px; padding: 23px 20px; border: 1px solid #fff; border-radius: 13px; background: #fff; color: #424b58; text-align: left; box-shadow: 0 5px 20px #23334402; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cg-live-project-status-card.cg-button:hover:not(:disabled) { border-color: #fff; background: #fff; color: #424b58; box-shadow: 0 7px 20px #27394008; transform: translateY(-2px); }
.cg-live-project-status-card.cg-button.is-active { border-color: #8fdf8b; background: #fff; color: #424b58; box-shadow: 0 0 0 1px #8fdf8b, 0 7px 20px #27394008; }
.cg-live-project-status-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 11px; color: #fff; box-shadow: inset 0 2px 4px #ffffff45; }
.cg-live-project-status-icon .cg-icon { width: 22px; height: 22px; }
.cg-live-project-status-icon.green { background: linear-gradient(140deg, #90e889, #51cf61); }
.cg-live-project-status-icon.blue { background: linear-gradient(135deg, #65abff, #367eff); }
.cg-live-project-status-icon.orange { background: linear-gradient(135deg, #ffd86f, #e7aa17); }
.cg-live-project-status-icon.purple { background: linear-gradient(135deg, #ce83ff, #a851ed); }
.cg-live-project-status-copy { display: grid; gap: 3px; min-width: 0; }
.cg-live-project-status-label { color: #556171; font-size: 14px; }
.cg-live-project-status-copy strong { color: #202a35; font-size: 25px; font-weight: 650; line-height: 1.35; }
.cg-live-project-status-copy small { margin-top: 4px; color: #9ca5b2; font-size: 10px; line-height: 1.5; white-space: normal; }
.cg-live-project-status-chevron { position: absolute; top: 25px; right: 15px; width: 14px; height: 14px; color: #a5afbc; }
.cg-live-project-list { min-width: 0; }
.cg-live-project-row { min-width: 0; }
.cg-live-project-row-main { min-width: 0; flex: 1 1 520px; }
.cg-live-project-link { display: block; max-width: 100%; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.cg-live-project-sources { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; color: var(--cg-shell-muted); font-size: 13px; line-height: 20px; }
.cg-live-project-source { min-width: 0; overflow-wrap: anywhere; }
.cg-live-project-meta { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; min-width: 180px; text-align: right; }
.cg-live-project-meta .cg-list-meta { overflow-wrap: anywhere; }
.cg-live-project-empty { border-bottom: 0; }
.cg-live-project-empty .cg-state { margin-bottom: 0; }
.cg-live-project-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.cg-page.cg-live-project-list-page { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; height: calc(100vh - 120px); }
.cg-live-project-card { position: relative; display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
.cg-live-project-card > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 12px; }
.cg-live-project-card > .cg-card-title .cg-icon { width: 19px; height: 19px; color: #409845; }
.cg-live-project-card .cg-live-project-work-grid { --ed-brand-green: #32cb42; --ed-brand-lime: #a5f35d; --ed-brand-deep: #159b3d; --ed-brand-soft: #efffdc; }
.cg-live-project-card > .cg-live-project-pagination { flex: 0 0 auto; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #eef1f4; }
.cg-live-project-work-empty { display: grid; grid-column: 1 / -1; min-height: 100%; place-items: center; }
.cg-live-project-work-empty .cg-state { margin: 0; padding: 14px 0; border: 0; background: transparent; text-align: center; }
.cg-live-project-task-list { display: grid; gap: 14px; }
.cg-live-project-task { min-width: 0; padding: 16px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-project-task-title { margin: 0 0 10px; color: var(--cg-shell-ink); font-size: 15px; }
.cg-live-project-task-subtitle { margin: 16px 0 6px; color: var(--cg-shell-ink); font-size: 13px; }
.cg-live-project-source-details > .cg-form-help { margin-bottom: 12px; }
.cg-live-project-task .cg-data-grid { background: var(--cg-shell-surface); }
.cg-live-project-page .cg-badge { flex: 0 0 auto; }
.cg-live-project-page .cg-data-value,
.cg-live-project-page .cg-data-key { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.cg-live-project-header-actions { justify-content: flex-end; }
.cg-live-project-completion-body { display: grid; gap: 14px; min-width: 0; }
.cg-live-project-completion-confirm-actions { justify-content: flex-start; }
.cg-live-project-completion-body > .cg-state { margin-bottom: 0; }
.cg-live-project-draft-form { gap: 18px; }
.cg-live-project-draft-form > .cg-field,
.cg-live-project-draft-form > .cg-fieldset,
.cg-live-project-draft-form > .cg-inline-status,
.cg-live-project-draft-form > .cg-actions { width: 100%; }
.cg-live-project-source-grid,
.cg-live-project-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cg-live-project-source-grid > .cg-form-help { grid-column: 1 / -1; }
.cg-live-project-source-grid > .cg-state,
.cg-live-project-asset-tools { grid-column: 1 / -1; }
.cg-live-project-asset-tools { justify-content: flex-start; }
.cg-live-project-inline-upload { padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-project-placeholder { display: grid; gap: 8px; padding: 12px 14px; border: 1px dashed var(--cg-shell-border-strong); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-project-placeholder .cg-button { width: fit-content; }
.cg-live-project-future-placeholders { display: grid; gap: 12px; background: var(--cg-shell-soft); }
.cg-live-project-future-placeholders .cg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cg-live-project-source-fieldset,
.cg-live-project-task-fieldset { display: grid; gap: 14px; }
.cg-live-project-source-fieldset > .cg-form-grid,
.cg-live-project-task-fieldset > .cg-live-project-task-editor-list { min-width: 0; }
.cg-live-project-workbook-field { min-width: 0; }
.cg-live-project-file-name { display: block; max-width: 100%; color: var(--cg-shell-info); overflow-wrap: anywhere; }
.cg-live-project-import-field { min-width: 0; }
.cg-live-project-import-field > .cg-live-project-import-summary,
.cg-live-project-import-field > .cg-state { margin-top: 6px; }
.cg-live-project-import-title { display: block; margin-bottom: 8px; color: var(--cg-shell-ink); overflow-wrap: anywhere; }
.cg-live-project-task-editor-list { display: grid; gap: 14px; }
.cg-live-project-task-editor { min-width: 0; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-project-task-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cg-live-project-task-editor-header .cg-actions { flex-shrink: 0; }
.cg-live-project-requirements,
.cg-live-project-product-picker { grid-column: 1 / -1; background: var(--cg-shell-surface); }
.cg-live-project-requirements .cg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.cg-live-project-product-picker { display: grid; gap: 10px; }
.cg-live-project-product-picker .cg-field { width: 100%; max-width: 800px; min-width: 0; box-sizing: border-box; }
.cg-live-project-product-picker .cg-input { min-width: 0; box-sizing: border-box; }
.cg-live-project-selected-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.cg-live-project-selected-products > .cg-list-meta { grid-column: 1 / -1; }
.cg-live-project-selected-product-card { position: relative; min-width: 0; min-height: 82px; padding: 8px 40px 8px 8px; overflow: hidden; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-project-selected-product-summary { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; width: 100%; }
.cg-live-project-product-thumbnail { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 6px; background: var(--cg-shell-surface); }
.cg-live-project-selected-product-remove { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid rgb(255 255 255 / 75%); border-radius: 50%; background: rgb(17 24 39 / 82%); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.cg-live-project-selected-product-remove:disabled { cursor: not-allowed; opacity: .55; }
.cg-live-project-product-unavailable { position: absolute; inset: auto 4px 4px; padding: 2px 4px; border-radius: 4px; background: var(--cg-shell-danger); color: #fff; font-size: 10px; text-align: center; }
.cg-live-project-product-grid-shell { width: 100%; }
.cg-live-project-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.cg-live-project-product-empty { grid-column: 1 / -1; margin: 6px 0; }
.cg-live-project-product-choice { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; min-height: 112px; padding: 8px; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--cg-shell-soft); cursor: pointer; }
.cg-live-project-product-choice:hover { border-color: var(--cg-shell-link); }
.cg-live-project-product-choice.is-pending { border-color: var(--cg-shell-link); outline: 2px solid var(--cg-shell-link); outline-offset: -4px; }
.cg-live-project-product-choice.is-added { border-color: var(--cg-shell-success); cursor: default; opacity: .82; }
.cg-live-project-product-choice-thumbnail { display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border-radius: 8px; background: var(--cg-shell-surface); }
.cg-live-project-product-checkbox { position: absolute; z-index: 2; top: 14px; left: 14px; width: 20px; height: 20px; margin: 0; accent-color: var(--cg-shell-link); cursor: pointer; }
.cg-live-project-product-checkbox:disabled { cursor: default; }
.cg-live-project-product-choice-state { position: absolute; z-index: 2; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 999px; background: rgb(17 24 39 / 82%); color: #fff; font-size: 11px; line-height: 1.2; }
.cg-live-project-product-choice.is-added .cg-live-project-product-choice-state { background: var(--cg-shell-success); }
.cg-live-project-product-copy { display: grid; align-content: center; gap: 6px; min-width: 0; }
.cg-live-project-product-name { display: -webkit-box; overflow: hidden; color: var(--cg-shell-ink); line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cg-live-project-product-number { display: -webkit-box; overflow: hidden; line-height: 1.35; overflow-wrap: anywhere; word-break: break-all; font-variant-numeric: tabular-nums; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cg-live-project-product-choice.is-pending .cg-live-project-product-copy,
.cg-live-project-product-choice.is-added .cg-live-project-product-copy { padding-bottom: 22px; }
.cg-live-project-product-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cg-live-project-product-page-button { min-width: 34px; padding: 6px 9px; }
.cg-live-project-product-page-button.is-current { border-color: var(--cg-shell-link); background: var(--cg-shell-link); color: #fff; opacity: 1; }
.cg-live-project-product-page-gap { padding: 0 2px; color: var(--cg-shell-muted); }
.cg-live-project-product-pending-status { margin-right: auto; }
.cg-live-project-product-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.cg-live-project-product-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 4px; text-align: center; }
.cg-option-unavailable { color: var(--cg-shell-danger); }
.cg-live-project-form-actions { justify-content: flex-end; }
.cg-live-project-submit-status { overflow-wrap: anywhere; }
.cg-live-project-submit-status.cg-inline-status-error { padding: 14px; border: 1px solid currentColor; border-radius: 8px; }
.cg-live-project-submit-status:focus { outline: 2px solid var(--cg-shell-danger); outline-offset: 3px; }
.cg-live-project-submit-status p { margin: 6px 0; }
.cg-live-project-submit-errors { max-height: 24vh; overflow: auto; margin: 8px 0; padding-left: 22px; }
.cg-live-project-submit-errors li + li { margin-top: 5px; }
.cg-live-project-analysis-body { display: grid; gap: 14px; min-width: 0; }
.cg-live-project-analysis-content { display: grid; gap: 14px; min-width: 0; }
.cg-live-project-analysis-subtitle { margin: 4px 0 0; color: var(--cg-shell-ink); font-size: 14px; }
.cg-live-analysis-progress { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--cg-shell-line); border-radius: var(--cg-shell-radius); background: var(--cg-shell-soft); }
.cg-live-analysis-progress-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cg-live-analysis-progress-header .cg-live-project-analysis-subtitle { margin: 0; }
.cg-live-analysis-progress-badge.is-current { color: var(--cg-shell-link); }
.cg-live-analysis-progress-badge.is-error { background: var(--cg-shell-danger-soft); color: var(--cg-shell-danger); }
.cg-live-analysis-milestones { display: grid; grid-auto-columns: minmax(92px, 1fr); grid-auto-flow: column; margin: 0; padding: 0; list-style: none; }
.cg-live-analysis-milestone { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 0 8px; text-align: center; }
.cg-live-analysis-milestone:not(:last-child)::after { position: absolute; z-index: 0; top: 15px; left: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: var(--cg-shell-line); content: ""; }
.cg-live-analysis-milestone.is-complete:not(:last-child)::after { background: var(--cg-shell-success); }
.cg-live-analysis-milestone-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--cg-shell-line); border-radius: 50%; background: var(--cg-shell-surface); color: var(--cg-shell-muted); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cg-live-analysis-milestone.is-complete .cg-live-analysis-milestone-marker { border-color: var(--cg-shell-success); background: var(--cg-shell-success); color: #fff; }
.cg-live-analysis-milestone.is-current .cg-live-analysis-milestone-marker { border-color: var(--cg-shell-link); background: #eef4ff; color: var(--cg-shell-link); }
.cg-live-analysis-milestone.is-error .cg-live-analysis-milestone-marker { border-color: var(--cg-shell-danger); background: var(--cg-shell-danger-soft); color: var(--cg-shell-danger); }
.cg-live-analysis-milestone-copy { display: grid; gap: 1px; min-width: 0; }
.cg-live-analysis-milestone-label { color: var(--cg-shell-ink); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.cg-live-analysis-milestone-state { color: var(--cg-shell-muted); font-size: 11px; line-height: 17px; }
.cg-live-analysis-milestone.is-complete .cg-live-analysis-milestone-state { color: var(--cg-shell-success); }
.cg-live-analysis-milestone.is-current .cg-live-analysis-milestone-state { color: var(--cg-shell-link); }
.cg-live-analysis-milestone.is-error .cg-live-analysis-milestone-state { color: var(--cg-shell-danger); }
.cg-live-analysis-progress-detail { margin: 0; color: var(--cg-shell-body); }
.cg-live-analysis-progress-bar { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 4px; background: var(--cg-shell-line); accent-color: var(--cg-shell-link); }
.cg-live-analysis-progress-bar::-webkit-progress-bar { border-radius: 4px; background: var(--cg-shell-line); }
.cg-live-analysis-progress-bar::-webkit-progress-value { border-radius: 4px; background: var(--cg-shell-link); }
.cg-live-project-analysis-actions,
.cg-live-project-analysis-confirm-actions { justify-content: flex-start; }
.cg-live-project-analysis-options,
.cg-live-project-dispatch-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cg-live-project-analysis-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-project-analysis-option-copy { display: grid; gap: 3px; min-width: 0; }
.cg-live-project-analysis-option-copy .cg-badge { width: fit-content; margin-top: 4px; }
.cg-live-project-dispatch-summary { min-width: 0; }
.cg-live-project-dispatch-list { margin-top: 8px; }
.cg-live-project-dispatch-list .cg-list-meta { overflow-wrap: anywhere; }
.cg-live-project-deliveries-body { display: grid; gap: 14px; min-width: 0; }
.cg-live-project-delivery-subtitle { margin: 4px 0 0; color: var(--cg-shell-ink); font-size: 14px; }
.cg-live-project-delivery-filters { display: grid; grid-template-columns: minmax(180px, 360px); gap: 12px; align-items: end; }
.cg-live-project-delivery-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
  border-top: 0;
}
.cg-live-project-delivery-summary-stat { min-width: 0; padding: 10px 12px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-surface); }
.cg-live-project-delivery-summary-stat .cg-data-key,
.cg-live-project-delivery-summary-stat .cg-data-value { padding: 0; border-bottom: 0; overflow-wrap: anywhere; }
.cg-live-project-delivery-summary-stat .cg-data-key { font-size: 12px; }
.cg-live-project-delivery-summary-stat .cg-data-value { margin-top: 3px; color: var(--cg-shell-ink); font-size: 18px; line-height: 24px; }
.cg-live-project-delivery-shop-list { display: grid; gap: 16px; min-width: 0; }
.cg-live-project-delivery-shop { min-width: 0; padding: 16px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-project-delivery-shop-header,
.cg-live-project-delivery-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.cg-live-project-delivery-shop-title,
.cg-live-project-delivery-item-title { min-width: 0; margin: 0; color: var(--cg-shell-ink); overflow-wrap: anywhere; word-break: break-word; }
.cg-live-project-delivery-shop-title { font-size: 15px; }
.cg-live-project-delivery-item-title { font-size: 14px; }
.cg-live-project-delivery-item-list { display: grid; gap: 12px; margin-top: 14px; min-width: 0; }
.cg-live-project-delivery-item { min-width: 0; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-surface); }
.cg-live-project-delivery-item-details { margin-top: 10px; }
.cg-live-project-delivery-version-details { margin-top: 10px; }
.cg-live-project-delivery-version-summary { color: var(--cg-shell-info); cursor: pointer; font-size: 12px; }
.cg-live-project-delivery-preview { margin-top: 14px; }
.cg-live-project-delivery-video { display: block; width: min(100%, 640px); max-height: 420px; margin-top: 14px; background: #111; }
.cg-live-project-delivery-preview .cg-live-project-delivery-video { margin-top: 10px; }
.cg-live-project-delivery-preview-error { margin-top: 10px; }
.cg-live-project-delivery-actions { margin-top: 12px; }
.cg-live-project-delivery-actions .cg-button { display: inline-flex; align-items: center; text-decoration: none; }
.cg-live-project-delivery-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; }

.cg-adjustment-form { width: min(100%, 560px); margin-top: 12px; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-adjustment-title { color: var(--cg-shell-ink); }
.cg-field { display: grid; gap: 6px; }
.cg-field[hidden] { display: none; }
.cg-field-label { font-size: 13px; font-weight: 650; }
.cg-input { width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid var(--cg-shell-line); border-radius: 6px; background: #fff; color: var(--cg-shell-body); font: inherit; }
.cg-platform-select { width: min(320px, 32vw); min-height: 40px; padding-block: 8px; }
textarea.cg-input { min-height: 112px; resize: vertical; }
.cg-input:focus-visible,
.cg-button:focus-visible { outline: 2px solid rgba(27, 97, 201, .16); outline-offset: 2px; border-color: var(--cg-shell-border-strong); }
.cg-select-multiple { min-height: 132px; padding-block: 6px; }
.cg-select-multiple option { padding: 6px 8px; }
.cg-checkbox-field { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.cg-checkbox { width: 18px; height: 18px; }
.cg-member-form,
.cg-master-form { width: 100%; }
.cg-system-prompt-type-preview { display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-system-prompt-type-title { color: var(--cg-shell-ink); font-size: 12px; }
.cg-system-prompt-type-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-system-prompt-type-chip { padding: 3px 7px; border: 1px solid var(--cg-shell-line); border-radius: 999px; background: var(--cg-shell-surface); color: var(--cg-shell-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.cg-analysis-prompt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 5px; border: 1px solid var(--cg-shell-line); border-radius: 10px; background: var(--cg-shell-soft); }
.cg-analysis-prompt-tabs .cg-button { flex: 1 1 240px; border-color: transparent; background: transparent; }
.cg-analysis-prompt-tabs .cg-button.is-active { border-color: var(--cg-shell-line); background: var(--cg-shell-surface); color: var(--cg-shell-ink); }
.cg-analysis-prompt-intro { margin-bottom: 18px; padding: 14px 16px; border-left: 3px solid var(--cg-shell-info); background: var(--cg-shell-soft); }
.cg-analysis-prompt-intro .cg-card-title { margin-bottom: 4px; }
.cg-analysis-prompt-version-summary { display: grid; gap: 10px; }
.cg-analysis-prompt-version-summary > .cg-badge { width: fit-content; }
.cg-analysis-prompt-section-actions { margin-top: 14px; }
.cg-analysis-prompt-draft-list { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--cg-shell-line); }
.cg-analysis-prompt-draft-row > div,
.cg-analysis-prompt-history-copy { min-width: 0; }
.cg-analysis-prompt-revision { margin: 0; color: var(--cg-shell-muted); font-size: 13px; }
.cg-analysis-prompt-content { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; line-height: 1.6; }
.cg-analysis-prompt-character-count { justify-self: end; color: var(--cg-shell-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cg-analysis-prompt-editor-actions { justify-content: flex-start; }
.cg-analysis-prompt-diff { min-width: 0; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-analysis-prompt-subtitle { margin: 0 0 8px; color: var(--cg-shell-ink); font-size: 14px; }
.cg-analysis-prompt-diff-body,
.cg-analysis-prompt-history-content { max-width: 100%; margin: 10px 0 0; padding: 12px; overflow: auto; border: 1px solid var(--cg-shell-line); border-radius: 6px; background: var(--cg-shell-surface); color: var(--cg-shell-body); font: 12px/19px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.cg-analysis-prompt-history-row { min-width: 0; }
.cg-analysis-prompt-history-copy { width: 100%; }
.cg-analysis-prompt-hash { overflow-wrap: anywhere; }
.cg-analysis-prompt-history-details { margin-top: 8px; }
.cg-analysis-prompt-history-summary { width: fit-content; color: var(--cg-shell-link); cursor: pointer; font-size: 13px; }
.cg-editor-image-prompt > .cg-state { margin-bottom: 16px; }
.cg-editor-image-prompt-published,
.cg-editor-image-prompt-history { margin: 0 0 18px; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-editor-image-prompt-published > .cg-badge { margin-bottom: 8px; }
.cg-editor-image-prompt-form { margin: 0 0 18px; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; }
.cg-editor-image-prompt-content { min-height: 300px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; line-height: 1.6; }
.cg-editor-image-prompt-details { margin: 12px 0 18px; }
.cg-editor-image-prompt-details > summary { width: fit-content; color: var(--cg-shell-link); cursor: pointer; font-weight: 650; }
.cg-editor-image-prompt-details > .cg-form-help { margin-top: 8px; }
.cg-quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cg-quote-grid .cg-card { margin: 0; }

@media (max-width: 960px) {
  .cg-workspace { display: block; }
  .cg-header { padding: 0 16px; }
  .cg-nav { flex-direction: row; overflow-x: auto; padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--cg-shell-line); }
  .cg-main { padding: 24px 16px 40px; }
  .cg-header,
  .cg-page-header { flex-direction: column; }
  .cg-header { align-items: stretch; justify-content: center; min-height: 0; padding: 12px 16px; gap: 4px; }
  .cg-account { width: 100%; justify-content: space-between; }
  .cg-platform-select { width: min(100%, 360px); }
  .cg-page-header .cg-button { width: 100%; }
  .cg-list-row { align-items: flex-start; flex-direction: column; }
  .cg-list-row .cg-actions,
  .cg-list-row > .cg-button { width: 100%; }
  .cg-list-row > .cg-button { text-align: left; }
  .cg-data-grid { grid-template-columns: 1fr; }
  .cg-data-value { padding-top: 0; }
  .cg-provision-form { grid-template-columns: 1fr; }
  .cg-master-grid { grid-template-columns: 1fr; }
  .cg-provision-form > .cg-form-help,
  .cg-provision-form > .cg-fieldset,
  .cg-provision-form > .cg-inline-status,
  .cg-provision-form > .cg-actions { grid-column: auto; }
  .cg-quote-grid { grid-template-columns: 1fr; }
  .cg-analysis-prompt-tabs { flex-direction: column; }
  .cg-analysis-prompt-tabs .cg-button { flex-basis: auto; width: 100%; }
  .cg-analysis-prompt-editor-actions { align-items: stretch; flex-direction: column; }
  .cg-analysis-prompt-editor-actions .cg-button,
  .cg-analysis-prompt-section-actions .cg-button,
  .cg-analysis-prompt-history-row > .cg-button { width: 100%; }
  .cg-shortcut-grid { grid-template-columns: 1fr; }
  .cg-status-metrics { grid-template-columns: 1fr; }
  .cg-live-project-filters { grid-template-columns: 1fr; }
  .cg-live-project-filters .cg-button { width: 100%; }
  .cg-live-project-row-main { flex: 0 1 auto; width: 100%; }
  .cg-live-project-meta { justify-content: flex-start; min-width: 0; text-align: left; }
  .cg-live-project-pagination { align-items: stretch; flex-direction: column; }
  .cg-live-project-pagination .cg-actions { width: 100%; }
  .cg-live-project-pagination .cg-button { flex: 1 1 0; }
  .cg-live-project-header-actions { width: 100%; justify-content: stretch; }
  .cg-live-project-header-actions .cg-button { flex: 1 1 0; width: auto; }
  .cg-live-project-source-grid,
  .cg-live-project-task-grid,
  .cg-live-project-requirements .cg-form-grid { grid-template-columns: 1fr; }
  .cg-live-project-task-editor-header { flex-direction: column; }
  .cg-live-project-task-editor-header .cg-actions { width: 100%; }
  .cg-live-project-task-editor-header .cg-actions .cg-button { flex: 1 1 0; }
  .cg-live-project-selected-products { grid-template-columns: minmax(0, 1fr); }
  .cg-live-project-selected-product-summary { flex-wrap: nowrap; }
  .cg-live-project-form-actions { justify-content: stretch; }
  .cg-live-project-form-actions .cg-button { width: 100%; }
  .cg-live-project-analysis-option { flex-direction: column; }
  .cg-live-project-analysis-option .cg-actions { width: 100%; }
  .cg-live-project-analysis-option .cg-actions .cg-button { flex: 1 1 0; }
  .cg-live-analysis-progress-header { align-items: flex-start; flex-direction: column; }
  .cg-live-analysis-milestones { grid-auto-columns: 1fr; grid-auto-flow: row; gap: 10px; }
  .cg-live-analysis-milestone { grid-template-columns: 32px minmax(0, 1fr); justify-items: stretch; padding: 0; text-align: left; }
  .cg-live-analysis-milestone:not(:last-child)::after { top: 32px; left: 15px; width: 2px; height: calc(100% + 10px); }
  .cg-live-analysis-milestone-copy { align-self: center; }
  .cg-live-project-completion-confirm-actions { width: 100%; }
  .cg-live-project-completion-confirm-actions .cg-button { flex: 1 1 0; }
  .cg-live-project-delivery-filters { grid-template-columns: 1fr; }
  .cg-live-project-delivery-shop-header,
  .cg-live-project-delivery-item-header { flex-direction: column; }
  .cg-live-project-delivery-shop-header .cg-badge,
  .cg-live-project-delivery-item-header .cg-badge { flex-shrink: 0; }
  .cg-live-project-delivery-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-live-project-delivery-video { max-height: none; }
  .cg-live-project-delivery-actions,
  .cg-live-project-delivery-actions .cg-button { width: 100%; }
  .cg-live-project-delivery-pagination { align-items: stretch; flex-direction: column; }
  .cg-live-project-delivery-pagination .cg-actions { width: 100%; }
  .cg-live-project-delivery-pagination .cg-button { flex: 1 1 0; }
}

.cg-live-asset-filters,
.cg-live-asset-picker-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.cg-live-asset-actions { flex-wrap: nowrap; }
.cg-live-asset-actions .cg-button { min-height: 34px; padding: 6px 10px; white-space: nowrap; text-decoration: none; }
.cg-live-asset-actions .cg-button.is-disabled { pointer-events: none; opacity: .5; }
.cg-live-asset-reference-total { display: block; margin-top: 4px; white-space: nowrap; }
.cg-live-asset-upload-form { width: min(100%, 820px); }
.cg-live-asset-upload-form-compact { width: 100%; }
.cg-live-asset-upload-progress { padding: 12px; border: 1px solid var(--cg-shell-line); border-radius: var(--cg-shell-radius); background: var(--cg-shell-soft); }
.cg-live-asset-progress { display: grid; gap: 6px; min-width: 180px; }
.cg-live-asset-progress-compact { margin-top: 5px; min-width: 140px; }
.cg-live-asset-progress-label { color: var(--cg-shell-muted); font-size: 12px; line-height: 1.35; }
.cg-live-asset-progress.is-complete .cg-live-asset-progress-label { color: var(--cg-shell-success); }
.cg-live-asset-progress.is-failed .cg-live-asset-progress-label { color: var(--cg-shell-danger); }
.cg-live-asset-progress-bar { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 4px; background: var(--cg-shell-line); accent-color: var(--cg-shell-link); }
.cg-live-asset-progress.is-complete .cg-live-asset-progress-bar { accent-color: var(--cg-shell-success); }
.cg-live-asset-progress.is-failed .cg-live-asset-progress-bar { accent-color: var(--cg-shell-danger); }
.cg-live-asset-progress-bar::-webkit-progress-bar { border-radius: 4px; background: var(--cg-shell-line); }
.cg-live-asset-progress-bar::-webkit-progress-value { border-radius: 4px; background: var(--cg-shell-link); }
.cg-live-asset-progress.is-complete .cg-live-asset-progress-bar::-webkit-progress-value { background: var(--cg-shell-success); }
.cg-live-asset-progress.is-failed .cg-live-asset-progress-bar::-webkit-progress-value { background: var(--cg-shell-danger); }
.cg-live-asset-master-copy { min-width: min(100%, 280px); }
.cg-asset-dialog-overlay { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(24, 29, 38, .4); }
.cg-asset-dialog { width: min(760px, 100%); max-height: min(90vh, 820px); overflow: auto; padding: 24px; border: 1px solid var(--cg-shell-border-strong); border-radius: var(--cg-shell-radius); background: var(--cg-shell-surface); }
.cg-asset-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cg-asset-delete-dialog { width: min(520px, 100%); }
.cg-asset-delete-actions { justify-content: flex-end; margin-top: 18px; }
.cg-button.cg-danger { border-color: #d92d20; background: #d92d20; color: #fff; }
.cg-button.cg-danger:hover:not(:disabled) { border-color: #b42318; background: #b42318; color: #fff; }
.cg-live-asset-preview-video { display: block; width: 100%; max-height: 65vh; background: #111; }
.cg-live-asset-picker-list,
.cg-asset-reference-list { margin-top: 8px; }

@media (max-width: 960px) {
  .cg-live-project-future-placeholders .cg-form-grid,
  .cg-live-asset-filters,
  .cg-live-asset-picker-search { grid-template-columns: 1fr; }
  .cg-live-project-placeholder .cg-button,
  .cg-live-project-asset-tools .cg-button,
  .cg-live-asset-filters .cg-button,
  .cg-live-asset-picker-search .cg-button { width: 100%; }
  .cg-asset-dialog-overlay { padding: 12px; }
  .cg-asset-dialog { padding: 18px; }
  .cg-asset-dialog-header { flex-direction: column; }
  .cg-asset-dialog-header .cg-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-button { transition: none; }
}

/* Frozen analysis versions share the existing project workflow surface. */
.cg-version-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cg-version-row, .cg-version-confirm { border: 1px solid var(--cg-border, #dfe3e8); border-radius: 12px; padding: 16px; }
.cg-version-confirm { margin-top: 20px; background: var(--cg-surface, #f8fafc); }
.cg-version-video { width: 100%; max-height: 460px; background: #111827; border-radius: 12px; }
.cg-version-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.cg-version-items { max-height: 560px; overflow: auto; }
.cg-version-item { padding: 10px 0; border-bottom: 1px solid var(--cg-border, #dfe3e8); }
.cg-version-item p { margin: 0 0 6px; }
.cg-version-item button { margin: 0 6px 6px 0; }

.cg-live-delivery-store-group { display: grid; gap: 12px; }

/* Platform composition settings show the existing analysis path. */
.cg-composition-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.cg-composition-summary .cg-form-help { margin: 0; }
.cg-composition-boundary { margin: 0 0 22px; padding: 12px 16px; border-left: 3px solid var(--cg-shell-info); background: var(--cg-shell-soft); color: var(--cg-shell-muted); font-size: 13px; line-height: 1.8; }
.cg-composition-flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.cg-composition-node.cg-button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; min-height: 116px; padding: 13px 12px; text-align: left; white-space: normal; background: var(--cg-shell-surface); }
.cg-composition-node + .cg-composition-node::before { content: "›"; position: absolute; left: -9px; top: 43%; color: var(--cg-shell-muted); font-size: 16px; }
.cg-composition-node.is-active { border-color: var(--cg-shell-info); outline: 1px solid var(--cg-shell-info); background: var(--cg-shell-soft); }
.cg-composition-step { color: var(--cg-shell-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.cg-composition-node strong { color: var(--cg-shell-ink); font-size: 13px; line-height: 1.5; }
.cg-composition-node-kind { color: var(--cg-shell-muted); font-size: 11px; }
.cg-composition-node[data-composition-stage="compose"] .cg-composition-node-kind { color: var(--cg-shell-link); }
.cg-composition-io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.cg-composition-io > div { padding: 12px 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; background: var(--cg-shell-soft); }
.cg-composition-io-label { color: var(--cg-shell-muted); font-size: 11px; font-weight: 650; }
.cg-composition-io p { margin: 5px 0 0; color: var(--cg-shell-body); font-size: 13px; line-height: 1.65; }
.cg-composition-editor { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cg-shell-line); }
.cg-composition-enable { min-height: 30px; }
.cg-composition-prompt { width: 100%; min-height: 340px; resize: vertical; font: 14px/1.85 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.cg-composition-count { justify-self: end; color: var(--cg-shell-muted); font-size: 12px; }
.cg-composition-advanced { padding: 13px 15px; border: 1px solid var(--cg-shell-line); border-radius: 8px; }
.cg-composition-advanced > summary, .cg-composition-history > summary { color: var(--cg-shell-ink); cursor: pointer; font-size: 14px; }
.cg-composition-rules { padding-top: 16px; }
.cg-composition-rules input[type="number"] { max-width: 200px; }
.cg-composition-savebar { padding-top: 8px; }
.cg-composition-status { color: var(--cg-shell-muted); font-size: 12px; }
.cg-composition-history-row { padding: 16px 0; border-top: 1px solid var(--cg-shell-line); }
.cg-composition-history-row h4 { margin: 0; color: var(--cg-shell-ink); font-size: 14px; }
.cg-composition-history-row details { margin: 12px 0; color: var(--cg-shell-muted); font-size: 13px; }
.cg-composition-history-prompt { margin: 10px 0; padding: 14px; border-radius: 8px; background: var(--cg-shell-soft); white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
@media (max-width: 1200px) {
  .cg-composition-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cg-composition-node.cg-button { min-height: 100px; }
  .cg-composition-node + .cg-composition-node::before { content: none; }
}
@media (max-width: 640px) {
  .cg-composition-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-composition-io { grid-template-columns: 1fr; }
  .cg-composition-savebar { align-items: stretch; flex-direction: column; }
  .cg-composition-savebar > .cg-button { width: 100%; }
}

.cg-composition-debug-controls { display: flex; align-items: flex-end; gap: 12px; margin: 16px 0; }
.cg-composition-debug-controls > .cg-field { flex: 1; }
.cg-composition-debug-runs { display: grid; gap: 10px; margin-top: 18px; }
.cg-composition-debug-run { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--cg-shell-line); border-radius: 8px; }
.cg-composition-debug-run strong { color: var(--cg-shell-ink); font-size: 13px; }
.cg-composition-debug-run .cg-form-help { margin: 5px 0 0; }
@media (max-width: 640px) {
  .cg-composition-debug-controls, .cg-composition-debug-run { flex-direction: column; align-items: stretch; }
}

/* Queue updates do not replace the workspace, forms, or focused controls. */
.cg-upload-queue {
  flex: none;
  color: var(--cg-shell-body);
  font: 14px/1.5 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.cg-upload-queue *, .cg-upload-queue *::before, .cg-upload-queue *::after { box-sizing: border-box; }
.cg-upload-queue [hidden] { display: none !important; }
.cg-upload-trigger.cg-button { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 10px; border-color: transparent; background: var(--cg-shell-soft); color: var(--cg-shell-muted); }
.cg-upload-trigger .cg-icon { flex: none; width: 16px; height: 16px; }
.cg-upload-count { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-upload-queue-body {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 110;
  width: min(420px, calc(100vw - 48px));
  max-height: min(560px, calc(100dvh - 110px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--cg-shell-line);
  border-radius: 12px;
  background: var(--cg-shell-surface);
  box-shadow: 0 12px 32px #18261b18;
}
.cg-upload-summary { display: block; margin-bottom: 12px; }
.cg-upload-queue-status { margin: 0 0 10px; color: var(--cg-shell-muted); font-size: 12px; }
.cg-upload-list { padding: 0; margin: 12px 0; list-style: none; max-height: min(360px, 45dvh); overflow-y: auto; }
.cg-upload-item { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--cg-shell-line); }
.cg-upload-name { overflow-wrap: anywhere; font-weight: 500; }
.cg-upload-stage { color: var(--cg-shell-muted); font-size: 12px; }
.cg-upload-progress { display: block; width: 100%; height: 8px; accent-color: var(--cg-shell-info); }
.cg-upload-error { margin: 0; color: var(--cg-shell-danger); font-size: 12px; overflow-wrap: anywhere; }
.cg-upload-error:empty { display: none; }
.cg-upload-item[data-status="ready"] .cg-upload-stage { color: var(--cg-shell-success); }
.cg-upload-item[data-status="failed"] .cg-upload-stage { color: var(--cg-shell-danger); }
.cg-upload-queue .cg-actions { gap: 8px; margin: 0; }
.cg-upload-queue .cg-button { padding: 5px 10px; min-height: 30px; font-size: 12px; }
.cg-upload-queue .cg-form-help { margin-bottom: 0; }
@media (max-width: 760px) {
  .cg-upload-count { max-width: 100px; }
  .cg-upload-queue-body { max-height: min(480px, calc(100dvh - 200px)); }
}

/* Stable workspace shell aligned with the unified editor workspace. */
.cg-workspace {
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 100vh;
  color: #424b58;
  background: #f5f7fa;
  font: 13px/1.6 Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}
.cg-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 76px 104px minmax(0, 1fr);
  width: 224px;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 16px;
  background: #fff;
}
.cg-sidebar > .cg-brand { grid-column: 1; grid-row: 1; }
.cg-sidebar > .cg-sidebar-profile { grid-column: 1; grid-row: 2; min-width: 0; }
.cg-sidebar > .cg-nav { grid-column: 1; grid-row: 3; min-width: 0; }
.cg-brand { display: flex; align-items: center; height: 76px; padding: 0 23px; }
.cg-brand img { display: block; width: 178px; max-width: 100%; height: auto; max-height: 44px; object-fit: contain; }
.cg-workspace.is-ui-preview .cg-brand { position: relative; }
.cg-workspace.is-ui-preview .cg-brand img { width: 154px; }
.cg-preview-badge { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); display: inline-flex; min-height: 19px; align-items: center; padding: 1px 6px; border-radius: 5px; background: #b5ef43; color: #17321c; font-size: 9px; line-height: 17px; font-weight: 750; letter-spacing: .04em; }
.cg-sidebar-profile { display: flex; align-items: center; gap: 13px; padding: 24px; }
.cg-avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #d9f7e6, #a5e8d1); color: #215743; font-size: 12px; font-weight: 700; }
.cg-sidebar-avatar { width: 44px; height: 44px; }
.cg-sidebar-avatar .cg-icon { width: 23px; height: 23px; }
.cg-sidebar-profile-copy { display: grid; min-width: 0; gap: 3px; }
.cg-sidebar-profile-copy strong { overflow: hidden; color: #1c242b; font-size: 15px; font-weight: 650; letter-spacing: .3px; text-overflow: ellipsis; white-space: nowrap; }
.cg-sidebar-profile-copy small { overflow: hidden; color: #8c95a3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cg-nav { min-width: 0; min-height: 0; overflow: auto; padding: 0 15px; border: 0; background: #fff; }
.cg-nav-section + .cg-nav-section { margin-top: 18px; }
.cg-nav-group { margin: 0 10px 7px; color: #8d98a6; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.cg-nav .cg-button.cg-nav-item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; width: 100%; height: 49px; min-height: 49px; margin-bottom: 10px; padding: 0 16px; gap: 16px; border: 0; border-radius: 10px; background: transparent; color: #2b333e; font-size: 14px; font-weight: 500; text-align: left; }
.cg-nav-icon { display: grid; place-items: center; width: 22px; height: 22px; color: inherit; }
.cg-nav-icon .cg-icon { width: 22px; height: 22px; stroke-width: 1.45; }
.cg-nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-nav .cg-button.cg-nav-item:hover:not(.is-active) { background: #f7faf8; color: #25313a; }
.cg-nav .cg-button.cg-nav-item.is-active { background: linear-gradient(100deg, #f0ffdf, #ebfbe9); color: #159b3d; font-weight: 650; }
.cg-nav .cg-button.cg-nav-item.is-active::before { position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 4px; background: #61df6b; content: ""; }
.cg-nav .cg-button.cg-nav-item.is-placeholder::after { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #b7c2c8; content: ""; }
.cg-platform-coming-soon-page .cg-card { min-height: 220px; display: grid; align-content: center; }
.cg-shell-main { grid-column: 1 / -1; grid-row: 1; min-width: 0; min-height: 100vh; margin-left: 224px; }
.cg-header { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; height: 76px; min-height: 76px; padding: 0 26px; gap: 20px; border: 0; background: #fff; }
.cg-header-actions { position: relative; display: flex; align-items: center; gap: 20px; flex: none; }
.cg-header-divider { width: 1px; height: 22px; background: #eef0f3; }
.cg-icon-button { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 5px; border: 0; border-radius: 6px; background: transparent; color: #66717f; font-size: 18px; }
.cg-icon-button .cg-icon { display: block; width: 18px; height: 18px; }
.cg-header-account-copy { display: grid; min-width: 0; gap: 4px; text-align: left; }
.cg-header-account-copy strong { max-width: 150px; overflow: hidden; color: #25303a; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cg-header-account-copy small { color: #929cab; font-size: 10px; }
.cg-header-avatar { width: 34px; height: 34px; }
.cg-account-wrap { position: relative; display: flex; align-items: center; gap: 10px; flex: none; }
.cg-header-platform-select { width: 176px; min-height: 36px; padding: 7px 10px; border-radius: 8px; color: #556170; font-size: 11px; }
.cg-top-user.cg-button { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 3px 5px 3px 8px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; }
.cg-top-user.cg-button:hover:not(:disabled) { border-color: transparent; background: #f5faf6; color: inherit; }
.cg-top-user.cg-button:focus-visible { outline-offset: 3px; }
.cg-account-chevron { display: inline-grid; place-items: center; width: 18px; height: 18px; color: #929cab; font-size: 15px; line-height: 1; }
.cg-account-menu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 35; display: grid; gap: 14px; width: min(280px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; padding: 18px; border: 1px solid #e8edf0; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #18261b18; text-align: left; }
.cg-account-identity,
.cg-account-platform { display: grid; gap: 4px; overflow-wrap: anywhere; }
.cg-account-identity { padding-bottom: 14px; border-bottom: 1px solid #eef1f5; }
.cg-account-identity strong { color: #1c242b; font-size: 14px; }
.cg-account-identity small,
.cg-account-platform small { color: #929cab; font-size: 11px; }
.cg-account-platform strong { color: #424b58; font-size: 12px; font-weight: 500; }
.cg-account-menu .cg-platform-switch { display: grid; gap: 6px; margin: 0; }
.cg-account-menu .cg-platform-switch label { color: #929cab; font-size: 11px; }
.cg-account-menu .cg-platform-select { min-width: 0; max-width: 100%; font-size: 12px; }
.cg-account-status { margin: 0; color: #9a6700; font-size: 11px; }
.cg-account-menu .cg-account-logout { width: 100%; min-height: 38px; padding: 10px 12px; border: 0; border-radius: 7px; background: #f5f8f7; color: #424b58; text-align: left; }
.cg-account-menu .cg-account-logout:hover:not(:disabled) { border-color: transparent; background: #edf7ef; color: #424b58; }
.cg-main { width: 100%; max-width: none; min-height: calc(100vh - 76px); margin: 0; padding: 22px; }
.cg-page { display: grid; gap: 24px; width: 100%; max-width: none; margin: 0; }
.cg-page-header { min-height: 58px; gap: 24px; margin-bottom: 0; }
.cg-page-title { color: #1c242b; font-size: 27px; line-height: 1.25; font-weight: 680; letter-spacing: .5px; }
.cg-page-detail { max-width: 780px; margin-top: 7px; color: #929cab; font-size: 13px; line-height: 1.6; }
.cg-page > .cg-card,
.cg-page > .cg-state,
.cg-page > .cg-summary-more { margin-bottom: 0; }
.cg-page > .cg-card,
.cg-page > .cg-state,
.cg-page > .cg-summary-more { width: 100%; }
.cg-card { padding: 22px; border-color: #edf1f4; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #23334405; }
.cg-card-title { margin-bottom: 16px; color: #222d38; font-size: 16px; line-height: 1.4; font-weight: 650; }
.cg-form { gap: 16px; }
.cg-field { gap: 7px; }
.cg-field-label { color: #7e8999; font-size: 12px; font-weight: 600; }
.cg-input { border-color: #e9edf2; border-radius: 8px; }
.cg-input:focus-visible { border-color: #54c966; outline: 0; box-shadow: 0 0 0 3px rgb(84 201 102 / 14%); }
.cg-master-grid { gap: 18px; }
.cg-list { gap: 0; }
.cg-list-row { min-height: 64px; padding: 15px 0; border-color: #f2f4f7; }
.cg-list-main { min-width: 0; color: #33404e; }
.cg-list-meta { color: #9ca5b2; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.cg-state { padding: 16px 18px; border-color: #edf1f4; border-radius: 10px; background: #fbfcfd; }
.cg-state-title { color: #33404e; font-size: 16px; line-height: 1.4; font-weight: 600; }
.cg-state-detail { color: #929cab; font-size: 12px; line-height: 1.7; }
.cg-shortcut-grid { gap: 16px; }
.cg-shortcut { padding: 18px; border-color: #edf1f4; border-radius: 10px; background: #f8fafb; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cg-shortcut:hover { border-color: #dcefe0; box-shadow: 0 7px 20px #23334408; transform: translateY(-2px); }
.cg-shortcut-link { color: #1674bd; font-size: 16px; line-height: 1.4; }
.cg-shortcut-detail { min-height: 44px; color: #929cab; }
.cg-shortcut-count { color: #202a35; font-size: 13px; }
.cg-status-metrics { gap: 16px; }
.cg-status-metric { padding: 18px; border-color: #edf1f4; border-radius: 10px; background: #f8fafb; }
.cg-status-metric-label { color: #929cab; font-size: 11px; }
.cg-status-metric-value { color: #202a35; font-size: 25px; font-weight: 650; }

/* Current editor-workspace dashboard language, applied to the platform-admin
   overview without changing its role-specific data or navigation. */
.cg-platform-dashboard { display: block; min-height: calc(100vh - 120px); }
.cg-platform-dashboard-layout { display: grid; min-height: calc(100vh - 120px); gap: 20px; }
.cg-platform-dashboard-primary,
.cg-platform-dashboard-secondary { min-width: 0; }
.cg-platform-dashboard-primary { display: grid; grid-template-rows: auto auto minmax(320px, 1fr); align-content: stretch; gap: 20px; min-height: 0; }
.cg-platform-dashboard-secondary { display: flex; min-height: 0; flex-direction: column; gap: 20px; }
.cg-platform-dashboard-welcome { position: relative; display: flex; align-items: center; min-height: 190px; overflow: hidden; padding: 28px 32px; border: 2px solid #d8eedc; border-radius: 24px; background: radial-gradient(ellipse at 92% 18%, #e4ffd5 0, transparent 42%), radial-gradient(ellipse at 82% 110%, #d8fbd0 0, transparent 48%), linear-gradient(105deg, #f3fff7 0%, #eefcf2 54%, #e7fbdc 100%); box-shadow: 0 10px 26px #2b974512; }
.cg-platform-dashboard-welcome-copy { position: relative; z-index: 2; max-width: 62%; }
.cg-platform-dashboard-welcome h1 { margin: 0 0 10px; color: #10351f; font-size: clamp(28px, 2.1vw, 42px); line-height: 1.18; font-weight: 750; letter-spacing: .02em; }
.cg-platform-dashboard-welcome p { margin: 0 0 10px; color: #12623b; font-size: clamp(17px, 1.35vw, 28px); line-height: 1.4; font-weight: 700; letter-spacing: .02em; }
.cg-platform-dashboard-welcome span { display: block; color: #6e8580; font-size: clamp(12px, .95vw, 18px); line-height: 1.6; letter-spacing: .03em; }
.cg-platform-dashboard-welcome img { position: absolute; z-index: 1; right: -5%; bottom: -10%; width: 102%; height: 118%; max-width: none; object-fit: contain; object-position: right bottom; pointer-events: none; }
.cg-platform-dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cg-platform-dashboard-metric { display: flex; position: relative; align-items: flex-start; gap: 16px; min-width: 0; min-height: 121px; padding: 23px 20px; border: 1px solid #fff; border-radius: 13px; background: #fff; color: #424b58; text-align: left; box-shadow: 0 5px 20px #23334402; transition: transform .16s, box-shadow .16s; }
.cg-platform-dashboard-metric:hover { transform: translateY(-2px); box-shadow: 0 7px 20px #27394008; }
.cg-platform-dashboard-metric-icon { display: grid; flex: none; place-items: center; width: 43px; height: 43px; border-radius: 11px; color: #fff; font-size: 21px; font-weight: 700; box-shadow: inset 0 2px 4px #ffffff45; }
.cg-platform-dashboard-metric-icon .cg-icon { width: 22px; height: 22px; }
.cg-platform-dashboard-metric-icon.green { background: linear-gradient(140deg, #90e889, #51cf61); }
.cg-platform-dashboard-metric-icon.blue { background: linear-gradient(135deg, #65abff, #367eff); }
.cg-platform-dashboard-metric-icon.purple { background: linear-gradient(135deg, #ce83ff, #a851ed); }
.cg-platform-dashboard-metric-copy { display: grid; min-width: 0; gap: 3px; }
.cg-platform-dashboard-metric-label { color: #556171; font-size: 14px; }
.cg-platform-dashboard-metric-copy strong { color: #202a35; font-size: 25px; line-height: 1.35; font-weight: 650; }
.cg-platform-dashboard-metric-copy small { margin-top: 4px; color: #9ca5b2; font-size: 10px; }
.cg-platform-dashboard-chevron { position: absolute; top: 22px; right: 15px; color: #a5afbc; font-size: 23px; line-height: 1; }
.cg-platform-dashboard-card { min-width: 0; margin: 0; border-color: #edf1f4; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #23334405; }
.cg-platform-dashboard-card > .cg-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.cg-platform-dashboard-card > .cg-card-title .cg-icon { width: 21px; height: 21px; color: #409845; }
.cg-platform-dashboard-preview { display: flex; min-height: 0; flex-direction: column; }
.cg-platform-dashboard-preview-body { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 16px; }
.cg-platform-dashboard-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(92px, 1fr); align-content: stretch; gap: 12px; }
.cg-platform-dashboard-preview-item { display: flex; min-width: 0; min-height: 92px; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid #edf1f4; border-radius: 11px; background: #fbfcfd; }
.cg-platform-dashboard-preview-copy { min-width: 0; }
.cg-platform-dashboard-preview-copy strong { display: block; overflow: hidden; color: #26323d; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.cg-platform-dashboard-preview-copy p { margin: 5px 0 7px; color: #8c97a5; font-size: 11px; line-height: 1.55; }
.cg-platform-dashboard-preview-copy small { color: #66717f; font-size: 11px; }
.cg-platform-dashboard-preview-item .cg-button { flex: none; min-height: 30px; padding: 5px 11px; border: 1px solid #dfe5ea; background: #fff; color: #4d5b69; font-size: 11px; }
.cg-platform-dashboard-preview-item .cg-button:hover { border-color: #b8dfc0; color: #16853c; }
.cg-platform-dashboard-shortcuts { min-height: 320px; }
.cg-platform-dashboard-shortcuts .cg-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cg-platform-dashboard-shortcuts .cg-shortcut { padding: 16px; border-radius: 10px; }
.cg-platform-dashboard-side-card { width: 100%; }
.cg-platform-dashboard-activity { min-height: 300px; flex: 1 1 auto; }
.cg-editor-dashboard { display: block; min-height: calc(100vh - 120px); }
.cg-editor-card-header { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.cg-editor-card-header-lead { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; min-width: 0; }
.cg-editor-card-header-icon { display: inline-flex; flex: 0 0 auto; width: 22px; height: 22px; color: #409845; }
.cg-editor-card-header-icon .cg-icon { width: 22px; height: 22px; }
.cg-editor-card-header-lead .cg-card-title { margin: 0; }
.cg-editor-card-count { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #eef7ec; color: #409845; font-size: 12px; font-weight: 650; white-space: nowrap; }
.cg-card .cg-editor-card-link { margin-left: 8px; padding: 4px 2px; border: 0; background: transparent; color: #409845; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cg-card .cg-editor-card-link:hover:not(:disabled) { border: 0; background: transparent; color: #2f7a35; text-decoration: underline; }
.cg-platform-dashboard-metric-trend { color: #409845; font-size: 11px; font-weight: 600; }
.cg-platform-dashboard-metric-trend.is-down { color: #d2504a; }
.cg-editor-project-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.cg-editor-project-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cg-editor-project-hero-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #eef2ea; color: #409845; overflow: hidden; }
.cg-editor-project-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cg-editor-project-hero-frame .cg-icon { width: 34px; height: 34px; }
.cg-editor-project-hero-label { position: absolute; bottom: 34px; color: #929cab; font-size: 12px; }
.cg-editor-project-hero-ratio { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #6b7688; font-size: 11px; }
.cg-editor-project-info > .cg-editor-card-header { margin-bottom: 10px; }
.cg-editor-project-info .cg-live-project-analysis-subtitle { margin: 12px 0 0; }
.cg-editor-stage-stepper { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 18px; padding: 16px 10px 12px; border: 1px solid #e8ecef; border-radius: 12px; background: #fbfcfa; }
.cg-editor-stage { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.cg-editor-stage::before { content: ""; position: absolute; top: 13px; right: calc(50% + 16px); width: calc(100% - 32px); height: 2px; background: #dfe5e1; }
.cg-editor-stage:first-child::before { content: none; }
.cg-editor-stage.is-done::before { background: #409845; }
.cg-editor-stage-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e8ecef; color: #929cab; font-size: 12px; font-weight: 650; }
.cg-editor-stage.is-done .cg-editor-stage-dot { background: #409845; color: #fff; }
.cg-editor-stage.is-current .cg-editor-stage-dot { background: #fff; border: 2px solid #409845; color: #409845; }
.cg-editor-stage-label { color: #929cab; font-size: 12px; white-space: nowrap; }
.cg-editor-stage.is-done .cg-editor-stage-label { color: #202a35; font-weight: 600; }
.cg-editor-stage.is-current .cg-editor-stage-label { color: #409845; font-weight: 650; }
.cg-editor-project-actions { margin-top: 16px; }
.cg-editor-project-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.cg-editor-product-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cg-editor-product-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e8ecef; border-radius: 10px; background: #fbfcfa; }
.cg-editor-product-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: #eef2ea; color: #409845; }
.cg-editor-product-icon .cg-icon { width: 17px; height: 17px; }
.cg-editor-product-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.cg-editor-product-name { overflow: hidden; color: #202a35; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cg-editor-product-meta { color: #929cab; font-size: 12px; }
.cg-editor-product-copy small { overflow: hidden; color: #b3bcc9; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
/* Platform project details use soft groups, not a ruled metadata table. */
.cg-platform-project-detail .cg-editor-project-top,
.cg-platform-project-detail .cg-editor-project-bottom { gap: 16px; }
.cg-platform-project-detail .cg-editor-project-hero { align-self: start; }
.cg-platform-project-detail .cg-editor-project-info { display: flex; min-width: 0; flex-direction: column; }
.cg-platform-project-detail .cg-editor-stage-stepper { flex: 0 0 auto; margin: 12px 0 20px; border: 0; background: #f6faf6; }
.cg-project-detail-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.cg-project-detail-group { min-width: 0; padding: 18px; border-radius: 12px; background: #f6f8fa; }
.cg-project-detail-group > h4 { margin: 0 0 16px; color: #354353; font-size: 13px; font-weight: 650; }
.cg-project-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; border: 0; }
.cg-project-detail-field { min-width: 0; }
.cg-project-detail-field > dt { margin: 0 0 6px; padding: 0; border: 0; color: #8793a3; font-size: 11px; line-height: 1.5; }
.cg-project-detail-field > dd { margin: 0; padding: 0; border: 0; color: #354353; font-size: 13px; line-height: 1.65; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cg-project-detail-references { grid-column: 1 / -1; min-width: 0; padding: 14px 18px; border-radius: 10px; background: #fafbfc; }
.cg-project-detail-references > summary { color: #7b8796; font-size: 12px; cursor: pointer; }
.cg-project-detail-references > summary:focus-visible { outline: 2px solid #51bb66; outline-offset: 4px; border-radius: 4px; }
.cg-project-detail-references > .cg-project-detail-fields { margin-top: 16px; }
.cg-platform-project-detail .cg-analysis-source-subtitle { margin-top: 16px; padding: 16px 18px; border: 0; border-radius: 12px; background: #f6f8fa; }
.cg-platform-project-detail .cg-analysis-source-subtitle > .cg-live-project-analysis-subtitle { margin: 0 0 7px; font-size: 13px; }
.cg-platform-project-detail .cg-analysis-source-subtitle .cg-form-help { margin: 0 0 8px; color: #8793a3; font-size: 11px; }
.cg-platform-project-detail .cg-analysis-source-subtitle .cg-list-meta { color: #657286; font-size: 12px; }
.cg-platform-project-detail .cg-editor-project-actions { justify-content: flex-end; margin-top: 18px; }
.cg-platform-project-detail .cg-editor-project-bottom .cg-state { display: grid; min-height: 132px; align-content: center; justify-items: center; gap: 5px; border: 0; border-radius: 12px; background: #f6f8fa; text-align: center; }
.cg-platform-project-detail .cg-editor-product-row { border: 0; background: #f6f8fa; }
@media (max-width: 1200px) {
  .cg-project-detail-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cg-project-detail-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cg-platform-project-detail .cg-page-header { flex-wrap: wrap; }
  .cg-platform-project-detail .cg-page-header > .cg-button { margin-left: auto; }
  .cg-platform-project-detail .cg-editor-stage-label { font-size: 10px; white-space: normal; text-align: center; }
}
@media (max-width: 900px) {
  .cg-editor-project-top { grid-template-columns: minmax(0, 1fr); }
  .cg-editor-project-hero { flex-direction: row; justify-content: flex-start; }
  .cg-editor-project-hero-thumb { width: 132px; }
  .cg-editor-project-bottom { grid-template-columns: minmax(0, 1fr); }
}
.cg-workspace.is-editor .cg-page-header .cg-page-title { font-size: 27px; }
.cg-workspace.is-editor .cg-page-header { min-height: 48px; }
.cg-platform-coming-soon-page { grid-template-rows: auto minmax(0, 1fr); min-height: calc(100vh - 120px); }
.cg-platform-coming-soon-card { display: grid; place-items: center; min-height: min(640px, calc(100vh - 230px)); width: 100%; margin: 0; padding: 48px; border: 1px solid #edf1f4; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #23334405; }
.cg-platform-coming-soon-content { display: flex; align-items: flex-start; gap: 18px; width: min(620px, 100%); }
.cg-platform-coming-soon-icon { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border: 1px solid #cce8cf; border-radius: 14px; background: #f0ffdf; color: #159b3d; font-size: 25px; line-height: 1; }
.cg-platform-coming-soon-copy strong { display: block; color: #1c242b; font-size: 20px; line-height: 30px; font-weight: 650; }
.cg-platform-coming-soon-copy p { margin: 8px 0 14px; color: #929cab; line-height: 22px; }
.cg-platform-coming-soon-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border-radius: 6px; background: #f0ffdf; color: #249642; font-size: 10px; font-weight: 700; letter-spacing: .08em; }

/* Resource and solution pages stay inside the viewport. Dense data keeps its
   own scroll region so the shell, title and actions remain visible. */
.cg-template-list-page,
.cg-live-asset-page,
.cg-master-data-page { display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 120px); overflow: hidden; }
.cg-template-list-page,
.cg-live-asset-library-page { height: calc(100vh - 120px); }
.cg-template-list-page > .cg-card { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.cg-live-asset-page > .cg-live-asset-filters { flex: 0 0 auto; margin-bottom: 0; }
.cg-live-asset-page > .cg-card { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.cg-live-asset-page > .cg-card > .cg-state { display: grid; flex: 1 1 auto; align-content: center; }
.cg-live-asset-page .cg-live-project-pagination { flex: 0 0 auto; }
.cg-resource-card { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; padding: 18px; }
.cg-resource-card > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 12px; }
.cg-resource-card > .cg-card-title .cg-icon { width: 19px; height: 19px; color: #409845; }
.cg-resource-card > .cg-live-asset-filters { flex: 0 0 auto; margin: 0 0 12px; }
.cg-resource-card-body { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; overflow: auto; }
.cg-resource-card-body > .cg-state { display: grid; flex: 1 1 auto; min-height: 100%; place-content: center; justify-items: center; margin: 0; text-align: center; }
.cg-resource-card-body > .cg-state .cg-state-detail { max-width: 420px; }
.cg-resource-card-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; min-height: 52px; gap: 12px; padding-top: 10px; }
.cg-resource-card-footer > .cg-live-project-pagination { justify-content: flex-end; margin: 0; }
.cg-resource-card-footer > .cg-live-project-pagination .cg-actions { justify-content: flex-end; }
/* Footage uses the editor workspace's compact cards, with metadata above a
   pinned action row. Only the library body scrolls on desktop. */
.cg-live-asset-library-card { --cg-shell-line: #e8edf3; }
.cg-live-asset-library-card > .cg-live-asset-library-filters { grid-template-columns: minmax(180px, 1fr) minmax(180px, 280px) auto auto; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--cg-shell-line); }
.cg-live-asset-library-filters .cg-field { min-width: 0; margin: 0; }
.cg-live-asset-library-filters .cg-button { min-height: 40px; }
.cg-live-asset-library-filters > .cg-field > .cg-input,
.cg-live-asset-library-filters > .cg-button { min-height: 56px; }
.cg-streamer-picker-field { display: flex; flex-direction: column; gap: 6px; }
.cg-streamer-picker-field .cg-streamer-picker-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; text-align: left; background: #fff; border: 1px solid #e8edf3; }
.cg-streamer-picker-trigger[aria-expanded="true"] { border-color: #80ce87; box-shadow: 0 0 0 3px #edf9ef; }
.cg-streamer-picker-avatar { position: relative; display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; background: #dff4e8; color: #347556; font-size: 18px; font-weight: 600; }
.cg-streamer-picker-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-streamer-picker-avatar .cg-icon { width: 22px; height: 22px; }
.cg-streamer-picker-trigger .cg-streamer-picker-avatar { flex-basis: 32px; width: 32px; height: 32px; font-size: 14px; }
.cg-streamer-picker-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; line-height: 1.4; }
.cg-streamer-picker-copy strong { color: #28333e; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cg-streamer-picker-copy small { color: #8693a3; font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }
.cg-streamer-picker-trigger .cg-streamer-picker-account { display: none; }
.cg-streamer-picker-chevron { flex: 0 0 16px; width: 16px; height: 16px; color: #8795a6; transition: transform .15s; }
.cg-streamer-picker-trigger[aria-expanded="true"] .cg-streamer-picker-chevron { transform: rotate(180deg); }
.cg-streamer-picker-panel { display: flex; flex: 0 0 auto; flex-direction: column; gap: 12px; min-height: 0; max-height: min(360px, 45vh); margin-bottom: 16px; padding: 16px; overflow: hidden; border: 1px solid #e2ece5; border-radius: 12px; background: #f8fbf9; }
.cg-streamer-picker-panel[hidden], .cg-streamer-choice[hidden], .cg-streamer-picker-empty[hidden] { display: none; }
.cg-streamer-picker-header { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 12px; }
.cg-streamer-picker-header h4 { margin: 0; color: #28333e; font-size: 14px; font-weight: 650; }
.cg-streamer-picker-header p { margin: 4px 0 0; color: #8693a3; font-size: 12px; }
.cg-streamer-picker-header .cg-button { flex: 0 0 auto; }
.cg-streamer-picker-search { flex: 0 0 auto; }
.cg-streamer-picker-search .cg-field { margin: 0; }
.cg-streamer-picker-search .cg-field-label { display: none; }
.cg-streamer-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; min-height: 0; padding: 3px; overflow: auto; overscroll-behavior: contain; }
.cg-streamer-choice { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 78px; padding: 12px; border: 1px solid #e6ecf0; border-radius: 10px; background: #fff; cursor: pointer; }
.cg-streamer-choice > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cg-streamer-choice:hover { border-color: #a2d8ab; }
.cg-streamer-choice:has(input:checked) { border-color: #70ca7c; background: #f1fced; }
.cg-streamer-choice:focus-within { outline: 2px solid #329f47; outline-offset: 1px; }
.cg-streamer-choice-check { flex: 0 0 16px; width: 16px; height: 16px; color: #2bac41; visibility: hidden; }
.cg-streamer-choice:has(input:checked) .cg-streamer-choice-check { visibility: visible; }
.cg-streamer-picker-empty { flex: 0 0 auto; margin: 0; padding: 8px; text-align: center; color: #8693a3; font-size: 12px; }
.cg-live-asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-content: start; align-items: stretch; gap: 16px; padding: 2px; }
.cg-live-asset-tile { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--cg-shell-line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cg-live-asset-tile:hover, .cg-live-asset-tile:focus-within { border-color: #b8dfbd; box-shadow: 0 4px 16px rgba(31, 76, 45, .05); }
.cg-live-asset-tile-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.cg-live-asset-tile-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 52px; border-radius: 12px; background: #edf8ef; color: #409845; }
.cg-live-asset-tile-icon .cg-icon { width: 25px; height: 25px; }
.cg-live-asset-tile-copy { min-width: 0; }
.cg-live-asset-tile-name { margin: 0 0 8px; color: var(--cg-shell-ink); font-size: 15px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.cg-live-asset-streamer { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 8px; border-radius: 6px; color: #34803d; background: #f0f9ef; font-size: 12px; line-height: 18px; }
.cg-live-asset-streamer .cg-icon { flex: 0 0 14px; width: 14px; height: 14px; }
.cg-live-asset-streamer > span { min-width: 0; overflow-wrap: anywhere; }
.cg-live-asset-streamer.is-unbound { background: #f2f4f7; color: var(--cg-shell-muted); }
.cg-live-asset-tile > .cg-live-asset-progress { min-width: 0; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--cg-shell-soft); }
.cg-live-asset-tile .cg-live-asset-progress-label { overflow-wrap: anywhere; }
.cg-live-asset-tile .cg-live-asset-progress.is-complete .cg-live-asset-progress-bar { display: none; }
.cg-live-asset-tile-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.cg-live-asset-tile-metadata > div { min-width: 0; }
.cg-live-asset-tile-metadata dt { margin-bottom: 5px; color: var(--cg-shell-muted); font-size: 12px; }
.cg-live-asset-tile-metadata dd { margin: 0; color: var(--cg-shell-body); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.cg-live-asset-tile-metadata > .is-wide { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; grid-column: 1 / -1; }
.cg-live-asset-tile-metadata > .is-wide dt { flex: 0 0 auto; margin: 0; }
.cg-live-asset-tile-metadata > .is-wide dd { min-width: 0; text-align: right; }
.cg-live-asset-tile-metadata .cg-button { min-height: 0; padding: 0; border: 0; background: transparent; color: #34803d; font-size: 13px; }
.cg-live-asset-tile .cg-live-asset-reference-total { margin-top: 2px; white-space: normal; }
.cg-live-asset-tile > .cg-live-asset-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--cg-shell-line); }
.cg-live-asset-tile [data-live-asset-delete-id] { color: var(--cg-shell-muted); }
.cg-live-asset-tile [data-live-asset-delete-id]:hover:not(:disabled) { color: var(--cg-shell-danger); }
.cg-live-asset-empty-icon { width: 40px; height: 40px; margin-bottom: 14px; color: #8ebf96; }
@media (min-width: 981px) and (min-height: 801px) {
  .cg-u-shell .cg-main:has(> .cg-live-asset-library-page) { display: flex; flex-direction: column; height: calc(100dvh - 76px); min-height: 0; }
  .cg-u-shell .cg-page.cg-live-asset-library-page { flex: 1 1 auto; height: auto; min-height: 0; }
}
@media (min-width: 1900px) and (min-height: 801px) {
  .cg-u-shell .cg-main:has(> .cg-live-asset-library-page) { height: calc(100dvh - 84px); }
}
@media (max-width: 1000px) {
  .cg-live-asset-library-card > .cg-live-asset-library-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; }
}
@media (max-width: 700px) {
  .cg-live-asset-library-card > .cg-live-asset-library-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cg-live-asset-grid { grid-template-columns: minmax(0, 1fr); }
  .cg-live-asset-tile { padding: 16px; }
}
.cg-live-asset-library-card > .cg-resource-card-footer { flex-wrap: wrap; }
.cg-live-asset-oss-import-host { flex: 0 0 auto; min-height: 0; max-height: min(45vh, 360px); overflow: auto; }
.cg-u-shell .cg-main:has(> .cg-live-asset-library-page .cg-live-asset-oss-import:not([hidden])) { height: auto; }
.cg-u-shell .cg-page.cg-live-asset-library-page:has(.cg-live-asset-oss-import:not([hidden])) { height: auto; min-height: 0; overflow: visible; }
.cg-live-asset-library-card:has(.cg-live-asset-oss-import:not([hidden])) > .cg-resource-card-body { flex: 1 0 auto; min-height: 280px; max-height: 65vh; overflow: auto; }
.cg-live-asset-oss-import { padding: 12px 0; border-block: 1px solid var(--cg-shell-line); }
.cg-live-asset-oss-import[hidden] { display: none; }
.cg-live-asset-oss-import h3 { margin: 0 0 8px; font-size: 14px; }
.cg-oss-auto-preparation { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cg-shell-line); min-width: 0; }
.cg-oss-auto-preparation[hidden], .cg-oss-auto-settings[hidden] { display: none; }
.cg-oss-auto-settings > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.cg-oss-auto-form { display: grid; gap: 12px; min-width: 0; padding: 8px 0; }
.cg-oss-auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; min-width: 0; }
.cg-oss-auto-grid .cg-field { min-width: 0; }
.cg-oss-auto-grid .cg-input { width: 100%; min-width: 0; box-sizing: border-box; }
.cg-oss-auto-check { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
.cg-oss-auto-check input { flex: 0 0 auto; margin-top: 3px; }
.cg-oss-auto-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--cg-shell-line); overflow-wrap: anywhere; }
.cg-oss-auto-run > .cg-form-help { flex-basis: 100%; margin: 0; }
.cg-oss-auto-form > .cg-button { justify-self: start; max-width: 100%; white-space: normal; }
.cg-oss-source-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cg-oss-source-heading h3 { margin: 0; }
.cg-oss-source-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--cg-shell-line); overflow-wrap: anywhere; }
.cg-oss-source-info { display: flex; flex: 1 1 220px; min-width: 0; flex-direction: column; gap: 4px; }
.cg-oss-source-row > .cg-form-help { flex-basis: 100%; }
.cg-live-asset-oss-import [data-oss-sources-more][hidden] { display: none; }
.cg-oss-import-job { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--cg-shell-line); overflow-wrap: anywhere; }
.cg-oss-import-job > .cg-form-help { flex-basis: 100%; }
.cg-template-list-card .cg-list-row { min-height: 64px; padding: 13px 0; }
.cg-live-asset-upload-page { height: calc(100vh - 120px); }
.cg-live-asset-upload-card > .cg-live-asset-upload-form {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  align-content: stretch;
  gap: 16px 18px;
  overflow: auto;
  padding: 6px 2px 76px;
}
.cg-live-asset-upload-card .cg-live-asset-upload-file-field,
.cg-live-asset-upload-card .cg-live-asset-upload-name-field,
.cg-live-asset-upload-card .cg-live-asset-upload-note-field,
.cg-live-asset-upload-card .cg-live-asset-upload-streamer-field { min-width: 0; padding: 18px; border: 1px solid #edf1f4; border-radius: 12px; background: #fbfcfd; }
.cg-live-asset-upload-card .cg-live-asset-upload-file-field { grid-column: 1 / 7; grid-row: 1 / 4; place-content: center; justify-items: center; padding: 30px; border-style: dashed; border-color: #cfe6d3; background: linear-gradient(145deg, #fbfffb, #f5fbf6); text-align: center; }
.cg-live-asset-upload-card .cg-live-asset-upload-name-field { grid-column: 7 / -1; grid-row: 1; }
.cg-live-asset-upload-card .cg-live-asset-upload-streamer-field { grid-column: 7 / -1; grid-row: 2; }
.cg-live-asset-upload-card .cg-live-asset-upload-note-field { display: grid; grid-column: 7 / -1; grid-row: 3; grid-template-rows: auto minmax(0, 1fr); }
.cg-live-asset-upload-file-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 15px; background: #e5f7e8; color: #3fa250; }
.cg-live-asset-upload-file-icon .cg-icon { width: 27px; height: 27px; }
.cg-live-asset-upload-card .cg-live-asset-upload-file-field input[type="file"] { width: min(100%, 520px); padding: 12px; background: #fff; }
.cg-live-asset-upload-card .cg-live-asset-upload-guidance { max-width: 480px; margin-top: 8px; }
.cg-live-asset-upload-card .cg-live-asset-upload-progress,
.cg-live-asset-upload-card .cg-inline-status,
.cg-live-asset-upload-card .cg-actions { grid-column: 1 / -1; }
.cg-live-asset-upload-card textarea.cg-input { height: 100%; min-height: 150px; }
.cg-live-asset-upload-card .cg-form-help,
.cg-live-asset-upload-card .cg-inline-status { text-align: center; }
.cg-live-asset-upload-card .cg-live-asset-upload-progress { width: min(680px, 100%); justify-self: center; }
.cg-live-asset-upload-card .cg-actions { position: absolute; right: 18px; bottom: 18px; left: 18px; justify-content: flex-end; padding-top: 12px; border-top: 1px solid #eef1f4; }
.cg-live-asset-upload-card .cg-actions .cg-button { min-height: 38px; }
.cg-master-data-page { height: calc(100vh - 120px); }
.cg-master-data-dashboard {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(190px, .42fr) minmax(auto, 360px) minmax(320px, 1.3fr);
  min-height: 0;
  gap: 16px;
  overflow: hidden;
}
.cg-master-data-summary-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; min-height: 0; gap: 16px; }
.cg-master-data-card { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; }
.cg-master-data-card > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 12px; }
.cg-master-data-card > .cg-card-title .cg-icon { width: 19px; height: 19px; color: #409845; }
.cg-master-data-summary-card { display: flex; flex-direction: column; padding: 17px 18px; }
.cg-master-data-summary-card > .cg-list { min-height: 0; overflow: auto; }
.cg-master-data-summary-card .cg-list-row { min-height: 46px; padding: 8px 0; }
.cg-master-data-summary-card > .cg-state { display: grid; flex: 1 1 auto; place-content: center; justify-items: center; min-height: 0; margin: 0; padding: 11px 13px; text-align: center; }
.cg-master-data-streamer-card { grid-column: 1 / 7; }
.cg-master-data-upload-card { grid-column: 7 / -1; }
.cg-master-data-platform-library { grid-column: 1 / 7; }
.cg-master-data-general-library { grid-column: 7 / -1; }
.cg-master-data-action-card,
.cg-master-data-library-card { display: flex; flex-direction: column; padding: 18px; }
.cg-master-data-action-card > .cg-master-form { display: grid; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; align-content: start; gap: 10px 14px; overflow: auto; padding: 0 2px 52px 0; }
.cg-master-data-action-card > .cg-master-form > .cg-checkbox-field,
.cg-master-data-action-card > .cg-master-form > .cg-form-help,
.cg-master-data-action-card > .cg-master-form > .cg-live-asset-upload-progress,
.cg-master-data-action-card > .cg-master-form > .cg-inline-status,
.cg-master-data-action-card > .cg-master-form > .cg-actions { grid-column: 1 / -1; }
.cg-master-data-action-card .cg-field { gap: 5px; }
.cg-master-data-action-card .cg-input { min-height: 38px; padding-block: 8px; }
.cg-master-data-action-card .cg-form-help { font-size: 10px; line-height: 1.5; text-align: center; }
.cg-master-data-action-card .cg-inline-status { min-height: 0; text-align: center; }
.cg-master-data-action-card > .cg-master-form > .cg-actions { position: absolute; right: 18px; bottom: 18px; justify-content: flex-end; }
.cg-master-data-action-card .cg-button { min-height: 34px; padding: 7px 13px; }
.cg-master-data-library-card > .cg-form-help { flex: 0 0 auto; font-size: 10px; line-height: 1.5; text-align: center; }
.cg-master-data-library-card > .cg-live-asset-filters { flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; margin: 8px 0 10px; }
.cg-master-data-library-card > .cg-live-asset-filters .cg-field { gap: 4px; }
.cg-master-data-library-card > .cg-live-asset-filters .cg-input { min-height: 36px; padding-block: 7px; }
.cg-master-data-library-card > .cg-live-asset-filters .cg-button,
.cg-master-data-card-footer .cg-button { min-height: 36px; padding: 7px 12px; }
.cg-master-data-list-region { flex: 1 1 auto; min-height: 0; overflow: auto; }
.cg-master-data-list-region > .cg-state { display: grid; min-height: 100%; place-content: center; justify-items: center; margin: 0; text-align: center; }
.cg-master-data-list-region .cg-list-row { min-height: 48px; padding: 8px 0; }
.cg-master-data-card .cg-state-detail { max-width: 420px; }
.cg-master-data-card-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; min-height: 44px; gap: 9px; padding-top: 8px; }
.cg-master-data-card-footer > .cg-actions { justify-content: flex-end; }
.cg-master-entry-card { display: flex; flex-direction: column; gap: 7px; padding: 13px 18px 12px; }
.cg-master-entry-count-row { display: flex; align-items: baseline; gap: 7px; margin: 0; }
.cg-master-entry-count { font-size: 29px; line-height: 1.05; font-weight: 650; color: #2f9e44; }
.cg-master-entry-unit { color: #8a94a2; font-size: 12px; }
.cg-master-entry-stats { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.cg-master-entry-stat { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 11px; border-radius: 999px; background: #f4f7f5; color: #424b58; font-size: 12px; }
.cg-master-entry-stat small { color: #8a94a2; }
.cg-master-entry-stat strong { font-weight: 650; }
.cg-master-entry-footer { display: flex; flex: 1 1 auto; align-items: flex-end; justify-content: flex-end; margin-top: auto; padding-top: 6px; }
.cg-master-list-page { display: flex; flex-direction: column; gap: 14px; height: calc(100vh - 120px); min-height: 0; overflow: hidden; }
.cg-master-list-back { display: flex; flex: 0 0 auto; align-items: center; }
.cg-master-list-card { position: relative; display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
.cg-master-list-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cg-master-list-head > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin: 0; }
.cg-master-list-head > .cg-card-title .cg-icon { width: 19px; height: 19px; color: #409845; }
.cg-master-list-toolbar { display: flex; flex: 0 0 auto; gap: 10px; width: min(460px, 100%); }
.cg-master-list-toolbar .cg-input { flex: 1 1 auto; width: auto; min-width: 0; }
.cg-master-list-toolbar .cg-button { flex: 0 0 auto; white-space: nowrap; }
.cg-master-list-stats { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cg-master-list-body { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; overflow: auto; list-style: none; }
.cg-master-list-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid #eef1f4; }
.cg-master-list-row:last-child { border-bottom: 0; }
.cg-master-list-copy { display: grid; min-width: 0; gap: 4px; }
.cg-master-list-copy strong { color: #24303c; font-size: 14px; font-weight: 600; }
.cg-master-list-copy small { color: #8a94a2; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-master-list-side { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.cg-master-list-side time { color: #929cab; font-size: 12px; white-space: nowrap; }
.cg-master-primary-badge { padding: 3px 9px; border-radius: 999px; background: #e5f7e8; color: #2f7d3f; font-size: 11px; font-weight: 650; white-space: nowrap; }
.cg-master-list-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; min-height: 42px; margin-top: 2px; padding-top: 10px; border-top: 1px solid #eef1f4; }
.cg-master-list-empty { display: grid; min-height: 100%; place-items: center; }
.cg-master-list-empty .cg-state { margin: 0; padding: 14px 0; border: 0; background: transparent; text-align: center; }

@media (min-width: 1101px) {
  .cg-platform-dashboard-layout { grid-template-columns: minmax(0, 2.45fr) minmax(292px, 1fr); align-items: stretch; }
}
@media (max-width: 1100px) {
  .cg-platform-dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .cg-platform-dashboard-primary { min-height: 0; }
  .cg-platform-dashboard-welcome-copy { max-width: 75%; }
}
@media (max-width: 760px) {
  .cg-platform-dashboard-primary { gap: 12px; }
  .cg-platform-dashboard-welcome { min-height: 170px; padding: 20px; }
  .cg-platform-dashboard-welcome-copy { max-width: 72%; }
  .cg-platform-dashboard-welcome img { right: -30%; bottom: -7%; width: 125%; height: 112%; opacity: .9; }
  .cg-platform-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cg-platform-dashboard-metric { display: block; min-height: 145px; padding: 15px 12px; }
  .cg-platform-dashboard-metric-copy { margin-top: 10px; }
  .cg-platform-dashboard-metric-copy strong { font-size: 23px; }
  .cg-platform-dashboard-preview-grid { grid-template-columns: 1fr; }
  .cg-platform-dashboard-shortcuts .cg-shortcut-grid { grid-template-columns: 1fr; }
}
.cg-button { border-radius: 8px; }
.cg-primary { border-color: #1e252d; background: #1e252d; }
.cg-nav .cg-button:focus-visible,
.cg-header .cg-button:focus-visible { outline: 2px solid #30bb4f; outline-offset: 4px; }

@media (min-width: 1900px) {
  .cg-sidebar { width: 270px; grid-template-rows: 84px 116px minmax(0, 1fr); }
  .cg-brand { height: 84px; padding: 0 25px; }
  .cg-brand img { width: 205px; }
  .cg-shell-main { margin-left: 270px; }
  .cg-header { height: 84px; }
  .cg-main { min-height: calc(100vh - 84px); padding: 24px; }
  .cg-page-title { font-size: 32px; }
  .cg-platform-dashboard { min-height: calc(100vh - 132px); }
  .cg-platform-dashboard-layout { min-height: calc(100vh - 132px); }
  .cg-editor-dashboard,
  .cg-platform-dashboard-welcome { min-height: 220px; padding: 35px; }
  .cg-platform-dashboard-welcome img { right: -3%; bottom: -12%; width: 100%; height: 124%; }
  .cg-platform-dashboard-welcome h1 { font-size: 40px; }
  .cg-platform-dashboard-welcome p { font-size: 25px; }
  .cg-platform-dashboard-welcome span { font-size: 16px; }
  .cg-platform-dashboard-metric { min-height: 142px; padding: 27px; }
  .cg-platform-dashboard-metric-label { font-size: 16px; }
  .cg-platform-dashboard-metric-copy strong { font-size: 30px; }
  .cg-platform-dashboard-metric-copy small { font-size: 12px; }
}
@media (max-width: 1350px) and (min-width: 761px) {
  .cg-sidebar { width: 196px; }
  .cg-shell-main { margin-left: 196px; }
  .cg-main { padding: 16px; }
  .cg-platform-dashboard-layout,
  .cg-platform-dashboard-primary,
  .cg-platform-dashboard-secondary { gap: 16px; }
  .cg-platform-dashboard { min-height: calc(100vh - 108px); }
  .cg-platform-dashboard-layout { min-height: calc(100vh - 108px); }
  .cg-editor-dashboard,
  .cg-platform-dashboard-welcome { min-height: 170px; padding: 24px; }
  .cg-platform-dashboard-welcome-copy { max-width: 70%; }
  .cg-platform-dashboard-welcome h1 { font-size: 24px; }
  .cg-platform-dashboard-welcome p { font-size: 16px; }
  .cg-platform-dashboard-metric { min-height: 115px; padding: 18px 12px; gap: 10px; }
  .cg-platform-dashboard-metric-icon { width: 32px; height: 32px; border-radius: 9px; }
  .cg-platform-dashboard-metric-icon .cg-icon { width: 20px; height: 20px; }
  .cg-platform-dashboard-metric-label { font-size: 12px; }
  .cg-platform-dashboard-metric-copy strong { font-size: 23px; }
  .cg-platform-dashboard-chevron { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .cg-platform-dashboard-welcome-copy { max-width: 75%; }
}
@media (max-width: 760px) {
  .cg-workspace { display: block; }
  .cg-sidebar { position: static; display: block; width: 100%; min-height: 0; padding: 0; overflow: visible; }
  .cg-brand { height: 60px; padding: 16px 20px; }
  .cg-brand img { max-width: 165px; }
  .cg-sidebar-profile { display: none; }
  .cg-nav { display: flex; padding: 0 12px 10px; overflow-x: auto; }
  .cg-nav-section { display: flex; gap: 4px; width: 100%; }
  .cg-nav-group { display: none; }
  .cg-nav .cg-button.cg-nav-item { display: flex; flex: 0 0 auto; width: auto; height: 42px; min-height: 42px; margin: 0; padding: 8px; gap: 7px; border-radius: 8px; font-size: 12px; }
  .cg-nav-icon, .cg-nav-icon .cg-icon { width: 18px; height: 18px; }
  .cg-nav .cg-button.cg-nav-item.is-active::before { display: none; }
  .cg-shell-main { margin: 0; }
  .cg-header { height: 60px; min-height: 60px; padding: 0 16px; }
  .cg-header-actions { gap: 10px; }
  .cg-header-divider, .cg-header-account-copy { display: none; }
  .cg-main { min-height: calc(100vh - 120px); padding: 20px 16px; }
  .cg-page { gap: 18px; }
  .cg-page-header { min-height: 0; }
  .cg-platform-coming-soon-page { min-height: calc(100vh - 120px); }
  .cg-platform-coming-soon-card { min-height: calc(100vh - 220px); padding: 28px 20px; }
  .cg-platform-coming-soon-content { display: grid; justify-items: center; text-align: center; }
  .cg-template-list-page,
  .cg-live-asset-page,
  .cg-master-data-page { min-height: 0; overflow: visible; }
  .cg-template-list-page,
  .cg-live-asset-library-page { height: auto; }
  .cg-live-asset-upload-page { height: auto; }
  .cg-master-data-page { height: auto; }
  .cg-template-list-page > .cg-card { min-height: 360px; }
  .cg-resource-card { min-height: 360px; overflow: visible; }
  .cg-resource-card-body { overflow: visible; }
  .cg-resource-card-footer { align-items: stretch; flex-direction: column; }
  .cg-resource-card-footer > .cg-button { width: 100%; }
  .cg-resource-card-footer > .cg-live-project-pagination { width: 100%; }
  .cg-live-asset-upload-card > .cg-live-asset-upload-form { grid-template-columns: 1fr; grid-template-rows: none; width: 100%; overflow: visible; padding-bottom: 0; }
  .cg-live-asset-upload-card > .cg-live-asset-upload-form > *,
  .cg-live-asset-upload-card .cg-live-asset-upload-file-field,
  .cg-live-asset-upload-card .cg-live-asset-upload-name-field,
  .cg-live-asset-upload-card .cg-live-asset-upload-note-field,
  .cg-live-asset-upload-card .cg-live-asset-upload-streamer-field { grid-column: 1; grid-row: auto; width: 100%; }
  .cg-live-asset-upload-card .cg-live-asset-upload-file-field { min-height: 240px; }
  .cg-live-asset-upload-card .cg-actions { position: static; }
  .cg-master-data-dashboard,
  .cg-master-data-summary-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; overflow: visible; }
  .cg-master-data-summary-grid,
  .cg-master-data-streamer-card,
  .cg-master-data-upload-card,
  .cg-master-data-platform-library,
  .cg-master-data-general-library { grid-column: 1; }
  .cg-master-data-card { min-height: 0; overflow: visible; }
  .cg-master-data-action-card > .cg-master-form { grid-template-columns: 1fr; overflow: visible; }
  .cg-master-data-action-card > .cg-master-form > * { grid-column: 1; }
  .cg-master-data-action-card > .cg-master-form > .cg-actions { position: static; justify-content: flex-end; }
  .cg-master-data-library-card > .cg-live-asset-filters { grid-template-columns: 1fr; }
  .cg-master-data-list-region { overflow: visible; }
  .cg-master-list-page { height: auto; min-height: 0; overflow: visible; }
  .cg-master-list-card { min-height: 320px; overflow: visible; }
  .cg-master-list-body { overflow: visible; }
  .cg-master-list-head { flex-wrap: wrap; }
  .cg-master-list-toolbar { width: 100%; }
  .cg-master-list-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cg-master-list-side { flex-wrap: wrap; }
  .cg-page.cg-live-project-list-page { height: auto; min-height: 0; overflow: visible; }
  .cg-live-project-card { min-height: 320px; overflow: visible; }
}

@media (min-width: 1900px) {
  .cg-template-list-page,
  .cg-live-asset-page,
  .cg-master-data-page { min-height: calc(100vh - 132px); }
  .cg-template-list-page,
  .cg-live-asset-library-page { height: calc(100vh - 132px); }
  .cg-live-asset-upload-page { height: calc(100vh - 132px); }
  .cg-master-data-page { height: calc(100vh - 132px); }
  .cg-master-list-page { height: calc(100vh - 132px); }
  .cg-page.cg-live-project-list-page { height: calc(100vh - 132px); }
}

/* The remaining platform-admin routes use the same current editor-workspace
   language; their role-specific data and actions remain unchanged. */
.cg-composition-page,
.cg-platform-operations-page,
.cg-platform-task-activity-page,
.cg-platform-projects-page,
.cg-platform-members-page { display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 120px); overflow: hidden; }
.cg-composition-body { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 16px; overflow: auto; padding: 1px 3px 8px 1px; scrollbar-gutter: stable; }
.cg-composition-summary { margin: 0; gap: 10px; }
.cg-composition-summary .cg-badge { border-color: #dcefdc; border-radius: 8px; background: #f4fff2; color: #249642; }
.cg-composition-boundary { margin: 0; padding: 13px 16px; border: 1px solid #e7edf0; border-left: 3px solid #54c966; border-radius: 10px; background: #f8fafb; color: #7e8999; font-size: 12px; line-height: 1.7; }
.cg-composition-flow { flex: 0 0 auto; gap: 12px; margin: 0; }
.cg-composition-node.cg-button { min-height: 112px; padding: 15px 14px; border-color: #e8edf0; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #23334404; }
.cg-composition-node.cg-button:hover:not(:disabled) { border-color: #bfe7c4; background: #fbfffb; }
.cg-composition-node + .cg-composition-node::before { left: -12px; color: #a5afbc; }
.cg-composition-node.is-active { border-color: #54c966; outline: 1px solid #54c966; background: #f7fff3; box-shadow: 0 5px 16px #54c9661c; }
.cg-composition-step { color: #929cab; font-size: 11px; font-weight: 650; }
.cg-composition-node strong { color: #25303a; font-size: 14px; font-weight: 650; }
.cg-composition-node-kind { color: #929cab; font-size: 11px; }
.cg-composition-node[data-composition-stage="compose"] .cg-composition-node-kind { color: #249642; }
.cg-composition-stage-panel { flex: 0 0 auto; margin: 0; }
.cg-composition-stage-panel > .cg-card-title { color: #222d38; font-size: 19px; }
.cg-composition-io { gap: 14px; margin: 18px 0; }
.cg-composition-io > div { padding: 14px 16px; border-color: #e8edf0; border-radius: 10px; background: #f8fafb; }
.cg-composition-io-label { color: #929cab; font-size: 11px; font-weight: 650; }
.cg-composition-io p { color: #424b58; font-size: 13px; }
.cg-composition-editor { margin-top: 20px; padding-top: 20px; border-color: #eef1f4; }
.cg-composition-prompt { min-height: clamp(240px, 32vh, 390px); resize: vertical; border-color: #e5eaee; border-radius: 10px; font: 14px/1.8 Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif; }
.cg-composition-count { color: #929cab; }
.cg-composition-advanced { border-color: #e8edf0; border-radius: 10px; background: #fbfcfd; }
.cg-composition-advanced > summary, .cg-composition-history > summary { color: #33404e; font-weight: 650; }
.cg-composition-savebar { padding-top: 4px; }
.cg-composition-history { flex: 0 0 auto; margin: 0; }
.cg-composition-history-row { border-color: #eef1f4; }
.cg-composition-debug { flex: 0 0 auto; margin: 0; }
.cg-composition-debug-run { border-color: #e8edf0; border-radius: 10px; background: #fbfcfd; }
.cg-platform-operations-page,
.cg-platform-task-activity-page,
.cg-platform-projects-page { height: calc(100vh - 120px); }
.cg-workspace-summary-strip { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cg-workspace-summary-item { display: flex; min-width: 0; min-height: 54px; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid #edf1f4; border-radius: 10px; background: #fbfcfd; }
.cg-workspace-summary-item span { color: #929cab; font-size: 11px; }
.cg-workspace-summary-item strong { overflow: hidden; color: #27333e; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.cg-platform-project-list-card,
.cg-task-activity-card { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; margin: 0; overflow: hidden; }
.cg-platform-project-list-card > .cg-card-title,
.cg-task-activity-card > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 13px; }
.cg-platform-project-list-card > .cg-card-title .cg-icon,
.cg-task-activity-card > .cg-card-title .cg-icon { width: 19px; height: 19px; color: #409845; }
.cg-platform-project-list-card > .cg-list,
.cg-task-activity-card > .cg-list { min-height: 0; overflow: auto; padding-right: 3px; }
.cg-platform-project-list-card > .cg-state,
.cg-task-activity-card > .cg-state { display: grid; flex: 1 1 auto; min-height: 0; place-content: center; justify-items: center; margin: 0; text-align: center; }
.cg-platform-project-list-card > .cg-platform-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-content: start; gap: 16px; padding: 3px 4px 6px; }
.cg-platform-project-tile { display: flex; min-width: 0; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid #e7edf1; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #23334404; transition: border-color .16s, box-shadow .16s; }
.cg-platform-project-tile:hover,
.cg-platform-project-tile:focus-within { border-color: #c4e5cd; box-shadow: 0 9px 24px #2739400b; }
.cg-platform-project-tile-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cg-platform-project-tile-heading .cg-project-status { max-width: 100%; padding: 5px 9px; border-radius: 7px; background: #f6f8fa; white-space: normal; overflow-wrap: anywhere; }
.cg-platform-project-icon,
.cg-activity-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e8f8eb; color: #329b47; }
.cg-platform-project-icon .cg-icon,
.cg-activity-icon .cg-icon { width: 19px; height: 19px; }
.cg-platform-project-copy { min-width: 0; }
.cg-platform-project-title { margin: 0; color: #27333e; font-size: 15px; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
.cg-platform-project-id { margin-top: 4px; color: #8b96a5; font-size: 11px; overflow-wrap: anywhere; }
.cg-platform-project-facts { grid-template-columns: 68px minmax(0, 1fr); gap: 9px 12px; margin: 0; border: 0; }
.cg-platform-project-facts > * { min-width: 0; margin: 0; padding: 0; border: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.cg-platform-project-facts > dt { color: #8b96a5; }
.cg-platform-project-facts > dd { color: #526173; text-align: right; }
.cg-platform-project-tile-actions { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1f4; }
.cg-platform-project-tile-actions .cg-button { min-height: 34px; padding: 7px 14px; font-size: 12px; }
.cg-project-status { display: inline-flex; align-items: center; gap: 6px; color: #7b8592; font-size: 11px; font-weight: 650; white-space: nowrap; }
.cg-project-status::before { width: 6px; height: 6px; border-radius: 50%; background: #a5afbc; content: ""; }
.cg-project-status.is-active,
.cg-project-status.is-accepted,
.cg-project-status.is-editing,
.cg-project-status.is-processing,
.cg-project-status.is-running { color: #279541; }
.cg-project-status.is-active::before,
.cg-project-status.is-accepted::before,
.cg-project-status.is-editing::before,
.cg-project-status.is-processing::before,
.cg-project-status.is-running::before { background: #45c45b; }
.cg-project-status.is-completed { color: #7757c8; }
.cg-project-status.is-completed::before { background: #9c72e7; }
.cg-task-activity-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 68px; align-items: center; gap: 13px; padding: 10px 4px; }
.cg-task-activity-row .cg-activity-icon { width: 34px; height: 34px; border-radius: 10px; background: #eef6ff; color: #4d89d9; }
.cg-task-activity-row .cg-activity-icon .cg-icon { width: 17px; height: 17px; }
.cg-task-activity-copy { min-width: 0; }
.cg-task-activity-copy .cg-list-main { font-size: 13px; font-weight: 650; }
.cg-task-activity-time { white-space: nowrap; }
.cg-operations-dashboard { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 16px; overflow: hidden; }
.cg-operations-metrics { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cg-operations-metric { display: flex; min-width: 0; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px #23334405; }
.cg-operations-metric-heading { position: relative; display: flex; min-height: 86px; align-items: center; gap: 14px; padding-bottom: 14px; }
.cg-operations-metric-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(140deg, #90e889, #51cf61); color: #fff; }
.cg-operations-metric.blue .cg-operations-metric-icon { background: linear-gradient(135deg, #65abff, #367eff); }
.cg-operations-metric-icon .cg-icon { width: 21px; height: 21px; }
.cg-operations-metric-copy { display: grid; min-width: 0; gap: 3px; }
.cg-operations-metric-copy > h3 { margin: 0; color: #66717f; font-size: 13px; font-weight: 500; }
.cg-operations-metric-copy > strong { color: #202a35; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.35; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cg-operations-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding-top: 14px; border-top: 1px solid #eef1f4; }
.cg-operations-breakdown > div { min-width: 0; }
.cg-operations-breakdown dt { color: #7b8796; font-size: 11px; }
.cg-operations-breakdown dd { margin: 5px 0 0; color: #364353; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cg-operations-account-note { margin: auto 0 0; color: #7b8796; font-size: 11px; line-height: 1.6; }
.cg-operations-storage-progress { position: absolute; right: 0; bottom: 0; left: 56px; height: 5px; overflow: hidden; border-radius: 6px; background: #edf2f8; }
.cg-operations-storage-progress > span { display: block; height: 100%; border-radius: inherit; background: #4b92ed; }
.cg-operations-grid { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(280px, .46fr); grid-template-rows: minmax(0, 1fr); min-height: 0; gap: 16px; overflow: hidden; }
.cg-operations-card { display: flex; min-width: 0; min-height: 0; flex-direction: column; margin: 0; overflow: hidden; }
.cg-operations-card > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 12px; }
.cg-operations-card > .cg-card-title .cg-icon { flex: 0 0 auto; width: 19px; height: 19px; color: #409845; }
.cg-operations-side { display: grid; min-width: 0; min-height: 0; grid-template-rows: max-content max-content; align-content: start; gap: 16px; overflow: auto; }
.cg-operations-platform-name { color: #354353; font-size: 14px; overflow-wrap: anywhere; }
.cg-operations-platform-status { margin-top: 8px; color: #7b8796; font-size: 11px; }
.cg-operations-platform-details { margin-top: 16px; border-top: 1px solid #eef1f4; }
.cg-operations-platform-details > summary { padding-top: 12px; color: #7b8796; font-size: 11px; cursor: pointer; }
.cg-operations-platform-details > summary:focus-visible { outline: 2px solid #51bb66; outline-offset: 4px; border-radius: 4px; }
.cg-operations-data-grid { min-height: 0; overflow: auto; border-top-color: #f0f3f5; }
.cg-operations-data-grid > * { padding: 8px 0; overflow-wrap: anywhere; }
.cg-operations-resource-grid { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, 1fr); margin: 0; }
.cg-operations-resource-item { display: flex; min-width: 0; min-height: 58px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-top: 1px solid #eef1f4; }
.cg-operations-resource-item:first-child { border-top: 0; padding-top: 4px; }
.cg-operations-resource-item:last-child { padding-bottom: 4px; }
.cg-operations-resource-label { display: flex; min-width: 0; align-items: center; gap: 10px; color: #526173; font-size: 13px; }
.cg-operations-resource-icon { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: #45975a; background: #eff7f1; }
.cg-operations-resource-icon .cg-icon { width: 17px; height: 17px; }
.cg-operations-resource-amount { display: flex; min-width: 0; align-items: baseline; justify-content: flex-end; gap: 6px; margin: 0 0 0 auto; }
.cg-operations-resource-amount strong { min-width: 0; color: #27333e; font-size: 24px; line-height: 1.25; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cg-operations-resource-amount small { flex: 0 0 auto; color: #8b96a5; font-size: 11px; }
.cg-operations-record-count { margin-left: auto; color: #8b96a5; font-size: 11px; font-weight: 400; white-space: nowrap; }
.cg-operations-activity-card > .cg-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 3px; }
.cg-operations-activity-card > .cg-state { display: grid; flex: 1 1 auto; min-height: 0; place-content: center; justify-items: center; margin: 0; text-align: center; }
.cg-operations-activity-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 70px; align-items: center; gap: 12px; padding: 12px 4px; }
.cg-operations-activity-copy { min-width: 0; overflow-wrap: anywhere; }
.cg-operations-activity-copy .cg-list-main { font-size: 13px; font-weight: 600; }
.cg-operations-activity-copy .cg-list-meta { margin-top: 4px; font-size: 11px; }
.cg-operations-activity-row > time { font-size: 11px; white-space: nowrap; }
.cg-operations-activity-row .cg-activity-icon { width: 32px; height: 32px; border-radius: 9px; background: #f2edff; color: #8c63dd; }
.cg-operations-activity-row .cg-activity-icon .cg-icon { width: 16px; height: 16px; }
.cg-operations-audit-note { flex: 0 0 auto; margin: 0; padding-top: 12px; border-top: 1px solid #eef1f4; color: #8b96a5; font-size: 11px; line-height: 1.6; }
.cg-platform-members-page { height: calc(100vh - 120px); }
.cg-members-dashboard { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr); min-height: 0; gap: 16px; overflow: hidden; }
.cg-members-dashboard > .cg-card,
.cg-members-side > .cg-card { margin: 0; }
.cg-members-side { display: grid; grid-template-rows: minmax(330px, 1fr) auto; min-width: 0; min-height: 0; gap: 16px; }
.cg-members-list-card,
.cg-member-form-card,
.cg-member-settings-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.cg-members-list-card,
.cg-member-form-card { display: flex; flex-direction: column; }
.cg-members-list-card > .cg-card-title,
.cg-member-form-card > .cg-card-title,
.cg-member-settings-card > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 13px; }
.cg-members-list-card > .cg-card-title .cg-icon,
.cg-member-form-card > .cg-card-title .cg-icon,
.cg-member-settings-card > .cg-card-title .cg-icon { width: 19px; height: 19px; color: #409845; }
.cg-member-summary { display: grid; flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.cg-member-summary-item { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid #edf1f4; border-radius: 10px; background: #fbfcfd; }
.cg-member-summary-item small { color: #929cab; font-size: 11px; }
.cg-member-summary-item strong { color: #27333e; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cg-members-list-card > .cg-list { min-height: 0; overflow: auto; padding-right: 3px; }
.cg-members-list-card > .cg-state { display: grid; flex: 1 1 auto; min-height: 0; place-content: center; justify-items: center; margin: 0; text-align: center; }
.cg-member-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, auto) auto; min-height: 74px; align-items: center; gap: 16px; padding: 12px 4px; }
.cg-member-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.cg-member-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e8f8eb; color: #329b47; }
.cg-member-avatar .cg-icon { width: 19px; height: 19px; }
.cg-member-copy { min-width: 0; }
.cg-member-copy .cg-list-main { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cg-member-username { display: block; margin-top: 3px; overflow: hidden; color: #9ca5b2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cg-member-details { display: grid; min-width: 100px; justify-items: start; gap: 5px; }
.cg-member-status { display: inline-flex; align-items: center; gap: 5px; color: #6f7a87; font-size: 11px; font-weight: 650; white-space: nowrap; }
.cg-member-status::before { width: 6px; height: 6px; border-radius: 50%; background: #9ca5b2; content: ""; }
.cg-member-status.is-active { color: #279541; }
.cg-member-status.is-active::before { background: #45c45b; }
.cg-member-status.is-pending { color: #b27a12; }
.cg-member-status.is-pending::before { background: #efb43e; }
.cg-member-status.is-disabled { color: #8f98a5; }
.cg-member-actions { justify-content: flex-end; }
.cg-member-actions .cg-button { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.cg-member-form-card { padding-bottom: 18px; }
.cg-member-form-card > .cg-member-form { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; overflow: auto; padding: 1px 2px 0; }
.cg-member-fields { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cg-member-display-name-field { grid-column: 1 / -1; }
.cg-member-fields > .cg-password-tools { grid-column: 1 / -1; justify-content: flex-end; }
.cg-member-form > .cg-form-help { margin: 0; padding: 13px 14px; border: 1px solid #edf1f4; border-radius: 10px; background: #fbfcfd; text-align: center; }
.cg-member-form > .cg-inline-status { margin: 0; text-align: center; }
.cg-member-form > .cg-actions:last-child { flex: 0 0 auto; justify-content: flex-end; margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1f4; }
.cg-member-form > .cg-actions:last-child .cg-button { min-width: 110px; }
.cg-member-settings-card { display: flex; min-height: 168px; flex-direction: column; }
.cg-member-settings-card > .cg-form-help { max-width: 520px; margin: auto; padding: 8px 4px 18px; text-align: center; }
.cg-member-settings-card > .cg-actions { flex: 0 0 auto; justify-content: flex-end; padding-top: 12px; border-top: 1px solid #eef1f4; }

@media (max-width: 760px) {
  .cg-composition-page,
  .cg-platform-operations-page,
  .cg-platform-task-activity-page,
  .cg-platform-projects-page,
  .cg-platform-members-page { min-height: 0; overflow: visible; }
  .cg-composition-body { overflow: visible; padding: 0; }
  .cg-platform-operations-page,
  .cg-platform-task-activity-page,
  .cg-platform-projects-page { height: auto; }
  .cg-workspace-summary-strip,
  .cg-operations-metrics,
  .cg-operations-grid { grid-template-columns: 1fr; grid-template-rows: none; overflow: visible; }
  .cg-platform-project-list-card,
  .cg-task-activity-card,
  .cg-operations-card,
  .cg-operations-dashboard { min-height: 0; overflow: visible; }
  .cg-platform-project-list-card > .cg-list,
  .cg-task-activity-card > .cg-list,
  .cg-operations-activity-card > .cg-list { overflow: visible; }
  .cg-task-activity-row { grid-template-columns: auto minmax(0, 1fr); }
  .cg-task-activity-time { grid-column: 2; }
  .cg-operations-platform-card,
  .cg-operations-resource-card,
  .cg-operations-activity-card { grid-column: 1; }
  .cg-platform-members-page { height: auto; }
  .cg-members-dashboard { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .cg-members-side { display: grid; grid-template-rows: none; overflow: visible; }
  .cg-members-list-card,
  .cg-member-form-card,
  .cg-member-settings-card { min-height: 0; overflow: visible; }
  .cg-members-list-card > .cg-list,
  .cg-member-form-card > .cg-member-form { overflow: visible; }
  .cg-member-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cg-member-details { grid-column: 1; margin-left: 50px; }
  .cg-member-actions { grid-column: 2; grid-row: 1 / 3; }
  .cg-member-fields { grid-template-columns: 1fr; }
  .cg-member-display-name-field,
  .cg-member-fields > .cg-password-tools { grid-column: 1; }
}

@media (min-width: 1900px) {
  .cg-composition-page,
  .cg-platform-operations-page,
  .cg-platform-task-activity-page,
  .cg-platform-projects-page,
  .cg-platform-members-page { min-height: calc(100vh - 132px); }
  .cg-platform-operations-page,
  .cg-platform-task-activity-page,
  .cg-platform-projects-page { height: calc(100vh - 132px); }
  .cg-platform-members-page { height: calc(100vh - 132px); }
}

@media (max-width: 1350px) and (min-width: 761px) {
  .cg-live-project-status-card.cg-button { gap: 10px; min-height: 115px; padding: 18px 12px; }
  .cg-live-project-status-icon { width: 32px; height: 32px; border-radius: 9px; }
  .cg-live-project-status-icon .cg-icon { width: 20px; height: 20px; }
  .cg-live-project-status-label { font-size: 12px; }
  .cg-live-project-status-copy strong { font-size: 23px; }
  .cg-live-project-status-chevron { display: none; }
}

/* Account overview first, recent audit second, platform metadata last. */
@media (min-width: 981px) and (min-height: 701px) {
  .cg-u-shell .cg-main:has(> .cg-platform-operations-page),
  .cg-u-shell .cg-main:has(> .cg-platform-projects-page) { display: flex; flex-direction: column; height: calc(100dvh - 76px); min-height: 0; }
  .cg-u-shell .cg-main:has(> .cg-platform-projects-page) > .cg-state { flex: 0 0 auto; }
  .cg-page.cg-platform-operations-page,
  .cg-page.cg-platform-projects-page { flex: 1 1 auto; min-height: 0; height: auto; }
}
@media (min-width: 1900px) and (min-height: 701px) {
  .cg-u-shell .cg-main:has(> .cg-platform-operations-page),
  .cg-u-shell .cg-main:has(> .cg-platform-projects-page) { height: calc(100dvh - 84px); }
}
@media (max-width: 980px), (max-height: 700px) {
  .cg-page.cg-platform-operations-page,
  .cg-page.cg-platform-projects-page { height: auto; min-height: 0; overflow: visible; }
  .cg-platform-project-list-card,
  .cg-platform-project-list-card > .cg-platform-project-grid { overflow: visible; }
  .cg-operations-dashboard,
  .cg-operations-grid,
  .cg-operations-side,
  .cg-operations-card,
  .cg-operations-activity-card > .cg-list { overflow: visible; }
  .cg-operations-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cg-operations-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; align-items: start; }
  .cg-operations-activity-card { min-height: 320px; }
  .cg-operations-platform-card,
  .cg-operations-resource-card { grid-column: auto; }
}
@media (max-width: 600px) {
  .cg-operations-metrics,
  .cg-operations-side { grid-template-columns: 1fr; }
  .cg-operations-metric { padding: 18px; }
  .cg-operations-activity-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; }
  .cg-operations-activity-row .cg-activity-icon { grid-row: 1 / 3; }
  .cg-operations-activity-row > time { grid-column: 2; }
}

@media (max-width: 760px) {
  .cg-platform-page-header { align-items: flex-start; }
  .cg-platform-page-title { display: grid; gap: 7px; }
  .cg-live-project-status-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cg-live-project-status-card.cg-button { display: block; min-height: 145px; padding: 15px 12px; }
  .cg-live-project-status-icon { width: 30px; height: 30px; }
  .cg-live-project-status-copy { margin-top: 10px; }
  .cg-live-project-status-label { font-size: 11px; }
  .cg-live-project-status-copy strong { font-size: 23px; }
  .cg-live-project-status-copy small { font-size: 9px; }
  .cg-live-project-status-chevron { display: none; }
}

@media (max-width: 430px) {
  .cg-live-project-status-tabs { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1900px) {
  .cg-live-project-status-card.cg-button { min-height: 142px; padding: 27px; }
  .cg-live-project-status-label { font-size: 16px; }
  .cg-live-project-status-copy strong { font-size: 30px; }
  .cg-live-project-status-copy small { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-live-project-status-card.cg-button { transition: none; }
}
/* ====================================================================
   Ported from web/workspace (Vue unified workspace reference 355972d).
   Design language only: class names ed-* / cg-u-* are carried over from
   the retired Vue app so the CSS stays close to the reference source.
   ==================================================================== */


/* --- from editor-workspace.css --- */

/* Editor workspace: compact desktop layout, isolated from administrator views. */
.cg-editor-shell .cg-icon{display:block;width:22px;height:22px;flex:none;overflow:visible}
.cg-editor-shell{--cg-u-canvas:#f5f7fa;--cg-u-soft:#f5f8f7;--cg-u-ink:#1c242b;--cg-u-body:#424b58;--cg-u-muted:#929cab;--cg-u-line:#eef1f5;--cg-u-success:#28b93d;--ed-green:#32cb42;--ed-topbar-height:76px;--ed-page-gap:22px;background:#f5f7fa;font-size:13px;line-height:1.6}
.cg-editor-shell button{cursor:pointer}
.cg-editor-shell button:disabled{cursor:not-allowed;opacity:.48}
.cg-editor-shell button:focus-visible,.cg-editor-shell input:focus-visible{outline:2px solid #30bb4f;outline-offset:4px}
.cg-editor-shell .cg-u-sidebar{width:224px;background:#fff;grid-template-rows:76px 104px minmax(0,1fr) auto;border:0;padding-bottom:16px}
.cg-editor-shell .cg-u-brand{height:76px;border:0;padding:0 23px}
.cg-editor-shell .cg-u-brand img{width:178px;max-width:100%;height:auto;max-height:44px}
.ed-sidebar-profile{display:flex;align-items:center;gap:13px;padding:24px 24px}
.ed-avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;background:linear-gradient(135deg,#d9f7e6,#a5e8d1);color:#215743;border-radius:50%}
.ed-avatar .cg-icon{width:23px;height:23px}
.ed-sidebar-profile .ed-avatar{width:44px;height:44px}
.ed-sidebar-profile strong{font-size:15px;letter-spacing:.5px;color:var(--cg-u-ink)}
.ed-sidebar-profile small{display:flex;align-items:center;gap:7px;color:#8c95a3;margin-top:3px;font-size:11px}
.ed-sidebar-profile i{width:6px;height:6px;background:#45cc65;border-radius:50%}
.cg-editor-shell .cg-u-nav{padding:0 15px}
.cg-editor-shell .cg-u-nav-item{height:49px;margin-bottom:10px;padding:0 16px;grid-template-columns:22px 1fr;gap:16px;border-radius:10px;font-size:14px;color:#2b333e;position:relative}
.cg-editor-shell .cg-u-nav-icon{display:grid;place-items:center;width:22px;height:22px;color:inherit}
.cg-editor-shell .cg-u-nav-icon .cg-icon{width:22px;height:22px;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.cg-editor-shell .cg-u-nav-item.is-active{color:#159b3d;background:linear-gradient(100deg,#f0ffdf,#ebfbe9);font-weight:600}
.cg-editor-shell .cg-u-nav-item.is-active .cg-u-nav-icon{color:#159b3d;transform:scale(1.04)}
.cg-editor-shell .cg-u-nav-item.is-active:before{position:absolute;left:0;top:12px;bottom:12px;width:2px;content:'';background:#61df6b;border-radius:4px}
.ed-help-wrap{position:relative;padding:18px}
.ed-help{position:relative;isolation:isolate;display:flex;align-items:center;gap:8px;width:100%;overflow:hidden;padding:18px 10px;background:linear-gradient(125deg,#061715 0%,#071f1b 52%,#08291d 100%);border:1px solid transparent;border-radius:15px;color:#fff;text-align:left;box-shadow:0 8px 18px #0a342018;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.ed-help::before{position:absolute;z-index:-1;content:"";width:150%;height:220%;right:-54%;top:-114%;border:2px solid #26d85b35;border-radius:50%;transform:rotate(-20deg);box-shadow:0 0 0 18px #1dbb5420,0 0 0 36px #1dbb5415;pointer-events:none}
.ed-help::after{position:absolute;z-index:-1;content:"";width:78px;height:52px;right:29px;bottom:-10px;background:radial-gradient(circle,#20bd5038 0 1.5px,transparent 1.8px);background-size:14px 14px;transform:rotate(-2deg);pointer-events:none}
.ed-help:hover{border-color:#25da5d;box-shadow:0 0 0 1px #25da5d,0 10px 23px #20d54a3d;transform:translateY(-1px)}
.ed-help:active{border-color:#18b94a;box-shadow:inset 0 2px 7px #00110a8c,0 3px 8px #0b392018;transform:translateY(0) scale(.985)}
.ed-help>.cg-icon:first-child{position:relative;z-index:1;flex:none;color:#58f064;width:26px;height:26px;filter:drop-shadow(0 0 5px #46ef6a4d)}
.ed-help>.cg-icon:last-child{position:relative;z-index:1;display:grid;place-items:center;flex:none;margin-left:auto;width:30px;height:30px;padding:6px;border-radius:50%;color:#062018;background:linear-gradient(135deg,#a1ff64,#1de98b);box-shadow:0 5px 12px #34ed6c3d;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.ed-help:hover>.cg-icon:last-child{box-shadow:0 0 0 4px #42ef6f2e,0 0 19px #2eff6e99;transform:translateX(1px)}
.ed-help:active>.cg-icon:last-child{background:linear-gradient(135deg,#78e858,#16c96d);box-shadow:inset 0 2px 4px #07552d66;transform:translateX(0) scale(.92)}
.ed-help span{position:relative;z-index:1;display:grid;flex:1;min-width:0;gap:4px}.ed-help strong{font-size:13px;font-weight:650}.ed-help small{overflow:hidden;color:#b4c7c2;font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.ed-help-content{position:absolute;left:18px;bottom:120px;width:230px;background:#fff;border:1px solid #e8edf0;border-radius:14px;box-shadow:0 12px 32px #18261b18;padding:20px;z-index:35;font-size:12px}
.ed-help-content p{margin-bottom:0}
.cg-editor-shell .cg-u-main{margin-left:224px}
.cg-editor-shell .cg-u-topbar{height:76px;min-height:76px;background:#fff;border:0;padding:0 26px;gap:20px;justify-content:flex-end}
.ed-global-search{display:flex;align-items:center;height:38px;border:1px solid #e9edf2;border-radius:10px;width:min(560px,55%);margin-right:auto;margin-left:auto;padding:0 13px;gap:10px;color:#a2abb9}
.ed-global-search>.cg-icon{width:18px;height:18px}.ed-global-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;font:inherit;color:#2d3848}.ed-global-search input::placeholder{color:#9ca7b5}
.ed-global-search button,.ed-icon-button{display:grid;place-items:center;padding:5px;border:0;background:transparent;color:#66717f;border-radius:6px}
.ed-global-search button .cg-icon{width:16px;height:16px}
.ed-top-actions{display:flex;align-items:center;gap:20px;flex:none}.ed-top-divider{height:22px;width:1px;background:#eef0f3}
.ed-top-user{display:flex;align-items:center;gap:10px;min-height:40px;padding:0;background:none;border:0;color:#25303a;font-size:12px;line-height:1}.ed-top-user-copy{display:grid;gap:4px;min-width:0;text-align:left}.ed-top-user-copy strong{display:block;max-width:140px;overflow:hidden;text-overflow:ellipsis;font-weight:600;white-space:nowrap}.ed-top-user-copy small{color:var(--cg-u-muted);font-size:10px}.ed-top-user .ed-avatar{height:34px;width:34px}.ed-top-user>.cg-icon{width:14px;height:14px;margin-left:1px;color:#9ba6b5;transform:translateY(1px)}
.ed-account-wrap{position:relative;flex:none}
.ed-account-menu{position:absolute;top:calc(100% + 12px);right:0;z-index:35;display:grid;gap:14px;width:min(280px,calc(100vw - 32px));max-height:calc(100vh - 100px);overflow:auto;padding:18px;background:#fff;border:1px solid #e8edf0;border-radius:12px;box-shadow:0 12px 32px #18261b18;text-align:left}
.ed-account-identity,.ed-account-platform{display:grid;gap:4px;overflow-wrap:anywhere}.ed-account-identity{padding-bottom:14px;border-bottom:1px solid var(--cg-u-line)}.ed-account-identity strong{font-size:14px;color:var(--cg-u-ink)}.ed-account-identity small,.ed-account-platform small{font-size:11px;color:var(--cg-u-muted)}.ed-account-platform strong{font-size:12px;font-weight:500}.ed-account-menu .cg-u-platform-switch{margin:0;gap:6px}.ed-account-menu .cg-u-platform-switch select{min-width:0;max-width:100%;font-size:12px}.ed-account-status{margin:0;font-size:11px;color:var(--cg-u-warning)}
.ed-account-logout{width:100%;padding:10px 12px;border:0;border-radius:7px;background:var(--cg-u-soft);color:var(--cg-u-body);text-align:left}.ed-account-logout:hover{background:#edf7ef}
.cg-editor-shell .cg-u-content{width:100%;min-height:calc(100vh - var(--ed-topbar-height));padding:var(--ed-page-gap);margin:0}
.cg-editor-shell .cg-u-section{background:#fff;border-radius:14px;border-color:#edf1f4}
.cg-editor-shell .cg-u-page-header h1{font-size:27px;font-weight:680;line-height:1.25;letter-spacing:.5px}
.cg-editor-shell .cg-u-button{border-radius:8px}
.cg-editor-shell .cg-u-button-primary{background:#1e252d}
.ed-dashboard{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(292px,1fr);gap:20px;align-items:stretch;min-height:calc(100vh - var(--ed-topbar-height) - (var(--ed-page-gap) * 2))}
.ed-primary,.ed-secondary{display:grid;gap:20px;min-width:0;min-height:0}
.ed-primary{grid-template-rows:auto auto minmax(0,1fr)}
.ed-secondary{grid-template-rows:minmax(0,1fr) auto}
.ed-welcome{position:relative;display:flex;align-items:center;min-height:190px;padding:28px 32px;border:2px solid #d8eedc;border-radius:24px;background:radial-gradient(ellipse at 92% 18%,#e4ffd5 0,transparent 42%),radial-gradient(ellipse at 82% 110%,#d8fbd0 0,transparent 48%),linear-gradient(105deg,#f3fff7 0%,#eefcf2 54%,#e7fbdc 100%);overflow:hidden;box-shadow:0 10px 26px #2b974512}

.ed-welcome-copy{position:relative;z-index:2;max-width:62%}.ed-welcome h1{margin:0 0 10px;font-size:clamp(28px,2.1vw,42px);letter-spacing:.02em;line-height:1.18;font-weight:750;color:#10351f}
.ed-welcome p{margin:0 0 10px;font-size:clamp(17px,1.35vw,28px);font-weight:700;letter-spacing:.02em;line-height:1.4;color:#12623b}.ed-welcome-copy>span{display:block;font-size:clamp(12px,.95vw,18px);letter-spacing:.03em;line-height:1.6;color:#6e8580}
.ed-welcome-art-image{position:absolute;z-index:1;right:-5%;bottom:-10%;width:102%;height:118%;max-width:none;object-fit:contain;object-position:right bottom;pointer-events:none}
.ed-hero-art{display:none;position:absolute;right:18px;top:16px;width:260px;height:170px;perspective:600px;pointer-events:none}
.ed-player{position:absolute;left:40px;top:22px;width:172px;height:117px;border:10px solid #73e645;border-top-width:14px;background:linear-gradient(145deg,#fff,#f1ffe8);border-radius:14px;transform:rotate(7deg) skew(-4deg);box-shadow:0 12px 12px #58ce5822;display:grid;place-items:center}
.ed-player:before{content:'';position:absolute;top:-9px;left:62px;width:18px;height:3px;border-radius:3px;background:#beff8d}.ed-player i{position:absolute;left:-10px;bottom:-20px;width:178px;height:7px;border-radius:0 0 30px 30px;background:#89ed62}
.ed-play-triangle{width:0;height:0;border-top:17px solid transparent;border-bottom:17px solid transparent;border-left:25px solid #72df54;border-radius:4px;filter:drop-shadow(0 2px 2px #48ab2911)}
.ed-play-bubble{display:grid;place-items:center;position:absolute;right:2px;bottom:11px;width:73px;height:73px;border-radius:50%;background:linear-gradient(145deg,#96fa67,#32cd4d);box-shadow:0 9px 22px #58d84d26;transform:rotate(8deg)}.ed-play-bubble .ed-play-triangle{border-left-color:#fff;border-left-width:20px;border-top-width:14px;border-bottom-width:14px;margin-left:5px}
.ed-orbit{position:absolute;left:0;top:41px;width:266px;height:100px;border:15px solid #b5f68f55;border-radius:50%;transform:rotate(-22deg)}
.ed-filmstrip{position:absolute;left:13px;bottom:16px;display:grid;gap:5px;width:50px;padding:7px;border:5px dotted #c8ffa5;background:#95ef65;transform:rotate(9deg);border-radius:5px}.ed-filmstrip b{height:11px;background:#e5ffc9;border-radius:2px}.ed-spark{position:absolute;font-size:33px;color:#e4e82b;right:15px;top:-5px}.ed-spark.two{font-size:22px;color:#a2ee83;left:11px;top:20px}
.ed-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ed-metric{display:flex;gap:16px;position:relative;align-items:flex-start;min-height:121px;padding:23px 20px;background:#fff;border:1px solid #ffffff;border-radius:13px;text-align:left;color:var(--cg-u-body);box-shadow:0 5px 20px #23334402;transition:transform .16s,box-shadow .16s}
.ed-metric:hover{transform:translateY(-2px);box-shadow:0 7px 20px #27394008}
.ed-metric-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:11px;color:#fff;flex:none;box-shadow:inset 0 2px 4px #ffffff45}.ed-metric-icon.green{background:linear-gradient(140deg,#90e889,#51cf61)}.ed-metric-icon.blue{background:linear-gradient(135deg,#65abff,#367eff)}.ed-metric-icon.purple{background:linear-gradient(135deg,#ce83ff,#a851ed)}
.ed-metric-copy{display:grid;gap:3px;min-width:0}.ed-metric-copy>span{font-size:14px;color:#556171}.ed-metric-copy strong{font-size:25px;font-weight:650;line-height:1.35;color:#202a35}.ed-metric-copy small{margin-top:4px;color:#9ca5b2;font-size:10px;white-space:normal}
.ed-chevron{width:14px;height:14px;color:#a5afbc;flex:none}.ed-metric>.ed-chevron{position:absolute;right:15px;top:25px}
.ed-card{min-width:0;background:#fff;border-radius:14px;box-shadow:0 5px 18px #23334405}
.ed-tasks{display:flex;flex-direction:column;min-height:0}.ed-tasks .ed-task-scroll{flex:1}
.ed-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 22px 20px}.ed-card-header h2{display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.4;color:#222d38;font-weight:650;margin:0;white-space:nowrap}.ed-card-header h2>.cg-icon{color:#409845;width:21px;height:21px;fill:#d2f6a866}
.ed-text-button{display:flex;align-items:center;justify-content:center;gap:4px;border:0;padding:4px 0;background:transparent;color:#919ba9;font-size:11px;white-space:nowrap}.ed-text-button:hover{color:#28b840}.ed-text-button .cg-icon{width:13px;height:13px}
.ed-task-scroll{overflow-x:auto;padding:0 20px}.ed-task-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.ed-task-table th{height:38px;padding:9px 8px;background:#f7f9fb;font-weight:500;color:#7e8999;white-space:nowrap}.ed-task-table th:first-child{border-radius:8px 0 0 8px;padding-left:10px}.ed-task-table th:last-child{border-radius:0 8px 8px 0}.ed-task-table td{padding:15px 8px;border-bottom:1px solid #f2f4f7;color:#7c8899;vertical-align:middle}.ed-task-table tr:last-child td{border-bottom:0}.ed-task-table td:first-child{width:24%}.ed-task-table td:nth-child(2){width:18%}.ed-task-table td:nth-child(3){width:14%}.ed-task-table td:nth-child(4){width:18%}.ed-task-table td:nth-child(5){width:13%;font-size:10px}
.ed-task-name{display:flex;align-items:center;gap:10px;min-width:155px}.ed-task-name strong{display:block;font-size:11px;line-height:1.6;font-weight:550;color:#293441}.ed-task-tag{display:inline-block;color:#39b657;background:#f0faed;border-radius:5px;margin-top:5px;font-size:9px;line-height:1.5;padding:1px 6px}
.ed-cover{position:relative;display:grid;place-items:center;overflow:hidden;flex:none;width:42px;height:46px;background:linear-gradient(145deg,#d7f4ec,#9acfc5);border-radius:8px;color:#589d88}.ed-cover:after{content:'';position:absolute;width:38px;height:38px;right:-15px;bottom:-14px;border-radius:50%;background:#ffffff65}.ed-cover>.cg-icon{width:20px;height:20px;z-index:1}.cover-1{background:linear-gradient(145deg,#fde5e2,#f4c9cc);color:#ce959b}.cover-2{background:linear-gradient(145deg,#fff5c6,#f3e3a1);color:#b3a663}.cover-3{background:linear-gradient(145deg,#dde8f9,#b5c9f5);color:#7d9ec8}
.ed-cell-stack{display:grid;gap:3px}.ed-cell-stack small{font-size:10px;color:#a0a9b7}.ed-requirement{line-height:1.8}.ed-accept{border:0;background:linear-gradient(145deg,#2c343e,#181e26);color:#fff;white-space:nowrap;padding:6px 16px;border-radius:7px;box-shadow:0 3px 5px #242b3112;font-size:11px}.ed-accept:hover{background:#36493b}
.ed-table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 22px;padding:18px 0;border-top:1px solid #f4f6f8;font-size:10px;color:#a4aeba}
.ed-projects{padding-bottom:5px}.ed-project-row{display:flex;align-items:center;gap:12px;text-align:left;width:calc(100% - 40px);margin:0 20px;padding:20px 0;background:none;border:0;border-bottom:1px solid #f2f4f7}.ed-project-row:last-child{border-bottom:0}.ed-project-row:hover .ed-project-copy>strong{color:#25b43e}.ed-project-row>.ed-cover{width:54px;height:60px}.ed-project-copy{display:grid;gap:5px;min-width:0;flex:1}.ed-project-copy>strong{font-size:12px;color:#283440;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ed-project-meta{display:flex;align-items:center;justify-content:space-between;gap:5px}.ed-project-meta small,.ed-project-copy>small{font-size:10px;color:#a0aaba}.ed-project-meta .cg-u-badge{font-size:10px}
.ed-notifications{min-height:340px;padding-bottom:17px}.ed-notification{display:grid;grid-template-columns:31px minmax(0,1fr);gap:12px;padding:18px 22px}.ed-event-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#eafbef;color:#35c252}.ed-event-icon .cg-icon{width:17px;height:17px}.ed-event-icon.blue{color:#3987f6;background:#ecf4ff}.ed-event-icon.purple{color:#ad63ea;background:#f7edff}.ed-event-icon.gray{color:#788494;background:#f0f3f6}.ed-event-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px}.ed-event-heading strong{font-size:12px;color:#33404e;font-weight:550}.ed-event-heading time{color:#9da8b9;font-size:9px}.ed-notification p{margin:6px 0 0;font-size:10px;line-height:1.7;color:#98a3b2;overflow-wrap:anywhere}
@media(min-width:1900px){.cg-editor-shell{--ed-topbar-height:84px;--ed-page-gap:24px}.cg-editor-shell .cg-u-page-header h1{font-size:32px}.cg-editor-shell .cg-u-sidebar{width:270px;grid-template-rows:84px 116px minmax(0,1fr) auto}.cg-editor-shell .cg-u-brand{height:84px;padding:0 25px}.cg-editor-shell .cg-u-brand img{width:205px}.cg-editor-shell .cg-u-main{margin-left:270px}.cg-editor-shell .cg-u-topbar{height:84px}.ed-welcome{min-height:220px;padding:35px}.ed-welcome-art-image{right:-3%;bottom:-12%;width:100%;height:124%}.ed-welcome h1{font-size:40px}.ed-welcome p{font-size:25px}.ed-welcome-copy>span{font-size:16px}.ed-metric{min-height:142px;padding:27px}.ed-metric-copy>span{font-size:16px}.ed-metric-copy strong{font-size:30px}.ed-metric-copy small{font-size:12px}.ed-card-header{padding:25px}.ed-card-header h2{font-size:19px}.ed-task-table{font-size:13px}.ed-task-table td{padding:19px 10px}.ed-task-name strong{font-size:13px}.ed-task-name{gap:15px}.ed-cover{width:50px;height:55px}.ed-cell-stack small,.ed-task-table td:nth-child(5){font-size:12px}.ed-project-row{padding:25px 0}.ed-project-copy>strong{font-size:15px}.ed-project-copy>small,.ed-project-meta small{font-size:12px}.ed-notification{padding:24px}.ed-event-heading strong{font-size:15px}.ed-event-heading time,.ed-notification p{font-size:12px}.ed-text-button{font-size:13px}.ed-notifications{min-height:410px}.ed-help{padding:25px 18px}.ed-help strong{font-size:15px}.ed-help small{font-size:12px}.ed-help>.cg-icon:first-child{width:32px;height:32px}.ed-help>.cg-icon:last-child{width:38px;height:38px;padding:8px}}
@media(max-width:1350px){.cg-editor-shell{--ed-page-gap:16px}.cg-editor-shell .cg-u-sidebar{width:196px}.cg-editor-shell .cg-u-main{margin-left:196px}.ed-dashboard{gap:16px;grid-template-columns:minmax(0,1fr) 280px}.ed-primary,.ed-secondary{gap:16px}.ed-welcome{padding:24px;min-height:170px}.ed-welcome h1{font-size:24px}.ed-welcome p{font-size:16px}.ed-hero-art{right:-14px;transform:scale(.78);transform-origin:right center;opacity:.85}.ed-welcome-copy{max-width:70%}.ed-metric{gap:10px;padding:18px 12px;min-height:115px}.ed-metric-icon{width:32px;height:32px;border-radius:9px}.ed-metric-icon .cg-icon{width:20px;height:20px}.ed-metric-copy>span{font-size:12px}.ed-metric-copy strong{font-size:23px}.ed-metric>.ed-chevron{display:none}.ed-card-header{padding:20px 17px}.ed-card-header h2{font-size:14px}.ed-task-table{min-width:690px}.ed-task-scroll{padding:0 14px}.ed-project-row{margin:0 17px;width:calc(100% - 34px);gap:9px}.ed-project-row>.ed-cover{width:43px;height:51px}.ed-notification{padding:17px}}
@media(max-width:1100px){.ed-dashboard{grid-template-columns:minmax(0,1fr);min-height:0}.ed-primary{grid-template-rows:auto}.ed-secondary{grid-template-columns:1fr 1fr;grid-template-rows:auto}.ed-welcome-copy{max-width:75%}.ed-hero-art{right:30px;transform:scale(.9)}.ed-metric{padding:20px;gap:16px}.ed-metric-icon{width:40px;height:40px}.ed-metric-copy>span{font-size:14px}}
@media(max-width:760px){.cg-editor-shell .cg-u-sidebar{position:static;width:100%;min-height:0;display:block;padding:0}.cg-editor-shell .cg-u-brand{height:60px;padding:16px 20px}.cg-editor-shell .cg-u-brand img{max-width:165px}.ed-sidebar-profile,.ed-help-wrap{display:none}.cg-editor-shell .cg-u-nav{display:flex;padding:0 12px 10px}.cg-editor-shell .cg-u-nav-section{display:flex;width:100%;gap:4px}.cg-editor-shell .cg-u-nav-item{display:flex;justify-content:center;padding:8px;gap:7px;height:42px;margin:0;font-size:12px}.cg-editor-shell .cg-u-nav-icon,.cg-editor-shell .cg-u-nav-icon .cg-icon{width:18px;height:18px}.cg-editor-shell .cg-u-nav-item.is-active:before{display:none}.cg-editor-shell .cg-u-main{margin:0}.cg-editor-shell .cg-u-topbar{height:60px;min-height:60px;padding:0 16px}.ed-global-search{width:100%;margin:0}.ed-top-actions{gap:10px}.ed-top-divider,.ed-top-user-copy,.ed-top-user>.cg-icon{display:none}.ed-account-menu{max-height:calc(100dvh - 180px)}.ed-secondary{grid-template-columns:1fr}.ed-welcome{min-height:170px;padding:20px}.ed-welcome-copy{max-width:72%}.ed-welcome-art-image{right:-30%;bottom:-7%;width:125%;height:112%;opacity:.9}.ed-welcome h1{font-size:22px}.ed-welcome p{font-size:15px}.ed-welcome-copy>span{font-size:11px}.ed-metrics{gap:8px}.ed-metric{display:block;min-height:145px;padding:15px 12px}.ed-metric-copy{margin-top:10px}.ed-metric-copy>span{font-size:11px}.ed-metric-copy small{font-size:9px}.ed-metric-icon{width:30px;height:30px}.ed-metric-copy strong{font-size:23px}.ed-table-footer>span{display:none}.ed-table-footer{justify-content:flex-end}}
.cg-editor-shell .cg-u-toolbar{min-width:0}
.cg-editor-shell .cg-u-search .cg-u-button{flex-shrink:0;white-space:nowrap}
.cg-editor-shell .cg-u-search input{min-width:0}
.cg-editor-shell .cg-u-segmented button{flex-shrink:0;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.ed-metric{transition:none}}



/* --- from styles.css (cg-u-* base) --- */

.cg-u-shell {
  --cg-u-canvas: #fff;
  --cg-u-soft: #f8fafc;
  --cg-u-strong: #e0e2e6;
  --cg-u-ink: #181d26;
  --cg-u-body: #333840;
  --cg-u-muted: #6b7280;
  --cg-u-line: #ddd;
  --cg-u-line-strong: #9297a0;
  --cg-u-link: #1b61c9;
  --cg-u-info: #254fad;
  --cg-u-success: #006400;
  --cg-u-warning: #9a6700;
  --cg-u-danger: #b42318;
  --cg-u-video: #181d26;
  box-sizing: border-box;
  min-height: 100vh;
  color: var(--cg-u-body);
  background: var(--cg-u-canvas);
  font: 14px/1.55 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.cg-u-shell *,
.cg-u-shell *::before,
.cg-u-shell *::after { box-sizing: border-box; }

.cg-u-shell button,
.cg-u-shell input,
.cg-u-shell select { font: inherit; }

.cg-u-shell button,
.cg-u-shell a { -webkit-tap-highlight-color: transparent; }

.cg-u-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) auto;
  width: 240px;
  min-height: 100vh;
  background: var(--cg-u-canvas);
  border-right: 1px solid var(--cg-u-line);
}

.cg-u-brand {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--cg-u-line);
}

.cg-u-brand img { display: block; width: auto; max-width: 148px; height: 28px; object-fit: contain; }

.cg-u-nav { min-height: 0; padding: 16px 12px 24px; overflow: auto; }
.cg-u-nav-section + .cg-u-nav-section { margin-top: 18px; }
.cg-u-nav-group {
  margin: 0 10px 6px;
  color: var(--cg-u-muted);
  font-size: 12px;
  line-height: 18px;
}

.cg-u-nav-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--cg-u-body);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.cg-u-nav-item:hover { background: var(--cg-u-soft); }
.cg-u-nav-item.is-active { color: var(--cg-u-ink); background: var(--cg-u-soft); font-weight: 500; }
.cg-u-nav-icon { color: var(--cg-u-muted); text-align: center; }
.cg-u-nav-item.is-active .cg-u-nav-icon { color: var(--cg-u-ink); }
.cg-u-nav-compat { color: var(--cg-u-muted); font-size: 11px; }

.cg-u-account-wrap { position: relative; padding: 12px; background: var(--cg-u-canvas); border-top: 1px solid var(--cg-u-line); }
.cg-u-platform-switch { display: grid; gap: 4px; margin: 0 4px 10px; }
.cg-u-platform-switch label { color: var(--cg-u-muted); font-size: 12px; }
.cg-u-platform-switch select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: var(--cg-u-body);
  background: #fff;
  border: 1px solid var(--cg-u-line);
  border-radius: 6px;
}

.cg-u-account {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 6px 8px;
  color: var(--cg-u-body);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.cg-u-account:hover { background: var(--cg-u-soft); }
.cg-u-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--cg-u-ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.cg-u-account-copy { display: grid; min-width: 0; }
.cg-u-account-copy strong,
.cg-u-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-u-account-copy strong { color: var(--cg-u-ink); font-weight: 500; }
.cg-u-account-copy small { color: var(--cg-u-muted); font-size: 12px; }
.cg-u-account-menu {
  position: absolute;
  right: 12px;
  bottom: 72px;
  left: 12px;
  z-index: 30;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--cg-u-line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(24, 29, 38, .12);
}
.cg-u-account-menu > div { display: grid; padding: 8px; border-bottom: 1px solid var(--cg-u-line); }
.cg-u-account-menu small { color: var(--cg-u-warning); }
.cg-u-account-menu button { width: 100%; margin-top: 6px; padding: 8px; text-align: left; background: transparent; border: 0; cursor: pointer; }
.cg-u-account-menu button:hover { background: var(--cg-u-soft); }

.cg-u-main { min-width: 0; min-height: 100vh; margin-left: 240px; }
.cg-u-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--cg-u-line);
}
.cg-u-breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--cg-u-muted); }
.cg-u-breadcrumb strong { color: var(--cg-u-ink); font-weight: 500; }
.cg-u-readonly { color: var(--cg-u-warning); font-size: 12px; }
.cg-u-content { padding: 32px; }
.cg-u-page { display: grid; gap: 24px; width: 100%; max-width: 1440px; margin: 0 auto; }

.cg-u-page-header { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.cg-u-page-header h1 { margin: 0; color: var(--cg-u-ink); font-size: 28px; line-height: 36px; font-weight: 500; }
.cg-u-page-description { max-width: 780px; margin: 8px 0 0; color: var(--cg-u-muted); }
.cg-u-eyebrow { margin: 0 0 4px; color: var(--cg-u-muted); font-size: 12px; letter-spacing: .08em; }
.cg-u-page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cg-u-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  color: var(--cg-u-body);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--cg-u-line);
  border-radius: 10px;
  cursor: pointer;
}
.cg-u-button-primary { color: #fff; background: var(--cg-u-ink); border-color: var(--cg-u-ink); }
.cg-u-button-secondary:hover { background: var(--cg-u-soft); }
.cg-u-button:disabled { color: var(--cg-u-muted); background: var(--cg-u-strong); border-color: var(--cg-u-strong); cursor: not-allowed; }

.cg-u-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--cg-u-line);
  border-bottom: 1px solid var(--cg-u-line);
}
.cg-u-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 20px 18px;
  color: var(--cg-u-muted);
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--cg-u-line);
  cursor: pointer;
}
.cg-u-metric:last-child { border-right: 0; }
.cg-u-metric:hover { background: var(--cg-u-soft); }
.cg-u-metric strong { color: var(--cg-u-ink); font-size: 28px; line-height: 32px; font-weight: 475; overflow-wrap: anywhere; }
.cg-u-metric small { color: var(--cg-u-muted); }

.cg-u-section { min-width: 0; background: #fff; border: 1px solid var(--cg-u-line); border-radius: 10px; }
.cg-u-section-header { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--cg-u-line); }
.cg-u-section-header h2 { margin: 0; color: var(--cg-u-ink); font-size: 20px; line-height: 30px; font-weight: 500; }
.cg-u-section-header p { margin: 2px 0 0; color: var(--cg-u-muted); font-size: 12px; }

.cg-u-list { display: grid; }
.cg-u-list-row { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 20px; border-bottom: 1px solid var(--cg-u-line); }
.cg-u-list-row:last-child { border-bottom: 0; }
.cg-u-list-row time { color: var(--cg-u-muted); font-size: 12px; }
.cg-u-list-main { display: grid; min-width: 0; gap: 2px; }
.cg-u-list-main strong { color: var(--cg-u-ink); font-weight: 500; overflow-wrap: anywhere; }
.cg-u-list-main span,
.cg-u-list-main small { color: var(--cg-u-muted); overflow-wrap: anywhere; }

.cg-u-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cg-u-search { display: flex; gap: 8px; min-width: min(100%, 420px); }
.cg-u-search input {
  width: min(360px, 100%);
  height: 44px;
  padding: 0 16px;
  color: var(--cg-u-body);
  background: #fff;
  border: 1px solid var(--cg-u-line);
  border-radius: 6px;
}
.cg-u-search input:focus,
.cg-u-platform-switch select:focus { border-color: var(--cg-u-line-strong); outline: 2px solid rgba(27, 97, 201, .16); outline-offset: 1px; }
.cg-u-segmented { display: flex; padding: 3px; border: 1px solid var(--cg-u-line); border-radius: 6px; }
.cg-u-segmented button { min-height: 34px; padding: 4px 12px; color: var(--cg-u-muted); background: transparent; border: 0; border-radius: 3px; cursor: pointer; }
.cg-u-segmented button.is-active { color: var(--cg-u-ink); background: var(--cg-u-soft); box-shadow: inset 0 0 0 1px var(--cg-u-line-strong); }

.cg-u-table-section { overflow: hidden; }
.cg-u-table-head,
.cg-u-table-row { display: grid; align-items: center; column-gap: 16px; }
.cg-u-table-head { min-height: 44px; padding: 0 20px; color: var(--cg-u-muted); background: var(--cg-u-soft); font-size: 12px; border-bottom: 1px solid var(--cg-u-line); }
.cg-u-table-row { min-height: 72px; padding: 12px 20px; border-bottom: 1px solid var(--cg-u-line); }
.cg-u-table-row:last-child { border-bottom: 0; }
.cg-u-table-row:hover { background: #fbfcfd; }
.cg-u-project-grid { grid-template-columns: minmax(260px, 2fr) minmax(100px, .6fr) minmax(90px, .5fr) minmax(145px, .8fr) 64px; }
.cg-u-task-grid { grid-template-columns: minmax(220px, 1.35fr) minmax(120px, .75fr) minmax(220px, 1.3fr) minmax(110px, .65fr) minmax(120px, .8fr); }
.cg-u-output-grid { grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 1fr) 72px minmax(92px, .55fr) minmax(145px, .8fr) 100px; }
.cg-u-cell-link { min-width: 0; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
.cg-u-project-copy { display: grid; gap: 3px; }
.cg-u-project-copy strong { color: var(--cg-u-link); font-weight: 500; overflow-wrap: anywhere; }
.cg-u-project-copy small { color: var(--cg-u-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-u-link { padding: 2px 0; color: var(--cg-u-link); text-decoration: none; background: transparent; border: 0; cursor: pointer; }
.cg-u-link:hover { text-decoration: underline; }
.cg-u-link:disabled { color: var(--cg-u-muted); cursor: not-allowed; text-decoration: none; }
.cg-u-link-muted { color: var(--cg-u-muted); }
.cg-u-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cg-u-output-copy { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.cg-u-video-thumb { display: grid; place-items: center; width: 56px; height: 44px; color: #fff; background: var(--cg-u-video); border-radius: 6px; font-size: 11px; }
.cg-u-mono { font: 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace; }

.cg-u-status { display: inline-flex; gap: 7px; align-items: center; width: fit-content; white-space: nowrap; }
.cg-u-status-dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
.cg-u-status.is-success { color: var(--cg-u-success); }
.cg-u-status.is-danger { color: var(--cg-u-danger); }
.cg-u-status.is-warning { color: var(--cg-u-warning); }
.cg-u-status.is-info { color: var(--cg-u-info); }
.cg-u-status.is-muted { color: var(--cg-u-muted); }

.cg-u-pagination { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 20px; color: var(--cg-u-muted); border-top: 1px solid var(--cg-u-line); }
.cg-u-pagination > div { display: flex; gap: 8px; }
.cg-u-empty { display: grid; place-items: center; min-height: 220px; padding: 32px; text-align: center; }
.cg-u-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; color: var(--cg-u-muted); border: 1px solid var(--cg-u-line); border-radius: 10px; }
.cg-u-empty strong { color: var(--cg-u-ink); font-weight: 500; }
.cg-u-empty p { max-width: 520px; margin: 4px 0 16px; color: var(--cg-u-muted); }
.cg-u-loading { min-height: 180px; padding: 72px 20px; color: var(--cg-u-muted); text-align: center; }

.cg-u-global-notice,
.cg-u-alert,
.cg-u-notice { padding: 12px 16px; background: #fff; border: 1px solid var(--cg-u-line); border-radius: 6px; }
.cg-u-global-notice { margin: 0 auto 24px; color: var(--cg-u-warning); border-color: rgba(154, 103, 0, .42); }
.cg-u-alert { display: flex; gap: 16px; justify-content: space-between; max-width: 1440px; margin: 0 auto 16px; }
.cg-u-alert button { color: inherit; background: transparent; border: 0; cursor: pointer; }
.cg-u-alert-error { color: var(--cg-u-danger); border-color: rgba(180, 35, 24, .36); }
.cg-u-alert-success { color: var(--cg-u-success); border-color: rgba(0, 100, 0, .32); }
.cg-u-notice strong { color: var(--cg-u-ink); font-weight: 500; }
.cg-u-notice p { margin: 4px 0 0; color: var(--cg-u-muted); }
.cg-u-notice-info { border-color: rgba(37, 79, 173, .34); }

.cg-u-project-overview { display: grid; gap: 24px; padding: 24px; border: 1px solid var(--cg-u-line); border-radius: 10px; }
.cg-u-project-title-row { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.cg-u-project-title-row h2 { margin: 0; color: var(--cg-u-ink); font-size: 20px; font-weight: 500; }
.cg-u-project-title-row p { margin: 4px 0 0; color: var(--cg-u-muted); }
.cg-u-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--cg-u-line); border-bottom: 1px solid var(--cg-u-line); }
.cg-u-detail-grid > div { display: grid; gap: 4px; padding: 18px; border-right: 1px solid var(--cg-u-line); }
.cg-u-detail-grid > div:last-child { border-right: 0; }
.cg-u-detail-grid dt { color: var(--cg-u-muted); }
.cg-u-detail-grid dd { margin: 0; color: var(--cg-u-ink); overflow-wrap: anywhere; }

.cg-u-activity-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.cg-u-project-selector { overflow: hidden; }
.cg-u-project-selector > button { display: grid; gap: 2px; width: 100%; min-height: 64px; padding: 12px 20px; color: var(--cg-u-body); text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--cg-u-line); cursor: pointer; }
.cg-u-project-selector > button:hover,
.cg-u-project-selector > button.is-active { background: var(--cg-u-soft); }
.cg-u-project-selector > button strong { color: var(--cg-u-ink); font-weight: 500; }
.cg-u-project-selector > button small { color: var(--cg-u-muted); }
.cg-u-activity-stream { overflow: hidden; }
.cg-u-activity-stream > .cg-u-notice { margin: 20px; }
.cg-u-timeline-list { padding: 8px 20px 20px; }
.cg-u-timeline-event { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; min-height: 82px; padding: 14px 0; }
.cg-u-timeline-event::before { position: absolute; top: 30px; bottom: -16px; left: 5px; width: 1px; background: var(--cg-u-line); content: ""; }
.cg-u-timeline-event:last-child::before { display: none; }
.cg-u-timeline-marker { z-index: 1; width: 11px; height: 11px; margin-top: 4px; background: #fff; border: 2px solid var(--cg-u-ink); border-radius: 50%; }
.cg-u-timeline-title { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.cg-u-timeline-title strong { color: var(--cg-u-ink); font-weight: 500; }
.cg-u-timeline-event p { margin: 3px 0 0; color: var(--cg-u-muted); font-size: 12px; }
.cg-u-progress { width: 100%; height: 3px; margin-top: 10px; overflow: hidden; background: var(--cg-u-strong); }
.cg-u-progress span { display: block; height: 100%; background: var(--cg-u-ink); }

.cg-u-compat-page { display: grid; place-items: center; min-height: 420px; padding: 48px; }
.cg-u-compat-page > div { max-width: 660px; }
.cg-u-compat-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; color: var(--cg-u-link); border: 1px solid var(--cg-u-line); border-radius: 10px; font-size: 22px; }
.cg-u-compat-page h2 { margin: 0; color: var(--cg-u-ink); font-size: 20px; font-weight: 500; }
.cg-u-compat-page p,
.cg-u-compat-page li { color: var(--cg-u-muted); }

.cg-u-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(24, 29, 38, .42); }
.cg-u-modal { width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(24, 29, 38, .18); }
.cg-u-modal > header,
.cg-u-modal > footer { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 24px; }
.cg-u-modal > header { border-bottom: 1px solid var(--cg-u-line); }
.cg-u-modal > footer { justify-content: flex-end; border-top: 1px solid var(--cg-u-line); }
.cg-u-modal h2 { margin: 0; color: var(--cg-u-ink); font-size: 20px; font-weight: 500; }
.cg-u-modal header p { margin: 2px 0 0; color: var(--cg-u-muted); }
.cg-u-modal header > button { padding: 4px 8px; color: var(--cg-u-muted); background: transparent; border: 0; font-size: 24px; cursor: pointer; }
.cg-u-preview-canvas { display: grid; place-items: center; min-height: 460px; padding: 24px; color: #fff; background: var(--cg-u-video); }
.cg-u-preview-canvas video { display: block; width: auto; max-width: 100%; height: auto; max-height: 64vh; aspect-ratio: 9 / 16; background: #000; }

.cg-u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1280px) {
  .cg-u-content { padding: 24px; }
  .cg-u-topbar { padding: 0 24px; }
  .cg-u-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cg-u-metric:nth-child(3) { border-right: 0; }
  .cg-u-metric:nth-child(-n + 3) { border-bottom: 1px solid var(--cg-u-line); }
  .cg-u-output-grid { grid-template-columns: minmax(220px, 1.35fr) minmax(160px, 1fr) 72px 100px 100px; }
  .cg-u-output-grid > :nth-child(5) { display: none; }
}

@media (max-width: 980px) {
  .cg-u-sidebar { width: 200px; }
  .cg-u-main { margin-left: 200px; }
  .cg-u-toolbar { align-items: stretch; }
  .cg-u-search { width: 100%; }
  .cg-u-search input { flex: 1; width: auto; }
  .cg-u-segmented { max-width: 100%; overflow-x: auto; }
  .cg-u-table-head { display: none; }
  .cg-u-table-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .cg-u-table-row > * { min-width: 0; }
  .cg-u-table-row > :first-child { grid-column: 1; }
  .cg-u-table-row > :not(:first-child) { grid-column: auto; }
  .cg-u-activity-layout { grid-template-columns: 1fr; }
  .cg-u-project-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-u-project-selector .cg-u-section-header { grid-column: 1 / -1; }
  .cg-u-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-u-detail-grid > div:nth-child(2) { border-right: 0; }
  .cg-u-detail-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--cg-u-line); }
}

@media (max-width: 720px) {
  .cg-u-sidebar { position: static; width: 100%; min-height: auto; grid-template-rows: auto; border-right: 0; border-bottom: 1px solid var(--cg-u-line); }
  .cg-u-brand { height: 60px; }
  .cg-u-nav { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; }
  .cg-u-nav-section { display: contents; }
  .cg-u-nav-group,
  .cg-u-nav-compat { display: none; }
  .cg-u-nav-item { flex: 0 0 auto; width: auto; grid-template-columns: 18px auto; }
  .cg-u-account-wrap { display: none; }
  .cg-u-main { margin-left: 0; }
  .cg-u-content { padding: 20px 16px; }
  .cg-u-topbar { position: static; min-height: 52px; padding: 0 16px; }
  .cg-u-page-header { display: grid; }
  .cg-u-page-actions { width: 100%; }
  .cg-u-page-actions .cg-u-button { flex: 1; }
  .cg-u-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-u-metric:nth-child(3) { border-right: 1px solid var(--cg-u-line); }
  .cg-u-metric:nth-child(even) { border-right: 0; }
  .cg-u-metric:nth-child(-n + 4) { border-bottom: 1px solid var(--cg-u-line); }
  .cg-u-detail-grid { grid-template-columns: 1fr; }
  .cg-u-detail-grid > div { border-right: 0; border-bottom: 1px solid var(--cg-u-line); }
  .cg-u-detail-grid > div:last-child { border-bottom: 0; }
  .cg-u-pagination { align-items: flex-start; gap: 12px; }
  .cg-u-preview-canvas { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-u-shell * { scroll-behavior: auto !important; }
}



/* Classic-shell compatibility: the editor root keeps the cg-workspace class
   for aria/tests; the ported shell is a fixed-sidebar layout, not a grid. */
.cg-workspace.cg-editor-shell { display: block; grid-template-columns: none; grid-template-rows: none; }
.cg-editor-shell .cg-u-content.cg-main { grid-column: auto; grid-row: auto; width: 100%; max-width: none; padding: var(--ed-page-gap); }
.cg-editor-shell .cg-u-main.cg-shell-main { display: block; }
.cg-editor-shell .cg-u-topbar.cg-header { display: flex; }
.cg-editor-shell .ed-top-actions.cg-header-actions { display: flex; }


/* --- page styles from WorkItemsPage.vue --- */
.ed-project-page { --ed-brand-green: #32cb42; --ed-brand-lime: #a5f35d; --ed-brand-deep: #159b3d; --ed-brand-soft: #efffdc; display: flex; flex-direction: column; gap: 18px; max-width: none; height: calc(100dvh - var(--ed-topbar-height, 76px) - (var(--ed-page-gap, 22px) * 2)); min-height: 0; overflow: hidden; }
.ed-project-page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; }
.ed-project-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 22px; }
.ed-project-title h1 { margin: 0; color: #16202a; font-size: 27px; font-weight: 680; line-height: 1.25; letter-spacing: .5px; }
.ed-project-title p { margin: 0; color: #99a2ad; font-size: 13px; }
.ed-project-controls { display: flex; align-items: center; gap: 16px; }
.ed-project-status-select { position: relative; display: flex; align-items: center; width: 180px; height: 40px; color: #65717e; }
.ed-project-status-select select { width: 100%; height: 100%; padding: 0 44px 0 20px; appearance: none; border: 1px solid #eef1f4; border-radius: 22px; outline: none; background: #fff; color: #28333e; font: inherit; font-weight: 550; cursor: pointer; }
.ed-project-status-select > .cg-icon { position: absolute; right: 16px; width: 14px; height: 14px; pointer-events: none; }
.ed-project-view-switch { display: flex; height: 40px; padding: 3px; border-radius: 22px; background: #fff; }
.ed-project-view-switch button { display: grid; place-items: center; width: 47px; height: 34px; padding: 0; border: 0; border-radius: 18px; color: #24313d; background: transparent; }
.ed-project-view-switch button.is-active { color: var(--ed-brand-deep); background: linear-gradient(135deg, #f0ffc9, #dfffaa); }
.ed-project-view-switch .cg-icon { width: 20px; height: 20px; }
.ed-grid-icon { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.ed-grid-icon i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.ed-project-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-project-metric { min-width: 0; }
.ed-project-metric.is-active { box-shadow: 0 0 0 1px #8fdf8b, 0 7px 20px #27394008; }
.ed-project-metric .ed-metric-icon.orange { background: linear-gradient(135deg, #ffd86f, #e7aa17); }
.ed-work-results { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; padding: 20px; container-type: inline-size; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334405; }
.ed-work-grid { display: grid; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; min-height: 0; overflow: auto; gap: 16px 20px; padding-right: 4px; }
.ed-work-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; gap: 14px; min-width: 0; min-height: 188px; padding: 12px; overflow: hidden; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334404; transition: transform .16s, box-shadow .16s, border-color .16s; }
.ed-work-card:hover { border-color: #d8edda; box-shadow: 0 9px 24px #2739400b; transform: translateY(-2px); }
.ed-work-card .ed-thumbnail { align-self: center; width: 92px; height: auto; min-height: 0; aspect-ratio: 9 / 16; border-radius: 10px; }
.ed-work-card .ed-thumbnail-frame { width: 44px; height: 34px; border-radius: 8px; transition: transform .16s; }
.ed-work-card:hover .ed-thumbnail-frame { transform: scale(1.05); }
.ed-work-card .ed-thumbnail-label { display: none; }
.ed-work-card .cg-u-status { position: absolute; left: 6px; bottom: 7px; z-index: 2; max-width: calc(100% - 12px); padding: 3px 7px; border-radius: 12px; background: var(--ed-brand-green); color: #fff; font-size: 9px; line-height: 1.4; white-space: nowrap; box-shadow: 0 2px 7px #1727201e; }
.ed-work-card .cg-u-status-dot { display: none; }
.ed-work-card-menu { position: absolute; right: 5px; top: 5px; z-index: 2; min-width: 23px; height: 20px; padding: 0 5px; border-radius: 7px; color: #fff; background: #26353c52; font-size: 10px; line-height: 18px; letter-spacing: 1px; text-align: center; }
.ed-work-streamer-badge { position: absolute; z-index: 3; top: 0; right: 0; display: inline-flex; align-items: center; max-width: 48%; min-width: 0; gap: 6px; padding: 5px 9px 6px 7px; overflow: hidden; color: #fff; background: #111820; border: 1px solid #2d3842; border-top: 0; border-right: 0; border-radius: 0 0 0 13px; font-size: 9px; line-height: 1.35; box-shadow: 0 3px 8px #0d141a26; }
.ed-work-card:nth-child(4n + 1) .ed-thumbnail { color: #4a8f83; background: linear-gradient(135deg, #f0d5d8, #f3bfc5 46%, #ead8d4); }
.ed-work-card:nth-child(4n + 2) .ed-thumbnail { color: #568791; background: linear-gradient(135deg, #dceceb, #bdd9df 48%, #e1d9c4); }
.ed-work-card:nth-child(4n + 3) .ed-thumbnail { color: #568fb0; background: linear-gradient(135deg, #d6f0fa, #a4d7ec 46%, #d9f2f3); }
.ed-work-card:nth-child(4n) .ed-thumbnail { color: #5d8c69; background: linear-gradient(135deg, #e9f2e1, #b9d5ae 48%, #eef5e8); }
.ed-work-card-body { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; }
.ed-work-card-body > * { flex-shrink: 0; }
.ed-work-card-heading { display: flex; align-items: flex-start; gap: 10px; }
.ed-work-card.has-streamer .ed-work-card-heading { padding-right: 140px; }
.ed-work-card-heading h2 { min-width: 0; margin: 0; color: #283440; font-size: 12px; font-weight: 550; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-work-source { margin: 2px 0 6px; color: #a0aaba; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-work-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #556171; font-size: 10px; }
.ed-work-meta span, .ed-work-store, .ed-work-deadline { display: flex; align-items: center; gap: 6px; }
.ed-work-meta .cg-icon, .ed-work-store .cg-icon, .ed-work-deadline .cg-icon { width: 13px; height: 13px; color: #8c98a5; }
.ed-work-requirement-copy { margin: 4px 0 0; color: #7e8999; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-work-stage { display: grid; grid-template-columns: minmax(60px, 1fr) auto; align-items: center; gap: 8px; margin-top: 7px; }
.ed-work-stage-track { height: 5px; overflow: hidden; border-radius: 5px; background: #e9edf0; }
.ed-work-stage-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ed-brand-green), var(--ed-brand-lime)); }
.ed-work-stage strong { color: #98a3b2; font-size: 9px; font-weight: 500; white-space: nowrap; }
.ed-work-context { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; margin-top: 6px; }
.ed-work-store { min-width: 0; margin: 0; color: #98a3b2; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-work-deadline { color: #7c8899; font-size: 9px; }
.ed-work-deadline .cg-icon { color: var(--ed-brand-deep); }
.ed-work-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: auto; padding-top: 7px; }
.ed-work-card-actions button { flex: 1; min-width: 0; min-height: 28px; border-radius: 15px; font-size: 10px; white-space: nowrap; transition: transform .16s, box-shadow .16s, background .16s; }
.ed-work-card-actions button:hover:not(:disabled) { transform: translateY(-1px); }
.ed-work-secondary { padding: 4px 10px; border: 1px solid #b3bbc2; color: #424d56; background: #fff; }
.ed-work-card-actions .ed-work-primary { display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border: 0; color: #fff; background: linear-gradient(145deg, #2c343e, #181e26); box-shadow: 0 3px 5px #242b3112; text-decoration: none; }
.ed-work-card-actions .ed-work-primary.is-accept { color: #18220f; background: #c6f24e; box-shadow: 0 4px 9px #8ab33138; }
.ed-work-card-actions .ed-work-primary.is-accept:hover:not(:disabled) { color: #18220f; background: #d3f768; }
.ed-work-card-actions .ed-work-primary.is-accept:disabled { color: #607044; background: #dce9bc; box-shadow: none; }
.ed-work-card-actions .ed-work-primary:only-child { flex: 0 1 142px; margin-left: auto; }
.ed-work-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.ed-work-grid.is-list .ed-work-card { grid-template-columns: 78px minmax(0, 1fr); min-height: 162px; }
.ed-work-grid.is-list .ed-work-card .ed-thumbnail { width: 78px; }
.ed-project-safety-note { display: flex; align-items: center; gap: 12px; min-height: 41px; margin-top: 14px; padding: 8px 16px; border-radius: 11px; color: #1d9a3f; background: linear-gradient(90deg, #f0ffd9, #fbffef); }
.ed-project-safety-note > span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--ed-brand-deep); font-size: 11px; font-weight: 700; }
.ed-project-safety-note p { margin: 0; font-size: 11px; }
.ed-work-results > .cg-u-pagination { margin-top: auto; padding: 12px 0 0; background: transparent; border: 0; border-top: 1px solid #edf1f4; border-radius: 0; }
@media (min-width: 1900px) {
  .ed-project-title h1 { font-size: 32px; }
  .ed-project-title p { font-size: 15px; }
  .ed-project-status-select { width: 225px; height: 46px; }
  .ed-project-view-switch { height: 46px; }
  .ed-project-view-switch button { width: 58px; height: 40px; }
  .ed-work-grid { align-content: start; overflow: auto; grid-auto-rows: 212px; padding-right: 0; }
  .ed-work-card { grid-template-columns: auto minmax(0, 1fr); min-height: 212px; padding: 14px; gap: 18px; }
  .ed-work-card .ed-thumbnail { width: 104px; height: auto; max-height: none; align-self: center; }
  .ed-work-card .ed-thumbnail-frame { width: 56px; height: 44px; }
  .ed-work-card-heading h2 { font-size: 16px; line-height: 1.3; }
  .ed-work-card.has-streamer .ed-work-card-heading { padding-right: 140px; }
  .ed-work-source { margin: 2px 0 5px; font-size: 12px; }
  .ed-work-meta { gap: 6px 14px; font-size: 12px; }
  .ed-work-meta .cg-icon, .ed-work-store .cg-icon, .ed-work-deadline .cg-icon { width: 15px; height: 15px; }
  .ed-work-requirement-copy { display: -webkit-box; min-height: 2.7em; margin-top: 3px; font-size: 11px; line-height: 1.35; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .ed-work-stage { gap: 8px; margin-top: 6px; }
  .ed-work-stage-track { height: 6px; }
  .ed-work-stage strong { font-size: 11px; }
  .ed-work-context { gap: 4px 12px; margin-top: 5px; }
  .ed-work-store, .ed-work-deadline { font-size: 10px; }
  .ed-work-card-actions { gap: 8px; padding-top: 6px; }
  .ed-work-card-actions button { min-height: 34px; border-radius: 18px; font-size: 12px; }
  .ed-work-card-actions .ed-work-primary:only-child { flex-basis: 160px; }
  .ed-work-streamer-badge { top: 0; right: 0; gap: 7px; padding: 7px 12px 7px 8px; border-radius: 0 0 0 16px; font-size: 11px; }
  .ed-work-streamer-avatar { width: 22px; height: 22px; font-size: 10px; }
  .ed-work-streamer-badge > .cg-icon { width: 17px; height: 17px; }
}
@container (max-width: 720px) {
  .ed-work-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (min-width: 1180px) {
  .ed-work-grid:not(.is-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 3000px) {
  .ed-work-grid:not(.is-list) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ed-project-page { height: auto; min-height: calc(100dvh - var(--ed-topbar-height, 60px) - (var(--ed-page-gap, 16px) * 2)); overflow: visible; }
  .ed-project-page-header { align-items: flex-start; flex-direction: column; }
  .ed-project-controls { width: 100%; }
  .ed-project-status-select { flex: 1; width: auto; }
  .ed-project-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-work-results { min-height: 0; overflow: visible; padding: 14px; }
  .ed-work-grid { flex: none; overflow: visible; padding-right: 0; }
  .ed-work-card, .ed-work-grid.is-list .ed-work-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 168px; }
  .ed-work-card .ed-thumbnail, .ed-work-grid.is-list .ed-work-card .ed-thumbnail { width: 82px; aspect-ratio: 9 / 16; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-project-metric, .ed-work-card, .ed-work-card .ed-thumbnail-frame, .ed-work-card-actions button { transition: none; }
}


/* --- page styles from OutputProjectsPage.vue --- */
.ed-output-projects { display: flex; flex-direction: column; gap: 18px; max-width: none; min-height: calc(100dvh - var(--ed-topbar-height, 76px) - (var(--ed-page-gap, 22px) * 2)); }
.ed-output-page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; }
.ed-output-page-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 22px; }
.ed-output-page-title h1 { margin: 0; color: #16202a; font-size: 27px; font-weight: 680; line-height: 1.25; letter-spacing: .5px; }
.ed-output-page-title p { margin: 0; color: #99a2ad; font-size: 13px; }
.ed-output-page-controls { display: flex; align-items: center; gap: 16px; }
.ed-output-project-search { width: 220px; min-width: 0; height: 40px; flex: 0 0 220px; padding: 0; border: 0; background: transparent; }
.ed-output-project-search input { height: 40px; padding: 0 16px; border: 1px solid #eef1f4; border-radius: 22px; background: #fff; font-size: 11px; }
.ed-output-status-select { position: relative; display: flex; align-items: center; width: 180px; height: 40px; flex: none; color: #65717e; }
.ed-output-status-select select { width: 100%; height: 100%; padding: 0 44px 0 20px; appearance: none; border: 1px solid #eef1f4; border-radius: 22px; outline: none; background: #fff; color: #28333e; font: inherit; font-weight: 550; cursor: pointer; }
.ed-output-status-select > .cg-icon { position: absolute; right: 16px; width: 14px; height: 14px; pointer-events: none; }
.ed-output-view-switch { display: flex; height: 40px; flex: none; padding: 3px; border-radius: 22px; background: #fff; }
.ed-output-view-switch button { display: grid; place-items: center; width: 47px; height: 34px; padding: 0; border: 0; border-radius: 18px; color: #24313d; background: transparent; }
.ed-output-view-switch button.is-active { color: #07972d; background: linear-gradient(135deg, #eaffbd, #dfffaa); }
.ed-output-view-switch .cg-icon { width: 20px; height: 20px; }
.ed-output-grid-icon { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.ed-output-grid-icon i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.ed-output-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-output-metric { min-width: 0; }
.ed-output-metric.is-active { box-shadow: 0 0 0 1px #8fdf8b, 0 7px 20px #27394008; }
.ed-output-metric .ed-metric-icon.orange { background: linear-gradient(135deg, #ffd86f, #e7aa17); }
.ed-output-project-results { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 20px; container-type: inline-size; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334405; }
.ed-output-project-results > .cg-u-pagination { margin-top: auto; padding: 12px 0 0; background: transparent; border: 0; border-top: 1px solid #edf1f4; border-radius: 0; }
.ed-output-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ed-output-project-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; gap: 14px; min-width: 0; min-height: 188px; padding: 12px; overflow: hidden; color: inherit; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; text-align: left; box-shadow: 0 5px 18px #23334404; transition: transform .16s, box-shadow .16s, border-color .16s; }
.ed-output-project-card:hover { border-color: #d8edda; box-shadow: 0 9px 24px #2739400b; transform: translateY(-2px); }
.ed-output-project-card .ed-thumbnail { align-self: center; width: 92px; height: auto; min-height: 0; aspect-ratio: 9 / 16; border-radius: 10px; color: #568791; background: linear-gradient(135deg, #dceceb, #bdd9df 48%, #e1d9c4); }
.ed-output-project-card .ed-thumbnail-frame { transition: transform .16s; }
.ed-output-project-card:hover .ed-thumbnail-frame { transform: scale(1.05); }
.ed-output-project-card .ed-thumbnail-label, .ed-output-project-card .cg-u-status-dot { display: none; }
.ed-output-project-card .cg-u-status { position: absolute; left: 6px; bottom: 7px; z-index: 2; max-width: calc(100% - 12px); padding: 3px 7px; border-radius: 12px; background: #0bbd48; color: #fff; font-size: 9px; line-height: 1.4; white-space: nowrap; box-shadow: 0 2px 7px #1727201e; }
.ed-output-count { position: absolute; right: 5px; top: 5px; z-index: 2; padding: 2px 6px; border-radius: 7px; color: #fff; background: #26353c66; font-size: 9px; }
.ed-output-project-body { display: flex; flex-direction: column; min-width: 0; }
.ed-output-project-body > * { flex-shrink: 0; }
.ed-output-project-title { display: flex; align-items: flex-start; gap: 8px; color: #283440; }
.ed-output-project-title strong { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 550; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.ed-output-project-title .cg-icon { width: 13px; height: 13px; margin: 2px 0 0 auto; color: #a5afbc; }
.ed-output-project-source { margin: 2px 0 6px; color: #a0aaba; font-size: 10px; }
.ed-output-project-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #556171; font-size: 10px; }
.ed-output-project-meta > span, .ed-output-project-context { display: flex; align-items: center; gap: 5px; }
.ed-output-project-meta .cg-icon, .ed-output-project-context .cg-icon { width: 13px; height: 13px; color: #8c98a5; }
.ed-output-project-stage { display: grid; grid-template-columns: minmax(60px, 1fr) auto; align-items: center; gap: 8px; margin-top: 9px; }
.ed-output-project-stage > span { height: 5px; overflow: hidden; border-radius: 5px; background: #e9edf0; }
.ed-output-project-stage i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #08bd48, #86e96d); }
.ed-output-project-stage small { color: #98a3b2; font-size: 9px; white-space: nowrap; }
.ed-output-project-context { margin-top: 7px; color: #8d98a7; font-size: 9px; }
.ed-output-project-context .cg-icon { color: #0bb44e; }
.ed-output-project-action { align-self: flex-end; min-width: 142px; margin-top: auto; padding: 7px 14px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #2c343e, #181e26); box-shadow: 0 3px 5px #242b3112; font-size: 10px; text-align: center; }
.ed-output-project-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.ed-output-project-grid.is-list .ed-output-project-card { grid-template-columns: 78px minmax(0, 1fr); min-height: 162px; }
.ed-output-project-grid.is-list .ed-output-project-card .ed-thumbnail { width: 78px; }
@media (min-width: 1900px) {
  .ed-output-page-title h1 { font-size: 32px; }
  .ed-output-page-title p { font-size: 15px; }
  .ed-output-status-select { width: 225px; height: 46px; }
  .ed-output-view-switch { height: 46px; }
  .ed-output-view-switch button { width: 58px; height: 40px; }
  .ed-output-project-card { grid-template-columns: 104px minmax(0, 1fr); min-height: 209px; padding: 14px; gap: 16px; }
  .ed-output-project-grid { align-content: start; overflow: auto; }
  .ed-output-project-card .ed-thumbnail { width: 104px; }
  .ed-output-project-title strong { font-size: 14px; }
  .ed-output-project-source, .ed-output-project-meta { font-size: 11px; }
  .ed-output-project-stage small, .ed-output-project-context, .ed-output-project-action { font-size: 10px; }
}
@container (max-width: 720px) { .ed-output-project-grid { grid-template-columns: minmax(0, 1fr); } }
@container (min-width: 1180px) { .ed-output-project-grid:not(.is-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 3000px) { .ed-output-project-grid:not(.is-list) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1350px) { .ed-output-project-search { display: none; } }
@media (max-width: 760px) {
  .ed-output-page-header { align-items: flex-start; flex-direction: column; }
  .ed-output-page-controls { width: 100%; }
  .ed-output-project-search { display: none; }
  .ed-output-status-select { flex: 1; width: auto; }
  .ed-output-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-output-project-results { padding: 14px; }
  .ed-output-project-card, .ed-output-project-grid.is-list .ed-output-project-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 168px; }
  .ed-output-project-card .ed-thumbnail, .ed-output-project-grid.is-list .ed-output-project-card .ed-thumbnail { width: 82px; }
}
@media (prefers-reduced-motion: reduce) { .ed-output-metric, .ed-output-project-card, .ed-output-project-card .ed-thumbnail-frame { transition: none; } }


/* --- page styles from OutputCenter.vue --- */
.ed-output-detail-page { display: flex; flex-direction: column; gap: 18px; max-width: none; min-height: calc(100dvh - var(--ed-topbar-height, 76px) - (var(--ed-page-gap, 22px) * 2)); }
.ed-output-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; min-height: 42px; color: #7e8998; font-size: 12px; }
.ed-output-breadcrumb i { color: #bac1ca; font-style: normal; }.ed-output-breadcrumb strong { color: #7e8998; font-weight: 550; }.ed-output-breadcrumb b { color: #34404c; font-weight: 550; }
.ed-output-back { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-right: 8px; padding: 0 16px; border: 1px solid #eef1f4; border-radius: 20px; color: #34404c; background: #fff; box-shadow: 0 4px 13px #25313d05; font-size: 12px; }
.ed-output-back .cg-icon { width: 14px; height: 14px; transform: rotate(180deg); }
.ed-output-summary { display: grid; grid-template-columns: 120px minmax(260px, .85fr) minmax(500px, 1.2fr); align-items: center; gap: 24px; min-height: 174px; padding: 20px 26px; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334404; }
.ed-output-summary .ed-thumbnail { width: 86px; height: auto; min-height: 0; aspect-ratio: 9 / 16; border-radius: 10px; color: #a57079; background: linear-gradient(135deg, #f5d7dc, #eeb9c5); }
.ed-output-summary .ed-thumbnail-label { display: none; }.ed-summary-play, .ed-output-row-play { display: grid; place-items: center; width: 36px; height: 36px; padding-left: 3px; border-radius: 50%; color: #fff; background: #26323daf; font-size: 14px; }
.ed-output-summary-copy { display: grid; gap: 10px; align-content: center; }.ed-output-summary-copy h1 { margin: 0 0 5px; color: #18222d; font-size: 23px; font-weight: 680; line-height: 1.3; }.ed-output-summary-copy p { display: flex; align-items: center; gap: 8px; margin: 0; color: #5c6877; font-size: 13px; }.ed-output-summary-copy .cg-icon { width: 16px; height: 16px; color: #73808c; }
.ed-output-summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 10px; padding-left: 22px; border-left: 1px solid #edf1f4; }.ed-output-summary-title { grid-column: 1 / -1; margin: 0 0 2px; padding: 0; color: #283440; font-size: 17px; font-weight: 680; }.ed-output-summary-title small { font-weight: 500; color: #7d8996; }
.ed-output-summary-stats button { display: grid; gap: 9px; min-height: 78px; padding: 10px 14px; border: 1px solid #edf1f4; border-radius: 10px; color: #596676; background: #fafcfd; text-align: left; transition: border-color .16s, background .16s, transform .16s; }.ed-output-summary-stats button.is-active, .ed-output-summary-stats button:hover { background: #f5fbf4; border-color: #d7edd5; transform: translateY(-1px); }.ed-output-summary-stats button > span { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; }.ed-output-summary-stats button .cg-icon { width: 18px; height: 18px; }.ed-output-summary-stats button strong { padding-left: 25px; color: #1c2630; font-size: 26px; line-height: 1; font-weight: 680; }.ed-output-summary-stats .is-success .cg-icon, .ed-output-summary-stats .is-success strong { color: #3da42c; }.ed-output-summary-stats .is-processing .cg-icon { color: #3987f6; }.ed-output-summary-stats .is-failed .cg-icon { color: #ef6d3b; }
.ed-output-detail-layout { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) 270px; align-items: stretch; gap: 18px; min-width: 0; }
.ed-output-list-card, .ed-output-downloads { min-width: 0; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334404; }.ed-output-list-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }.ed-output-list-card > header { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 15px 20px; }.ed-output-list-card h2, .ed-output-downloads h2 { margin: 0; color: #283440; font-size: 16px; font-weight: 650; }.ed-output-inline-search { display: flex; align-items: center; width: min(260px, 32%); height: 34px; margin-left: auto; padding: 0 11px; border: 1px solid #edf1f4; border-radius: 18px; background: #fafbfd; }.ed-output-inline-search .cg-icon { width: 14px; height: 14px; color: #95a0ae; }.ed-output-inline-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 11px; }.ed-output-all { padding: 6px 11px; border: 0; border-radius: 14px; color: #7b8796; background: #f6f8fa; font-size: 10px; }.ed-output-all.is-active { color: #149f39; background: #eaf9e8; }
.ed-output-list-scroll { min-width: 790px; padding: 0 20px 10px; }.ed-output-list-head, .ed-output-list-row { display: grid; grid-template-columns: minmax(250px, 1.45fr) 72px 118px minmax(145px, .8fr) 104px 150px; align-items: center; gap: 12px; }.ed-output-list-head { min-height: 38px; padding: 0 10px; border-radius: 8px; color: #7f8a99; background: #f7f9fb; font-size: 10px; }.ed-output-list-row { min-height: 108px; padding: 10px; border-bottom: 1px solid #f0f3f5; color: #657180; font-size: 10px; }.ed-output-list-row:last-child { border-bottom: 0; }
.ed-output-list-main { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }.ed-output-list-main > button { display: block; padding: 0; border: 0; background: transparent; }.ed-output-list-main > button:disabled { opacity: 1; }.ed-output-list-main .ed-thumbnail { width: 48px; height: auto; min-height: 0; aspect-ratio: 9 / 16; border-radius: 7px; }.ed-output-list-main .ed-thumbnail-frame, .ed-output-list-main .ed-thumbnail-label { display: none; }.ed-output-row-play { width: 25px; height: 25px; font-size: 10px; }.ed-output-list-main > div { display: grid; gap: 6px; min-width: 0; }.ed-output-list-main strong { overflow: hidden; color: #2e3945; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }.ed-output-list-main small { color: #9aa4b2; font-size: 9px; }.ed-output-mono { color: #273340; font-variant-numeric: tabular-nums; }.ed-output-list-row time { line-height: 1.5; }.ed-output-retention { color: #8390a0; line-height: 1.5; }.ed-output-row-status { display: grid; gap: 5px; justify-items: start; }.ed-output-row-status small { color: #9aa4b2; font-size: 9px; }
.ed-output-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }.ed-output-row-actions button, .ed-output-row-actions a { min-width: 63px; padding: 6px 10px; border-radius: 15px; font-size: 10px; text-align: center; text-decoration: none; }.ed-output-preview-button { border: 1px solid #b6bec7; color: #48535e; background: #fff; }.ed-output-row-actions a { color: #fff; background: linear-gradient(145deg, #4fd849, #19bd43); }.ed-output-row-actions button:disabled { opacity: .45; }
.ed-output-list-card > .ed-output-list-scroll { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; }
.ed-output-list-card > .cg-u-empty, .ed-output-list-card > .cg-u-loading { flex: 1 1 auto; }
.ed-output-list-card > .cg-u-pagination { flex: none; margin: auto 20px 0; padding: 14px 0 18px; border-top: 1px solid #f0f3f5; }
.ed-output-downloads { min-height: 440px; padding: 20px; }.ed-output-downloads h2 { margin-bottom: 14px; }.ed-output-download-list { display: grid; }.ed-output-download-list > a { display: grid; grid-template-columns: 32px minmax(0, 1fr) 13px; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #f0f3f5; color: inherit; text-decoration: none; }.ed-output-file-icon { display: grid; place-items: center; width: 31px; height: 36px; border: 1px solid #d5dbe1; border-radius: 4px; color: #32bf43; background: #f8faf9; }.ed-output-file-icon .cg-icon { width: 17px; height: 17px; }.ed-output-download-list > a > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }.ed-output-download-list strong { overflow: hidden; color: #34404c; font-size: 10px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }.ed-output-download-list small { color: #9aa4b2; font-size: 9px; }.ed-output-download-list > a > .cg-icon { width: 12px; height: 12px; color: #8e99a7; }.ed-output-download-empty { margin: 20px 0; color: #98a3b2; font-size: 10px; line-height: 1.6; }.ed-output-retention-note { margin-top: 28px; padding: 14px; border-radius: 9px; color: #5f6b79; background: #f2f6fb; }.ed-output-retention-note strong { font-size: 10px; }.ed-output-retention-note p { margin: 7px 0 0; font-size: 9px; line-height: 1.65; }
@media (min-width: 1900px) { .ed-output-summary { grid-template-columns: 150px minmax(300px,.8fr) minmax(540px,1.4fr); min-height: 205px; }.ed-output-summary .ed-thumbnail { width: 106px; }.ed-output-summary-copy h1 { font-size: 25px; }.ed-output-summary-copy p { font-size: 14px; }.ed-output-detail-layout { grid-template-columns: minmax(0,1fr) 330px; gap: 22px; }.ed-output-list-head, .ed-output-list-row { grid-template-columns: minmax(290px,1.5fr) 80px 135px minmax(170px,.85fr) 120px 176px; }.ed-output-list-row { min-height: 122px; font-size: 12px; }.ed-output-list-main .ed-thumbnail { width: 56px; }.ed-output-list-main { grid-template-columns: 56px minmax(0,1fr); }.ed-output-list-main strong { font-size: 13px; }.ed-output-list-main small, .ed-output-row-status small { font-size: 11px; }.ed-output-downloads { padding: 24px; } }
@media (max-width: 1250px) { .ed-output-summary { grid-template-columns: 92px minmax(190px,.7fr) minmax(380px,1.3fr); gap: 16px; padding: 18px; }.ed-output-summary .ed-thumbnail { width: 70px; }.ed-output-summary-stats button { padding: 10px 14px; }.ed-output-summary-title { padding-left: 0; }.ed-output-detail-layout { grid-template-columns: minmax(0,1fr); }.ed-output-list-scroll { min-width: 760px; }.ed-output-list-head, .ed-output-list-row { grid-template-columns: minmax(220px,1.3fr) 55px 96px minmax(115px,.7fr) 88px 128px; }.ed-output-downloads { min-height: 0; padding: 17px; }.ed-output-download-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; } }
@media (max-width: 980px) { .ed-output-summary { grid-template-columns: 82px minmax(0,1fr); }.ed-output-summary-stats { grid-column: 1 / -1; border-top: 1px solid #edf1f4; border-left: 0; padding-top: 16px; }.ed-output-summary-title { padding-left: 0; }.ed-output-detail-layout { grid-template-columns: minmax(0,1fr); }.ed-output-downloads { min-height: 0; }.ed-output-download-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; } }
@media (max-width: 760px) { .ed-output-breadcrumb > span, .ed-output-breadcrumb > i, .ed-output-breadcrumb > strong { display: none; }.ed-output-summary { grid-template-columns: 70px minmax(0,1fr); padding: 14px; }.ed-output-summary .ed-thumbnail { width: 58px; }.ed-output-summary-copy h1 { font-size: 18px; }.ed-output-summary-stats { gap: 3px; }.ed-output-summary-stats button { padding: 3px 8px; }.ed-output-summary-stats button strong { padding-left: 0; }.ed-output-list-card > header { flex-wrap: wrap; }.ed-output-inline-search { order: 3; width: 100%; margin-left: 0; }.ed-output-download-list { grid-template-columns: minmax(0,1fr); } }


/* --- page styles from ActivityPage.vue --- */
.ed-activity-page { display: flex; flex-direction: column; gap: 18px; max-width: none; height: calc(100dvh - var(--ed-topbar-height, 76px) - (var(--ed-page-gap, 22px) * 2)); min-height: 0; overflow: hidden; }
.ed-activity-page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; }
.ed-activity-page-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 22px; }
.ed-activity-page-title h1 { margin: 0; color: #16202a; font-size: 27px; font-weight: 680; line-height: 1.25; letter-spacing: .5px; }
.ed-activity-page-title p { margin: 0; color: #99a2ad; font-size: 13px; }
.ed-activity-list { padding: 4px 22px 12px; }
.ed-activity-layout { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); flex: 1 1 auto; min-height: 0; align-items: stretch; gap: 18px; }
.ed-activity-layout > .cg-u-project-selector, .ed-activity-layout > .cg-u-activity-stream { height: 100%; }
.ed-activity-layout > .cg-u-project-selector { display: flex; flex-direction: column; border: 1px solid #edf1f4; box-shadow: 0 5px 18px #23334405; }
.ed-activity-layout > .cg-u-activity-stream { display: flex; flex-direction: column; border: 1px solid #edf1f4; box-shadow: 0 5px 18px #23334405; }
.ed-activity-layout > .cg-u-project-selector > .cg-u-section-header, .ed-activity-layout > .cg-u-activity-stream > .cg-u-section-header { padding: 20px 22px 18px; }
.ed-activity-layout > .cg-u-project-selector > .cg-u-section-header h2, .ed-activity-layout > .cg-u-activity-stream > .cg-u-section-header h2 { font-size: 16px; font-weight: 650; }
.ed-activity-layout > .cg-u-project-selector > button { min-height: 68px; padding: 14px 20px; border-bottom: 0; border-left: 3px solid transparent; transition: background .16s ease, border-color .16s ease; }
.ed-activity-layout > .cg-u-project-selector > button:hover { background: #f7fbf7; }
.ed-activity-layout > .cg-u-project-selector > button.is-active { background: linear-gradient(100deg, #f0ffdf, #ebfbe9); border-left-color: #45cf55; }
.ed-activity-stream { display: flex; flex-direction: column; }
.ed-activity-stream > .ed-activity-list, .ed-activity-stream > .cg-u-timeline-list { flex: 1 1 auto; overflow-y: auto; }
.ed-activity-stream .ed-activity-notification { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid #f2f4f7; }
.ed-activity-notification:last-child { border-bottom: 0; }
.ed-activity-notification .ed-event-icon { width: 36px; height: 36px; background: #f0f3f6; color: #788494; }
.ed-activity-notification .ed-event-icon.is-success { background: #eafbef; color: #35c252; }
.ed-activity-notification .ed-event-icon.is-info { background: #ecf4ff; color: #3987f6; }
.ed-activity-notification .ed-event-icon.is-warning { background: #fff7e7; color: #b48b2b; }
.ed-activity-notification .ed-event-icon.is-danger { background: #fff0f0; color: #d36767; }
.ed-activity-notification .cg-icon { width: 18px; height: 18px; }
.ed-activity-copy { min-width: 0; }
.ed-activity-stream .ed-event-heading { gap: 6px 16px; }
.ed-activity-stream .ed-event-heading strong { color: #33404e; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.ed-activity-stream .ed-event-heading time { color: #929cab; font-size: 11px; }
.ed-activity-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.ed-activity-stream .ed-activity-detail p { margin: 0; color: #929cab; font-size: 12px; }
.ed-activity-detail .cg-u-status { font-size: 11px; }
.ed-activity-progress { margin-top: 13px; max-width: 420px; color: #929cab; font-size: 11px; }
.ed-activity-progress .cg-u-progress { height: 4px; margin-top: 6px; border-radius: 4px; background: #edf1f4; }
.ed-activity-progress .cg-u-progress span { background: #42c65b; border-radius: inherit; }
@media (min-width: 1900px) {
  .ed-activity-page-title h1 { font-size: 32px; }
  .ed-activity-page-title p { font-size: 15px; }
}
@media (max-width: 760px) {
  .ed-activity-page { height: auto; min-height: calc(100dvh - var(--ed-topbar-height, 60px) - (var(--ed-page-gap, 16px) * 2)); overflow: visible; }
  .ed-activity-page-header { align-items: flex-start; flex-direction: column; }
  .ed-activity-layout { grid-template-rows: auto minmax(420px, 1fr); }
  .ed-activity-layout > .cg-u-project-selector { height: auto; }
  .ed-activity-list { padding: 0 16px 8px; }
  .ed-activity-stream .ed-activity-notification { gap: 12px; padding: 18px 0; }
  .ed-activity-stream .ed-event-heading { align-items: flex-start; flex-direction: column; }
}

/* --- component styles from ThumbnailPlaceholder.vue (base ed-thumbnail) --- */
.ed-thumbnail { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; color: #8ba99c; background: linear-gradient(130deg, #edf5f0, #e4efea); }
.ed-thumbnail::before, .ed-thumbnail::after { content: ''; position: absolute; width: 52%; aspect-ratio: 1; border-radius: 50%; background: #ffffff35; pointer-events: none; }
.ed-thumbnail::before { left: -12%; top: -65%; }
.ed-thumbnail::after { right: -14%; bottom: -64%; }
.ed-thumbnail-frame { display: grid; place-items: center; width: 66px; height: 48px; border: 1px solid #9eb9aa55; border-radius: 10px; background: #ffffff50; }
.ed-thumbnail-frame .cg-icon { width: 29px; height: 29px; stroke-width: 1.3; }
.ed-thumbnail-label { position: absolute; left: 14px; bottom: 11px; font-size: 10px; letter-spacing: 1px; opacity: .8; }
.ed-thumbnail-project { color: #91a8b8; background: linear-gradient(130deg, #edf3f8, #e6eef4); }
.ed-thumbnail-project .ed-thumbnail-frame { border-color: #a7b9c755; }
.ed-thumbnail-output { color: #9d9abb; background: linear-gradient(130deg, #f0eff7, #e9e8f2); }
.ed-thumbnail-output .ed-thumbnail-frame { border-color: #b1aac855; }

/* --- activity selector cards (richer project picker) --- */
.ed-activity-layout > .cg-u-project-selector > button.ed-selector-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 84px; padding: 12px 14px; }
.ed-selector-cover { position: relative; display: grid; place-items: center; overflow: hidden; width: 42px; height: 52px; flex: none; border-radius: 8px; background: linear-gradient(145deg, #d7f4ec, #9acfc5); color: #589d88; }
.ed-selector-cover .cg-icon { width: 18px; height: 18px; z-index: 1; }
.ed-selector-copy { display: grid; gap: 5px; min-width: 0; }
.ed-selector-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.ed-selector-heading strong { overflow: hidden; color: #2b3642; font-size: 13px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.ed-selector-heading .cg-u-status { font-size: 10px; flex: none; }
.ed-selector-meta { overflow: hidden; color: #97a1ae; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ed-selector-stage { display: flex; align-items: center; gap: 8px; }
.ed-selector-stage .ed-work-stage-track { flex: 1 1 auto; height: 4px; }
.ed-selector-stage em { flex: none; color: #98a3b2; font-size: 10px; font-style: normal; white-space: nowrap; }
.ed-selector-time { color: #b3bcc9; font-size: 10px; }
.ed-activity-layout > .cg-u-project-selector > button.ed-selector-card.is-active .ed-selector-heading strong { color: #0f8a37; }

/* --- activity selector search + sort controls --- */
.ed-selector-controls { display: grid; flex: none; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #eef1f5; }
.ed-selector-search { display: flex; align-items: center; width: 100%; height: 32px; padding: 0 11px; border: 1px solid #edf1f4; border-radius: 16px; background: #fafbfd; color: #95a0ae; }
.ed-selector-search .cg-icon { width: 13px; height: 13px; flex: none; }
.ed-selector-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 11px; color: #2d3848; }
.ed-selector-search input::placeholder { color: #9ca7b5; }
.ed-selector-sort { position: relative; display: flex; align-items: center; height: 32px; color: #65717e; }
.ed-selector-sort select { width: 100%; height: 100%; padding: 0 34px 0 14px; appearance: none; border: 1px solid #edf1f4; border-radius: 16px; outline: none; background: #fff; color: #28333e; font: inherit; font-size: 11px; font-weight: 550; cursor: pointer; }
.ed-selector-sort > .cg-icon { position: absolute; right: 13px; width: 13px; height: 13px; pointer-events: none; }
@media (max-width: 980px) {
  .ed-selector-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Content management: a lightweight hub, then one full-width resource per page. */
.cg-content-page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cg-content-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; flex-wrap: wrap; }
.cg-content-toolbar > .cg-form-help { flex: 1 1 280px; margin: 0; }
.cg-content-toolbar > .cg-actions { margin-left: auto; }
.cg-content-hub-grid { display: grid; flex: 1 1 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 18px; min-height: 0; overflow: auto; padding: 1px; }
.cg-content-hub-grid .cg-master-entry-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; margin: 0; padding: 22px; border: 1px solid #eaf0ed; border-radius: 14px; background: #fff; }
.cg-content-hub-grid .cg-card-title { margin: 0; }
.cg-content-entry-description { margin: 0; color: #8591a2; font-size: 12px; line-height: 1.7; }
.cg-content-hub-grid .cg-master-entry-count-row { margin: 0; justify-content: flex-start; }
.cg-content-hub-grid .cg-master-entry-count { color: #283b30; font-size: 28px; line-height: 1.3; }
.cg-content-hub-grid .cg-master-entry-stats { justify-content: flex-start; }
.cg-content-hub-grid .cg-master-entry-footer { flex: 0 0 auto; margin-top: auto; padding-top: 12px; border-top: 1px solid #eef2f6; }
.cg-content-main-card { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; margin: 0; padding: 20px; border-radius: 14px; overflow: hidden; }
.cg-content-main-card > .cg-card-title { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin: 0 0 12px; }
.cg-content-main-card > .cg-card-title .cg-icon { flex: none; width: 19px; height: 19px; color: #409845; }
.cg-content-main-card > .cg-form-help { flex: 0 0 auto; margin: 0 0 16px; }
.cg-content-main-card > .cg-live-asset-filters { display: grid; flex: 0 0 auto; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(200px, 1.4fr) auto; gap: 12px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #eef1f5; }
.cg-content-main-card > .cg-material-toolbar { flex: 0 0 auto; }
.cg-content-main-card > .cg-material-library-help { margin-top: 8px; }
.cg-content-main-card > .cg-material-filters { grid-template-columns: minmax(130px, .9fr) minmax(120px, .9fr) minmax(120px, .8fr) minmax(160px, 1.5fr) auto; }
.cg-content-main-card > .cg-material-filters:has([name="general_streamer"]:disabled) { grid-template-columns: minmax(130px, .9fr) minmax(120px, .8fr) minmax(180px, 2fr) auto; }
.cg-content-main-card > .cg-live-asset-filters .cg-field { min-width: 0; margin: 0; }
.cg-content-main-card > .cg-live-asset-filters .cg-button { min-height: 40px; }
.cg-content-main-card > .cg-master-data-list-region { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 2px; }
.cg-content-main-card > .cg-master-data-list-region > .cg-state { display: grid; place-content: center; justify-items: center; min-height: 100%; margin: 0; text-align: center; }
.cg-content-main-card > .cg-master-data-card-footer { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef1f5; }
.cg-content-main-card .cg-content-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-content: start; align-items: stretch; gap: 16px; padding: 0; margin: 0; list-style: none; }
.cg-content-main-card .cg-content-asset-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 1px solid #e8edf3; border-radius: 12px; background: #fff; }
.cg-content-asset-cover { position: relative; display: flex; flex: 0 0 112px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 112px; overflow: hidden; background: #f0f7f2; color: #5c9870; font-size: 12px; }
.cg-content-asset-cover.is-audio { background: #f3f0fc; color: #9770bd; }
.cg-content-asset-cover.is-image { background: #eef5fc; color: #6d94b9; }
.cg-content-asset-cover > .cg-icon { width: 32px; height: 32px; }
.cg-content-asset-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f6f8fa; }
.cg-content-asset-card .cg-live-asset-master-copy { display: grid; gap: 8px; min-width: 0; padding: 16px; }
.cg-content-asset-card .cg-list-main { min-width: 0; color: #26313b; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.cg-content-asset-card .cg-list-meta { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.cg-content-asset-card .cg-live-asset-progress { min-width: 0; margin: 0; }
.cg-content-asset-card .cg-live-asset-progress.is-complete progress { display: none; }
.cg-content-asset-card .cg-content-asset-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: auto 16px 0; padding: 12px 0 16px; border-top: 1px solid #eef1f5; }
.cg-content-asset-actions .cg-button { padding: 7px 10px; min-height: 34px; font-size: 12px; }
/* The material actions retain their business controls inside compact cover cards. */
.cg-content-main-card .cg-content-asset-card.cg-material-row { padding: 0 !important; }
.cg-content-asset-card.cg-material-row > .cg-live-asset-master-copy { flex: 0 1 auto; align-content: start; }
.cg-content-asset-card.cg-material-row > .cg-content-asset-actions { width: auto; margin-inline: 16px; }
.cg-content-streamer-card { padding: 20px; border: 1px solid #e8edf3; border-radius: 12px; background: #fff; min-width: 0; }
.cg-content-streamer-card > .cg-icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #e4f6ec; color: #398364; }
.cg-content-streamer-card h4 { margin: 14px 0 8px; font-size: 15px; overflow-wrap: anywhere; }
.cg-content-streamer-card p { margin: 6px 0 0; overflow-wrap: anywhere; }
.cg-content-streamers-page .cg-live-asset-filters { grid-template-columns: minmax(0, 1fr) auto; }
.cg-content-form-card > .cg-form { display: grid; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 20px; width: 100%; max-width: none; min-height: 0; padding: 4px 4px 16px; overflow: auto; }
.cg-content-form-card .cg-field { min-width: 0; margin: 0; }
.cg-content-form-card .cg-form > .cg-form-help,
.cg-content-form-card .cg-form > .cg-inline-status,
.cg-content-form-card .cg-form > .cg-live-asset-upload-progress,
.cg-content-form-card .cg-form > .cg-checkbox-row,
.cg-content-form-card .cg-form > .cg-checkbox-field,
.cg-content-form-card .cg-form > .cg-actions { grid-column: 1 / -1; }
.cg-content-form-card .cg-form > .cg-actions { justify-content: flex-end; padding-top: 16px; border-top: 1px solid #eef1f5; }
.cg-content-form-card .cg-field:has(input[type="file"]) { display: flex; grid-column: 1 / -1; flex-direction: column; justify-content: center; gap: 16px; min-height: 160px; padding: 28px; border: 1px dashed #a9d8b4; border-radius: 12px; background: #f5fbf5; }
@media (min-width: 981px) and (min-height: 801px) {
  .cg-u-shell .cg-main:has(> .cg-content-page) { display: flex; flex-direction: column; height: calc(100dvh - 76px); min-height: 0; }
  .cg-u-shell .cg-content-page { flex: 1 1 auto; min-height: 0; }
}
@media (min-width: 1900px) and (min-height: 801px) {
  .cg-u-shell .cg-main:has(> .cg-content-page) { height: calc(100dvh - 84px); }
}
@media (max-width: 1250px) {
  .cg-content-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .cg-content-main-card > .cg-live-asset-filters,
  .cg-content-main-card > .cg-material-filters:has([name="general_streamer"]:disabled) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px), (max-height: 800px) {
  .cg-content-hub-grid, .cg-content-main-card, .cg-content-main-card > .cg-master-data-list-region, .cg-content-form-card > .cg-form { overflow: visible; }
  .cg-content-hub-grid .cg-master-entry-card { min-height: 240px; }
  .cg-content-main-card > .cg-master-data-list-region > .cg-state { min-height: 260px; }
}
@media (max-width: 600px) {
  .cg-content-hub-grid, .cg-content-main-card > .cg-live-asset-filters,
  .cg-content-main-card > .cg-material-filters:has([name="general_streamer"]:disabled),
  .cg-content-form-card > .cg-form { grid-template-columns: minmax(0, 1fr); }
  .cg-content-toolbar { align-items: stretch; }
  .cg-content-toolbar > .cg-actions { margin-left: 0; }
  .cg-content-main-card { padding: 16px; }
}

/* Wrapped filters and expanded pickers need document space on short screens. */
@media (min-width: 761px) and (max-height: 800px) {
  .cg-page.cg-live-asset-library-page { height: auto; min-height: 0; overflow: visible; }
  .cg-live-asset-library-card { overflow: visible; }
  .cg-live-asset-library-card > .cg-resource-card-body,
  .cg-content-main-card > .cg-master-data-list-region { flex: 1 0 auto; min-height: 280px; max-height: 65vh; overflow: auto; }
}

/* --- unified platform shell compatibility (cg-u only, no ed tokens) --- */
.cg-workspace.cg-u-shell { display: block; grid-template-columns: none; grid-template-rows: none; }
.cg-u-shell .cg-u-content.cg-main { grid-column: auto; grid-row: auto; width: 100%; max-width: none; }
.cg-u-shell .cg-u-main.cg-shell-main { display: block; }
.cg-u-shell .cg-u-topbar.cg-header { display: flex; justify-content: space-between; }
.cg-u-shell:not(.cg-editor-shell) .cg-u-topbar { min-height: 64px; padding: 0 26px; background: #fff; border-bottom: 1px solid var(--cg-u-line, #e5e9ef); }
.cg-u-breadcrumb { display: flex; gap: 8px; align-items: center; margin-right: auto; color: #929cab; font-size: 13px; }
.cg-u-breadcrumb strong { color: #1c242b; font-weight: 600; }
.cg-u-breadcrumb-sep { color: #c6cdd6; }
.cg-u-shell:not(.cg-editor-shell) .cg-u-sidebar { width: 240px; grid-template-rows: 72px minmax(0, 1fr) auto; border-right: 0; }
.cg-u-shell:not(.cg-editor-shell) .cg-u-brand { height: 72px; border: 0; }
.cg-u-shell:not(.cg-editor-shell) .cg-u-sidebar .cg-sidebar-profile { grid-row: auto; min-height: 0; }
.cg-u-shell:not(.cg-editor-shell) { --cg-u-canvas: #f5f7fa; background: var(--cg-u-canvas); }
.cg-u-shell:not(.cg-editor-shell) .cg-u-sidebar,
.cg-u-shell:not(.cg-editor-shell) .cg-u-account-wrap { background: #fff; }

/* --- platform dashboard in the editor design language --- */
.ed-platform-dashboard { display: grid; gap: 18px; max-width: none; }
.ed-platform-dashboard .ed-welcome { min-height: 138px; padding: 22px 28px; }
.ed-platform-dashboard .ed-welcome h1 { font-size: 28px; }
.ed-platform-dashboard .ed-welcome p { font-size: 18px; }
.ed-platform-dashboard .ed-welcome-copy > span { font-size: 12px; }
.ed-platform-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-metric-icon.orange { background: linear-gradient(135deg, #ffd86f, #e7aa17); }
.cg-platform-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 22px 20px; }
.cg-platform-account-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #eef1f5; border-radius: 10px; background: #fbfcfd; }
.cg-platform-account-item span { color: #778498; font-size: 12px; }
.cg-platform-account-item strong { color: #202a35; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.cg-platform-account-item small { color: #778498; font-size: 11px; line-height: 1.5; }
.cg-platform-today-toolbar, .cg-platform-today-shortcuts, .cg-platform-today-refresh { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.cg-platform-today-toolbar { justify-content: space-between; gap: 10px; }
.cg-platform-today-shortcuts .ed-text-button { color: #41614c; font-size: 12px; }
.cg-platform-today-refresh { color: #8390a3; font-size: 11px; gap: 10px; }
.cg-platform-today-refresh .cg-button { padding: 6px 14px; min-height: 32px; }
.cg-platform-today-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.cg-platform-today-grid > .ed-card { display: flex; flex-direction: column; min-width: 0; }
.cg-platform-today-grid .ed-card-header { padding: 20px 22px 18px; flex-wrap: wrap; }
.cg-platform-today-grid .ed-card-header h2 { font-size: 16px; white-space: normal; }
.cg-platform-today-grid .ed-card-header .ed-text-button { flex-shrink: 0; }
.cg-platform-task-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 22px; }
.cg-platform-task-facts .cg-platform-account-item { padding: 12px 10px; }
.cg-platform-task-facts strong { font-size: 25px; }
.cg-platform-task-facts .cg-platform-account-item:nth-child(2) { background: #f1fbf1; border-color: #e4f4e5; }
.cg-platform-task-facts .cg-platform-account-item:nth-child(2) strong { color: #299b41; }
.cg-platform-task-progress, .cg-platform-capacity { padding: 18px 22px; }
.cg-platform-progress-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #718098; font-size: 12px; }
.cg-platform-progress-caption strong { color: #263343; font-weight: 600; text-align: right; }
.cg-platform-today-grid progress { display: block; width: 100%; height: 7px; margin-top: 10px; border: 0; border-radius: 10px; overflow: hidden; background: #edf2f4; accent-color: #54ce62; }
.cg-platform-today-grid progress::-webkit-progress-bar { background: #edf2f4; }
.cg-platform-today-grid progress::-webkit-progress-value { background: linear-gradient(90deg, #87e478, #42c854); border-radius: 10px; }
.cg-platform-today-grid progress::-moz-progress-bar { background: #54ce62; }
.cg-platform-output-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 22px 18px; }
.cg-platform-output-facts .cg-platform-account-item { background: #f8fafc; }
.cg-platform-output-facts strong { font-size: 23px; }
.cg-platform-today-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 22px; margin-top: auto; border-top: 1px solid #eef2f6; }
.cg-platform-today-footer > span { flex: 1 1 180px; color: #8591a2; font-size: 10px; line-height: 1.6; }
.cg-platform-today-footer .ed-text-button { margin-left: auto; flex-shrink: 0; }
.cg-platform-today-note { color: #8591a2; font-size: 11px; line-height: 1.6; margin: 8px 0 0; }
.cg-platform-login-note { margin: 0; padding: 0 22px 12px; }
.cg-platform-today-grid .cg-u-empty { flex: 1; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.cg-platform-footage-list { padding: 0 22px 8px; }
.cg-platform-footage-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 0; border-bottom: 1px solid #eef2f6; }
.cg-platform-footage-row:last-child { border-bottom: 0; }
.cg-platform-footage-icon { flex: 0 0 36px; height: 40px; display: grid; place-items: center; background: #e8f6f0; border-radius: 9px; color: #479b75; }
.cg-platform-footage-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.cg-platform-footage-copy strong { color: #263343; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.cg-platform-footage-copy > span { color: #8591a2; font-size: 11px; }
.cg-platform-status { font-size: 11px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; background: #fff7e8; color: #956615; }
.cg-platform-status.is-ready { background: #edf9ef; color: #319647; }
.cg-platform-status.is-failed { background: #fff0ee; color: #c55547; }
.cg-platform-team-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; color: #65758b; font-size: 12px; padding: 0 22px 16px; }
.cg-platform-team-scroll { overflow: auto; padding: 0 22px 12px; }
.cg-platform-team-table { border-collapse: collapse; width: 100%; font-size: 12px; color: #455468; }
.cg-platform-team-table th { background: #f7f9fb; font-weight: 500; color: #7d899a; }
.cg-platform-team-table th, .cg-platform-team-table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.cg-platform-team-table th:first-child, .cg-platform-team-table td:first-child { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.cg-platform-team-name strong { display: block; font-size: 13px; font-weight: 550; color: #263343; }
.cg-platform-team-name small { display: block; font-size: 10px; margin-top: 4px; color: #8591a2; }
.cg-platform-balance { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: baseline; margin: 0 22px 16px; padding: 16px; border: 1px solid #e0f2df; border-radius: 10px; background: linear-gradient(110deg, #f0fbf4, #f8fdea); }
.cg-platform-balance > span { color: #51715b; font-size: 12px; }
.cg-platform-balance strong { color: #244e32; font-size: 30px; font-weight: 650; overflow-wrap: anywhere; }
.cg-platform-balance small { grid-column: 1 / -1; color: #86998a; font-size: 10px; }
.cg-platform-dashboard-accounts .cg-platform-account-grid { padding-bottom: 0; }
.cg-platform-dashboard-activity > summary { cursor: pointer; padding: 16px 22px; font-size: 13px; color: #69788d; }
.cg-platform-activity-row { display: flex; align-items: baseline; gap: 16px; margin: 0 22px; padding: 12px 0; border-top: 1px solid #eef2f6; font-size: 12px; color: #718098; }
.cg-platform-activity-row strong { color: #455468; font-weight: 500; }
.cg-platform-activity-row time { margin-left: auto; font-size: 11px; }
@media (max-width: 1350px) {
  .ed-platform-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-platform-today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-platform-task-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .cg-platform-today-grid { grid-template-columns: minmax(0, 1fr); }
  .cg-platform-task-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ed-platform-dashboard .ed-welcome { padding: 20px; }
  .ed-platform-dashboard .ed-welcome h1 { font-size: 23px; }
  .ed-platform-dashboard .ed-welcome p { font-size: 15px; }
  .ed-platform-dashboard .ed-welcome-copy { max-width: 100%; }
  .ed-platform-dashboard .ed-welcome-art-image { display: none; }
  .cg-platform-today-toolbar { align-items: flex-start; }
  .cg-platform-today-shortcuts { gap: 10px; }
  .cg-platform-today-refresh { margin-left: auto; }
  .cg-platform-task-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-platform-today-grid .ed-card-header, .cg-platform-task-facts, .cg-platform-output-facts, .cg-platform-account-grid { padding-left: 16px; padding-right: 16px; }
  .cg-platform-activity-row { flex-wrap: wrap; gap: 6px 12px; }
}
@media (max-width: 420px) {
  .ed-platform-metrics, .cg-platform-output-facts, .cg-platform-account-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Live-project detail: progress first, focused work area and reference sidebar. */
.cg-page.cg-live-detail-page { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cg-live-detail-page > .cg-page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px 24px; margin: 0; }
.cg-live-detail-page .cg-platform-page-title { display: block; min-width: 0; }
.cg-live-detail-page .cg-page-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 25px; line-height: 1.4; margin: 0; }
.cg-live-detail-page .cg-page-detail { margin-top: 8px; color: #8390a3; font-size: 12px; line-height: 1.6; }
.cg-live-detail-page .cg-live-project-header-actions { max-width: 300px; align-self: start; }
.cg-live-detail-page > .cg-state { margin: 0; }
.cg-live-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cg-live-detail-metric { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; }
.cg-live-detail-metric .ed-metric-icon { width: 38px; height: 38px; }
.cg-live-detail-metric .ed-metric-icon .cg-icon { width: 22px; height: 22px; }
.cg-live-detail-metric .ed-metric-copy > span { font-size: 12px; }
.cg-live-detail-metric .ed-metric-copy strong { font-size: 22px; overflow-wrap: anywhere; }
.cg-live-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.cg-live-detail-workspace, .cg-live-detail-sidebar { display: grid; gap: 16px; min-width: 0; }
.cg-live-detail-tabs { display: flex; align-items: stretch; gap: 6px; padding: 6px; background: #fff; border: 1px solid #edf1f4; border-radius: 12px; }
.cg-live-detail-tabs > .cg-button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 12px 8px; font-size: 13px; border: 1px solid transparent; background: transparent; color: #718098; }
.cg-live-detail-tabs > .cg-button .cg-icon { width: 18px; height: 18px; flex-shrink: 0; }
.cg-live-detail-tabs > .cg-button[aria-selected="true"] { background: #eefbe8; border-color: #def1d5; color: #258b34; font-weight: 650; }
.cg-live-detail-tabs > .cg-button:hover:not(:disabled) { background: #f5faf2; border-color: #e4f0dc; }
.cg-live-detail-panel { display: grid; gap: 16px; min-width: 0; outline-offset: 4px; }
.cg-live-detail-panel[hidden] { display: none !important; }
.cg-live-detail-page .cg-card { min-width: 0; margin: 0; }
.cg-live-detail-page .cg-card-title { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cg-live-detail-page .cg-card-title > .cg-icon { width: 19px; height: 19px; color: #45964a; }
.cg-live-detail-sidebar .cg-card { padding: 20px; }
.cg-live-detail-sidebar .cg-data-grid { grid-template-columns: 80px minmax(0, 1fr); border-top: 0; font-size: 12px; column-gap: 10px; }
.cg-live-detail-sidebar .cg-data-key, .cg-live-detail-sidebar .cg-data-value { padding: 11px 0; border-bottom-color: #eef2f6; line-height: 1.6; }
.cg-live-detail-sidebar .cg-data-value { text-align: right; color: #3d4d61; }
.cg-live-detail-sidebar .cg-form-help { color: #8c98a8; font-size: 11px; line-height: 1.7; }
.cg-live-detail-panel > .cg-card { padding: 22px; }
.cg-live-detail-page .cg-live-project-analysis-content > .cg-data-grid:first-child { grid-template-columns: 110px minmax(0, 1fr) 100px minmax(0, 1fr); column-gap: 12px; margin-top: 0; border-top: 0; padding: 12px 16px; border-radius: 10px; background: #f7f9fb; font-size: 12px; }
.cg-live-detail-page .cg-live-project-analysis-content > .cg-data-grid:first-child > * { border: 0; padding: 5px 0; }
.cg-live-detail-page .cg-analysis-source-subtitle { padding: 14px 16px; margin: 0; background: #f8fafb; border-radius: 10px; }
.cg-live-detail-subtitle { border: 1px solid #edf1f4; border-radius: 10px; }
.cg-live-detail-subtitle > summary { padding: 12px 16px; cursor: pointer; color: #718098; font-size: 12px; }
.cg-live-detail-page .cg-state { padding: 18px; border-radius: 10px; box-shadow: none; }
.cg-live-detail-page .cg-state-title { font-size: 15px; }
.cg-live-detail-page .cg-state-detail { font-size: 12px; line-height: 1.7; }
.cg-live-detail-page .cg-form-help { line-height: 1.7; }
.cg-live-detail-page .cg-live-project-analysis-actions { padding-top: 16px; border-top: 1px solid #eef2f6; justify-content: flex-end; }
.cg-live-detail-page .cg-live-project-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.cg-live-detail-page .cg-live-project-task { padding: 18px; background: #fff; border-color: #e8edf2; border-radius: 12px; }
.cg-live-detail-task-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cg-live-detail-task-heading .cg-live-project-task-title { margin: 0; font-size: 14px; }
.cg-live-detail-task-heading .cg-badge { font-size: 11px; font-weight: 500; min-height: 24px; }
.cg-live-detail-page .cg-live-project-task .cg-data-grid { grid-template-columns: 82px minmax(0, 1fr); margin-top: 0; border-top: 0; gap: 0 12px; background: transparent; font-size: 12px; }
.cg-live-detail-page .cg-live-project-task .cg-data-grid > * { border: 0; padding: 6px 0; line-height: 1.6; }
.cg-live-detail-task-requirements { border-top: 1px solid #eef2f6; margin-top: 12px; padding-top: 10px; }
.cg-live-detail-task-requirements > summary { padding: 4px 0; cursor: pointer; font-size: 12px; color: #728094; }
.cg-live-detail-task-requirements[open] > summary { margin-bottom: 8px; }
.cg-live-detail-task-warning { padding: 8px 10px; margin: 10px 0 0; border-radius: 6px; background: #fff7e9; color: #996922; font-size: 11px; }
.cg-live-detail-task-actions { justify-content: flex-end; margin-top: 12px; }
.cg-live-detail-page .cg-live-project-delivery-actions { justify-content: flex-end; }
.cg-live-detail-page .cg-live-project-delivery-filters { padding: 14px; background: #f7f9fb; border-radius: 10px; }
.cg-live-detail-page .cg-live-project-delivery-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cg-live-detail-page .cg-live-project-delivery-subtitle { margin: 14px 0 0; font-size: 13px; }
.cg-live-detail-page .cg-live-delivery-store-group { padding: 16px; border: 1px solid #e8edf2; border-radius: 12px; background: #fff; }
.cg-live-detail-page .cg-live-delivery-store-group > h3 { font-size: 15px; margin: 0 0 12px; }
.cg-live-detail-page .cg-live-project-delivery-shop { background: #f9fbfc; border-color: #edf1f4; box-shadow: none; }
.cg-live-detail-page .cg-live-project-delivery-shop .cg-data-grid { font-size: 12px; }
.cg-live-detail-delivery-counts > summary { padding: 8px 0; cursor: pointer; color: #728094; font-size: 12px; }
.cg-live-detail-page .cg-live-project-delivery-shop .cg-state { text-align: center; margin: 0; background: transparent; border: 0; }
.cg-live-detail-page .cg-live-project-completion-body > .cg-button { justify-self: end; }
@media (max-width: 1450px) {
  .cg-live-detail-layout { grid-template-columns: minmax(0, 1fr) 265px; }
  .cg-live-detail-page .cg-live-project-task-list { grid-template-columns: minmax(0, 1fr); }
  .cg-live-detail-page .cg-live-project-analysis-content > .cg-data-grid:first-child { grid-template-columns: 100px minmax(0, 1fr); }
}
@media (max-width: 1120px) {
  .cg-live-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .cg-live-detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-live-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-live-detail-page > .cg-page-header { grid-template-columns: minmax(0, 1fr); }
  .cg-live-detail-page .cg-live-project-header-actions { justify-self: end; max-width: none; }
}
@media (max-width: 600px) {
  .cg-live-detail-page .cg-page-title { font-size: 21px; }
  .cg-live-detail-metric { padding: 14px; gap: 10px; }
  .cg-live-detail-metric .ed-metric-copy strong { font-size: 18px; }
  .cg-live-detail-metric .ed-metric-icon { width: 30px; height: 30px; }
  .cg-live-detail-tabs > .cg-button { font-size: 12px; gap: 5px; }
  .cg-live-detail-tabs > .cg-button .cg-icon { display: none; }
  .cg-live-detail-sidebar { grid-template-columns: minmax(0, 1fr); }
  .cg-live-detail-panel > .cg-card { padding: 16px; }
  .cg-live-detail-page .cg-live-project-delivery-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- live project draft: two-step single-viewport card layout --- */
.cg-page.cg-live-project-draft-page { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; height: calc(100vh - 120px); }
.cg-live-project-draft-page > :not(.cg-live-project-draft-form) { flex-shrink: 0; }
.cg-live-project-steps { display: flex; flex: 0 0 auto; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cg-live-project-step { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #e5e9ef; border-radius: 999px; background: #fff; color: #8a94a2; font-size: 12px; }
.cg-live-project-step-num { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eef1f5; font-size: 11px; font-weight: 650; }
.cg-live-project-step.is-active { border-color: #bfe7c4; background: #f4fff2; color: #24963f; font-weight: 600; }
.cg-live-project-step.is-active .cg-live-project-step-num { background: #32cb42; color: #fff; }
.cg-live-project-draft-page .cg-live-project-draft-form { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 14px; overflow: hidden; }
.cg-live-project-draft-page .cg-live-project-draft-form[data-step="tasks"] { overflow: auto; padding: 4px; }
.cg-live-project-draft-form > .cg-live-project-preparation-fieldset { flex: 0 0 auto; max-height: 24vh; overflow: auto; }
.cg-live-project-draft-form > .cg-fieldset { background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334405; padding: 16px 18px; margin: 0; }
.cg-live-project-draft-form > .cg-fieldset > .cg-fieldset-legend { padding: 0; color: #1c242b; font-size: 15px; font-weight: 650; }
.cg-live-project-basics { flex: 0 0 auto; }
.cg-live-project-basics-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cg-live-project-draft-form .cg-field { display: grid; gap: 6px; }
.cg-live-project-draft-form [hidden] { display: none !important; }
.cg-live-project-draft-form .cg-field-label { margin: 0; color: #667085; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.cg-live-project-draft-form .cg-input { box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.cg-live-project-draft-form select.cg-input { height: 40px; }
.cg-live-project-draft-form .cg-form-grid > * { align-self: start; min-width: 0; }
.cg-live-project-draft-form textarea.cg-input { min-height: 72px; }
.cg-live-project-draft-form .cg-checkbox-field { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.cg-live-project-auto-import { display: grid; gap: 12px; min-width: 0; }
.cg-live-project-auto-import > .cg-checkbox-field { align-items: flex-start; }
.cg-live-project-auto-import .cg-checkbox { flex: 0 0 18px; height: 18px; margin: 2px 0 0; }
.cg-live-project-auto-import > .cg-button { justify-self: start; }
.cg-live-project-draft-columns { display: grid; flex: 1 1 340px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-height: 0; }
.cg-live-project-draft-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; overflow: auto; padding: 1px 3px 8px 1px; scrollbar-gutter: stable; }
/* Expanded fields must contribute their full height; only the column scrolls. */
.cg-live-project-draft-col > .cg-fieldset { flex: 1 0 auto; min-height: min-content; align-content: start; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334405; padding: 16px 18px; margin: 0; }
.cg-live-project-draft-col .cg-form-help,
.cg-live-project-draft-col .cg-live-project-file-name { overflow-wrap: anywhere; }
.cg-live-project-draft-col > .cg-fieldset > .cg-fieldset-legend { padding: 0; color: #1c242b; font-size: 15px; font-weight: 650; }
.cg-live-project-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cg-live-project-draft-col > .cg-form-help { flex: 0 0 auto; margin: 0; }
.cg-live-project-future-details { align-content: start; padding: 10px 14px; }
.cg-live-project-future-details > summary { cursor: pointer; }
.cg-live-project-draft-page .cg-live-project-task-fieldset { display: flex; flex: 1 1 340px; min-height: 0; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #edf1f4; border-radius: 14px; box-shadow: 0 5px 18px #23334405; padding: 16px 18px; }
.cg-live-project-draft-form[data-step="tasks"] > .cg-live-project-task-fieldset { flex-shrink: 0; min-height: 320px; }
.cg-live-project-draft-page .cg-live-project-task-fieldset > .cg-fieldset-legend { flex: 0 0 auto; padding: 0; color: #1c242b; font-size: 15px; font-weight: 650; }
.cg-live-project-draft-page .cg-live-project-task-fieldset > .cg-form-help { flex: 0 0 auto; }
.cg-live-project-draft-page .cg-live-project-task-fieldset > .cg-live-project-task-editor-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 1px 3px 8px 1px; }
.cg-live-project-draft-page .cg-live-project-task-fieldset > .cg-button { flex: 0 0 auto; align-self: flex-start; margin: 10px 0 0; }
.cg-live-project-draft-page .cg-live-project-draft-form > .cg-inline-status,
.cg-live-project-draft-page .cg-live-project-draft-form > .cg-actions { flex: 0 0 auto; }
@media (min-width: 1900px) {
  .cg-page.cg-live-project-draft-page { height: calc(100vh - 132px); }
}
@media (max-height: 900px) {
  .cg-page.cg-live-project-draft-page { height: auto; min-height: calc(100vh - 120px); overflow: visible; }
  .cg-live-project-draft-page .cg-live-project-draft-form { flex: 0 0 auto; overflow: visible; }
  .cg-live-project-draft-columns { flex: 0 0 auto; min-height: 0; }
  .cg-live-project-draft-col { overflow: visible; }
  .cg-live-project-draft-page .cg-live-project-task-fieldset { min-height: 320px; }
}
@media (max-width: 1100px) {
  .cg-page.cg-live-project-draft-page { height: auto; min-height: 0; overflow: visible; }
  .cg-live-project-draft-page .cg-live-project-draft-form { flex: 0 0 auto; overflow: visible; }
  .cg-live-project-draft-columns { flex: 0 0 auto; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cg-live-project-draft-col { overflow: visible; padding: 0; }
}
@media (max-width: 760px) {
  .cg-page.cg-live-project-draft-page { height: auto; min-height: 0; overflow: visible; }
  .cg-live-project-draft-page .cg-live-project-draft-form { overflow: visible; }
  .cg-live-project-draft-col { overflow: visible; padding: 0; }
  .cg-live-project-draft-page .cg-live-project-task-fieldset { overflow: visible; }
  .cg-live-project-draft-form[data-step="tasks"] > .cg-live-project-task-fieldset { flex: 0 0 auto; min-height: 0; }
  .cg-live-project-draft-page .cg-live-project-task-fieldset > .cg-live-project-task-editor-list { flex: 0 0 auto; overflow: visible; padding: 0; }
}

/* Step two: one task at a time, with requirements and products side by side. */
.cg-page.cg-live-project-tasks-page { height: auto; min-height: 0; overflow: visible; }
.cg-live-project-tasks-page .cg-live-project-draft-form[data-step="tasks"] { flex: 0 0 auto; overflow: visible; }
.cg-live-project-tasks-page .cg-live-project-draft-form[data-step="tasks"] > .cg-live-project-task-fieldset { flex: 0 0 auto; min-height: 0; overflow: visible; }
.cg-live-project-tasks-page .cg-live-project-task-fieldset > .cg-live-project-task-editor-list { flex: 0 0 auto; overflow: visible; }
.cg-live-project-task-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; min-width: 0; }
.cg-live-project-task-tabs { display: flex; flex: 1 1 auto; gap: 8px; min-width: 0; overflow-x: auto; padding: 3px 2px 8px; }
.cg-live-project-task-toolbar > .cg-button { flex: 0 0 auto; }
.cg-live-project-task-tab.cg-button { display: grid; flex: 0 0 auto; gap: 4px; min-width: 150px; max-width: 250px; padding: 10px 14px; border: 1px solid #e7edf0; border-radius: 10px; background: #f7f9fb; text-align: left; }
.cg-live-project-task-tab.cg-button.is-active { border-color: #a9dfb0; background: #f0fbed; color: #208b37; }
.cg-live-project-task-tab-name { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cg-live-project-task-tab-count { color: #7d8a98; font-size: 11px; font-weight: 400; }
.cg-live-project-tasks-page .cg-live-project-task-editor-list { display: flex; flex-direction: column; }
.cg-live-project-tasks-page .cg-live-project-task-editor { display: flex; flex: 1 1 auto; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.cg-live-project-tasks-page .cg-live-project-task-editor-header { flex: 0 0 auto; align-items: center; margin: 0; }
.cg-live-project-tasks-page .cg-live-project-task-editor-header .cg-actions { margin: 0; gap: 6px; }
.cg-live-project-tasks-page .cg-live-project-task-editor-header .cg-button { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.cg-live-project-tasks-page .cg-live-project-task-grid { flex: 0 0 auto; height: 780px; min-height: 0; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.5fr); gap: 18px; align-items: stretch; }
.cg-live-project-tasks-page .cg-live-project-task-grid > * { align-self: stretch; }
.cg-live-project-task-basics { display: flex; flex-direction: column; gap: 18px; min-width: 0; min-height: 0; overflow-y: auto; padding: 18px; border-radius: 12px; background: #f7f9fb; }
.cg-live-project-task-column-title { margin: 0; color: #26313b; font-size: 14px; font-weight: 650; }
.cg-live-project-task-basics > * { flex-shrink: 0; }
.cg-live-project-editor-picker { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; }
.cg-live-project-editor-picker > legend { margin-bottom: 12px; padding: 0; color: #26313b; font-size: 14px; }
.cg-live-project-editor-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); align-content: start; gap: 6px; max-height: 174px; overflow: auto; padding: 2px; }
.cg-live-project-editor-choice.cg-button { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-width: 0; min-height: 36px; height: 36px; padding: 7px 10px; border: 1px solid #e5eaf0; border-radius: 8px; background: #fff; text-align: left; }
.cg-live-project-editor-choice.cg-button.is-selected { border-color: #6ccb7b; background: #eefbef; }
.cg-live-project-editor-name { min-width: 0; overflow: hidden; color: #26313b; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cg-live-project-editor-check { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid #d8e2da; border-radius: 50%; color: transparent; background: #fff; font-size: 11px; }
.is-selected > .cg-live-project-editor-check { color: #fff; border-color: #35b84c; background: #35b84c; }
.cg-live-project-editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cg-live-project-editor-footer .cg-form-help { margin: 0; overflow-wrap: anywhere; }
.cg-live-project-editor-footer .cg-button { padding: 5px 8px; min-height: 30px; font-size: 11px; flex-shrink: 0; }
.cg-live-project-task-basics .cg-live-project-requirements { padding: 0; border: 0; background: transparent; }
.cg-live-project-task-basics .cg-live-project-requirements > legend { margin-bottom: 12px; padding: 0; font-size: 14px; }
.cg-live-project-task-basics .cg-live-project-requirements .cg-field:has(textarea),
.cg-live-project-task-basics .cg-live-project-requirements .cg-field:has([name="deadline_at"]) { grid-column: 1 / -1; }
.cg-live-project-tasks-page .cg-live-project-product-picker { display: flex; flex-direction: column; grid-column: auto; min-height: 0; height: 780px; max-height: none; margin: 0; padding: 18px; gap: 12px; overflow: hidden; border: 0; border-radius: 12px; background: #f7f9fb; }
.cg-live-project-tasks-page .cg-live-project-product-picker > :not(.cg-live-project-product-grid-shell) { flex: 0 0 auto; }
.cg-live-project-tasks-page .cg-live-project-product-picker > .cg-fieldset-legend { margin: 0; padding: 0; color: #26313b; font-size: 14px; font-weight: 650; }
.cg-live-project-tasks-page .cg-live-project-product-picker > .cg-form-help,
.cg-live-project-tasks-page .cg-live-project-product-picker > .cg-field-label { margin: 0; }
.cg-live-project-tasks-page .cg-live-project-product-picker .cg-field { max-width: none; margin: 0; }
.cg-live-project-tasks-page .cg-live-project-product-grid-shell { flex: 1 1 0; min-height: 0; padding: 10px; overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; background: #fff; }
.cg-live-project-tasks-page .cg-live-project-product-grid { min-height: 100%; align-content: start; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.cg-live-project-tasks-page .cg-live-project-product-grid:has(> .cg-live-project-product-empty) { align-content: stretch; }
.cg-live-project-tasks-page .cg-live-project-product-choice { grid-template-columns: 70px minmax(0, 1fr); min-height: 94px; border-color: #eff2f5; background: #f7f9fb; }
.cg-live-project-tasks-page .cg-live-project-product-choice-thumbnail { width: 70px; height: 70px; }
.cg-live-project-tasks-page .cg-live-project-product-choice:hover,
.cg-live-project-tasks-page .cg-live-project-product-choice.is-pending { border-color: #49c95b; outline: 0; background: #f2fcef; }
.cg-live-project-tasks-page .cg-live-project-product-checkbox { accent-color: #31b94a; width: 17px; height: 17px; top: 10px; left: 10px; }
.cg-live-project-tasks-page .cg-live-project-product-choice.is-added { border-color: #c4e9c9; }
.cg-live-project-tasks-page .cg-live-project-product-empty { display: grid; place-items: center; min-height: 0; margin: 0; padding: 20px; border-radius: 10px; background: transparent; text-align: center; }
.cg-live-project-tasks-page .cg-live-project-selected-products { height: 86px; min-height: 86px; max-height: 86px; margin: 0; overflow: auto; align-content: start; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.cg-live-project-tasks-page .cg-live-project-selected-products > .cg-list-meta { margin: 0; }
/* Hide scrollbar chrome only; retain native scrolling and keyboard navigation. */
.cg-live-project-tasks-page :is(.cg-live-project-task-tabs, .cg-live-project-task-basics, .cg-live-project-editor-choices, .cg-live-project-product-grid-shell, .cg-live-project-selected-products) { scrollbar-width: none; scrollbar-gutter: auto; }
.cg-live-project-tasks-page :is(.cg-live-project-task-tabs, .cg-live-project-task-basics, .cg-live-project-editor-choices, .cg-live-project-product-grid-shell, .cg-live-project-selected-products)::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cg-live-project-product-footer { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 2px; min-width: 0; }
.cg-live-project-product-footer > .cg-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0; }
.cg-live-project-product-footer .cg-live-project-product-pending-status { min-width: 0; font-size: 11px; line-height: 1.4; }
.cg-live-project-product-footer .cg-button { font-size: 12px; padding: 7px 10px; }
.cg-live-project-product-footer .cg-live-project-product-pagination { min-height: 34px; justify-content: center; }
.cg-live-project-product-footer .cg-live-project-product-pagination.hidden { display: flex !important; visibility: hidden; }
.cg-live-project-task-editor[data-slide="next"] { animation: cg-task-slide-next .22s ease-out; }
.cg-live-project-task-editor[data-slide="previous"] { animation: cg-task-slide-previous .22s ease-out; }
@keyframes cg-task-slide-next { from { opacity: .35; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cg-task-slide-previous { from { opacity: .35; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@media (min-width: 1101px) and (min-height: 1201px) {
  .cg-u-shell .cg-main:has(> .cg-live-project-tasks-page) { display: flex; flex-direction: column; height: calc(100dvh - 76px); min-height: 0; }
  .cg-page.cg-live-project-tasks-page { flex: 1 1 auto; height: auto; min-height: 0; overflow: hidden; }
  .cg-live-project-tasks-page .cg-live-project-draft-form[data-step="tasks"] { flex: 1 1 auto; overflow: hidden; }
  .cg-live-project-tasks-page .cg-live-project-draft-form[data-step="tasks"] > .cg-live-project-task-fieldset { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .cg-live-project-tasks-page .cg-live-project-task-fieldset > .cg-live-project-task-editor-list { flex: 1 1 auto; overflow: hidden; padding-bottom: 0; }
  .cg-live-project-tasks-page .cg-live-project-task-grid { flex: 1 1 auto; height: auto; }
  .cg-live-project-tasks-page .cg-live-project-task-basics { overflow-y: auto; }
  .cg-live-project-tasks-page .cg-live-project-product-picker { height: 100%; overflow: hidden; }
}
@media (min-width: 1900px) and (min-height: 1201px) {
  .cg-u-shell .cg-main:has(> .cg-live-project-tasks-page) { height: calc(100dvh - 84px); }
}
@media (max-width: 1100px) {
  .cg-live-project-tasks-page .cg-live-project-task-grid { height: auto; grid-template-columns: minmax(0, 1fr); }
  .cg-live-project-tasks-page .cg-live-project-task-basics { overflow: visible; }
  .cg-live-project-tasks-page .cg-live-project-task-editor { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .cg-live-project-task-toolbar { align-items: stretch; flex-direction: column; }
  .cg-live-project-task-toolbar > .cg-button { align-self: flex-end; }
  .cg-live-project-tasks-page .cg-live-project-task-basics,
  .cg-live-project-tasks-page .cg-live-project-product-picker { padding: 14px; }
  .cg-live-project-task-tab.cg-button { min-width: 130px; }
  .cg-live-project-product-footer > .cg-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cg-live-project-task-editor[data-slide] { animation: none; }
}

/* Append dispatch uses the same task-card visual language, without changing its contract. */
.cg-live-assignment-page .cg-live-assignment-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 20px; border: 1px solid #e8edf2; border-radius: 14px; background: #fff; }
.cg-assignment-notice { margin: 0; padding: 12px 16px; border-radius: 10px; color: #4a7453; background: #f0fbed; font-size: 12px; line-height: 1.7; }
.cg-assignment-toolbar { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cg-assignment-toolbar > button { flex-shrink: 0; }
.cg-assignment-tabs { display: flex; flex: 1; gap: 8px; min-width: 0; overflow-x: auto; padding: 2px; }
.cg-assignment-tabs .cg-button { display: grid; gap: 6px; flex: 0 0 auto; min-width: 160px; max-width: 280px; padding: 12px 16px; text-align: left; background: #f7f9fb; border: 1px solid #e8edf2; border-radius: 10px; }
.cg-assignment-tabs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cg-assignment-tabs small { font-size: 11px; color: #8390a3; font-weight: 400; }
.cg-assignment-tabs [aria-selected="true"] { background: #f0fbed; border-color: #a9dfb0; color: #208b37; }
.cg-live-assignment-page .cg-assignment-row { margin: 0; padding: 0; border: 0; min-width: 0; }
.cg-assignment-row[hidden], .cg-assignment-choice[hidden], .cg-assignment-empty[hidden] { display: none !important; }
.cg-assignment-columns { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.5fr); gap: 18px; height: clamp(620px, calc(100dvh - 390px), 920px); min-height: 0; }
.cg-assignment-basics, .cg-live-assignment-page .cg-assignment-products { min-width: 0; min-height: 0; margin: 0; padding: 18px; border: 0; border-radius: 12px; background: #f7f9fb; }
.cg-assignment-basics { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.cg-assignment-basics > * { flex-shrink: 0; }
.cg-live-assignment-page .cg-assignment-editors { margin: 0; padding: 0; border: 0; }
.cg-assignment-picker > legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 650; color: #26313b; }
.cg-assignment-products { display: flex; flex-direction: column; overflow: hidden; height: 100%; box-sizing: border-box; }
.cg-assignment-picker-body { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.cg-assignment-products > .cg-assignment-picker-body { height: 100%; flex: 1; }
.cg-live-assignment-page .cg-field { max-width: none; margin: 0; min-width: 0; }
.cg-assignment-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); align-content: start; gap: 8px; min-height: 0; max-height: 174px; padding: 2px; overflow: auto; overscroll-behavior: contain; }
.cg-assignment-choice { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; margin: 0; padding: 7px 10px; border: 1px solid #e5eaf0; border-radius: 8px; background: #fff; cursor: pointer; }
.cg-assignment-choice:has(input:checked) { background: #eefbef; border-color: #6ccb7b; }
.cg-assignment-choice:has(input:focus-visible) { outline: 2px solid #208b37; outline-offset: 2px; }
.cg-assignment-choice input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #31b94a; }
.cg-assignment-choice-name { min-width: 0; font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.cg-assignment-editors .cg-assignment-choice-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-assignment-products .cg-assignment-choices { flex: 1 1 0; max-height: none; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); padding: 10px; border-radius: 10px; background: #fff; }
.cg-assignment-products .cg-assignment-choice { display: grid; grid-template-columns: auto 64px minmax(0, 1fr); min-height: 90px; background: #f7f9fb; }
.cg-assignment-products .cg-assignment-choice:has(input:checked) { background: #eefbef; }
.cg-assignment-product-image { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #eaf2e8; color: #47954b; }
.cg-assignment-product-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.cg-assignment-empty { grid-column: 1 / -1; align-self: stretch; display: grid; place-items: center; min-height: 100%; margin: 0; padding: 24px; color: #8390a3; font-size: 12px; text-align: center; }
.cg-assignment-products .cg-assignment-choices:has(> .cg-assignment-empty:not([hidden])) { align-content: stretch; }
.cg-assignment-picker-footer.cg-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin: auto 0 0; }
.cg-assignment-picker-footer .cg-form-help { margin: 0; }
.cg-assignment-requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cg-assignment-requirements .cg-field:has(textarea), .cg-assignment-requirements .cg-field:has([name="deadline_at"]) { grid-column: 1 / -1; }
.cg-assignment-requirements textarea { min-height: 74px; resize: vertical; }
.cg-assignment-remove.cg-actions, .cg-assignment-actions.cg-actions { justify-content: flex-end; margin: 0; }
.cg-assignment-remove.cg-actions { padding-top: 12px; }
.cg-assignment-actions.cg-actions { padding-top: 2px; }
.cg-assignment-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-height: 68dvh; overflow: auto; }
.cg-assignment-preview > h3, .cg-assignment-preview > .cg-form-help { grid-column: 1 / -1; margin: 0; }
.cg-assignment-preview .cg-live-project-task { background: #f7f9fb; }
.cg-assignment-preview .cg-live-project-task > p { max-height: 100px; overflow: auto; font-size: 12px; line-height: 1.7; color: #718096; }
.cg-live-assignment-page :is(.cg-assignment-tabs, .cg-assignment-basics, .cg-assignment-choices, .cg-assignment-preview, .cg-assignment-preview article > p, textarea) { scrollbar-width: none; scrollbar-gutter: auto; }
.cg-live-assignment-page :is(.cg-assignment-tabs, .cg-assignment-basics, .cg-assignment-choices, .cg-assignment-preview, .cg-assignment-preview article > p, textarea)::-webkit-scrollbar { display: none; width: 0; height: 0; }
.cg-assignment-row[data-slide="next"] { animation: cg-task-slide-next .22s ease-out; }
.cg-assignment-row[data-slide="previous"] { animation: cg-task-slide-previous .22s ease-out; }
@media (max-width: 1100px) {
  .cg-assignment-columns { grid-template-columns: minmax(0, 1fr); height: auto; }
  .cg-assignment-basics { overflow: visible; }
  .cg-live-assignment-page .cg-assignment-products { height: 620px; }
}
@media (max-width: 600px) {
  .cg-live-assignment-page .cg-live-assignment-form { padding: 14px; }
  .cg-assignment-toolbar { flex-direction: column; align-items: stretch; }
  .cg-assignment-toolbar > button { align-self: flex-end; }
  .cg-assignment-tabs { flex: 0 0 auto; }
  .cg-assignment-preview { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .cg-assignment-row[data-slide] { animation: none; } }

/* Keep KPI navigation and its content aligned across the legacy shell breakpoints. */
.cg-editor-kpi-shell.cg-u-shell:not(.cg-editor-shell) .cg-u-sidebar { grid-template-rows: 72px 104px minmax(0, 1fr); }
@media (min-width: 761px) and (max-width: 980px) {
  .cg-editor-kpi-shell.cg-u-shell:not(.cg-editor-shell) .cg-u-sidebar { width: 200px; }
  .cg-editor-kpi-shell .cg-u-nav { display: block; }
  .cg-editor-kpi-shell .cg-u-main { margin-left: 200px; }
}
@media (max-width: 760px) {
  .cg-editor-kpi-shell.cg-u-shell:not(.cg-editor-shell) .cg-u-sidebar { position: static; display: block; width: 100%; min-height: 0; }
  .cg-editor-kpi-shell .cg-u-main { margin-left: 0; }
  .cg-editor-kpi-shell .cg-sidebar-profile { display: none; }
  .cg-editor-kpi-shell .cg-u-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; }
  .cg-editor-kpi-shell .cg-u-nav-section { display: contents; }
  .cg-editor-kpi-shell .cg-u-nav-group { display: none; }
  .cg-editor-kpi-shell .cg-u-topbar { padding: 0 16px; }
  .cg-editor-kpi-shell .cg-u-breadcrumb { min-width: 0; flex-wrap: wrap; }
}

/* Unified material library: one working surface, supporting master data below. */
.cg-master-data-dashboard { display: flex; flex-direction: column; overflow: hidden; }
.cg-master-data-platform-library { flex: 1 1 auto; min-height: 300px; }
.cg-material-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cg-material-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-material-secondary-tab { margin-left: 14px; }
.cg-master-data-library-card > .cg-material-library-help { margin: 8px 0 2px; text-align: left; font-size: 12px; }
.cg-master-data-library-card > .cg-material-filters { grid-template-columns: minmax(130px, .9fr) minmax(120px, .9fr) minmax(120px, .8fr) minmax(160px, 1.5fr) auto; }
.cg-material-filters > [hidden], .cg-material-upload-form > [hidden] { display: none !important; }
.cg-master-data-library-card > .cg-material-filters:has([name="general_streamer"]:disabled) { grid-template-columns: minmax(130px, .9fr) minmax(120px, .8fr) minmax(180px, 2fr) auto; }
.cg-material-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 2px !important; }
.cg-material-row .cg-live-asset-master-copy { flex: 1 1 260px; min-width: 0; }
.cg-material-row .cg-list-main { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.cg-material-row .cg-live-asset-progress.is-complete .cg-live-asset-progress-bar { display: none; }
.cg-material-row .cg-live-asset-progress { max-width: 540px; }
.cg-material-row-actions { flex: 0 0 auto; align-items: flex-start; }
.cg-material-more { position: relative; }
.cg-material-more > summary { list-style: none; cursor: pointer; }
.cg-material-more > summary::-webkit-details-marker { display: none; }
.cg-material-more > summary::after { content: "⌄"; margin-left: 7px; }
.cg-material-more-menu { display: flex; flex-direction: column; min-width: 130px; gap: 5px; padding-top: 6px; }
.cg-material-more:not([open]) > .cg-material-more-menu { display: none; }
.cg-material-row-error { flex-basis: 100%; }
.cg-master-data-support { flex: 0 0 auto; min-height: 0; max-height: 44%; overflow: auto; border: 1px solid #e5e9e6; border-radius: 10px; background: #fff; padding: 12px 16px; }
.cg-master-data-support > summary { color: #52615a; font-weight: 600; cursor: pointer; }
.cg-master-data-support[open] > summary { margin-bottom: 12px; }
.cg-master-data-support > .cg-master-data-summary-grid { margin-bottom: 14px; }
.cg-master-data-support .cg-master-data-streamer-card { min-height: 280px; }
.cg-material-upload-dialog { width: min(600px, calc(100vw - 32px)); }
.cg-material-upload-form { display: flex; flex-direction: column; gap: 14px; }
.cg-material-upload-form .cg-form-help { line-height: 1.6; }
.cg-material-upload-form .cg-actions { justify-content: flex-end; }
@media (max-width: 980px) {
  .cg-master-data-page { height: auto; min-height: calc(100vh - 120px); overflow: visible; }
  .cg-master-data-dashboard { overflow: visible; }
  .cg-master-data-platform-library { min-height: 440px; }
  .cg-master-data-library-card > .cg-material-filters,
  .cg-master-data-library-card > .cg-material-filters:has([name="general_streamer"]:disabled) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-master-data-support { max-height: none; overflow: visible; }
  .cg-material-row { flex-direction: column; align-items: stretch; }
  .cg-material-row .cg-live-asset-master-copy { flex: 0 1 auto; width: 100%; min-width: 0; }
  .cg-material-row-actions { flex: 0 1 auto; flex-wrap: wrap; width: 100%; min-width: 0; margin-left: 0; justify-content: flex-end; }
  .cg-material-row > .cg-actions { max-width: 100%; flex-wrap: wrap; }
  .cg-material-more-menu { min-width: 0; }
}
@media (max-width: 560px) {
  .cg-material-toolbar { align-items: stretch; }
  .cg-material-toolbar > .cg-primary { width: 100%; }
  .cg-material-tabs { gap: 4px; width: 100%; }
  .cg-material-tabs .cg-button { flex: 1; padding-inline: 8px; }
  .cg-material-secondary-tab { margin-left: 4px; }
  .cg-master-data-library-card > .cg-material-filters,
  .cg-master-data-library-card > .cg-material-filters:has([name="general_streamer"]:disabled) { grid-template-columns: 1fr; }
  .cg-material-row .cg-live-asset-master-copy { flex-basis: auto; }
  .cg-material-upload-dialog { padding: 16px; }
}

/* Streamer profiles share the same identity display in forms and task cards. */
.cg-streamer-identity { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.cg-streamer-avatar { display: inline-flex; flex: 0 0 48px; width: 48px; height: 48px; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #edf3ee; color: #54735a; }
.cg-streamer-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cg-streamer-avatar-initial { font-size: 19px; font-weight: 600; line-height: 1; }
.cg-streamer-identity-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cg-streamer-identity-name { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cg-streamer-identity-account { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #69766d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.cg-live-platform-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.cg-streamer-identity-compact { gap: 7px; }
.cg-streamer-identity-compact .cg-streamer-avatar { flex-basis: 28px; width: 28px; height: 28px; }
.cg-streamer-identity-compact .cg-streamer-avatar-initial { font-size: 13px; }
.cg-streamer-identity-compact .cg-streamer-identity-copy { flex-direction: row; align-items: center; gap: 6px; }
.cg-streamer-identity-compact .cg-streamer-identity-name { font-size: 12px; }
.cg-streamer-identity-compact .cg-live-platform-icon { flex-basis: 16px; width: 16px; height: 16px; }
.cg-master-data-action-card > .cg-streamer-profile-form { overflow: visible; padding-bottom: 0; }
.cg-master-data-action-card > .cg-streamer-profile-form > .cg-actions { position: static; margin-top: 6px; }
.cg-streamer-profile-form .cg-field:has([name="avatar_file"]) { grid-column: 1 / -1; }
.cg-streamer-avatar-preview { min-width: 0; margin: 8px 0 2px; }
.cg-streamer-profile-form .cg-streamer-avatar-progress { text-align: left; font-size: 12px; }
.cg-streamer-profile-form input[type="file"] { max-width: 100%; min-width: 0; }

.ed-work-streamer-badge.cg-streamer-identity { max-width: min(48%, 148px); gap: 6px; }
.ed-work-streamer-badge .cg-streamer-avatar { flex-basis: 18px; width: 18px; height: 18px; border: 1px solid #ffffff5c; background: #e2f0d9; }
.ed-work-streamer-badge .cg-streamer-avatar-initial { font-size: 9px; }
.ed-work-streamer-badge .cg-streamer-identity-copy { gap: 6px; min-width: 0; }
.ed-work-streamer-badge .cg-streamer-identity-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 550; }
.ed-work-streamer-badge .cg-streamer-identity-account { flex: none; color: #fff; }
.ed-work-streamer-badge .cg-live-platform-icon { flex: none; width: 15px; height: 15px; }

/* SaaS-authored notifications are distinct from task activity. */
.cg-notification-dialog { display: flex; flex-direction: column; width: min(700px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 48px)); }
.cg-notification-dialog > .cg-notification-header { display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.cg-notification-header > h2 { min-width: 0; margin: 0; }
.cg-notification-dialog > .cg-notification-header > .cg-button { flex: 0 0 32px; width: 32px; min-width: 32px; min-height: 32px; padding: 4px; font-size: 24px; line-height: 1; }
.cg-notification-body { min-height: 130px; overflow: auto; overscroll-behavior: contain; }
.cg-notification-item { padding: 16px 2px; border-bottom: 1px solid #e9ede9; }
.cg-notification-item:first-child { padding-top: 5px; }
.cg-notification-item:last-child { border-bottom: 0; }
.cg-notification-title { margin: 0 0 7px; color: #25312a; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.cg-notification-content { margin: 12px 0 0; color: #435047; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.cg-notification-pagination { flex: 0 0 auto; justify-content: flex-end; padding-top: 14px; }
.cg-admin-notifications-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cg-admin-notifications-layout > .cg-card { min-width: 0; margin: 0; }
.cg-admin-notification-list > .cg-actions { margin-bottom: 10px; }
.cg-admin-notification-items { max-height: 620px; overflow: auto; }
.cg-admin-notification-row { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 14px 0; border-bottom: 1px solid #e9ede9; }
.cg-admin-notification-row .cg-notification-title { font-size: 14px; margin: 0; }
.cg-admin-notification-row .cg-actions { justify-content: flex-end; }
.cg-notification-edit-form textarea { min-height: 270px; resize: vertical; white-space: pre-wrap; }
.cg-notification-edit-form > .cg-button { justify-self: end; }
@media (max-width: 820px) {
  .cg-admin-notifications-layout { grid-template-columns: minmax(0, 1fr); }
  .cg-admin-notification-items { max-height: 440px; }
  .cg-notification-dialog { max-height: calc(100dvh - 32px); padding: 18px; }
}
