@font-face { font-family: InterVariable; src: url("./InterVariable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
/* Self-contained editor chrome; independent of the site's typography and theme. */
body.cms-editor-open { padding-bottom: calc(var(--cms-dock-height, 430px) + 24px); }
.cms-idle-spacer { height: 100px; }
.cms-tool { --cms-line: rgb(24 24 27 / 10%); --cms-accent: #2563eb; font: 400 14px/1.5 InterVariable, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #27272a; text-align: left; letter-spacing: normal; text-transform: none; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; }
.cms-tool, .cms-tool * { box-sizing: border-box; }
.cms-tool [x-cloak], .cms-tool[x-cloak] { display: none !important; }
.cms-tool p { margin: 0; font: inherit; color: inherit; }
.cms-tool :is(button,a,input,select,textarea) { font: inherit; letter-spacing: normal; text-transform: none; }
.cms-tool :is(button,a) { -webkit-tap-highlight-color: transparent; }
.cms-tool :is(button,a):focus-visible { outline: 2px solid var(--cms-accent); outline-offset: 2px; }
.cms-tool :disabled { opacity: .5; cursor: not-allowed; }
.cms-dock { display: flex; flex-direction: column; max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); position: fixed; inset: auto 16px 16px; max-width: 1240px; margin-inline: auto; z-index: 2147483000; isolation: isolate; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgb(24 24 27 / 10%), 0 20px 70px rgb(24 24 27 / 24%); }
.cms-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--cms-line); overflow-x: auto; }
.cms-tool .cms-tabs button { min-height: 48px; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #71717a; font-weight: 500; white-space: nowrap; cursor: pointer; }
.cms-tool .cms-tabs button[aria-pressed=true] { border-bottom-color: var(--cms-accent); color: #18181b; }
.cms-tool .cms-tabs button:hover { color: #18181b; }
.cms-panel { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); height: min(370px, 47dvh); }
.cms-panel > div { min-width: 0; min-height: 0; }
.cms-panel__field { display: flex; flex-direction: column; gap: 12px; padding: 20px 14px 12px; border-right: 1px solid var(--cms-line); background: #fafafa; }
.cms-browser-heading { display: flex; align-items: center; justify-content: space-between; padding-inline: 6px; }
.cms-tool .cms-tool__title { font-weight: 600; }
.cms-tool .cms-count { font-size: 12px; color: #71717a; font-variant-numeric: tabular-nums; }
.cms-tool :is(input:not([type=file]),select,textarea) { display: block; width: 100%; padding: 9px 12px; border: 1px solid var(--cms-line); border-radius: 8px; background: #fff; color: #27272a; box-shadow: none; }
.cms-tool :is(input,textarea,select):focus-visible { outline: 2px solid var(--cms-accent); outline-offset: -1px; }
.cms-tool input::placeholder { color: #71717a; }
.cms-filters { display: flex; align-items: center; gap: 4px; }
.cms-tool .cms-filters button { padding: 5px 12px; min-height: 30px; border: 0; border-radius: 6px; color: #71717a; background: transparent; font-weight: 500; cursor: pointer; }
.cms-tool .cms-filters button[aria-pressed=true] { background: #e9e9ec; color: #27272a; }
.cms-tool .cms-filters button:hover { background: #f0f0f2; color: #27272a; }
.cms-content-list { padding: 0; margin: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; scrollbar-width: thin; }
.cms-content-list li { padding: 0; margin: 0 0 3px; }
.cms-tool .cms-content-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; text-align: left; background: transparent; color: #3f3f46; cursor: pointer; }
.cms-tool .cms-content-item:hover { background: #f0f0f2; }
.cms-tool .cms-content-item[aria-pressed=true] { background: #eaf1ff; color: #1e40af; box-shadow: inset 2px 0 #2563eb; }
.cms-content-item img { width: 42px; height: 42px; flex-shrink: 0; object-fit: cover; border-radius: 6px; outline: 1px solid rgb(24 24 27 / 8%); outline-offset: -1px; }
.cms-content-item__copy { min-width: 0; display: grid; gap: 3px; }
.cms-content-item__label, .cms-content-item__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-content-item__label { font-weight: 500; }
.cms-content-item__preview { color: #71717a; }
.cms-panel__copy { container-type: inline-size; padding: 24px 28px; overflow-y: auto; overscroll-behavior: contain; }
.cms-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.cms-detail-heading > div { min-width: 0; }
.cms-tool .cms-detail-kind { font-size: 12px; color: #71717a; margin-bottom: 4px; }
.cms-tool .cms-detail-title { margin: 0; font-family: inherit; line-height: 1.5; letter-spacing: normal; text-transform: none; font-size: 18px; font-weight: 600; color: #18181b; overflow-wrap: anywhere; }
.cms-tool label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; color: #3f3f46; }
.cms-tool .cms-tool__hint { margin-top: 8px; color: #71717a; font-size: 14px; text-wrap: pretty; }
.cms-tool .cms-panel__empty { max-width: 48ch; padding: 22px 0; color: #71717a; text-wrap: pretty; }
.cms-format { display: flex; gap: 4px; padding: 5px; width: fit-content; margin-bottom: 10px; border-radius: 8px; background: #f4f4f5; }
.cms-tool .cms-format button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #27272a; cursor: pointer; }
.cms-tool .cms-format button:hover { background: #e4e4e7; }
.cms-rich-input { min-height: 120px; white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; border: 1px solid var(--cms-line); border-radius: 10px; background: #fff; color: #27272a; }
.cms-rich-input:focus { outline: 2px solid var(--cms-accent); outline-offset: -1px; }
.cms-tool textarea { resize: vertical; min-height: 96px; }
.cms-image-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cms-image-panel label { display: grid; align-content: start; gap: 8px; margin: 0; }
.cms-image-preview { width: 100%; height: 150px; grid-column: 1 / -1; object-fit: contain; background: #f4f4f5; border-radius: min(2vw, 10px); outline: 1px solid rgb(24 24 27 / 5%); outline-offset: -1px; }
.cms-image-panel input[type=file] { width: 100%; color: #71717a; }
.cms-image-panel input::file-selector-button { border: 1px solid var(--cms-line); background: white; border-radius: 6px; padding: 8px 12px; margin-right: 8px; color: #27272a; cursor: pointer; }
.cms-image-panel .cms-tool__hint { grid-column: 1 / -1; }
.cms-image-panel .cms-tool__button { justify-self: start; align-self: start; }
.cms-metadata { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 24px; height: min(370px, 47dvh); overflow-y: auto; }
.cms-metadata__intro { grid-column: 1 / -1; }
.cms-tool .cms-metadata textarea { min-height: 40px; }
.cms-history-panel { padding: 24px; height: min(370px, 47dvh); overflow-y: auto; }
.cms-history-list { list-style: none; padding: 0; margin: 20px 0 0; }
.cms-history-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--cms-line); }
.cms-history-list li > div { min-width: 0; }
.cms-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 14px 20px; flex-shrink: 0; border-top: 1px solid var(--cms-line); color: #27272a; }
.cms-bar__identity { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-width: 0; }
.cms-bar__actions { display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 12px; flex: 1; }
.cms-tool .cms-bar__status { color: #71717a; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cms-bar__status::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #a1a1aa; }
.cms-bar__status--dirty::before { background: #d97706; }
.cms-tool .cms-tool__button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--cms-line); border-radius: 8px; background: #fff; color: #3f3f46; text-decoration: none; font-weight: 500; white-space: nowrap; cursor: pointer; }
.cms-tool .cms-tool__button:hover { background: #f4f4f5; }
.cms-tool .cms-tool__button--quiet { border-color: transparent; background: transparent; color: #71717a; }
.cms-tool .cms-tool__button--primary { border-color: #2563eb; background: #2563eb; color: #fff; box-shadow: inset 0 1px rgb(255 255 255 / 16%); }
.cms-tool .cms-tool__button--primary:hover { background: #1d4ed8; }
.cms-tool .cms-mobile-back { display: none; }
.cms-toast { position: fixed; top: 20px; right: 20px; z-index: 2147483001; display: flex; align-items: flex-start; gap: 12px; width: min(400px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--cms-line); border-left: 3px solid #2563eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgb(24 24 27 / 12%); animation: cms-toast-in .18s ease-out; }
.cms-toast__copy { flex: 1; min-width: 0; }
.cms-toast .cms-tool__title { margin-bottom: 4px; }
.cms-toast--error { border-left-color: #dc2626; }
.cms-toast--error [role=alert] { color: #b91c1c; }
.cms-tool .cms-tool__icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 6px; padding: 0; background: transparent; color: #71717a; font-size: 22px; cursor: pointer; }
.cms-tool .cms-tool__icon:hover { background: #f4f4f5; }
.cms-editable { cursor: text; border-radius: 3px; outline: 1px dashed #3b82f6 !important; outline-offset: 4px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 1ch; }
.cms-editable:hover, .cms-editable:focus-visible { outline: 2px solid #2563eb !important; background-color: #3b82f61a; }
.cms-editable:empty::before { content: '[Empty text]'; opacity: .5; }
.cms-image-editable { outline: 2px dashed #2563eb; outline-offset: -2px; cursor: pointer; }
.cms-text { white-space: pre-wrap; }
.cms-text strong, .cms-rich-input strong, .cms-format strong { font-weight: bolder; }
.cms-text em, .cms-rich-input em, .cms-format em { font-style: italic; }
.cms-text u, .cms-rich-input u, .cms-format u { text-decoration: underline; }
@keyframes cms-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
    .cms-dock { inset: auto 8px calc(8px + env(safe-area-inset-bottom)); border-radius: 12px; }
    .cms-tool { font-size: 16px; }
    .cms-panel { grid-template-columns: 1fr; height: 40dvh; }
    .cms-panel__field { border-right: 0; }
    .cms-panel[data-detail=true] .cms-panel__field, .cms-panel:not([data-detail=true]) .cms-panel__copy { display: none; }
    .cms-panel__copy { container-type: inline-size; padding: 16px; }
    .cms-tool .cms-mobile-back { display: inline-flex; }
    .cms-detail-heading { flex-wrap: wrap; }
    .cms-detail-heading > div { flex: 1; }
    .cms-tool .cms-detail-title { font-size: 16px; }
    .cms-tabs { padding-inline: 16px; gap: 20px; }
    .cms-tool .cms-tool__hint, .cms-tool label { font-size: 16px; }
    .cms-image-panel, .cms-metadata { grid-template-columns: 1fr; }
    .cms-metadata, .cms-history-panel { height: 40dvh; padding: 16px; }
    .cms-bar { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .cms-bar__identity { justify-content: space-between; width: 100%; }
    .cms-bar__actions { width: 100%; flex-wrap: wrap; }
    .cms-idle-spacer { height: 150px; }
    .cms-history-list li { align-items: flex-start; flex-wrap: wrap; }
}
@media (pointer: coarse) { .cms-tool :is(button,a.cms-tool__button) { min-height: 48px; } .cms-tool .cms-format button, .cms-tool .cms-tool__icon { min-width: 48px; } }
@media (prefers-reduced-motion: reduce) { .cms-toast { animation: none; } }

.cms-window-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--cms-line); padding-right: 12px; }
.cms-window-heading .cms-tabs { min-width: 0; border-bottom: 0; }
.cms-tool .cms-minimise { flex-shrink: 0; }

/* Editing aids remain visually separate from the host website. */
.cms-shared-badge { display: inline-block; width: fit-content; padding: 2px 6px; border-radius: 5px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 500; }
.cms-shared-notice { margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgb(37 99 235 / 14%); border-radius: 8px; background: #f8faff; color: #52525b; font-size: 14px; line-height: 1.5; }
.cms-shared-notice strong { color: #1d4ed8; margin-right: 4px; }
.cms-undo-actions { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid var(--cms-line); }
.cms-bar, .cms-bar__actions { flex-wrap: wrap; }
.cms-library { grid-column: 1 / -1; min-width: 0; padding: 12px; border: 1px solid var(--cms-line); border-radius: 12px; background: #fafafa; }
.cms-library-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cms-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin: 12px 0; }
.cms-library-image { min-width: 0; overflow: hidden; border: 2px solid transparent; --cms-image-radius: 9px; --cms-image-padding: 3px; border-radius: var(--cms-image-radius); background: #fff; color: #52525b; cursor: pointer; padding: 3px; font: inherit; }
.cms-library-image:hover, .cms-library-image[aria-pressed="true"] { border-color: var(--cms-accent); }
.cms-library-image:focus-visible { outline: 2px solid var(--cms-accent); outline-offset: 2px; }
.cms-library-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: min(2vw, calc(var(--cms-image-radius) - var(--cms-image-padding))); }
.cms-library-image span { display: block; padding: 5px 0; font-size: 11px; }

#cms-editor-panel { display: flex; flex-direction: column; min-height: 0; }
#cms-editor-panel > :is(.cms-panel, .cms-metadata, .cms-history-panel, .cms-transfer, .cms-changes) { flex-shrink: 1; min-height: 0; }
.cms-window-heading { flex-shrink: 0; }
.cms-tool .cms-code-notice { margin: 12px 16px 0; }
.cms-content-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.cms-bar__workspace, .cms-bar__publish { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.cms-bar__publish { margin-left: auto; }
.cms-bar__status--busy::before { background: var(--cms-accent); }
.cms-tool :is(.cms-library-heading h3, .cms-detail-title) { font-family: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.cms-tool .cms-library-heading h3 { font-size: 14px; line-height: 1.5; font-weight: 600; }
.cms-image-url, .cms-image-alt, .cms-image-actions { grid-column: 1 / -1; min-width: 0; }
.cms-image-actions { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cms-image-actions .cms-upload-control { flex: 1 1 240px; min-width: 0; }
.cms-image-actions .cms-tool__button { align-self: flex-end; }
.cms-library { align-self: start; }
.cms-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@container (max-width: 440px) {
    .cms-image-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .cms-image-actions .cms-tool__button { white-space: normal; text-align: left; }
    .cms-detail-heading { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
    .cms-bar__identity, .cms-bar__actions { width: 100%; flex-basis: 100%; }
    .cms-bar__identity { justify-content: space-between; }
}
@media (max-width: 760px) {
    .cms-bar__actions { gap: 10px; }
    .cms-bar__publish { width: 100%; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--cms-line); }
    .cms-tool .cms-shared-notice, .cms-tool .cms-library-heading h3 { font-size: 16px; }
    .cms-shared-badge { font-size: 12px; }
    .cms-tool .cms-code-notice { margin: 8px 12px 0; }
}

.cms-link-panel { display: grid; gap: 16px; }
.cms-link-panel label { display: grid; gap: 8px; margin: 0; }
.cms-link-panel .cms-tool__button { justify-self: start; }
.cms-tool .cms-link-error { color: #b91c1c; }
.cms-link-editable { outline: 2px dashed #2563eb; outline-offset: 3px; cursor: pointer; }
@media (max-width: 760px) {
    .cms-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
    .cms-detail-heading > div { grid-column: 1 / -1; grid-row: 1; }
    .cms-tool .cms-detail-heading > button { max-width: 100%; white-space: normal; }
}

/* The left editor reserves its own column beside the website. */
.cms-layout-picker { position: relative; }
.cms-layout-options { position: absolute; z-index: 3; bottom: calc(100% + 10px); right: 0; width: 300px; max-width: calc(100vw - 48px); max-height: min(460px, 65dvh); overflow-y: auto; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(24 24 27 / 10%), 0 12px 40px rgb(24 24 27 / 18%); }
.cms-tool .cms-layout-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; color: #27272a; text-align: left; cursor: pointer; white-space: normal; }
.cms-tool .cms-layout-option:hover { background: #f4f4f5; }
.cms-tool .cms-layout-option[aria-pressed=true] { background: #eff6ff; color: #1d4ed8; }
.cms-layout-option > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cms-layout-option strong { font-weight: 500; }
.cms-layout-option > span:last-child > span { color: #71717a; }
.cms-layout-diagram { position: relative; width: 38px; height: 30px; flex-shrink: 0; border: 1px solid var(--cms-line); border-radius: 4px; background: #fafafa; }
.cms-layout-diagram::after { content: ''; position: absolute; background: #93c5fd; border-radius: 2px; }
.cms-layout-diagram--left::after { inset: 3px auto 3px 3px; width: 11px; }
.cms-layout-diagram--bottom::after { inset: auto 3px 3px; height: 10px; }
@media (min-width: 768px) {
    .cms-dock[data-layout=left] { top: 16px; bottom: 16px; width: calc(var(--cms-left-space) - 32px); max-width: calc(100vw - 32px); margin: 0; }
    .cms-dock[data-layout=left] { left: 16px; right: auto; }
    .cms-dock[data-layout=left] #cms-editor-panel { flex: 1; }
    .cms-dock[data-layout=left] :is(.cms-panel, .cms-metadata, .cms-history-panel, .cms-transfer, .cms-changes) { flex: 1; height: auto; min-height: 0; }
    .cms-dock[data-layout=left] .cms-panel { grid-template-columns: minmax(0, 1fr); }
    .cms-dock[data-layout=left] .cms-panel__field { border-right: 0; }
    .cms-dock[data-layout=left] .cms-panel[data-detail=true] .cms-panel__field,
    .cms-dock[data-layout=left] .cms-panel:not([data-detail=true]) .cms-panel__copy { display: none; }
    .cms-dock[data-layout=left] .cms-mobile-back { display: inline-flex; }
    .cms-dock[data-layout=left] .cms-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
    .cms-dock[data-layout=left] .cms-detail-heading > div { grid-column: 1 / -1; grid-row: 1; }
    .cms-dock[data-layout=left] .cms-detail-heading > button { white-space: normal; }
    .cms-dock[data-layout=left] :is(.cms-panel__copy, .cms-metadata, .cms-history-panel) { padding: 20px; }
    .cms-dock[data-layout=left] .cms-metadata { grid-template-columns: minmax(0, 1fr); }
    .cms-dock[data-layout=left] .cms-tabs { padding-inline: 16px; gap: 16px; }
    .cms-dock[data-layout=left] .cms-history-list li { flex-wrap: wrap; gap: 10px; }
    .cms-dock[data-layout=left] .cms-bar { padding: 14px; }
    .cms-dock[data-layout=left] :is(.cms-bar__identity, .cms-bar__actions) { width: 100%; flex-basis: 100%; }
    .cms-dock[data-layout=left] .cms-bar__identity { justify-content: space-between; }
    .cms-dock[data-layout=left] .cms-bar__publish { width: 100%; justify-content: flex-end; border-top: 1px solid var(--cms-line); padding-top: 10px; }
    .cms-dock[data-layout=left] .cms-bar__workspace { position: relative; width: 100%; }
    .cms-dock[data-layout=left] .cms-layout-picker { position: static; }
    .cms-dock[data-layout=left] .cms-layout-options { right: 0; left: 0; width: auto; max-height: max(120px, calc(100dvh - 230px)); }
}
@media (max-width: 760px) {
    .cms-layout-options { position: fixed; inset: auto 16px 16px; width: auto; max-width: none; max-height: calc(100dvh - 32px); }
}

:root { --cms-left-space: clamp(352px, calc(30vw + 32px), 432px); }
@media (min-width: 768px) {
    body.cms-editor-left { box-sizing: border-box !important; margin-left: var(--cms-left-space) !important; margin-right: 0 !important; width: calc(100% - var(--cms-left-space)) !important; max-width: none !important; }
    body.cms-editor-left [data-cms-fixed-position] { max-width: calc(100vw - var(--cms-left-space)) !important; }
    body.cms-editor-left [data-cms-fixed-position=full] { left: var(--cms-left-space) !important; right: 0 !important; width: auto !important; }
    body.cms-editor-left [data-cms-fixed-position=left] { left: calc(var(--cms-original-left) + var(--cms-left-space)) !important; }
    body.cms-editor-left [data-cms-fixed-position=center] { left: calc(var(--cms-original-left) + var(--cms-left-space) / 2) !important; }
}

.cms-transfer { overflow-y: auto; height: min(420px, 47dvh); align-content: start; flex-shrink: 1; min-height: 0; display: grid; gap: 12px; padding: 20px; max-width: 680px; }
.cms-transfer input[type="file"] { max-width: 100%; min-width: 0; }
.cms-transfer .cms-tool__hint { margin: 0; }
@media (max-width: 767px) {
    .cms-transfer { padding: 16px; font-size: 16px; }
    .cms-transfer .cms-tool__hint { font-size: 16px; }
    .cms-transfer .cms-tool__button { min-height: 48px; }
}


.cms-changes { height: min(440px, 47dvh); overflow-y: auto; padding: 20px; }
.cms-changes__intro { display: grid; gap: 12px; }
.cms-changes__intro .cms-filters { padding: 0; flex-wrap: wrap; }
.cms-changes__toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cms-changes__toggle input { width: 18px; height: 18px; accent-color: var(--cms-accent); }
.cms-changes__list { list-style: none; padding: 0; margin: 16px 0 0; }
.cms-change { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--cms-line); }
.cms-change__heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cms-change__heading > div { min-width: 0; overflow-wrap: anywhere; }
.cms-change__heading > button { flex-shrink: 0; }
.cms-change__columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cms-change__columns > * { min-width: 0; }
.cms-change__labels { font-weight: 600; }
.cms-change__value { white-space: pre-wrap; overflow-wrap: anywhere; }
.cms-change__row { display: grid; gap: 6px; }
.cms-change__images figure { margin: 0; }
.cms-change__images img { display: block; width: 100%; height: 140px; object-fit: contain; background: #fafafa; border: 1px solid var(--cms-line); border-radius: 6px; }
.cms-change__format summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cms-change__format .cms-change__columns { padding-top: 12px; }
.cms-diff-removed { background: #fff1f2; color: #9f1239; text-decoration: line-through; }
.cms-diff-added { background: #ecfdf5; color: #065f46; text-decoration: underline; text-underline-offset: 3px; }
.cms-diff-legend { display: flex; gap: 12px; }
.cms-changes__empty { padding: 24px 0; }
.cms-field-changed { outline: 2px dashed #b45309 !important; outline-offset: 4px !important; }
@media (max-width: 767px) {
    .cms-changes { height: 40dvh; padding: 16px; font-size: 16px; }
    .cms-changes .cms-tool__hint { font-size: 16px; }
    .cms-changes .cms-tool__button, .cms-changes .cms-filters button, .cms-changes__toggle { min-height: 48px; }
    .cms-change__columns { gap: 12px; }
}

@media (max-width: 480px) {
    .cms-change__columns { grid-template-columns: minmax(0, 1fr); }
    .cms-change__labels { display: none; }
    .cms-change__side-label { position: static; display: block; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; font-weight: 600; }
    .cms-change__heading { flex-wrap: wrap; }
}
