@layer components {
  .button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), translate var(--motion-fast);
  }

  .button svg {
    width: 18px;
    height: 18px;
  }

  .button:active:not(:disabled) {
    translate: 0 1px;
  }

  .button-primary {
    background: var(--cms-accent-700);
    color: var(--brand-white);
    box-shadow: 0 1px 2px rgb(25 25 25 / 12%);
  }

  .button-primary:hover {
    background: var(--cms-accent-800);
  }

  .button-secondary {
    border-color: var(--border-divider);
    background: var(--brand-white);
    color: var(--text-primary);
  }

  .button-secondary:hover {
    border-color: var(--border-control);
    background: var(--surface-hover);
  }

  .button-full {
    width: 100%;
  }

  .button:disabled, .icon-button:disabled {
    cursor: not-allowed;
    opacity: .48;
  }

  .icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--motion-fast), color var(--motion-fast);
  }

  .icon-button:hover:not(:disabled) {
    background: var(--surface-hover);
  }

  .icon-button svg {
    width: 19px;
    height: 19px;
  }

  .text-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    background: transparent;
    color: var(--cms-accent-700);
    cursor: pointer;
    font-size: .79rem;
    font-weight: 700;
  }

  .text-button:hover {
    color: var(--cms-accent-900);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  input, textarea, select {
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-md);
    background: var(--brand-white);
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
  }

  input:hover, textarea:hover, select:hover {
    border-color: var(--border-control);
  }

  input:focus, textarea:focus, select:focus {
    border-color: var(--focus-light);
    box-shadow: 0 0 0 3px rgb(6 96 165 / 10%);
    outline: 0;
  }

  input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
  }

  select {
    min-height: 44px;
    padding: 0 38px 0 12px;
    color: var(--text-primary);
    font-size: .82rem;
    font-weight: 600;
  }

  .field-search {
    position: relative;
    display: flex;
    min-width: 260px;
    flex: 1;
    align-items: center;
  }

  .field-search > svg {
    position: absolute;
    left: 13px;
    width: 18px;
    color: var(--text-muted);
    pointer-events: none;
  }

  .field-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    font-size: .84rem;
  }

  .field-search.is-small {
    min-width: 220px;
    max-width: 340px;
  }

  .filter-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-divider);
  }

  .filter-toolbar label:not(.field-search) {
    min-width: 150px;
  }

  .filter-toolbar select {
    width: 100%;
  }

  .filter-toolbar-inline, .section-filters {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tab-list {
    display: flex;
    min-height: 50px;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-divider);
    scrollbar-width: none;
  }

  .tab-list::-webkit-scrollbar {
    display: none;
  }

  .tab-list button {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
  }

  .tab-list button::after {
    position: absolute;
    right: 9px;
    bottom: -1px;
    left: 9px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    content: "";
  }

  .tab-list button[aria-selected="true"] {
    color: var(--cms-accent-700);
  }

  .tab-list button[aria-selected="true"]::after {
    background: var(--cms-accent-600);
  }

  .tab-list button span {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--surface-subtle);
    color: var(--text-secondary);
    font-size: .68rem;
    font-weight: 750;
  }

  .result-meta {
    display: flex;
    min-height: 47px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .result-meta p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .8rem;
  }

  .result-meta strong {
    color: var(--text-primary);
  }

  .result-meta span {
    color: var(--text-muted);
  }

  .section-heading {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
  }

  .section-heading h2 {
    margin-bottom: 3px;
  }

  .section-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: .72rem;
  }

  .section-heading a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .section-heading a:hover {
    text-decoration: underline;
  }

  .section-heading a svg {
    width: 15px;
  }

  .responsive-table {
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    scrollbar-color: var(--border-control) transparent;
  }

  .data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-secondary);
    font-size: .78rem;
    text-align: left;
  }

  .data-table th, .data-table td {
    height: 72px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
  }

  .data-table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
    height: 44px;
    background: var(--brand-white);
    color: var(--text-secondary);
    font-size: .69rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .data-table tbody tr {
    transition: background var(--motion-fast), box-shadow var(--motion-fast);
  }

  .data-table tbody tr:hover {
    background: var(--surface-hover);
  }

  .data-table tbody tr.is-selected {
    background: var(--surface-selected);
    box-shadow: inset 3px 0 var(--border-selected);
  }

  .data-table tbody th {
    min-width: 260px;
    color: var(--text-primary);
    font-weight: 650;
  }

  .data-table tbody th > small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 500;
  }

  .compact-table th, .compact-table td {
    height: 58px;
    padding-block: 6px;
  }

  .sort-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
  }

  .select-column {
    width: 44px;
  }

  .check-control {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    cursor: pointer;
  }

  .check-control input {
    width: 18px;
    height: 18px;
    margin: 0;
    border-color: var(--border-control);
    accent-color: var(--cms-accent-700);
  }

  .content-cell, .table-title-button {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
  }

  .content-cell > span:last-child, .table-title-button > span:last-child {
    min-width: 0;
  }

  .content-cell strong, .content-cell > span:last-child, .table-title-button strong {
    font-size: .8rem;
    font-weight: 680;
  }

  .content-cell small, .table-title-button small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: .66rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .thumb {
    position: relative;
    display: block;
    width: 66px;
    height: 42px;
    flex: 0 0 66px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--brand-off-white);
  }

  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .owner-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }

  .owner-cell i {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-off-white);
    color: var(--cms-charcoal-950);
    font-size: .62rem;
    font-style: normal;
    font-weight: 800;
  }

  .status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .status-draft {
    border-color: var(--brand-line);
    background: var(--brand-canvas);
    color: var(--brand-charcoal-800);
  }

  .status-review {
    border-color: var(--brand-magenta-400);
    background: var(--brand-magenta-50);
    color: var(--brand-magenta-800);
  }

  .status-scheduled {
    border-color: var(--brand-violet-50);
    background: var(--brand-canvas);
    color: var(--brand-violet-700);
  }

  .status-published, .status-ready {
    border-color: var(--brand-green-100);
    background: var(--brand-off-white);
    color: var(--brand-blue-700);
  }

  .status-paused {
    border-color: var(--brand-magenta-400);
    background: var(--brand-canvas);
    color: var(--brand-magenta-800);
  }

  .status-failed {
    border-color: var(--brand-magenta-400);
    background: var(--brand-canvas);
    color: var(--brand-magenta-800);
  }

  .row-action, .row-menu {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .row-action svg, .row-menu svg {
    width: 16px;
    height: 16px;
  }

  .pagination {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
  }

  .pagination p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .78rem;
  }

  .pagination > div {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .pagination a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
  }

  .pagination a[aria-current] {
    border-color: var(--cms-accent-600);
    background: var(--surface-selected);
    color: var(--cms-accent-800);
  }

  .pagination .icon-button:first-child svg {
    rotate: 180deg;
  }

  .empty-state {
    display: grid;
    min-height: 360px;
    place-items: center;
    padding: 50px 20px;
    text-align: center;
  }

  .empty-state > * {
    grid-column: 1;
  }

  .empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-attention);
    color: var(--cms-accent-700);
  }

  .empty-state h2 {
    margin: 15px 0 5px;
  }

  .empty-state p {
    color: var(--text-secondary);
  }

  .surface-notice, .source-banner, .analytics-data-strip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid var(--brand-blue-200);
    border-radius: var(--radius-md);
    background: var(--surface-attention);
    color: var(--text-secondary);
    font-size: .78rem;
  }

  .surface-notice > svg, .source-banner > svg {
    flex: 0 0 19px;
    color: var(--cms-accent-700);
  }

  .surface-notice p, .source-banner p, .analytics-data-strip p {
    margin: 0;
  }

  .surface-notice strong, .source-banner strong {
    color: var(--text-primary);
  }

  .surface-notice.is-warning, .source-banner.is-degraded {
    border-color: var(--brand-magenta-400);
    background: var(--brand-canvas);
  }

  .surface-notice.is-warning > svg, .source-banner.is-degraded > svg {
    color: var(--warning-700);
  }

  .surface-notice.is-info {
    background: var(--brand-canvas);
  }

  .content-inspector {
    position: fixed;
    z-index: 90;
    inset: var(--topbar-height) 0 0 auto;
    display: flex;
    width: var(--inspector-width);
    flex-direction: column;
    border-left: 1px solid var(--border-divider);
    background: var(--brand-white);
    box-shadow: var(--shadow-drawer);
    animation: drawer-in var(--motion-slow) var(--ease-emphasized);
  }

  @keyframes drawer-in {
    from { translate: 20px 0; opacity: .7; }
  }

  .inspector-header {
    display: flex;
    min-height: 84px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border-divider);
    background: var(--brand-white);
  }

  .inspector-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .inspector-header h2 {
    margin: 0;
    font-size: 1rem;
  }

  .inspector-header p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: .7rem;
  }

  .inspector-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    overscroll-behavior: contain;
  }

  .inspector-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    object-fit: cover;
  }

  .metadata-list {
    margin: 16px 0 0;
  }

  .metadata-list > div {
    display: grid;
    min-height: 43px;
    grid-template-columns: minmax(110px, 42%) 1fr;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: .74rem;
  }

  .metadata-list dt {
    color: var(--text-secondary);
  }

  .metadata-list dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 650;
    text-align: right;
  }

  .workflow-panel {
    padding-top: 22px;
  }

  .workflow-timeline {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
  }

  .workflow-timeline li {
    position: relative;
    display: flex;
    min-height: 82px;
    gap: 13px;
  }

  .workflow-timeline li:not(:last-child)::after {
    position: absolute;
    top: 26px;
    bottom: -4px;
    left: 12px;
    width: 2px;
    background: var(--border-divider);
    content: "";
  }

  .workflow-timeline li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border: 1.5px solid var(--border-control);
    border-radius: 50%;
    background: var(--brand-white);
  }

  .workflow-timeline li > span svg {
    width: 15px;
  }

  .workflow-timeline li.is-complete > span {
    border-color: var(--cms-accent-600);
    background: var(--cms-accent-600);
    color: var(--brand-white);
  }

  .workflow-timeline li.is-complete::after {
    background: var(--cms-accent-600);
  }

  .workflow-timeline li.is-current > span {
    border: 6px solid var(--cms-accent-500);
    box-shadow: 0 0 0 2px var(--brand-white), 0 0 0 3px var(--cms-accent-600);
  }

  .workflow-timeline strong, .workflow-timeline small, .workflow-timeline em {
    display: block;
  }

  .workflow-timeline strong {
    margin: 3px 0;
    font-size: .78rem;
  }

  .workflow-timeline small, .workflow-timeline em {
    color: var(--text-muted);
    font-size: .68rem;
    font-style: normal;
  }

  .workflow-timeline .text-warning {
    color: var(--danger-700);
  }

  .review-note {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--brand-canvas);
    color: var(--text-secondary);
    font-size: .72rem;
  }

  .review-note > svg {
    flex: 0 0 18px;
    color: var(--warning-700);
  }

  .review-note p {
    margin: 3px 0 0;
  }

  .inspector-footer {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-divider);
    background: var(--brand-white);
  }

  .inspector-footer > span {
    display: flex;
    flex-direction: column;
    color: var(--text-muted);
    font-size: .62rem;
  }

  .inspector-footer > span strong {
    margin-top: 2px;
    color: var(--text-secondary);
    font-weight: 600;
  }

  .inspector-footer > div {
    display: flex;
    gap: 8px;
  }

  .inspector-footer .button {
    padding-inline: 10px;
    font-size: .72rem;
  }

  .inspector-scrim {
    position: fixed;
    z-index: 85;
    inset: var(--topbar-height) 0 0;
    display: none;
    background: var(--surface-overlay);
  }

  .cms-dialog {
    width: min(920px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgb(182 182 182 / 78%);
    border-radius: 22px;
    background: var(--brand-white);
    color: var(--text-primary);
    box-shadow:
      0 28px 80px rgb(25 25 25 / 24%),
      0 4px 18px rgb(25 25 25 / 10%);
  }

  .cms-dialog.dialog-small {
    width: min(560px, calc(100vw - 32px));
  }

  .cms-dialog.is-player-dialog {
    width: min(1040px, calc(100vw - 40px));
  }

  .cms-dialog::backdrop {
    background: rgb(25 25 25 / 60%);
    backdrop-filter: blur(6px) saturate(.85);
  }

  .cms-dialog[open] {
    animation: dialog-in var(--motion-standard) var(--ease-emphasized);
  }

  @keyframes dialog-in {
    from { scale: .98; opacity: 0; }
  }

  .dialog-shell {
    display: flex;
    max-height: calc(100dvh - 40px);
    flex-direction: column;
  }

  .dialog-shell-small {
    width: min(560px, calc(100vw - 32px));
  }

  .dialog-header, .dialog-footer {
    flex: 0 0 auto;
    background: var(--brand-white);
  }

  .dialog-header {
    display: flex;
    min-height: 104px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-divider);
    background:
      radial-gradient(circle at 12% 0, rgb(6 96 165 / 10%), transparent 38%),
      linear-gradient(180deg, var(--brand-white) 0%, var(--brand-white) 100%);
  }

  .dialog-header h2 {
    margin: 2px 0 0;
    font-size: clamp(1.22rem, 2vw, 1.48rem);
    line-height: 1.15;
    letter-spacing: -.025em;
  }

  .dialog-header h2:focus {
    outline: 0;
  }

  .dialog-header p {
    max-width: 64ch;
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: .74rem;
    line-height: 1.45;
  }

  .dialog-heading-group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
  }

  .dialog-heading-copy {
    min-width: 0;
  }

  .dialog-symbol {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid rgb(6 96 165 / 16%);
    border-radius: 15px;
    background: linear-gradient(145deg, rgb(237 237 235 / 88%), rgb(250 250 250 / 92%));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
    color: var(--cms-accent-800);
    font-size: 1.25rem;
    font-weight: 700;
  }

  .dialog-header > .icon-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.35rem;
  }

  .dialog-header > .icon-button:hover {
    border-color: var(--border-divider);
    background: var(--brand-white);
    box-shadow: 0 4px 12px rgb(25 25 25 / 8%);
  }

  .dialog-context {
    color: var(--cms-accent-700) !important;
    font-size: .65rem !important;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: none;
  }

  .dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    background: var(--brand-canvas);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .dialog-footer {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 28px max(15px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-divider);
    box-shadow: 0 -10px 30px rgb(25 25 25 / 3%);
  }

  .editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, .8fr);
    gap: 28px;
  }

  .error-summary {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border: 1px solid var(--brand-magenta-400);
    border-radius: var(--radius-md);
    background: var(--danger-bg);
    color: var(--danger-700);
    font-size: .78rem;
  }

  .error-summary p {
    margin: 3px 0 0;
  }

  .form-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 17px;
    color: var(--text-primary);
    font-size: .75rem;
    font-weight: 700;
  }

  .form-field input, .form-field select, .form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--brand-line);
    border-radius: 11px;
    background: var(--brand-white);
    resize: vertical;
    color: var(--text-primary);
    font-size: .82rem;
    font-weight: 450;
    transition:
      border-color var(--motion-fast) var(--ease-standard),
      box-shadow var(--motion-fast) var(--ease-standard),
      background var(--motion-fast) var(--ease-standard);
  }

  .form-field input:hover, .form-field select:hover, .form-field textarea:hover {
    border-color: var(--border-control);
  }

  .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--cms-accent-600);
    outline: 0;
    box-shadow:
      0 0 0 3px rgb(6 96 165 / 13%),
      0 6px 16px rgb(57 57 57 / 6%);
  }

  .form-field textarea {
    min-height: 104px;
    line-height: 1.5;
  }

  .form-field input::placeholder, .form-field textarea::placeholder {
    color: var(--brand-grey);
  }

  .form-field small, .form-field p {
    margin: 0;
    color: var(--text-muted);
    font-size: .66rem;
    font-weight: 500;
  }

  .form-field > small {
    text-align: right;
  }

  .form-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .required-label {
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--surface-attention);
    color: var(--cms-accent-800);
    font-size: .55rem;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  .form-field > .form-field-help {
    max-width: 58ch;
    text-align: left;
  }

  .record-operation-dialog {
    width: min(940px, calc(100vw - 40px));
  }

  .record-operation-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
  }

  .record-operation-body {
    padding: 28px;
    background: linear-gradient(180deg, var(--brand-canvas) 0%, var(--brand-canvas) 100%);
  }

  .record-operation-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
    padding: 24px;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background: var(--brand-white);
    box-shadow:
      0 1px 2px rgb(25 25 25 / 3%),
      0 12px 28px rgb(25 25 25 / 4%);
  }

  .record-operation-fields > .form-field {
    min-width: 0;
    margin: 0;
  }

  .record-operation-fields > .form-field--wide,
  .record-operation-fields > .product-image-field,
  .record-operation-fields > .entity-picker,
  .record-operation-fields > .audience-preview-summary,
  .record-operation-fields > .content-blocks,
  .record-operation-fields > .review-check,
  .record-operation-fields > p {
    grid-column: 1 / -1;
  }

  .is-player-dialog .record-operation-body {
    padding: 0;
    background: var(--brand-charcoal);
  }

  .is-player-dialog .record-operation-fields {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--brand-charcoal);
    box-shadow: none;
  }

  .vimeo-player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--brand-charcoal);
  }

  .vimeo-player-frame.is-portrait {
    width: min(100%, 430px);
    max-height: calc(100dvh - 250px);
    margin-inline: auto;
    aspect-ratio: 9 / 16;
  }

  .vimeo-player-poster {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--brand-charcoal);
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--motion-standard);
  }

  .vimeo-player-frame.is-playing .vimeo-player-poster {
    opacity: 0;
  }

  .vimeo-player-loading {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(25 25 25 / 82%);
    box-shadow: 0 8px 24px rgb(25 25 25 / 20%);
    color: var(--brand-white);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .01em;
    pointer-events: none;
    transition: opacity var(--motion-fast);
  }

  .vimeo-player-loading::before {
    width: 10px;
    height: 10px;
    border: 2px solid rgb(255 255 255 / 38%);
    border-top-color: var(--brand-white);
    border-radius: 50%;
    animation: vimeo-player-spin .7s linear infinite;
    content: "";
  }

  .vimeo-player-frame.is-playing .vimeo-player-loading {
    opacity: 0;
  }

  @keyframes vimeo-player-spin {
    to {
      transform: rotate(1turn);
    }
  }

  .vimeo-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .vimeo-preload-frame {
    position: fixed;
    width: 1px;
    height: 1px;
    inset: auto auto 0 0;
    border: 0;
    opacity: .001;
    pointer-events: none;
  }

  .vimeo-player-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    background: var(--brand-white);
  }

  .vimeo-player-details > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }

  .vimeo-player-details strong {
    font-size: .83rem;
  }

  .vimeo-player-details span {
    color: var(--text-muted);
    font-size: .7rem;
  }

  @media (max-width: 640px) {
    .vimeo-player-details {
      align-items: stretch;
      flex-direction: column;
    }
  }

  .record-operation-fields > .content-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-md);
  }

  .record-operation-fields > .content-blocks legend {
    grid-column: 1 / -1;
  }

  .record-operation-fields .review-check {
    margin: 0;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
  }

  .entity-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .entity-picker legend {
    padding: 0;
    color: var(--text-primary);
    font-size: .78rem;
    font-weight: 750;
  }

  .entity-picker-help {
    margin: 5px 0 12px;
    color: var(--text-muted);
    font-size: .72rem;
  }

  .entity-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 2px;
    overscroll-behavior: contain;
  }

  .entity-choice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 64px;
    padding: 11px 13px;
    border: 1px solid var(--brand-line);
    border-radius: 13px;
    background: var(--brand-white);
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  }

  .entity-choice:hover {
    border-color: var(--brand-blue-400);
    box-shadow: 0 7px 18px rgb(6 96 165 / 8%);
    transform: translateY(-1px);
  }

  .entity-choice:has(input:checked) {
    border-color: var(--cms-accent-600);
    background: linear-gradient(135deg, var(--brand-canvas) 0%, var(--brand-white) 75%);
    box-shadow: 0 0 0 2px rgb(6 96 165 / 10%);
  }

  .entity-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--cms-accent-700);
  }

  .entity-choice-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .entity-choice-copy strong,
  .entity-choice-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .entity-choice-copy strong {
    font-size: .78rem;
  }

  .entity-choice-copy small {
    color: var(--text-muted);
    font-size: .68rem;
  }

  .entity-picker-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed var(--brand-line-strong);
    border-radius: 13px;
    background: var(--surface-subtle);
    color: var(--text-muted);
    font-size: .74rem;
    text-align: center;
  }

  .audience-preview-summary {
    display: grid;
    gap: 18px;
  }

  .audience-preview-headline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 22px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 90% 20%, rgb(45 163 237 / 28%), transparent 38%),
      linear-gradient(135deg, var(--brand-charcoal) 0%, var(--brand-blue-700) 100%);
    color: var(--brand-white);
  }

  .audience-preview-headline > span {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
  }

  .audience-preview-headline > div {
    max-width: 150px;
    color: rgb(255 255 255 / 80%);
    font-size: .78rem;
    font-weight: 650;
  }

  .audience-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
  }

  .audience-preview-grid > div {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    background: var(--brand-white);
  }

  .audience-preview-grid dt {
    color: var(--text-muted);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .audience-preview-grid dd {
    margin: 0;
    font-size: .78rem;
    font-weight: 750;
  }

  .audience-preview-state {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--brand-blue-200);
    border-radius: 14px;
    background: var(--brand-canvas);
  }

  .audience-preview-state.is-empty {
    border-color: var(--brand-magenta-400);
    background: var(--brand-canvas);
  }

  .audience-preview-state p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .74rem;
    line-height: 1.5;
  }

  .audience-preview-state .audience-preview-note {
    margin-top: 5px;
    color: var(--cms-accent-800);
    font-weight: 650;
  }

  .product-image-field {
    display: grid;
    min-width: 0;
    gap: 14px;
    padding-top: 4px;
  }

  .product-image-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }

  .product-image-heading > div {
    display: grid;
    gap: 4px;
  }

  .product-image-heading small {
    color: var(--text-muted);
    font-size: .68rem;
  }

  .image-format-badge {
    padding: 4px 8px;
    border: 1px solid rgb(6 96 165 / 13%);
    border-radius: 999px;
    background: rgb(6 96 165 / 7%);
    color: var(--cms-accent-800);
    font-size: .6rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .product-image-zone {
    min-height: 174px;
    padding: 18px;
    border: 1.5px dashed var(--brand-line-strong);
    border-radius: 15px;
    background:
      radial-gradient(circle at 50% 0, rgb(6 96 165 / 7%), transparent 55%),
      var(--brand-canvas);
    cursor: pointer;
    transition:
      border-color var(--motion-fast) var(--ease-standard),
      background var(--motion-fast) var(--ease-standard),
      transform var(--motion-fast) var(--ease-standard);
  }

  .product-image-zone:hover,
  .product-image-zone:focus-visible,
  .product-image-zone.is-dragging {
    border-color: var(--cms-accent-600);
    outline: 0;
    background-color: var(--brand-canvas);
    transform: translateY(-1px);
  }

  .product-image-empty {
    display: grid;
    min-height: 136px;
    place-items: center;
    align-content: center;
    gap: 7px;
    text-align: center;
  }

  .product-image-empty > strong {
    font-size: .83rem;
  }

  .product-image-empty > span:last-child {
    color: var(--text-muted);
    font-size: .68rem;
  }

  .product-image-upload-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--cms-accent-800);
    box-shadow: 0 8px 20px rgb(6 96 165 / 18%);
    color: var(--brand-white);
    font-size: 1.1rem;
  }

  .product-image-preview {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    min-height: 136px;
    align-items: center;
    gap: 20px;
  }

  .product-image-preview[hidden] {
    display: none;
  }

  .product-image-preview img {
    width: 138px;
    height: 138px;
    border: 1px solid var(--border-divider);
    border-radius: 13px;
    background: var(--brand-white);
    object-fit: cover;
    box-shadow: 0 8px 22px rgb(25 25 25 / 9%);
  }

  .product-image-preview > div {
    display: grid;
    gap: 5px;
  }

  .product-image-preview span {
    color: var(--text-muted);
    font-size: .69rem;
  }

  .product-image-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .button-compact {
    min-height: 36px;
    padding: 7px 12px;
    font-size: .7rem;
  }

  .text-button-danger {
    color: var(--danger-700);
  }

  .image-url-fallback {
    padding-top: 2px;
    color: var(--text-secondary);
    font-size: .7rem;
  }

  .image-url-fallback summary {
    width: fit-content;
    cursor: pointer;
    color: var(--cms-accent-800);
    font-weight: 700;
  }

  .image-url-fallback .form-field {
    margin: 14px 0 0;
    padding: 16px;
    border: 1px solid var(--border-divider);
    border-radius: 12px;
    background: var(--surface-subtle);
  }

  .editor-settings {
    padding-left: 24px;
    border-left: 1px solid var(--border-divider);
  }

  .editor-settings h3 {
    margin-bottom: 17px;
  }

  .content-blocks {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .content-blocks legend {
    margin-bottom: 9px;
    font-size: .75rem;
    font-weight: 700;
  }

  .content-blocks article {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-md);
  }

  .content-blocks article header {
    display: flex;
    min-height: 31px;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: .68rem;
    font-weight: 700;
  }

  .content-blocks article header > div {
    display: flex;
  }

  .content-blocks article .icon-button {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .content-blocks article input, .content-blocks article textarea {
    width: 100%;
    padding: 10px;
    border-color: var(--border-subtle);
    font-size: .8rem;
    resize: vertical;
  }

  .add-block-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--border-control);
    background: var(--surface-subtle);
    color: var(--cms-accent-700);
    cursor: pointer;
    font-size: .74rem;
    font-weight: 700;
  }

  .switch-control {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: .7rem;
  }

  .switch-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .switch-control > span {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 99px;
    background: var(--brand-line);
  }

  .switch-control > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-white);
    box-shadow: 0 1px 3px rgb(25 25 25 / 25%);
    content: "";
    transition: translate var(--motion-fast);
  }

  .switch-control input:checked + span {
    background: var(--cms-accent-700);
  }

  .switch-control input:checked + span::after {
    translate: 16px 0;
  }

  .switch-control input:focus-visible + span {
    outline: 3px solid var(--focus-light);
    outline-offset: 2px;
  }

  .save-state {
    display: inline-flex;
    margin-right: auto;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: .7rem;
  }

  .save-state i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
  }

  .schedule-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
  }

  .schedule-summary img {
    width: 88px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    object-fit: cover;
  }

  .schedule-summary div {
    display: flex;
    flex-direction: column;
  }

  .schedule-summary span {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: .7rem;
  }

  .impact-grid, .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .impact-grid {
    margin-bottom: 18px;
  }

  .impact-grid > div {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--surface-attention);
  }

  .impact-grid span, .impact-grid strong {
    display: block;
  }

  .impact-grid span {
    color: var(--text-muted);
    font-size: .66rem;
  }

  .impact-grid strong {
    margin-top: 4px;
    font-size: .9rem;
  }

  .schedule-options {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
  }

  .schedule-options legend {
    margin-bottom: 8px;
    font-size: .75rem;
    font-weight: 700;
  }

  .schedule-options label {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-md);
    cursor: pointer;
  }

  .schedule-options input, .review-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--cms-accent-700);
  }

  .schedule-options span, .schedule-options strong, .schedule-options small {
    display: block;
  }

  .schedule-options strong {
    font-size: .76rem;
  }

  .schedule-options small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: .66rem;
  }

  .review-check {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    margin: -5px 0 10px;
    cursor: pointer;
    font-size: .72rem;
  }

  .upload-publish-option {
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--cms-accent-700) 24%, var(--border-divider));
    border-radius: var(--radius-md);
    background: var(--surface-attention);
  }

  .upload-publish-option span,
  .upload-publish-option strong,
  .upload-publish-option small {
    display: block;
  }

  .upload-publish-option strong {
    color: var(--text-primary);
    font-size: .76rem;
  }

  .upload-publish-option small {
    margin-top: 3px;
    color: var(--text-secondary);
    line-height: 1.45;
  }

  .inline-error {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--danger-bg);
    color: var(--danger-700);
    font-size: .7rem;
  }

  .inline-error svg {
    flex: 0 0 17px;
  }

  .upload-content-settings {
    display: grid;
    gap: 14px;
    margin: 4px 0 16px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--cms-accent-700) 20%, var(--border-divider));
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface-attention), var(--surface-canvas));
  }

  .upload-content-settings .section-heading {
    display: block;
    margin: 0;
  }

  .upload-content-settings .section-heading h3 {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: .88rem;
  }

  .upload-content-settings .section-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .72rem;
    line-height: 1.45;
  }

  .form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .upload-provider-policy {
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid var(--border-divider);
    border-left: 3px solid var(--cms-accent-600);
    border-radius: var(--radius-md);
    background: var(--surface-canvas);
  }

  .upload-provider-policy h3 {
    margin: 0 0 10px;
    font-size: .78rem;
  }

  .upload-provider-policy dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
  }

  .upload-provider-policy dl > div {
    min-width: 0;
  }

  .upload-provider-policy dt {
    color: var(--text-muted);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .upload-provider-policy dd {
    margin: 2px 0 0;
    color: var(--text-primary);
    font-size: .73rem;
    font-weight: 600;
  }

  .upload-provider-policy p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: .7rem;
    line-height: 1.45;
  }

  .upload-zone {
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    border: 1.5px dashed var(--border-control);
    border-radius: var(--radius-lg);
    background: var(--surface-subtle);
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
  }

  .upload-zone svg {
    width: 34px;
    height: 34px;
    margin-bottom: 5px;
    color: var(--cms-accent-700);
  }

  .upload-zone span {
    color: var(--text-muted);
    font-size: .7rem;
  }

  .upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .upload-zone:focus-within {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
  }

  .upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-md);
  }

  .upload-preview img {
    width: 72px;
    height: 54px;
    border-radius: var(--radius-sm);
    object-fit: cover;
  }

  .upload-preview > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    font-size: .7rem;
  }

  .upload-preview span, .upload-preview p {
    margin: 2px 0 0;
    color: var(--text-muted);
  }

  .device-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
  }

  .device-switch button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border-divider);
    background: var(--brand-white);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 700;
  }

  .device-switch button + button {
    border-left: 0;
  }

  .device-switch button[aria-pressed="true"] {
    background: var(--cms-charcoal-950);
    color: var(--brand-white);
  }

  .customer-preview {
    max-width: 740px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-lg);
    background: var(--brand-white);
    box-shadow: 0 12px 34px rgb(25 25 25 / 10%);
    transition: max-width var(--motion-standard) var(--ease-emphasized);
  }

  .customer-preview[data-preview-device="tablet"] {
    max-width: 560px;
  }

  .customer-preview[data-preview-device="mobile"] {
    max-width: 360px;
  }

  .customer-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
  }

  .customer-preview > div {
    padding: 32px;
    text-align: center;
  }

  .customer-preview > div > p:first-child {
    margin-bottom: 7px;
    color: var(--cms-accent-700);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .customer-preview h3 {
    margin: 0 0 10px;
    font-size: 1.65rem;
  }

  .customer-preview > div > p:not(:first-child) {
    max-width: 500px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
  }

  .customer-preview > div > button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    background: var(--cms-accent-700);
    color: var(--brand-white);
    font-weight: 700;
  }

  .customer-preview[data-preview-device="mobile"] > div {
    padding: 24px 18px;
  }

  .customer-preview[data-preview-device="mobile"] h3 {
    font-size: 1.35rem;
  }

  .notification-panel, .profile-menu {
    position: fixed;
    z-index: 120;
    top: calc(var(--topbar-height) - 4px);
    border: 1px solid var(--border-divider);
    border-radius: var(--radius-lg);
    background: var(--brand-white);
    box-shadow: var(--shadow-popover);
  }

  .notification-panel {
    right: 112px;
    width: min(390px, calc(100vw - 24px));
    padding-bottom: 8px;
  }

  .notification-panel header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px 14px 8px 18px;
  }

  .notification-panel h2 {
    margin: 0;
    font-size: 1rem;
  }

  .notification-panel header p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: .68rem;
  }

  .notification-panel > button {
    display: flex;
    width: calc(100% - 16px);
    min-height: 68px;
    align-items: center;
    gap: 10px;
    margin: 3px 8px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    text-align: left;
  }

  .notification-panel > button:hover {
    background: var(--surface-hover);
  }

  .notification-panel > button > span:nth-child(2) {
    display: flex;
    flex-direction: column;
  }

  .notification-panel > button small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: .66rem;
  }

  .notification-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-attention);
    color: var(--cms-accent-700);
  }

  .notification-icon.is-warning {
    background: var(--warning-bg);
    color: var(--warning-700);
  }

  .profile-menu {
    right: 18px;
    width: 270px;
    padding: 10px;
  }

  .profile-menu > .profile-menu-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 10px;
  }

  .profile-menu > .profile-menu-identity > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    font-size: .78rem;
  }

  .profile-menu > .profile-menu-identity strong,
  .profile-menu > .profile-menu-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-menu small {
    color: var(--text-muted);
    font-size: .66rem;
  }

  .profile-menu hr {
    margin: 9px 0;
    border: 0;
    border-top: 1px solid var(--border-divider);
  }

  .profile-menu-action {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 650;
    text-align: left;
    transition:
      background var(--motion-fast) var(--ease-standard),
      border-color var(--motion-fast) var(--ease-standard);
  }

  .profile-menu-action:hover {
    border-color: var(--border-subtle);
    background: var(--surface-hover);
  }

  .profile-menu-action svg {
    width: 18px;
    flex: 0 0 18px;
    color: var(--cms-accent-700);
  }

  .profile-menu-form {
    margin: 2px 0 0;
    padding: 0;
  }

  .profile-menu-action--danger {
    color: var(--danger-700);
  }

  .profile-menu-action--danger:hover {
    border-color: var(--brand-magenta-400);
    background: var(--danger-bg);
  }

  .profile-menu-action--danger svg {
    color: currentColor;
  }

  .toast-stack {
    position: fixed;
    z-index: 200;
    right: 22px;
    bottom: 22px;
    display: flex;
    width: min(380px, calc(100vw - 32px));
    flex-direction: column;
    gap: 9px;
    pointer-events: none;
  }

  .toast {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 13px;
    border: 1px solid var(--brand-blue-200);
    border-left: 4px solid var(--cms-accent-600);
    border-radius: var(--radius-md);
    background: var(--brand-white);
    box-shadow: var(--shadow-popover);
    color: var(--text-primary);
    font-size: .76rem;
    pointer-events: auto;
    animation: toast-in var(--motion-standard) var(--ease-emphasized);
  }

  @keyframes toast-in {
    from { translate: 0 8px; opacity: 0; }
  }

  .toast > svg {
    flex: 0 0 19px;
    color: var(--cms-accent-700);
  }

  .toast p {
    flex: 1;
    margin: 0;
  }

  .toast .icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .prose {
    color: var(--text-secondary);
    font-size: .86rem;
  }

  .prose li + li {
    margin-top: 8px;
  }

  @media (min-width: 1440px) {
    .cms-app.inspector-open .cms-workspace {
      margin-right: var(--inspector-width);
    }
  }

  @media (max-width: 1439.98px) {
    .inspector-scrim.is-visible {
      display: block;
    }
  }

  @media (min-width: 1280px) and (max-width: 1399.98px) {
    .cms-topbar .api-connection-label,
    .cms-topbar .profile-copy,
    .cms-topbar .profile-button > svg {
      display: none;
    }

    .cms-topbar .profile-button {
      padding: 3px;
    }
  }

  @media (max-width: 1023.98px) {
    .cms-topbar .profile-copy,
    .cms-topbar .profile-button > svg {
      display: none;
    }

    .cms-topbar .profile-button {
      padding: 3px;
    }

    .filter-toolbar {
      flex-wrap: wrap;
    }

    .filter-toolbar .field-search {
      flex-basis: 100%;
    }

    .filter-toolbar label:not(.field-search) {
      flex: 1;
    }

    .profile-menu {
      right: 10px;
    }
  }

  @media (min-width: 768px) and (max-width: 900px) {
    .content-table th:nth-child(3),
    .content-table td:nth-child(3),
    .content-table th:nth-child(4),
    .content-table td:nth-child(4) {
      display: none;
    }
  }

  @media (max-width: 767.98px) {
    .tab-list {
      margin-inline: -16px;
      padding-inline: 8px;
    }

    .filter-toolbar {
      gap: 8px;
    }

    .filter-toolbar label:not(.field-search) {
      display: none;
    }

    .filter-toolbar.filters-open label:not(.field-search) {
      display: flex;
      flex: 1 1 100%;
    }

    .filter-toolbar .filter-button {
      flex: 0 0 auto;
    }

    .result-meta span {
      display: none;
    }

    .content-table thead {
      display: none;
    }

    .content-table, .content-table tbody {
      display: block;
    }

    .content-table tr {
      position: relative;
      display: grid;
      grid-template-columns: 32px minmax(0, 1fr) auto;
      align-items: center;
      gap: 2px 8px;
      margin-bottom: 8px;
      padding: 10px 8px;
      border: 1px solid var(--border-divider);
      border-radius: var(--radius-lg);
      background: var(--brand-white);
    }

    .content-table th, .content-table td {
      display: none;
      height: auto;
      padding: 0;
      border: 0;
    }

    .content-table td:first-child, .content-table th:nth-child(2), .content-table td:nth-child(7), .content-table td:last-child {
      display: block;
    }

    .content-table td:first-child {
      grid-column: 1;
      grid-row: 1;
    }

    .content-table th:nth-child(2) {
      min-width: 0;
      grid-column: 2 / 4;
      grid-row: 1 / 3;
      padding-right: 38px;
    }

    .content-table td:nth-child(7) {
      grid-column: 2;
      grid-row: 3;
      margin-left: 78px;
    }

    .content-table td:last-child {
      position: absolute;
      top: 12px;
      right: 8px;
    }

    .content-table .check-control {
      width: 32px;
      height: 44px;
    }

    .content-cell {
      gap: 10px;
    }

    .content-cell .thumb {
      width: 68px;
      height: 58px;
      flex-basis: 68px;
    }

    .pagination {
      flex-direction: column;
      align-items: flex-start;
    }

    .pagination > div {
      width: 100%;
      justify-content: center;
    }

    .content-inspector {
      z-index: 150;
      inset: 0;
      width: 100%;
      min-height: 100dvh;
      border: 0;
      box-shadow: none;
    }

    .inspector-header {
      padding-top: max(14px, env(safe-area-inset-top));
    }

    .inspector-footer {
      flex-direction: column;
      align-items: stretch;
    }

    .inspector-footer > span {
      flex-direction: row;
      gap: 4px;
    }

    .inspector-footer > div {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
    }

    .inspector-footer .button {
      white-space: normal;
    }

    .cms-dialog, .cms-dialog.dialog-small, .dialog-shell-small {
      width: 100vw;
      max-height: 100dvh;
      margin: 0;
      border-radius: 0;
    }

    .dialog-shell {
      min-height: 100dvh;
      max-height: 100dvh;
    }

    .dialog-header {
      padding-top: max(15px, env(safe-area-inset-top));
    }

    .editor-layout {
      display: block;
    }

    .record-operation-body {
      padding: 16px;
    }

    .record-operation-fields,
    .record-operation-fields > .content-blocks,
    .entity-picker-grid,
    .audience-preview-grid {
      grid-template-columns: 1fr;
    }

    .record-operation-fields > .form-field,
    .record-operation-fields > .content-blocks > * {
      grid-column: 1;
    }

    .product-image-preview {
      grid-template-columns: 92px minmax(0, 1fr);
    }

    .product-image-preview img {
      width: 92px;
      height: 92px;
    }

    .audience-preview-headline {
      align-items: flex-start;
      flex-direction: column;
    }

    .editor-settings {
      margin-top: 24px;
      padding: 20px 0 0;
      border-top: 1px solid var(--border-divider);
      border-left: 0;
    }

    .dialog-footer {
      flex-wrap: wrap;
    }

    .save-state {
      width: 100%;
    }

    .dialog-footer .button {
      flex: 1;
    }

    .notification-panel {
      z-index: 140;
      inset: var(--topbar-height) 8px auto 8px;
      width: auto;
    }

    .toast-stack {
      right: 16px;
      bottom: calc(16px + env(safe-area-inset-bottom));
      left: 16px;
      width: auto;
    }

    .field-row, .impact-grid, .form-grid-two, .upload-provider-policy dl {
      grid-template-columns: 1fr;
    }
  }
}
