:root {
--md-sys-color-primary: #4a6d9e;
--md-sys-color-on-primary: #ffffff;
--md-sys-color-primary-container: #dbe7f6;
--md-sys-color-on-primary-container: #1e3a5f;
--md-sys-color-primary-fixed: #e0e9f8;
--md-sys-color-primary-fixed-dim: #b6cdec;
--md-sys-color-on-primary-fixed: #1e3a5f;
--md-sys-color-on-primary-fixed-variant: #2f5480;
--md-sys-color-secondary: #64748b;
--md-sys-color-on-secondary: #ffffff;
--md-sys-color-secondary-container: #f1f5f9;
--md-sys-color-on-secondary-container: #334155;
--md-sys-color-tertiary: #8a5a44;
--md-sys-color-on-tertiary: #ffffff;
--md-sys-color-tertiary-container: #f0e2db;
--md-sys-color-on-tertiary-container: #5c3625;
--md-sys-color-tertiary-fixed: #ffdbcf;
--md-sys-color-tertiary-fixed-dim: #ffb59c;
--md-sys-color-error: #b42318;
--md-sys-color-on-error: #ffffff;
--md-sys-color-error-container: #fee4e2;
--md-sys-color-on-error-container: #912018;
--md-sys-color-success: #157f5f;
--md-sys-color-on-success: #ffffff;
--md-sys-color-success-container: #dcfce7;
--md-sys-color-on-success-container: #065f46;
--md-sys-color-warning: #b45309;
--md-sys-color-on-warning: #ffffff;
--md-sys-color-warning-container: #fef3c7;
--md-sys-color-on-warning-container: #92400e;
--md-sys-color-surface: #ffffff;
--md-sys-color-surface-dim: #e2e8f0;
--md-sys-color-surface-bright: #ffffff;
--md-sys-color-surface-container-lowest: #ffffff;
--md-sys-color-surface-container-low: #f8fafc;
--md-sys-color-surface-container: #f1f5f9;
--md-sys-color-surface-container-high: #e9eef4;
--md-sys-color-surface-container-highest: #e2e8f0;
--md-sys-color-surface-variant: #eef2f6;
--md-sys-color-on-surface: #0f172a;
--md-sys-color-on-surface-variant: #475569;
--md-sys-color-surface-tint: #4a6d9e;
--md-sys-color-outline: #94a3b8;
--md-sys-color-outline-variant: #e2e8f0;
--md-sys-color-inverse-surface: #1e293b;
--md-sys-color-inverse-on-surface: #f1f5f9;
--md-sys-color-inverse-primary: #b6cdec;
--md-sys-radius-sm: 2px;
--md-sys-radius-md: 4px;
--md-sys-radius-lg: 8px;
--md-sys-radius-xl: 12px;
--md-sys-radius-full: 9999px;
--md-sys-elevation-1: 0px 1px 2px rgba(15, 23, 42, 0.05);
--md-sys-elevation-2: 0px 2px 6px rgba(15, 23, 42, 0.06),
0px 1px 2px rgba(15, 23, 42, 0.04);
--md-sys-elevation-3: 0px 8px 20px rgba(15, 23, 42, 0.08),
0px 2px 6px rgba(15, 23, 42, 0.05);
--md-sys-font-ui: 'Hanken Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
--md-sys-font-editor: 'Literata', Georgia, 'Times New Roman', serif;
--md-sys-typescale-display-lg: 700 48px/60px var(--md-sys-font-ui);
--md-sys-typescale-ui-header: 600 18px/24px var(--md-sys-font-ui);
--md-sys-typescale-ui-body: 400 14px/20px var(--md-sys-font-ui);
--md-sys-typescale-ui-button: 500 14px/20px var(--md-sys-font-ui);
--md-sys-typescale-ui-label: 600 12px/16px var(--md-sys-font-ui);
--md-sys-typescale-editor-text: 400 16px/1.7 var(--md-sys-font-editor);
--fg: var(--md-sys-color-on-surface);
--muted: var(--md-sys-color-on-surface-variant);
--muted-2: var(--md-sys-color-outline);
--accent: var(--md-sys-color-primary);
--accent-hover: var(--md-sys-color-primary-container);
--accent-soft: var(--md-sys-color-primary-fixed);
--accent-soft-2: var(--md-sys-color-primary-fixed-dim);
--border: var(--md-sys-color-outline-variant);
--rcms-link: var(--md-sys-color-primary);
--rcms-link-hover: var(--md-sys-color-on-primary-fixed);
--border-strong: var(--md-sys-color-outline);
--bg: var(--md-sys-color-surface);
--bg-elevated: var(--md-sys-color-surface-container-lowest);
--danger: var(--md-sys-color-error);
--danger-soft: var(--md-sys-color-error-container);
--danger-hover: var(--md-sys-color-on-error-container);
--success: var(--md-sys-color-success);
--success-soft: var(--md-sys-color-success-container);
--success-hover: var(--md-sys-color-on-success-container);
--warning: var(--md-sys-color-warning);
--warning-soft: var(--md-sys-color-warning-container);
--warning-hover: var(--md-sys-color-on-warning-container);
--sidebar-bg: var(--md-sys-color-surface);
--sidebar-fg: var(--md-sys-color-on-surface);
--sidebar-fg-muted: var(--md-sys-color-on-surface-variant);
--sidebar-active: var(--md-sys-color-primary);
--sidebar-active-bg: var(--md-sys-color-primary-fixed);
--sidebar-hover-bg: var(--md-sys-color-surface-container);
--sidebar-border: var(--md-sys-color-outline-variant);
--font-body: var(--md-sys-font-ui);
--font-heading: var(--md-sys-font-ui);
--radius-md: var(--md-sys-radius-md);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--md-sys-color-primary: #9db8dc;
--md-sys-color-on-primary: #10243b;
--md-sys-color-primary-container: #2f4c72;
--md-sys-color-on-primary-container: #dce8f7;
--md-sys-color-primary-fixed: #223449;
--md-sys-color-primary-fixed-dim: #33506f;
--md-sys-color-on-primary-fixed: #dce8f7;
--md-sys-color-on-primary-fixed-variant: #9db8dc;
--md-sys-color-tertiary: #34d399;
--md-sys-color-on-tertiary: #064e3b;
--md-sys-color-tertiary-container: #047857;
--md-sys-color-on-tertiary-container: #d1fae5;
--md-sys-color-tertiary-fixed: #064e3b;
--md-sys-color-tertiary-fixed-dim: #065f46;
--md-sys-color-success: #34d399;
--md-sys-color-on-success: #064e3b;
--md-sys-color-success-container: #047857;
--md-sys-color-on-success-container: #d1fae5;
--md-sys-color-surface: #0f1115;
--md-sys-color-surface-dim: #0a0c0f;
--md-sys-color-surface-bright: #2a2f39;
--md-sys-color-surface-container-lowest: #070809;
--md-sys-color-surface-container-low: #161920;
--md-sys-color-surface-container: #1b1f27;
--md-sys-color-surface-container-high: #222731;
--md-sys-color-surface-container-highest: #2a2f39;
--md-sys-color-surface-variant: #222731;
--rcms-link: color-mix(in srgb, var(--md-sys-color-primary) 55%, white);
--rcms-link-hover: color-mix(in srgb, var(--md-sys-color-primary) 25%, white);
--md-sys-color-on-surface: #e6e9ef;
--md-sys-color-on-surface-variant: #aab3c2;
--md-sys-color-outline: #7c8598;
--md-sys-color-outline-variant: #2a303c;
--md-sys-color-error: #ffb4ab;
--md-sys-color-on-error: #690005;
--md-sys-color-error-container: #93000a;
--md-sys-color-on-error-container: #ffdad6;
--sidebar-bg: var(--md-sys-color-surface);
--sidebar-fg: var(--md-sys-color-on-surface);
--sidebar-fg-muted: var(--md-sys-color-on-surface-variant);
--sidebar-active: var(--md-sys-color-primary);
--sidebar-active-bg: var(--md-sys-color-primary-fixed-dim);
--sidebar-hover-bg: var(--md-sys-color-surface-container);
--sidebar-border: var(--md-sys-color-outline-variant);
}
}
:root[data-theme="dark"] {
color-scheme: dark;
--md-sys-color-primary: #9db8dc;
--md-sys-color-on-primary: #10243b;
--md-sys-color-primary-container: #2f4c72;
--md-sys-color-on-primary-container: #dce8f7;
--md-sys-color-primary-fixed: #223449;
--md-sys-color-primary-fixed-dim: #33506f;
--md-sys-color-on-primary-fixed: #dce8f7;
--md-sys-color-on-primary-fixed-variant: #9db8dc;
--md-sys-color-tertiary: #34d399;
--md-sys-color-on-tertiary: #064e3b;
--md-sys-color-tertiary-container: #047857;
--md-sys-color-on-tertiary-container: #d1fae5;
--md-sys-color-tertiary-fixed: #064e3b;
--md-sys-color-tertiary-fixed-dim: #065f46;
--md-sys-color-success: #34d399;
--md-sys-color-on-success: #064e3b;
--md-sys-color-success-container: #047857;
--md-sys-color-on-success-container: #d1fae5;
--md-sys-color-surface: #0f1115;
--md-sys-color-surface-dim: #0a0c0f;
--md-sys-color-surface-bright: #2a2f39;
--md-sys-color-surface-container-lowest: #070809;
--md-sys-color-surface-container-low: #161920;
--md-sys-color-surface-container: #1b1f27;
--md-sys-color-surface-container-high: #222731;
--md-sys-color-surface-container-highest: #2a2f39;
--md-sys-color-surface-variant: #222731;
--rcms-link: color-mix(in srgb, var(--md-sys-color-primary) 55%, white);
--rcms-link-hover: color-mix(in srgb, var(--md-sys-color-primary) 25%, white);
--md-sys-color-on-surface: #e6e9ef;
--md-sys-color-on-surface-variant: #aab3c2;
--md-sys-color-outline: #7c8598;
--md-sys-color-outline-variant: #2a303c;
--md-sys-color-error: #ffb4ab;
--md-sys-color-on-error: #690005;
--md-sys-color-error-container: #93000a;
--md-sys-color-on-error-container: #ffdad6;
--sidebar-bg: var(--md-sys-color-surface);
--sidebar-fg: var(--md-sys-color-on-surface);
--sidebar-fg-muted: var(--md-sys-color-on-surface-variant);
--sidebar-active: var(--md-sys-color-primary);
--sidebar-active-bg: var(--md-sys-color-primary-fixed-dim);
--sidebar-hover-bg: var(--md-sys-color-surface-container);
--sidebar-border: var(--md-sys-color-outline-variant);
}
:root[data-text-scale="s"] { font-size: 87.5%; }
:root[data-text-scale="l"] { font-size: 112.5%; }
:root[data-text-scale="xl"] { font-size: 125%; }
:root[data-high-contrast] {
--md-sys-color-outline: #000000;
--md-sys-color-outline-variant: #4a4a4a;
--md-sys-color-on-surface-variant: #1a1a1a;
}
:root[data-high-contrast] .rcms-card,
:root[data-high-contrast] table.rcms-data,
:root[data-high-contrast] .rcms-field input,
:root[data-high-contrast] .rcms-field select,
:root[data-high-contrast] .rcms-field textarea,
:root[data-high-contrast] .rcms-btn-outlined,
:root[data-high-contrast] .rcms-sidebar-logout,
:root[data-high-contrast] .rcms-mode-toggle,
:root[data-high-contrast] .rcms-search-input,
:root[data-high-contrast] select:not(.rcms-field select) {
border-width: 2px;
}
:root[data-high-contrast] :focus,
:root[data-high-contrast] :focus-visible {
outline: 3px solid var(--md-sys-color-outline);
outline-offset: 2px;
box-shadow: 0 0 0 2px var(--md-sys-color-surface) !important;
}
:root[data-high-contrast][data-theme="dark"] {
--md-sys-color-outline: #ffffff;
--md-sys-color-outline-variant: #c4b5d9;
--md-sys-color-on-surface-variant: #f5f3ff;
}
.rcms-sidebar-link:focus-visible {
outline-offset: -2px;
}
:root[data-high-contrast] .rcms-sidebar-link:focus,
:root[data-high-contrast] .rcms-sidebar-link:focus-visible {
outline-offset: -3px;
box-shadow: none !important;
}
body.rcms-admin, .rcms-admin * { box-sizing: border-box; }
.rcms-admin [hidden] { display: none !important; }
html:has(> body.rcms-admin), body.rcms-admin { height: 100%; }
:where(.rcms-admin) a {
color: var(--rcms-link);
text-decoration-thickness: 1px;
text-underline-offset: 2px;
text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
transition: color 0.12s, text-decoration-color 0.12s;
}
:where(.rcms-admin) a:hover {
color: var(--rcms-link-hover);
text-decoration-color: currentColor;
}
body.rcms-admin {
font: var(--md-sys-typescale-ui-body);
font-size: 0.875rem;
line-height: 1.43;
color: var(--fg);
margin: 0;
background: var(--bg);
display: flex;
height: 100vh;
overflow: hidden;
}
@scope (.rcms-admin) to (.rcms-block-paragraph, .rcms-block-rich-text, .rcms-block-raw-html, .rcms-block-snippet-chooser, .rcms-block-picker-tile-preview, .rcms-stream-block, .rcms-display-chip-value) {
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
}
.material-symbols-rounded {
font-family: 'Material Symbols Rounded';
font-weight: normal;
font-style: normal;
font-size: 20px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
vertical-align: -4px;
}
.material-symbols-rounded.filled {
font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-rounded.sm { font-size: 18px; vertical-align: -3px; }
.material-symbols-rounded.lg { font-size: 24px; vertical-align: -6px; }
.rcms-sidebar {
width: 260px;
background: var(--sidebar-bg);
color: var(--sidebar-fg);
display: flex;
flex-direction: column;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
flex-shrink: 0;
z-index: 1;
transition: width 0.18s ease;
}
.rcms-sidebar-group {
display: block;
}
.rcms-sidebar-group-summary {
list-style: none;
cursor: pointer;
user-select: none;
}
.rcms-sidebar-group-summary::-webkit-details-marker { display: none; }
.rcms-sidebar-group-label {
flex: 1;
}
.rcms-sidebar-group-chevron {
font-size: 18px !important;
transition: transform 0.18s ease;
opacity: 0.7;
}
.rcms-sidebar-group[open] > .rcms-sidebar-group-summary .rcms-sidebar-group-chevron {
transform: rotate(180deg);
}
.rcms-sidebar-group.active > .rcms-sidebar-group-summary {
color: var(--md-sys-color-on-surface);
}
.rcms-sidebar-group-items .rcms-sidebar-link {
padding-left: 36px;
font-size: 13px;
}
.rcms-sidebar-group-items .rcms-sidebar-link .material-symbols-rounded {
font-size: 18px;
}
.rcms-sidebar-group > *:not(summary) {
display: block;
}
.rcms-sidebar-group-items {
overflow: hidden;
height: 0;
opacity: 0;
transition: height 0.22s cubic-bezier(0.2, 0, 0, 1),
opacity 0.16s ease;
}
.rcms-sidebar-group[open] > .rcms-sidebar-group-items {
height: auto;
opacity: 1;
}
html[data-sidebar-collapsed] .rcms-sidebar-group > .rcms-sidebar-group-items {
height: auto;
opacity: 1;
}
html[data-sidebar-collapsed] .rcms-sidebar-group-chevron,
html[data-sidebar-collapsed] .rcms-sidebar-group-label {
display: none;
}
html[data-sidebar-collapsed] .rcms-sidebar-group-items .rcms-sidebar-link {
padding-left: 0;
}
.rcms-sidebar-brand {
padding: 24px 24px 20px;
display: flex;
align-items: center;
gap: 12px;
}
.rcms-sidebar-brand::before {
content: "";
width: 36px;
height: 36px;
flex: 0 0 36px;
border-radius: var(--md-sys-radius-lg);
background:
linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-primary-container));
box-shadow: 0 4px 12px color-mix(in srgb, var(--md-sys-color-primary) 30%, transparent);
}
.rcms-sidebar-brand.has-logo::before {
display: none;
}
.rcms-sidebar-brand-mark {
display: block;
flex: 0 0 36px;
line-height: 0;
}
.rcms-sidebar-brand-mark img {
width: 36px;
height: 36px;
}
.rcms-sidebar-brand h1 {
font: var(--md-sys-typescale-ui-header);
font-size: 15px;
margin: 0 0 2px;
color: var(--md-sys-color-on-surface);
}
.rcms-sidebar-brand .rcms-tenant {
font: var(--md-sys-typescale-ui-label);
text-transform: none;
letter-spacing: 0;
color: var(--sidebar-fg-muted);
}
.rcms-sidebar-search {
padding: 0 12px 10px;
flex: 0 0 auto;
}
.rcms-sidebar-search-dropdown {
position: absolute;
left: 12px;
right: 12px;
top: calc(100% - 4px);
background: var(--md-sys-color-surface-container-lowest);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
box-shadow: var(--md-sys-elevation-2);
max-height: 60vh;
overflow-y: auto;
z-index: 100;
}
html[data-sidebar-collapsed] .rcms-sidebar-search {
padding: 0 8px 10px;
}
html[data-sidebar-collapsed] .rcms-search-input--sidebar {
justify-content: center;
padding: 0;
cursor: pointer;
}
html[data-sidebar-collapsed] .rcms-search-input--sidebar input {
display: none;
}
.rcms-sidebar-nav {
flex: 1;
padding: 8px 12px;
display: flex;
flex-direction: column;
gap: 2px;
}
.rcms-sidebar-section {
font: var(--md-sys-typescale-ui-label);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--sidebar-fg-muted);
padding: 18px 12px 6px;
}
.rcms-sidebar-link {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
color: var(--sidebar-fg-muted);
text-decoration: none;
font: var(--md-sys-typescale-ui-button);
border-radius: var(--md-sys-radius-lg);
transition: background 0.12s, color 0.12s;
}
.rcms-sidebar-link .material-symbols-rounded {
font-size: 20px;
color: var(--sidebar-fg-muted);
transition: color 0.12s;
}
.rcms-sidebar-link:hover {
background: var(--sidebar-hover-bg);
color: var(--md-sys-color-on-surface);
}
.rcms-sidebar-link:hover .material-symbols-rounded {
color: var(--md-sys-color-on-surface);
}
.rcms-sidebar-link.active {
background: var(--sidebar-active-bg);
color: var(--md-sys-color-on-primary-fixed);
font-weight: 600;
}
.rcms-sidebar-link.active .material-symbols-rounded {
color: var(--md-sys-color-on-primary-fixed);
}
.rcms-sidebar-link .rcms-icon {
display: inline-block;
width: 16px;
font-size: 14px;
text-align: center;
}
.rcms-sidebar-footer {
padding: 16px 16px 20px;
border-top: 1px solid var(--sidebar-border);
font: var(--md-sys-typescale-ui-label);
text-transform: none;
letter-spacing: 0;
color: var(--sidebar-fg-muted);
display: flex;
flex-direction: column;
gap: 8px;
}
.rcms-sidebar-footer a {
color: var(--sidebar-fg-muted);
text-decoration: none;
}
.rcms-sidebar-footer a:hover { color: var(--md-sys-color-primary); }
.rcms-mode-toggle,
.rcms-text-scale-toggle {
display: inline-flex;
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-full);
padding: 2px;
gap: 2px;
flex-wrap: wrap;
}
.rcms-mode-toggle-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 32px;
padding: 0 14px;
background: transparent;
color: var(--md-sys-color-on-surface-variant);
border: 0;
border-radius: var(--md-sys-radius-full);
cursor: pointer;
transition: background 0.12s, color 0.12s;
white-space: nowrap;
font: var(--md-sys-typescale-ui-button);
}
.rcms-mode-toggle-btn:hover {
color: var(--md-sys-color-on-surface);
}
.rcms-mode-toggle-btn.active,
.rcms-mode-toggle-btn[aria-checked="true"] {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
}
.rcms-mode-toggle-btn .material-symbols-rounded {
font-size: 16px;
vertical-align: 0;
}
.rcms-sidebar-logout {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 40px;
padding: 0 14px;
background: transparent;
color: var(--md-sys-color-on-surface-variant);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-full);
font: var(--md-sys-typescale-ui-button);
text-transform: none;
letter-spacing: 0;
cursor: pointer;
transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.rcms-sidebar-logout:hover {
background: var(--md-sys-color-error-container);
color: var(--md-sys-color-on-error-container);
border-color: var(--md-sys-color-error);
}
.rcms-sidebar-logout .material-symbols-rounded { font-size: 16px; }
html:not([data-sidebar-collapsed]) .rcms-sidebar-footer .rcms-sidebar-logout {
width: 100%;
justify-content: flex-start;
}
.rcms-sidebar-collapse-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 32px;
width: 32px;
height: 32px;
margin-left: auto;
background: transparent;
color: var(--sidebar-fg-muted);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-full);
cursor: pointer;
transition: background 0.12s, color 0.12s, transform 0.18s ease;
}
.rcms-sidebar-collapse-toggle:hover {
background: var(--sidebar-hover-bg);
color: var(--md-sys-color-on-surface);
}
.rcms-sidebar-collapse-toggle .material-symbols-rounded { font-size: 20px; }
html[data-sidebar-collapsed] .rcms-sidebar-collapse-toggle .material-symbols-rounded {
transform: rotate(180deg);
}
html[data-sidebar-collapsed] .rcms-sidebar {
width: 64px;
}
html[data-sidebar-collapsed] .rcms-sidebar-link,
html[data-sidebar-collapsed] .rcms-sidebar-logout {
font-size: 0;
gap: 0;
justify-content: center;
padding-left: 0;
padding-right: 0;
}
html[data-sidebar-collapsed] .rcms-sidebar-link .material-symbols-rounded {
font-size: 20px;
}
html[data-sidebar-collapsed] .rcms-sidebar-link .material-symbols-rounded.sm,
html[data-sidebar-collapsed] .rcms-sidebar-logout .material-symbols-rounded {
font-size: 18px;
}
html[data-sidebar-collapsed] .rcms-sidebar-footer .rcms-sidebar-logout {
width: 40px;
height: 40px;
padding: 0;
flex: 0 0 auto;
}
html[data-sidebar-collapsed] .rcms-sidebar-section,
html[data-sidebar-collapsed] .rcms-sidebar-brand h1,
html[data-sidebar-collapsed] .rcms-sidebar-brand .rcms-tenant,
html[data-sidebar-collapsed] .rcms-sidebar-footer > a[href^="/admin/"],
html[data-sidebar-collapsed] .rcms-sidebar-footer [data-user-tz],
html[data-sidebar-collapsed] .rcms-lang-switcher {
display: none;
}
html[data-sidebar-collapsed] .rcms-sidebar-brand {
justify-content: center;
padding: 16px 0;
}
html[data-sidebar-collapsed] .rcms-sidebar-brand-logo img {
max-height: 32px;
}
html[data-sidebar-collapsed] .rcms-sidebar-brand::before,
html[data-sidebar-collapsed] .rcms-sidebar-brand-logo,
html[data-sidebar-collapsed] .rcms-sidebar-brand-mark {
display: none;
}
html[data-sidebar-collapsed] .rcms-sidebar-collapse-toggle {
margin-left: 0;
}
html[data-sidebar-collapsed] .rcms-sidebar-footer {
padding: 12px 8px 16px;
align-items: center;
}
html[data-sidebar-collapsed] .rcms-sidebar-profile {
gap: 0 !important;
}
html[data-sidebar-collapsed] .rcms-sidebar-profile > span:not([style*="border-radius"]) {
display: none;
}
html[data-sidebar-collapsed] .rcms-sidebar-footer form {
width: 100%;
display: flex;
justify-content: center;
}
.rcms-app-main {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
overflow-y: auto;
height: 100vh;
}
.rcms-app-topbar {
background: var(--bg);
border-bottom: 1px solid var(--border);
padding: 6px 16px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
min-height: 48px;
position: sticky;
top: 0;
z-index: 12;
}
.rcms-app-topbar-left {
display: flex;
align-items: center;
gap: 10px;
flex: 0 1 auto;
min-width: 0;
}
.rcms-app-topbar-heading {
font: var(--md-sys-typescale-ui-header);
margin: 0;
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 0 1 auto;
white-space: nowrap;
overflow: hidden;
}
.rcms-app-topbar-heading > .rcms-crumb {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rcms-app-topbar h1 {
font: var(--md-sys-typescale-ui-header);
margin: 0;
}
.rcms-app-topbar-actions {
display: flex;
gap: 8px;
align-items: center;
flex: 0 0 auto;
}
@media (max-width: 768px) {
.rcms-app-topbar {
position: static;
flex: none;
flex-wrap: wrap;
height: auto;
row-gap: 8px;
padding: 8px 12px;
}
.rcms-app-topbar-left { flex: 1 1 100%; }
.rcms-app-topbar-actions {
flex: 1 1 100%;
flex-wrap: wrap;
justify-content: flex-start;
}
.rcms-action-bar {
position: static;
flex: none;
flex-wrap: wrap;
height: auto;
row-gap: 6px;
}
.rcms-tab-strip {
flex-wrap: nowrap;
max-width: 100%;
overflow-x: auto;
}
.rcms-preview-controls { flex-wrap: wrap; }
}
.rcms-action-bar {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 16px;
min-height: 40px;
flex-shrink: 0;
background: var(--bg);
position: sticky;
top: 48px;
z-index: 11;
}
.rcms-topbar-crumbs {
display: flex; align-items: center; gap: 6px;
min-width: 0; flex: 0 1 auto;
}
.rcms-topbar-crumbs .rcms-crumb,
.rcms-page-editor-crumbs .rcms-crumb {
display: inline-flex; align-items: center; gap: 4px;
color: var(--muted); text-decoration: none;
font-size: 13px; font-weight: 500;
white-space: nowrap;
}
.rcms-topbar-crumbs .rcms-crumb:hover,
.rcms-page-editor-crumbs .rcms-crumb:hover { color: var(--accent); }
.rcms-topbar-crumbs .rcms-crumb.here,
.rcms-page-editor-crumbs .rcms-crumb.here { color: var(--fg); font-weight: 600; }
.rcms-topbar-crumbs .rcms-crumb.here {
min-width: 0;
overflow: hidden; text-overflow: ellipsis;
}
.rcms-topbar-crumbs .rcms-crumb-sep,
.rcms-page-editor-crumbs .rcms-crumb-sep { color: var(--muted-2); }
.rcms-topbar-crumbs .rcms-crumb-sep { font-size: 14px; }
.rcms-topbar-crumbs .rcms-crumb .material-symbols-rounded,
.rcms-page-editor-crumbs .rcms-crumb .material-symbols-rounded { font-size: 16px; }
.rcms-lang-switcher { width: 100%; }
.rcms-lang-switcher > summary { display: flex; align-items: center; gap: 8px; }
.rcms-lang-switcher .rcms-lang-menu { display: flex; flex-direction: column; padding: 4px 0 4px 28px; gap: 2px; }
.rcms-lang-switcher .rcms-lang-opt { text-decoration: none; color: inherit; font-size: 0.85rem; padding: 3px 6px; border-radius: 6px; opacity: 0.8; }
.rcms-lang-switcher .rcms-lang-opt:hover { background: var(--md-sys-color-surface-container-high, #ececf2); opacity: 1; }
.rcms-lang-switcher .rcms-lang-opt.active { font-weight: 700; opacity: 1; }
.rcms-page-editor-crumbs {
display: flex; align-items: center; gap: 12px;
padding: 8px 16px; min-width: 0;
font-size: 13px;
}
.rcms-page-editor-crumbs .rcms-crumb-back {
display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
color: var(--accent); text-decoration: none; font-weight: 600;
padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px;
}
.rcms-page-editor-crumbs .rcms-crumb-back:hover { background: var(--md-sys-color-surface-container-high); }
.rcms-page-editor-crumbs .rcms-crumb-back .material-symbols-rounded { font-size: 16px; }
.rcms-page-editor-crumbs .rcms-crumb-trail {
display: flex; align-items: center; gap: 6px; min-width: 0;
overflow-x: auto; white-space: nowrap; scrollbar-width: thin;
}
@media (max-width: 640px) {
.rcms-page-editor-crumbs .rcms-crumb-back-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.rcms-locale-badge {
background: var(--md-sys-color-tertiary-container);
color: var(--md-sys-color-on-tertiary-container);
padding: 1px 8px; border-radius: var(--md-sys-radius-full);
font: var(--md-sys-typescale-ui-label);
margin-left: 4px; text-transform: uppercase;
}
.rcms-chip-cluster {
display: flex; align-items: center; gap: 6px;
flex: 1 1 auto; min-width: 0;
overflow-x: auto; overflow-y: hidden;
scrollbar-width: thin;
padding: 2px 0;
}
.rcms-chip-cluster::-webkit-scrollbar { height: 4px; }
.rcms-chip-cluster::-webkit-scrollbar-thumb {
background: var(--md-sys-color-outline-variant); border-radius: 2px;
}
.rcms-locale-support { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rcms-display-chip {
display: inline-flex; align-items: baseline; gap: 6px;
padding: 4px 10px; border-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
font-size: 12px; white-space: nowrap; flex: 0 0 auto;
}
.rcms-display-chip .material-symbols-rounded {
font-size: 14px; color: var(--accent); align-self: center;
}
.rcms-display-chip-label {
color: var(--muted); text-transform: uppercase;
font: var(--md-sys-typescale-ui-label);
letter-spacing: 0.04em;
}
.rcms-display-chip-value { color: var(--fg); font-weight: 500; }
.rcms-display-chip-value strong { font-weight: 600; }
.rcms-kebab-menu, .rcms-locale-menu { position: relative; }
.rcms-kebab-menu > summary,
.rcms-locale-menu > summary,
.rcms-lang-switcher > summary,
.rcms-col-picker > summary,
.rcms-fb-translate-menu > summary {
list-style: none; cursor: pointer;
}
.rcms-kebab-menu > summary::-webkit-details-marker,
.rcms-locale-menu > summary::-webkit-details-marker,
.rcms-lang-switcher > summary::-webkit-details-marker,
.rcms-col-picker > summary::-webkit-details-marker,
.rcms-fb-translate-menu > summary::-webkit-details-marker { display: none; }
.rcms-kebab-panel, .rcms-locale-menu-panel {
position: absolute; right: 0; top: calc(100% + 6px);
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--md-sys-radius-lg);
box-shadow: var(--md-sys-elevation-3);
min-width: 220px; z-index: 20;
padding: 6px;
display: flex; flex-direction: column;
}
.rcms-kebab-panel > a,
.rcms-kebab-panel > form > button,
.rcms-kebab-panel > button[role="menuitem"],
.rcms-locale-menu-panel > a {
display: flex; align-items: center; gap: 8px;
padding: 8px 12px; border-radius: var(--md-sys-radius-md);
color: var(--fg); text-decoration: none;
font-size: 13px;
background: transparent; border: 0;
width: 100%;
text-align: left;
cursor: pointer;
font: inherit;
}
.rcms-kebab-panel > form { margin: 0; display: block; }
.rcms-kebab-panel > a:hover,
.rcms-kebab-panel > form > button:hover,
.rcms-kebab-panel > button[role="menuitem"]:hover,
.rcms-locale-menu-panel > a:hover {
background: var(--md-sys-color-surface-container-low);
color: var(--accent);
}
.rcms-kebab-panel .rcms-kebab-divider { border-top: 1px solid var(--md-sys-color-outline-variant); margin-top: 4px; padding-top: 4px; }
.rcms-kebab-panel .rcms-kebab-danger { color: var(--md-sys-color-error); }
.rcms-row-actions { flex-wrap: wrap; justify-content: flex-end; }
.rcms-row-actions .rcms-row-actions-children { margin-right: 4px; }
.rcms-row-kebab .rcms-kebab-panel { min-width: 200px; }
.rcms-locale-menu-panel .rcms-canonical-tag {
margin-left: auto;
background: var(--md-sys-color-primary-fixed);
color: var(--md-sys-color-on-primary-fixed);
font: var(--md-sys-typescale-ui-label);
padding: 1px 8px; border-radius: var(--md-sys-radius-full);
text-transform: uppercase; letter-spacing: 0.05em;
}
@media (max-width: 760px) {
.rcms-chip-cluster { display: none; }
.rcms-topbar-crumbs .rcms-crumb:not(.here) .rcms-crumb-label { display: none; }
.rcms-topbar-crumbs .rcms-crumb-sep { display: none; }
}
.rcms-breadcrumbs {
color: var(--muted);
font-size: 13px;
padding: 12px 24px 0;
}
.rcms-breadcrumbs a { color: var(--accent); text-decoration: none; }
.rcms-breadcrumbs a:hover { text-decoration: underline; }
.rcms-breadcrumbs .rcms-sep { margin: 0 6px; color: var(--muted-2); }
.rcms-app-flash {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px 24px 0;
}
.rcms-flash {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 16px;
border-radius: var(--md-sys-radius-lg);
border: 1px solid transparent;
font-size: 13px;
line-height: 1.5;
}
.rcms-flash-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.rcms-flash-body { flex: 1; }
.rcms-flash--success {
background: var(--success-soft);
border-color: var(--success);
color: var(--success-hover);
}
.rcms-flash--info {
background: var(--accent-soft);
border-color: var(--accent);
color: var(--md-sys-color-on-primary-fixed-variant);
}
.rcms-flash--warning {
background: var(--warning-soft);
border-color: var(--warning);
color: var(--warning-hover);
}
.rcms-flash--error,
.rcms-flash--debug {
background: var(--danger-soft);
border-color: var(--danger);
color: var(--danger-hover);
}
.rcms-alert {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
margin-bottom: 12px;
border-radius: var(--md-sys-radius-lg);
box-shadow: var(--md-sys-elevation-1);
}
.rcms-alert-body { flex: 1; }
.rcms-app-content {
flex: 1;
padding: 24px 28px;
width: 100%;
min-width: 0;
}
.rcms-btn {
position: relative;
isolation: isolate;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 40px;
padding: 0 24px;
font: var(--md-sys-typescale-ui-button);
border-radius: var(--md-sys-radius-lg);
border: 1px solid var(--md-sys-color-primary-fixed-dim);
cursor: pointer;
background: var(--md-sys-color-primary-fixed);
color: var(--md-sys-color-on-primary-fixed);
text-decoration: none;
box-shadow: none;
transition: border-color 0.14s, background 0.14s, transform 0.08s;
user-select: none;
white-space: nowrap;
}
.rcms-btn:hover {
border-color: var(--md-sys-color-primary);
}
.rcms-btn::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: currentColor;
opacity: 0;
border-radius: inherit;
transition: opacity 0.12s;
pointer-events: none;
}
.rcms-btn:hover::before { opacity: 0.08; }
.rcms-btn:focus-visible::before { opacity: 0.10; }
.rcms-btn:active::before { opacity: 0.12; }
.rcms-btn:active { transform: scale(0.98); }
.rcms-btn:disabled,
.rcms-btn[aria-disabled="true"] {
opacity: 0.38;
cursor: not-allowed;
pointer-events: none;
}
.rcms-btn .material-symbols-rounded { font-size: 18px; vertical-align: -4px; }
.rcms-btn-small .material-symbols-rounded { font-size: 16px; }
.rcms-btn-tonal {
background: var(--md-sys-color-surface-container);
color: var(--md-sys-color-on-surface);
border-color: var(--md-sys-color-outline-variant);
}
.rcms-btn-outlined {
background: var(--md-sys-color-surface-container-lowest);
color: var(--md-sys-color-on-surface);
border-color: var(--md-sys-color-outline-variant);
}
.rcms-btn-outlined:hover { border-color: var(--md-sys-color-outline); }
.rcms-btn-text {
background: transparent;
color: var(--md-sys-color-on-surface-variant);
border-color: transparent;
padding: 0 12px;
}
.rcms-btn-danger {
background: var(--md-sys-color-error-container);
border-color: color-mix(in srgb, var(--md-sys-color-error) 30%, transparent);
color: var(--md-sys-color-on-error-container);
}
.rcms-btn-icon {
width: 40px;
padding: 0;
border-radius: var(--md-sys-radius-full);
}
.rcms-btn-small {
height: 32px;
padding: 0 12px;
font-size: 13px;
}
.rcms-btn-small.rcms-btn-icon { width: 32px; padding: 0; }
.rcms-pagination {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
margin-top: 16px;
}
.rcms-pagination-spacer { flex: 1 1 auto; }
.rcms-pagination-nav {
display: flex;
align-items: center;
gap: 6px;
}
.rcms-pagination-size,
.rcms-pagination-jump {
display: inline-flex;
align-items: center;
gap: 6px;
}
.rcms-pagination .rcms-is-disabled {
opacity: 0.4;
pointer-events: none;
}
.rcms-elevated,
.rcms-card,
.rcms-table-panel,
.rcms-table-toolbar,
.rcms-table-wrap,
table.rcms-data {
background: var(--md-sys-color-surface-container-lowest);
border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 40%, transparent);
border-radius: var(--md-sys-radius-xl);
box-shadow: var(--md-sys-elevation-2);
}
.rcms-card {
padding: 24px;
}
.rcms-card-stack > .rcms-card + .rcms-card,
.rcms-edit-pane > .rcms-card + .rcms-card,
.rcms-edit-pane > section.rcms-card + section.rcms-card,
.rcms-edit-pane > form.rcms-card + .rcms-card,
.rcms-edit-pane > .rcms-card + section.rcms-card,
.rcms-edit-pane > section.rcms-card + .rcms-card,
.rcms-edit-pane > details.rcms-card + .rcms-card,
.rcms-edit-pane > .rcms-card + details.rcms-card,
.rcms-app-main > .rcms-card + .rcms-card,
.rcms-app-main > section.rcms-card + section.rcms-card { margin-top: 16px; }
.rcms-card h2:not([class*="rcms-mt-"]) { margin-top: 0; }
.rcms-empty {
padding: 48px;
text-align: center;
color: var(--muted);
background: var(--md-sys-color-surface-container-lowest);
border: 1px dashed var(--border);
border-radius: var(--md-sys-radius-xl);
}
.rcms-empty p { margin: 0 0 16px; }
.rcms-table-wrap {
overflow-x: auto;
scrollbar-width: thin;
-webkit-overflow-scrolling: touch;
max-width: 100%;
}
table.rcms-data.rcms-perm-table th,
table.rcms-data.rcms-perm-table td {
padding: 8px 10px;
text-align: center;
font-size: 13px;
}
table.rcms-data.rcms-perm-table th:first-child,
table.rcms-data.rcms-perm-table td:first-child {
text-align: left;
}
table.rcms-data.rcms-perm-table input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.rcms-table-wrap > table.rcms-perm-overview {
min-width: max-content;
}
.rcms-table-wrap > .rcms-perm-table {
min-width: 100%;
}
table.rcms-data.rcms-perm-table th:not(:first-child),
table.rcms-data.rcms-perm-table td:not(:first-child) {
white-space: nowrap;
}
.rcms-kv {
display: grid;
grid-template-columns: auto 1fr;
gap: 4px 16px;
margin: 0;
}
.rcms-kv dt { grid-column: 1; }
.rcms-kv dd { grid-column: 2; margin: 0; }
.rcms-card > :last-child {
margin-bottom: 0;
}
.rcms-card + .rcms-table-wrap,
.rcms-card + table.rcms-data,
.rcms-card + .rcms-pagination {
margin-top: 16px;
}
.rcms-page-intro + * {
margin-top: 16px;
}
.rcms-card .rcms-table-wrap,
.rcms-card .rcms-elevated,
.rcms-card table.rcms-data,
.rcms-table-panel .rcms-table-wrap,
.rcms-table-panel .rcms-elevated {
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
}
.rcms-table-wrap > table.rcms-data {
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
}
.rcms-table-panel {
overflow: hidden;
margin-inline: 0;
margin-bottom: 0;
}
.rcms-table-toolbar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
row-gap: 8px;
padding: 10px 16px;
}
.rcms-table-panel > .rcms-table-toolbar {
background: transparent;
border: 0;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
border-radius: 0;
box-shadow: none;
}
.rcms-table-toolbar > .rcms-toolbar-spacer {
flex: 1 1 auto;
min-width: 0;
}
table.rcms-data {
width: 100%;
border-collapse: collapse;
overflow: hidden;
}
table.rcms-data th, table.rcms-data td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
vertical-align: middle;
}
table.rcms-data th {
background: var(--md-sys-color-surface-container-low);
font: var(--md-sys-typescale-ui-label);
color: var(--muted);
letter-spacing: 0.04em;
text-transform: uppercase;
}
table.rcms-data tr:last-child td { border-bottom: none; }
table.rcms-data tr:hover td {
background: var(--md-sys-color-surface-container-low);
}
table.rcms-data th.rcms-actions,
table.rcms-data td.rcms-actions {
text-align: right;
white-space: nowrap;
vertical-align: middle;
}
table.rcms-data td.rcms-actions > * + * {
margin-left: 8px;
}
table.rcms-data td.rcms-actions form {
display: inline-block;
margin: 0;
}
.rcms-row-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
justify-content: flex-end;
}
.rcms-row-actions form {
display: inline-flex;
margin: 0;
}
table.rcms-data .rcms-actions .rcms-btn,
.rcms-row-actions .rcms-btn,
table.rcms-data .rcms-actions .rcms-btn-icon,
.rcms-row-actions .rcms-btn-icon {
height: 32px;
min-height: 32px;
}
table.rcms-data .rcms-actions .rcms-btn-icon,
.rcms-row-actions .rcms-btn-icon {
width: 32px;
}
table.rcms-data .rcms-actions .rcms-btn-small,
.rcms-row-actions .rcms-btn-small {
padding: 0 12px;
}
.rcms-tag {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: var(--md-sys-radius-full);
font: var(--md-sys-typescale-ui-label);
background: var(--md-sys-color-surface-container-high);
color: var(--md-sys-color-on-surface-variant);
text-transform: uppercase;
letter-spacing: 0.03em;
}
.rcms-tag::before {
content: "";
width: 6px;
height: 6px;
border-radius: var(--md-sys-radius-full);
background: currentColor;
opacity: 0.85;
}
.rcms-tag.draft {
background: var(--md-sys-color-surface-container-high);
color: var(--md-sys-color-on-surface-variant);
}
.rcms-tag.published {
background: var(--md-sys-color-success-container);
color: var(--md-sys-color-on-success-container);
}
.rcms-tag.expired {
background: var(--md-sys-color-surface-container-highest);
color: var(--md-sys-color-on-surface-variant);
opacity: 0.75;
}
.rcms-tag .material-symbols-rounded { font-size: 14px; }
.rcms-tag:has(.material-symbols-rounded)::before { display: none; }
.rcms-chip-cluster .rcms-tag { white-space: nowrap; flex: 0 0 auto; }
.rcms-alert--error,
.rcms-tag.archived,
.rcms-card--error,
.rcms-autosave-chip[data-mode="warn"],
.rcms-kebab-panel .rcms-kebab-danger:hover,
.rcms-kebab-panel .rcms-kebab-logout:hover {
background: var(--md-sys-color-error-container);
color: var(--md-sys-color-on-error-container);
}
.rcms-alert--warning,
.rcms-tag.scheduled {
background: var(--md-sys-color-warning-container);
color: var(--md-sys-color-on-warning-container);
}
.rcms-field { margin-bottom: 18px; }
.rcms-field label,
.rcms-stream-field > label,
.rcms-stream-nested > legend,
.rcms-auth-card label {
display: block;
font: var(--md-sys-typescale-ui-label);
color: var(--md-sys-color-on-surface-variant);
margin-bottom: 6px;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.rcms-field label .rcms-req { color: var(--md-sys-color-error); }
.rcms-field input[type="text"],
.rcms-field input[type="password"],
.rcms-field input[type="email"],
.rcms-field input[type="number"],
.rcms-field input[type="url"],
.rcms-field input[type="search"],
.rcms-field input[type="tel"],
.rcms-field input[type="date"],
.rcms-field input[type="time"],
.rcms-field input[type="datetime-local"],
.rcms-field select,
.rcms-field textarea,
.rcms-auth-card input[type="text"],
.rcms-auth-card input[type="password"],
.rcms-auth-card input[type="email"] {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
font: inherit;
background: var(--md-sys-color-surface-container);
color: var(--md-sys-color-on-surface);
transition: border-color 0.12s, box-shadow 0.12s;
}
.rcms-field input:hover,
.rcms-field select:hover,
.rcms-field textarea:hover,
.rcms-auth-card input:hover {
border-color: var(--md-sys-color-outline);
}
.rcms-field input:focus,
.rcms-field select:focus,
.rcms-field textarea:focus,
.rcms-auth-card input:focus {
outline: none;
border-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
.rcms-field input[aria-invalid="true"],
.rcms-field select[aria-invalid="true"],
.rcms-field textarea[aria-invalid="true"] {
border-color: var(--md-sys-color-error);
}
.rcms-field input[aria-invalid="true"]:focus,
.rcms-field select[aria-invalid="true"]:focus,
.rcms-field textarea[aria-invalid="true"]:focus {
box-shadow: 0 0 0 1px var(--md-sys-color-error);
}
.rcms-field textarea { min-height: 96px; resize: vertical; }
.rcms-field textarea[data-widget-mode="markdown"],
.rcms-field textarea[data-widget-mode="richtext"] {
font: var(--md-sys-typescale-editor-text);
min-height: 240px;
}
.rcms-richtext {
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container);
overflow: hidden;
}
.rcms-richtext:focus-within { border-color: var(--md-sys-color-primary); }
.rcms-richtext-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 2px;
padding: 6px 8px;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-high);
}
.rcms-richtext-tool,
.rcms-md-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 6px;
border: 0;
border-radius: var(--md-sys-radius-sm);
background: transparent;
color: var(--md-sys-color-on-surface-variant);
font: var(--md-sys-typescale-ui-label);
cursor: pointer;
transition: background 0.1s, color 0.1s;
}
.rcms-richtext-tool .material-symbols-rounded { font-size: 18px; }
.rcms-richtext-tool:hover { background: var(--md-sys-color-surface-container-highest); }
.rcms-richtext-sep {
width: 1px;
align-self: stretch;
margin: 4px 4px;
background: var(--md-sys-color-outline-variant);
}
.rcms-richtext-surface { padding: 12px 14px; }
.rcms-richtext-surface .ProseMirror {
min-height: 200px;
outline: none;
font: var(--md-sys-typescale-editor-text);
color: var(--md-sys-color-on-surface);
}
.rcms-richtext-surface .ProseMirror > :first-child { margin-top: 0; }
.rcms-richtext-surface .ProseMirror p { margin: 0 0 10px; }
.rcms-richtext-surface .ProseMirror h2,
.rcms-richtext-surface .ProseMirror h3,
.rcms-richtext-surface .ProseMirror h4 { margin: 16px 0 8px; line-height: 1.25; }
.rcms-richtext-surface .ProseMirror ul,
.rcms-richtext-surface .ProseMirror ol { margin: 0 0 10px; padding-left: 22px; }
.rcms-richtext-surface .ProseMirror blockquote {
margin: 0 0 10px;
padding: 2px 12px;
border-left: 3px solid var(--md-sys-color-outline-variant);
color: var(--md-sys-color-on-surface-variant);
}
.rcms-richtext-surface .ProseMirror code {
font-family: var(--md-sys-font-mono, monospace);
background: var(--md-sys-color-surface-container-highest);
padding: 1px 4px;
border-radius: var(--md-sys-radius-sm);
}
.rcms-richtext-surface .ProseMirror a { color: var(--md-sys-color-primary); }
.rcms-hint {
font-size: 12px;
color: var(--muted);
margin-top: 6px;
}
.rcms-hint.rcms-hint--sm { font-size: 11px; }
.rcms-hint.rcms-hint--error { color: var(--md-sys-color-error); }
.rcms-hint.rcms-hint--warning { color: var(--md-sys-color-warning); }
.rcms-field-row {
display: flex;
gap: 16px;
align-items: flex-start;
flex-wrap: wrap;
margin-bottom: 18px;
}
.rcms-field-row .rcms-field {
flex: 1 1 220px;
min-width: 0;
margin-bottom: 0;
}
.rcms-field-row > .rcms-field > label {
display: flex;
align-items: center;
gap: 4px;
min-height: 16px;
}
.rcms-field-row > .rcms-field > label .material-symbols-rounded {
font-size: 16px;
line-height: 1;
vertical-align: 0;
}
.rcms-field-row > .rcms-btn,
.rcms-field-row > button,
.rcms-field-row > .rcms-field > .rcms-btn:only-child,
.rcms-field-row > .rcms-field > button:only-child {
margin-top: 22px;
}
.rcms-checkbox-field { display: flex; align-items: center; gap: 8px; }
.rcms-checkbox-field input { width: auto; }
.rcms-checkbox-field label {
margin-bottom: 0;
letter-spacing: 0;
text-transform: none;
font-weight: 500;
color: var(--fg);
}
.rcms-field input[type="color"] {
width: 56px;
height: 38px;
padding: 4px;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container);
cursor: pointer;
}
.rcms-field input[type="color"]:hover { border-color: var(--md-sys-color-outline); }
.rcms-field input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
.rcms-field input[type="color"]::-moz-color-swatch { border: none; border-radius: 4px; }
.rcms-field input[type="range"] {
width: 100%;
accent-color: var(--md-sys-color-primary);
cursor: pointer;
}
.rcms-radio-group,
.rcms-checkbox-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.rcms-field label.rcms-choice-card {
margin-bottom: 0;
letter-spacing: 0;
text-transform: none;
font: inherit;
color: var(--fg);
}
.rcms-radio-group .rcms-radio-option,
.rcms-checkbox-group .rcms-checkbox-option {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
margin-bottom: 0;
letter-spacing: 0;
text-transform: none;
font-weight: 500;
color: var(--fg);
}
.rcms-multiselect-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.rcms-multiselect-group .rcms-hint { margin-top: 0; }
.rcms-datetimetz-pair {
display: flex;
gap: 8px;
}
.rcms-datetimetz-pair input[type="datetime-local"] { flex: 1 1 60%; min-width: 0; }
.rcms-datetimetz-pair select { flex: 1 1 40%; min-width: 0; }
.rcms-form-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
margin-top: 24px;
padding-top: 18px;
border-top: 1px solid var(--border);
}
.rcms-header-actions { display: flex; gap: 8px; }
.rcms-perm-section { margin-bottom: 20px; }
.rcms-perm-section-heading {
padding: 8px 12px;
background: var(--md-sys-color-surface-container);
font: var(--md-sys-typescale-ui-label);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.rcms-comment { padding: 10px 0; }
.rcms-comment-body { margin-top: 6px; }
.rcms-comment-reply {
margin-left: 16px;
padding-left: 12px;
border-left: 2px solid var(--md-sys-color-outline-variant);
}
.rcms-comment-reply .rcms-hint { margin-top: 2px; }
.rcms-comment-reply-form { margin-left: 16px; }
.rcms-comment-input {
height: 32px;
padding: 0 8px;
background: var(--md-sys-color-surface-container);
}
.rcms-comment-new { background: var(--md-sys-color-surface-container-low); }
.rcms-chip { padding: 4px 8px; background: var(--md-sys-color-surface-container); }
.rcms-page-lock-banner {
background: var(--md-sys-color-tertiary-container);
color: var(--md-sys-color-on-tertiary-container);
border-radius: var(--md-sys-radius-lg);
box-shadow: var(--md-sys-elevation-1);
}
.rcms-page-presence-banner {
display: none;
padding-left: 12px;
padding-right: 12px;
background: var(--md-sys-color-secondary-container);
color: var(--md-sys-color-on-secondary-container);
}
.rcms-upload-crop-preview { max-height: 480px; cursor: crosshair; }
.rcms-upload-crop-rect {
border: 2px solid var(--md-sys-color-primary);
background: color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent);
pointer-events: none;
display: none;
}
.rcms-media-card-select {
top: 16px;
left: 16px;
z-index: 1;
background: var(--md-sys-color-surface-container-lowest);
padding: 2px 4px;
box-shadow: var(--md-sys-elevation-1);
}
.rcms-media-card-kebab { top: 12px; right: 12px; z-index: 2; }
.rcms-search-input {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0 12px;
height: 40px;
flex: 1 1 280px;
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
transition: border-color 0.12s, box-shadow 0.12s;
cursor: text;
}
.rcms-search-input--sidebar {
display: flex;
width: 100%;
height: 36px;
flex: 0 0 auto;
background: color-mix(in srgb, var(--sidebar-fg) 10%, transparent);
border-color: color-mix(in srgb, var(--sidebar-fg) 18%, transparent);
}
.rcms-search-input--sidebar input,
.rcms-search-input--sidebar .material-symbols-rounded {
color: var(--sidebar-fg);
}
.rcms-search-input--sidebar input::placeholder {
color: color-mix(in srgb, var(--sidebar-fg) 55%, transparent);
}
.rcms-search-input--sidebar:focus-within {
background: color-mix(in srgb, var(--sidebar-fg) 16%, transparent);
border-color: color-mix(in srgb, var(--sidebar-fg) 40%, transparent);
}
.rcms-list-filter-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}
.rcms-list-filter-row select { height: 40px; }
.rcms-search-input:focus-within {
border-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
.rcms-search-input > .material-symbols-rounded {
color: var(--md-sys-color-on-surface-variant);
flex: 0 0 auto;
}
.rcms-search-input > input[type="search"],
.rcms-search-input > input[type="text"] {
flex: 1 1 auto;
min-width: 0;
height: 100%;
padding: 0;
background: transparent;
border: 0;
outline: none;
font: var(--md-sys-typescale-ui-body);
color: var(--md-sys-color-on-surface);
}
.rcms-search-input > input[type="search"]::-webkit-search-decoration { display: none; }
.rcms-stream-editor {
display: flex;
flex-direction: column;
gap: 12px;
padding: 0;
background: transparent;
}
.rcms-stream-editor .rcms-stream-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.rcms-stream-block {
border: none;
border-radius: 0;
background: transparent;
overflow: visible;
padding-bottom: 4px;
}
.rcms-stream-block-header {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 4px;
background: transparent;
border-bottom: 2px dotted var(--md-sys-color-outline);
}
.rcms-stream-block-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
flex: 0 0 24px;
border-radius: 50%;
background: var(--md-sys-color-primary-container);
color: var(--md-sys-color-on-primary-container);
font-size: 14px;
}
.rcms-stream-block-title {
flex: 1;
font-size: 13px;
font-weight: 500;
color: var(--md-sys-color-on-surface);
}
.rcms-stream-block-actions {
display: inline-flex;
gap: 4px;
align-items: center;
}
.rcms-stream-block-actions .rcms-btn {
width: 28px;
height: 28px;
padding: 0;
border-radius: 50%;
font-size: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.rcms-stream-block-actions .rcms-btn .material-symbols-rounded { font-size: 16px; }
.rcms-stream-block-actions .rcms-btn-icon { width: 28px; }
.rcms-stream-block-body {
padding: 12px;
display: flex;
flex-direction: column;
gap: 12px;
}
.rcms-stream-nested {
border: none;
border-left: 2px dotted var(--md-sys-color-outline);
border-radius: 0;
padding: 2px 0 4px 18px;
margin: 6px 0 6px 6px;
}
.rcms-stream-nested > legend { padding: 0; }
.rcms-stream-nested:has(.rcms-stream-block:focus-within) {
border-left-color: var(--md-sys-color-primary);
}
.rcms-stream-picker { align-self: flex-start; }
.rcms-stream-drift {
padding: 12px;
background: var(--md-sys-color-warning-container);
border: 1px solid var(--md-sys-color-warning);
color: var(--md-sys-color-on-warning-container);
border-radius: var(--md-sys-radius-md);
font-size: 13px;
}
.rcms-block-picker {
border: 1px solid var(--border);
border-radius: var(--md-sys-radius-xl);
padding: 0;
min-width: 360px;
max-width: 90vw;
background: var(--md-sys-color-surface-container-lowest);
box-shadow: var(--md-sys-elevation-3);
}
.rcms-block-picker::backdrop { background: rgba(0, 0, 0, 0.3); }
.rcms-block-picker { padding: 16px; min-width: min(420px, 90vw); }
.rcms-block-picker header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.rcms-block-picker-search {
width: 100%;
box-sizing: border-box;
margin-bottom: 12px;
}
.rcms-block-picker-group {
list-style: none;
margin: 8px 0 2px;
padding: 0 4px;
font-size: var(--md-sys-typescale-label-small-size, 0.6875rem);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-block-picker-group:first-child { margin-top: 0; }
.rcms-block-picker-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 4px;
max-height: 60vh;
overflow-y: auto;
}
.rcms-block-picker-tile {
position: relative;
isolation: isolate;
display: flex;
flex-direction: row;
align-items: center;
gap: 12px;
padding: 10px 14px;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container-lowest);
cursor: pointer;
font: inherit;
font-size: 13px;
color: var(--fg);
width: 100%;
text-align: left;
transition: border-color 0.12s, box-shadow 0.12s;
}
.rcms-block-picker-tile::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: var(--md-sys-color-primary);
opacity: 0;
border-radius: inherit;
transition: opacity 0.12s;
}
.rcms-block-picker-tile:hover::before { opacity: 0.06; }
.rcms-block-picker-tile:hover { border-color: var(--md-sys-color-primary); }
.rcms-block-picker-tile .material-symbols-rounded {
font-size: 22px;
color: var(--accent);
margin-left: auto;
order: 2;
}
.rcms-auth-body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 24px;
background: var(--md-sys-color-surface-container-low);
overflow: auto;
height: 100vh;
}
.rcms-auth-card {
width: 100%;
max-width: 420px;
background: var(--md-sys-color-surface-container-lowest);
border: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 40%, transparent);
border-radius: var(--md-sys-radius-xl);
padding: 36px;
box-shadow: var(--md-sys-elevation-2);
}
.rcms-auth-card h1 {
margin: 0 0 8px;
font: var(--md-sys-typescale-ui-header);
font-size: 22px;
line-height: 28px;
color: var(--fg);
}
.rcms-auth-card .rcms-lead {
margin: 0 0 24px;
font-size: 13px;
color: var(--muted);
}
.rcms-brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 24px;
}
.rcms-brand-icon {
width: 44px; height: 44px;
border-radius: var(--md-sys-radius-lg);
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
display: inline-flex;
align-items: center;
justify-content: center;
}
.rcms-brand-icon .material-symbols-rounded { font-size: 24px; vertical-align: 0; }
.rcms-brand-icon--img { background: none; }
.rcms-brand-icon-img { width: 44px; height: 44px; object-fit: contain; display: block; }
.rcms-brand:has(.rcms-brand-badge) {
flex-direction: column;
text-align: center;
gap: 14px;
}
.rcms-brand-badge { line-height: 0; }
.rcms-brand-badge img {
width: 132px;
height: 132px;
filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .12));
}
.rcms-brand-for-dark { display: none; }
:root[data-theme="dark"] .rcms-brand-for-light { display: none; }
:root[data-theme="dark"] .rcms-brand-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .rcms-brand-for-light { display: none; }
:root:not([data-theme="light"]) .rcms-brand-for-dark { display: block; }
}
.rcms-brand-name {
font: var(--md-sys-typescale-ui-header);
color: var(--fg);
}
.rcms-brand-sub {
font-size: 12px;
color: var(--muted);
margin-top: 2px;
}
.rcms-auth-card label { margin: 14px 0 0; }
.rcms-auth-back { margin: 20px 0 0; text-align: center; font-size: 14px; }
.rcms-auth-back a { color: var(--muted); text-decoration: none; }
.rcms-auth-back a:hover { color: var(--fg); text-decoration: underline; }
.rcms-auth-card input[type="text"],
.rcms-auth-card input[type="password"],
.rcms-auth-card input[type="email"] {
margin-top: 6px;
font-size: 14px;
}
.rcms-auth-card .rcms-actions {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 24px;
gap: 12px;
}
.rcms-auth-card button[type="submit"] {
flex: 1;
height: 44px;
}
.rcms-forgot {
font-size: 13px;
color: var(--muted);
text-decoration: none;
}
.rcms-forgot:hover {
color: var(--accent);
text-decoration: underline;
}
.rcms-auth-card .rcms-error,
.rcms-auth-card .rcms-notice {
margin: 16px 0 0;
padding: 12px 16px;
border-radius: var(--md-sys-radius-md);
font-size: 13px;
}
.rcms-auth-card .rcms-error {
background: var(--md-sys-color-error-container);
border: 1px solid var(--md-sys-color-error);
color: var(--md-sys-color-on-error-container);
}
.rcms-auth-card .rcms-notice {
background: var(--md-sys-color-success-container);
border: 1px solid var(--md-sys-color-success);
color: var(--md-sys-color-on-success-container);
}
.rcms-center-cta {
text-align: center;
margin-top: 20px;
}
.rcms-center-cta a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}
.rcms-center-cta a:hover { text-decoration: underline; }
.rcms-tr-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin-bottom: 18px;
}
.rcms-tr-row .rcms-canonical {
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
padding: 10px 12px;
font-size: 14px;
color: var(--muted);
word-break: break-word;
}
.rcms-reject-box { position: relative; display: inline-block; }
.rcms-reject-box > summary { list-style: none; cursor: pointer; }
.rcms-reject-box > summary::-webkit-details-marker { display: none; }
.rcms-reject-box > .rcms-reject-form .rcms-field { width: 100%; }
.rcms-reject-box > .rcms-reject-form {
position: absolute; z-index: 20; top: calc(100% + 6px); left: 0;
width: min(360px, 80vw); display: grid; grid-template-columns: 1fr; justify-items: start; gap: 10px; padding: 14px;
background: var(--md-sys-color-surface-container-lowest);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
box-shadow: var(--md-sys-elevation-2);
}
.rcms-tr-row .rcms-canonical-text {
white-space: pre-wrap;
}
.rcms-tr-row .rcms-canonical-rich > :first-child { margin-top: 0; }
.rcms-tr-row .rcms-canonical-rich > :last-child { margin-bottom: 0; }
.rcms-tr-row .rcms-canonical-rich p { margin: 0 0 8px; }
.rcms-tr-row .rcms-canonical .rcms-lbl,
.rcms-tr-row label.rcms-tr-lbl {
display: flex; align-items: center; gap: 4px;
font: var(--md-sys-typescale-ui-label);
text-transform: uppercase; letter-spacing: 0.05em;
color: var(--muted-2); margin-bottom: 6px;
}
.rcms-tr-row label.rcms-tr-lbl { color: var(--md-sys-color-tertiary); }
.rcms-tr-row textarea,
.rcms-tr-row input[type="text"] {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--md-sys-color-tertiary-fixed-dim);
border-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container-lowest);
font: inherit;
color: var(--md-sys-color-on-surface);
transition: border-color 0.12s, box-shadow 0.12s;
}
.rcms-tr-row textarea:focus,
.rcms-tr-row input:focus {
outline: none;
border-color: var(--md-sys-color-tertiary);
box-shadow: 0 0 0 1px var(--md-sys-color-tertiary);
}
.rcms-tr-row .rcms-placeholder { color: var(--muted-2); font-style: italic; }
.rcms-tr-stream { margin-bottom: 16px; }
.rcms-tr-stream-field {
display: flex; align-items: center; gap: 6px;
font: var(--md-sys-typescale-label-large);
color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
margin: 10px 0 6px;
}
.rcms-tr-block {
border-left: 2px solid var(--md-sys-color-outline-variant);
padding-left: 12px; margin-bottom: 10px;
}
.rcms-tr-block--d1 { margin-left: 20px; }
.rcms-tr-block--d2 { margin-left: 40px; }
.rcms-tr-block--d3 { margin-left: 60px; }
.rcms-tr-block--d4 { margin-left: 80px; }
.rcms-tr-block--d5 { margin-left: 100px; }
.rcms-tr-block--d6 { margin-left: 120px; }
.rcms-tr-block-head {
display: flex; align-items: center; gap: 6px;
font-weight: 600; font-size: 13px; color: var(--fg);
margin-bottom: 6px;
}
.rcms-edit-with-preview {
display: flex; flex-direction: row; align-items: stretch;
width: 100%; min-height: calc(100vh - 220px);
}
.rcms-edit-pane {
flex: 1 1 60%; min-width: 320px;
padding-right: 12px; overflow-x: auto;
}
@media (max-width: 768px) {
.rcms-edit-pane { min-width: 0; padding-right: 0; }
}
.rcms-edit-pane > .rcms-card,
.rcms-edit-pane > section.rcms-card,
.rcms-edit-pane > form.rcms-card { max-width: none !important; }
.rcms-split-handle {
flex: 0 0 6px;
background: var(--md-sys-color-outline-variant);
cursor: col-resize; position: relative;
touch-action: none; user-select: none;
position: sticky;
top: 100px;
align-self: flex-start;
height: calc(100vh - 110px);
transition: background 0.1s;
}
.rcms-split-handle::before {
content: "";
position: absolute;
inset: 0 -9px;
z-index: 1;
cursor: col-resize;
}
.rcms-split-handle::after {
content: ""; position: absolute;
top: 50%; left: 50%; transform: translate(-50%, -50%);
width: 2px; height: 56px; border-radius: 1px;
background: var(--md-sys-color-outline);
transition: background 0.1s, height 0.1s;
z-index: 2;
pointer-events: none;
}
.rcms-split-handle:hover {
background: var(--md-sys-color-primary-fixed);
}
.rcms-split-handle:hover::after {
background: var(--md-sys-color-primary);
height: 80px;
}
.rcms-split-handle.dragging { background: var(--md-sys-color-primary-fixed); }
.rcms-split-handle.dragging::after { background: var(--md-sys-color-primary); }
.rcms-preview-pane {
flex: 1 1 40%; min-width: 280px;
display: flex; flex-direction: column;
padding-left: 12px;
position: sticky;
top: 100px; align-self: flex-start;
height: calc(100vh - 110px);
}
.rcms-preview-json {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
background: var(--md-sys-color-surface-container-lowest);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-lg);
overflow: hidden;
}
.rcms-preview-json-bar {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px;
min-height: 40px;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-preview-json-meta {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rcms-preview-json-body {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
margin: 0;
padding: 12px;
line-height: 1.5;
tab-size: 2;
overflow-wrap: anywhere;
}
.rcms-preview-json[data-stale] .rcms-preview-json-body { opacity: 0.55; }
.rcms-preview-unavailable {
align-items: center;
justify-content: center;
}
.rcms-preview-stage {
flex: 1 1 auto;
display: flex;
justify-content: center;
align-items: flex-start;
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-lg);
padding: 8px;
overflow: hidden;
min-height: 0;
}
.rcms-preview-stage[data-surface="site"] {
flex-direction: column;
align-items: stretch;
padding: 0;
background: var(--md-sys-color-surface-container-lowest);
}
.rcms-preview-stage[data-surface="site"] .rcms-preview-json-bar {
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-preview-frame-area {
flex: 1 1 auto;
min-height: 0;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 8px;
overflow: hidden;
}
.rcms-preview-frame-sizer {
width: var(--rcms-pv-sizer-w, 100%);
height: var(--rcms-pv-sizer-h, 100%);
transition: width 0.15s ease, height 0.15s ease;
flex: 0 0 auto;
overflow: hidden;
}
.rcms-preview-frame {
width: var(--rcms-pv-frame-w, 100%);
height: var(--rcms-pv-frame-h, 100%);
transform-origin: top left;
transform: scale(var(--rcms-pv-scale, 1));
transition: transform 0.15s ease;
border: 0;
border-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container-lowest);
box-shadow: var(--md-sys-elevation-1);
}
.rcms-viewport-buttons {
display: inline-flex; gap: 0;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
overflow: hidden;
margin-right: 4px;
}
.rcms-viewport-btn {
height: 32px;
padding: 0 8px !important;
border-radius: 0 !important;
border: none !important;
border-right: 1px solid var(--md-sys-color-outline-variant) !important;
background: transparent;
color: var(--muted);
}
.rcms-viewport-btn:last-child { border-right: none !important; }
.rcms-viewport-btn[aria-pressed="true"] {
background: var(--md-sys-color-primary) !important;
color: var(--md-sys-color-on-primary) !important;
}
.rcms-viewport-btn[aria-pressed="true"] .material-symbols-rounded {
color: var(--md-sys-color-on-primary) !important;
}
@media (max-width: 1023px) {
.rcms-edit-with-preview { flex-direction: column; min-height: auto; }
.rcms-edit-pane { padding-right: 0; }
.rcms-split-handle { display: none; }
.rcms-preview-pane {
padding-left: 0; padding-top: 16px;
position: static; max-height: none;
height: auto;
flex: 0 0 auto;
width: 100%;
}
.rcms-preview-stage {
width: 100%;
padding: 4px;
}
.rcms-preview-frame-sizer {
width: 100%;
height: 60vh;
}
.rcms-preview-frame {
min-height: 60vh;
height: 60vh;
width: 100%;
transform: none !important;
}
}
[data-preview-hidden] .rcms-preview-pane,
[data-preview-hidden] .rcms-split-handle { display: none; }
[data-preview-hidden] .rcms-edit-pane { padding-right: 0; flex: 1 1 100%; }
.rcms-tab-strip {
display: flex;
gap: 4px;
flex: 1 1 auto;
min-width: 0;
flex-wrap: wrap;
row-gap: 4px;
scrollbar-width: thin;
}
.rcms-tab-strip::-webkit-scrollbar { height: 6px; }
.rcms-tab-strip::-webkit-scrollbar-thumb {
background: var(--md-sys-color-outline-variant);
border-radius: 3px;
}
.rcms-tab-tab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
height: 32px;
background: transparent;
border: 1px solid transparent;
border-radius: var(--md-sys-radius-full);
cursor: pointer;
font: var(--md-sys-typescale-ui-button);
color: var(--muted);
white-space: nowrap;
flex: 0 0 auto;
transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.rcms-tab-tab:hover {
background: var(--md-sys-color-surface-container);
color: var(--fg);
}
.rcms-tab-label {
display: grid;
grid-template-columns: 0fr;
opacity: 0;
transition: grid-template-columns var(--rcms-tab-ease-dur) var(--rcms-tab-ease),
opacity 140ms linear;
}
.rcms-tab-label > span {
overflow: hidden;
white-space: nowrap;
min-width: 0;
}
.rcms-tab-tab[aria-selected="true"] .rcms-tab-label,
.rcms-tab-tab:hover .rcms-tab-label,
.rcms-tab-tab:focus-visible .rcms-tab-label {
grid-template-columns: 1fr;
opacity: 1;
transition: grid-template-columns var(--rcms-tab-ease-dur) var(--rcms-tab-ease),
opacity 140ms linear 80ms;
}
.rcms-tab-tab:not([aria-selected="true"]):not(:hover):not(:focus-visible) {
padding-inline: 8px;
gap: 0;
}
.rcms-tab-tab {
--rcms-tab-ease: cubic-bezier(0.2, 0, 0, 1);
--rcms-tab-ease-dur: 260ms;
transition: background 0.12s, color 0.12s, border-color 0.12s,
padding-inline var(--rcms-tab-ease-dur) var(--rcms-tab-ease),
gap var(--rcms-tab-ease-dur) var(--rcms-tab-ease);
}
@media (prefers-reduced-motion: reduce) {
.rcms-tab-tab, .rcms-tab-label { transition-duration: 1ms; }
}
.rcms-tab-tab[aria-selected="true"] {
background: var(--md-sys-color-primary-fixed);
color: var(--md-sys-color-on-primary-fixed);
border-color: var(--md-sys-color-primary-fixed-dim);
}
.rcms-tab-tab .material-symbols-rounded { font-size: 16px; }
.rcms-preview-controls { display: flex; gap: 4px; flex: 0 0 auto; }
[data-preview-hidden] .rcms-preview-controls { display: none; }
.rcms-tab-tab .rcms-tab-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: var(--md-sys-radius-full);
background: var(--md-sys-color-outline-variant);
color: var(--muted);
font-size: 10px;
font-weight: 600;
margin-left: 4px;
}
.rcms-tab-tab[aria-selected="true"] .rcms-tab-count {
background: var(--md-sys-color-primary);
color: var(--md-sys-color-on-primary);
}
.rcms-tab-panel[hidden] { display: none; }
.rcms-content-fieldset {
border: none;
padding: 0;
margin: 20px 0 0;
}
.rcms-content-fieldset > legend {
padding: 0;
margin-bottom: 8px;
font: var(--md-sys-typescale-ui-button);
color: var(--md-sys-color-primary);
}
.rcms-page-type-strip {
display: inline-flex; align-items: center; gap: 6px;
margin-bottom: 12px;
padding: 4px 10px;
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-sm);
font-size: 12px;
color: var(--md-sys-color-on-surface-variant);
cursor: help;
}
.rcms-page-type-strip .material-symbols-rounded {
font-size: 14px;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-page-type-strip-name {
font-weight: 500;
color: var(--md-sys-color-on-surface);
}
.rcms-page-form-banner {
max-width: 760px;
margin-bottom: 16px;
padding: 10px 14px;
}
.rcms-page-form-banner .rcms-hint { margin: 0; }
.rcms-page-form-section {
max-width: 760px;
}
.rcms-page-form-notice {
background: var(--md-sys-color-primary-fixed);
border: 1px solid var(--md-sys-color-primary-fixed-dim);
color: var(--md-sys-color-on-primary-fixed-variant);
padding: 12px 16px;
border-radius: var(--md-sys-radius-md);
margin-bottom: 20px;
font-size: 13px;
}
.rcms-page-form-notice--translation {
background: var(--md-sys-color-tertiary-container);
border: 1px solid var(--md-sys-color-tertiary);
border-left-width: 4px;
color: var(--md-sys-color-on-tertiary-container);
}
.rcms-revisions-card h2 {
margin: 0 0 12px;
font: var(--md-sys-typescale-ui-header);
}
.rcms-revisions-card .rcms-data { margin-top: 8px; }
.rcms-revisions-card .rcms-data td.timestamp {
color: var(--muted);
font-size: 12px;
}
.rcms-revisions-card .rcms-data .rcms-system-author {
color: var(--muted-2);
}
.rcms-page-form-subheading {
display: block;
margin: 32px 0 14px;
padding-top: 24px;
border-top: 2px solid var(--md-sys-color-outline);
font: var(--md-sys-typescale-ui-label);
color: var(--muted);
letter-spacing: 0.05em;
text-transform: uppercase;
}
.rcms-page-form-subheading:first-of-type {
margin-top: 0;
padding-top: 0;
border-top: none;
}
.rcms-page-form-subhint { margin-top: 0; }
.rcms-page-form-subscribe { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 0; flex-wrap: wrap; }
.rcms-a11y-card { margin-bottom: 16px; padding: 12px 16px; }
.rcms-a11y-summary { cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.rcms-a11y-list { list-style: none; padding: 0; margin: 12px 0 0; }
.rcms-a11y-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-top: 1px solid var(--md-sys-color-outline-variant); font-size: 13px; }
.rcms-a11y-row:first-child { border-top: none; }
.rcms-a11y-row--error .material-symbols-rounded { color: var(--md-sys-color-error); }
.rcms-a11y-row--warning .material-symbols-rounded { color: #b8860b; }
.rcms-a11y-row--info .material-symbols-rounded { color: var(--md-sys-color-on-surface-variant); }
.rcms-a11y-msg { flex: 1; }
.rcms-a11y-field { font-size: 11px; padding: 2px 6px; background: var(--md-sys-color-surface-container); border-radius: var(--md-sys-radius-sm); color: var(--md-sys-color-on-surface-variant); }
.rcms-a11y-footer { margin: 12px 0 0; font-size: 11px; }
.rcms-a11y-tag-error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); font-size: 10px; margin-left: 4px; }
.rcms-a11y-tag-warning { background: #fff4cc; color: #5a4500; font-size: 10px; margin-left: 4px; }
.rcms-a11y-tag-info { background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface-variant); font-size: 10px; margin-left: 4px; }
.rcms-inline-panel { margin-top: 16px; }
.rcms-inline-panel legend { display: flex; align-items: center; gap: 8px; }
.rcms-inline-panel-cap { font-size: 11px; color: var(--md-sys-color-on-surface-variant); margin-left: 4px; }
.rcms-inline-panel-help { margin: 0 0 8px; font-size: 12px; }
.rcms-inline-panel-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rcms-inline-panel-row { padding: 12px; background: var(--md-sys-color-surface-container-low); border-radius: var(--md-sys-radius-md); }
.rcms-inline-panel-row-header,
.rcms-inline-panel-list-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rcms-inline-panel-row-header strong { font-size: 12px; color: var(--md-sys-color-on-surface-variant); }
.rcms-inline-panel-row-header .rcms-inline-panel-remove { margin-left: auto; }
.rcms-inline-panel-card { margin-top: 16px; }
.rcms-inline-panel-list,
.rcms-dashboard-list,
.rcms-upload-queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rcms-inline-panel-list { gap: 16px; }
.rcms-inline-panel-list-item { padding: 12px; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-radius-md); }
.rcms-inline-panel-list-item + .rcms-inline-panel-list-item { margin-top: 0; }
.rcms-inline-panel-list-head strong { font-size: 14px; }
.rcms-kbd-modal { border: 0; border-radius: var(--md-sys-radius-lg); padding: 0; max-width: 480px; width: 90vw; background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); box-shadow: var(--md-sys-elevation-3); }
.rcms-kbd-modal::backdrop { background: rgba(0, 0, 0, 0.4); }
.rcms-kbd-modal article { padding: 16px 20px; }
.rcms-kbd-modal header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rcms-kbd-modal header h2 { flex: 1; margin: 0; font-size: 16px; }
.rcms-kbd-modal h3 { font-size: 12px; color: var(--md-sys-color-on-surface-variant); text-transform: uppercase; letter-spacing: 0.05em; margin: 12px 0 6px; }
.rcms-kbd-modal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.rcms-kbd-modal dt { display: flex; align-items: center; gap: 4px; }
.rcms-kbd-modal kbd { display: inline-block; padding: 2px 6px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-radius-sm); background: var(--md-sys-color-surface-container); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; }
.rcms-revisions-prune-form { margin-bottom: 16px; padding: 16px; }
.rcms-revisions-prune-heading { margin: 0 0 12px; font-size: 14px; }
.rcms-snippet-history-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--md-sys-color-outline-variant); }
.rcms-snippet-history-row:first-child { border-top: none; }
.rcms-snippet-history-row-text { flex: 1; font-size: 13px; }
.rcms-account-plugin-panel { margin-top: 16px; padding: 16px; }
.rcms-account-plugin-panel-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.rcms-styleguide-section { margin: 24px 0 8px; font-size: 16px; }
.rcms-styleguide-card { padding: 16px; }
.rcms-styleguide-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.rcms-styleguide-row:last-child { margin-bottom: 0; }
.rcms-styleguide-tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rcms-col-hidden { display: none !important; }
.rcms-col-picker { display: inline-block; position: relative; margin: 0 0 8px; }
.rcms-col-picker-panel { display: none; position: absolute; right: 0; top: calc(100% + 4px); min-width: 220px; padding: 8px; background: var(--md-sys-color-surface-container-high); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-radius-md); box-shadow: var(--md-sys-elevation-2); z-index: 8; }
.rcms-col-picker[open] .rcms-col-picker-panel { display: flex; flex-direction: column; gap: 4px; }
.rcms-col-picker-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 13px; cursor: pointer; border-radius: var(--md-sys-radius-sm); }
.rcms-col-picker-row:hover { background: var(--md-sys-color-surface-container); }
.rcms-col-picker-reset { margin-top: 4px; align-self: flex-start; }
.rcms-library-list-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.rcms-library-list-toolbar:empty { display: none; }
.rcms-library-list-bulk-th { width: 32px; }
.rcms-autosave-chip {
position: fixed;
right: 16px; bottom: 16px;
padding: 6px 12px;
background: var(--md-sys-color-surface-container-high);
color: var(--md-sys-color-on-surface-variant);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-full);
box-shadow: var(--md-sys-elevation-1);
font: var(--md-sys-typescale-ui-label);
z-index: 5;
opacity: 0;
transition: opacity 0.18s;
pointer-events: none;
}
.rcms-autosave-chip[data-mode="saving"],
.rcms-autosave-chip[data-mode="idle"],
.rcms-autosave-chip[data-mode="warn"] {
opacity: 1;
}
.rcms-dashboard-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.rcms-dashboard-card { padding: 16px 20px; }
.rcms-dashboard-card h2 {
display: flex; align-items: center; gap: 8px;
margin: 0 0 12px;
font-size: 14px;
}
.rcms-dashboard-card h2 .material-symbols-rounded { color: var(--md-sys-color-primary); }
.rcms-dashboard-span-2 { grid-column: 1 / -1; }
.rcms-dashboard-counts {
list-style: none; padding: 0; margin: 0 0 12px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
gap: 12px;
}
.rcms-dashboard-counts li {
display: flex; flex-direction: column;
padding: 12px;
background: var(--md-sys-color-surface-container);
border-radius: var(--md-sys-radius-md);
}
.rcms-dashboard-count { font-size: 22px; font-weight: 600; line-height: 1.1; }
.rcms-dashboard-count-label { font-size: 11px; color: var(--md-sys-color-on-surface-variant); text-transform: uppercase; letter-spacing: 0.04em; }
.rcms-dashboard-list li {
display: flex; flex-direction: column;
padding: 8px 0;
border-top: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-dashboard-list li:first-child { border-top: none; }
.rcms-dashboard-list a { color: var(--md-sys-color-on-surface); text-decoration: none; }
.rcms-dashboard-list a:hover { color: var(--md-sys-color-primary); }
.rcms-dashboard-list code.rcms-hint { font-size: 11px; margin-left: 8px; }
@media (max-width: 760px) {
.rcms-dashboard-grid { grid-template-columns: 1fr; }
.rcms-dashboard-span-2 { grid-column: 1; }
}
.rcms-side-panel-flash { animation: side-panel-flash-keyframes 1.2s ease-out; }
@keyframes side-panel-flash-keyframes {
0% { box-shadow: 0 0 0 0 var(--md-sys-color-primary); }
50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent); }
100% { box-shadow: 0 0 0 0 transparent; }
}
@media (max-width: 1100px) {
}
.rcms-richtext-tool.is-active {
background: var(--md-sys-color-primary-container);
color: var(--md-sys-color-on-primary-container);
}
@media (max-width: 768px) {
body { flex-direction: column; }
.rcms-sidebar {
position: fixed;
width: 240px;
z-index: 10;
transform: translateX(-100%);
transition: transform 0.2s ease;
box-shadow: var(--md-sys-elevation-3);
}
input#__nav_toggle:checked ~ .rcms-sidebar { transform: translateX(0); }
.rcms-app-main { width: 100%; }
.rcms-nav-toggle-label {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: var(--md-sys-radius-md);
cursor: pointer;
color: var(--muted);
}
.rcms-nav-toggle-label:hover { background: var(--md-sys-color-surface-container); }
.rcms-nav-backdrop {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 9;
}
input#__nav_toggle:checked ~ .rcms-nav-backdrop { display: block; }
}
@media (min-width: 769px) {
.rcms-nav-toggle-label, .rcms-nav-backdrop, #__nav_toggle { display: none; }
}
#__nav_toggle { position: absolute; left: -9999px; }
.rcms-confirm-dialog {
border: none;
border-radius: var(--md-sys-radius-xl);
background: var(--md-sys-color-surface-container-lowest);
color: var(--md-sys-color-on-surface);
box-shadow: var(--md-sys-elevation-3);
padding: 0;
max-width: 460px;
width: calc(100% - 32px);
}
.rcms-confirm-dialog::backdrop {
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(2px);
}
.rcms-confirm-form {
padding: 24px;
}
.rcms-confirm-form h2 {
margin: 0 0 12px;
font: var(--md-sys-typescale-ui-header);
color: var(--md-sys-color-on-surface);
}
.rcms-confirm-form p {
margin: 0 0 20px;
font: var(--md-sys-typescale-ui-body);
color: var(--md-sys-color-on-surface-variant);
}
.rcms-confirm-actions {
display: flex;
gap: 8px;
justify-content: flex-end;
align-items: center;
}
.rcms-toast-stack {
position: fixed;
right: 20px;
bottom: 20px;
display: flex;
flex-direction: column;
gap: 8px;
z-index: 1000;
max-width: min(420px, calc(100vw - 40px));
pointer-events: none;
}
.rcms-toast {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
background: var(--md-sys-color-inverse-surface);
color: var(--md-sys-color-inverse-on-surface);
border-radius: var(--md-sys-radius-lg);
box-shadow: var(--md-sys-elevation-3);
font: var(--md-sys-typescale-ui-body);
pointer-events: auto;
opacity: 0;
transform: translateY(8px);
transition: opacity 0.2s ease, transform 0.2s ease;
}
.rcms-toast--in { opacity: 1; transform: translateY(0); }
.rcms-toast--out { opacity: 0; transform: translateY(8px); }
.rcms-toast-icon { font-size: 20px; flex-shrink: 0; }
.rcms-toast-body { flex: 1; line-height: 1.4; }
.rcms-toast-close {
background: transparent;
border: 0;
color: inherit;
cursor: pointer;
padding: 4px;
border-radius: var(--md-sys-radius-sm);
opacity: 0.7;
}
.rcms-toast-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.rcms-toast--success { background: var(--md-sys-color-on-success-container); color: var(--md-sys-color-success-container); }
.rcms-toast--warning { background: var(--md-sys-color-on-warning-container); color: var(--md-sys-color-warning-container); }
.rcms-toast--error { background: var(--md-sys-color-on-error-container); color: var(--md-sys-color-error-container); }
.rcms-toast--info .rcms-toast-icon { color: var(--md-sys-color-inverse-primary); }
@scope (.rcms-admin) to (.rcms-block-paragraph, .rcms-block-rich-text, .rcms-block-raw-html, .rcms-block-snippet-chooser, .rcms-block-picker-tile-preview, .rcms-stream-block, .rcms-display-chip-value) {
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
font: var(--md-sys-typescale-ui-body);
color: var(--md-sys-color-on-surface);
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-lg);
padding: 0 12px;
height: 40px;
min-height: 40px;
box-sizing: border-box;
transition: border-color 0.12s, box-shadow 0.12s;
}
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover,
select:not(.rcms-field select):hover {
border-color: var(--md-sys-color-outline);
}
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:not(.rcms-field select):focus {
outline: none;
border-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
opacity: 0.65;
cursor: pointer;
transition: opacity 0.12s;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
opacity: 1;
}
input[type="checkbox"],
input[type="radio"] {
appearance: none;
-webkit-appearance: none;
width: 18px;
height: 18px;
border: 1.5px solid var(--md-sys-color-outline);
background: transparent;
cursor: pointer;
position: relative;
flex-shrink: 0;
transition: border-color 0.12s, background-color 0.12s;
vertical-align: middle;
}
input[type="checkbox"] {
border-radius: 3px;
}
input[type="radio"] {
border-radius: 50%;
}
input[type="checkbox"]:hover,
input[type="radio"]:hover {
border-color: var(--md-sys-color-on-surface);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
outline: 2px solid var(--md-sys-color-primary);
outline-offset: 2px;
}
input[type="checkbox"]:checked {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
}
input[type="checkbox"]:checked::after {
content: "";
position: absolute;
left: 4px;
top: 0px;
width: 6px;
height: 11px;
border: solid var(--md-sys-color-on-primary);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
input[type="radio"]:checked {
border-color: var(--md-sys-color-primary);
}
input[type="radio"]:checked::after {
content: "";
position: absolute;
inset: 3px;
border-radius: 50%;
background: var(--md-sys-color-primary);
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
opacity: 0.4;
cursor: not-allowed;
}
input[type="file"] {
font: var(--md-sys-typescale-ui-body);
color: var(--md-sys-color-on-surface-variant);
border: 1px dashed var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
padding: 10px 12px;
background: var(--md-sys-color-surface-container-low);
cursor: pointer;
max-width: 100%;
}
input[type="file"]:hover {
border-color: var(--md-sys-color-primary);
}
input[type="file"]::file-selector-button {
font: var(--md-sys-typescale-ui-button);
color: var(--md-sys-color-on-primary);
background: var(--md-sys-color-primary);
border: none;
border-radius: var(--md-sys-radius-lg);
padding: 6px 14px;
margin-right: 12px;
cursor: pointer;
transition: background-color 0.12s;
}
input[type="file"]::file-selector-button:hover {
background: color-mix(in srgb, var(--md-sys-color-primary) 88%, black);
}
input[type="color"] {
appearance: none;
-webkit-appearance: none;
width: 32px;
height: 32px;
padding: 0;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
cursor: pointer;
background: transparent;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
input[type="range"] {
appearance: none;
-webkit-appearance: none;
width: 100%;
height: 4px;
background: var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-full);
outline: none;
cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
appearance: none;
-webkit-appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--md-sys-color-primary);
cursor: pointer;
border: none;
}
input[type="range"]::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--md-sys-color-primary);
cursor: pointer;
border: none;
}
select:not(.rcms-field select) {
font: var(--md-sys-typescale-ui-body);
color: var(--md-sys-color-on-surface);
background-color: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
padding: 8px 32px 8px 10px;
min-height: 36px;
box-sizing: border-box;
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23757688'><path d='M7 10l5 5 5-5z'/></svg>");
background-repeat: no-repeat;
background-position: right 8px center;
background-size: 18px 18px;
cursor: pointer;
}
}
.rcms-media-card-thumb {
aspect-ratio: 1 / 1;
border-radius: var(--md-sys-radius-lg);
background:
linear-gradient(45deg, color-mix(in srgb, var(--md-sys-color-outline-variant) 18%, transparent) 25%, transparent 25%),
linear-gradient(-45deg, color-mix(in srgb, var(--md-sys-color-outline-variant) 18%, transparent) 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--md-sys-color-outline-variant) 18%, transparent) 75%),
linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--md-sys-color-outline-variant) 18%, transparent) 75%),
var(--md-sys-color-surface-container-low);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0;
overflow: hidden;
position: relative;
box-shadow: var(--md-sys-elevation-1);
transition: box-shadow 0.12s;
margin-bottom: 8px;
}
.rcms-media-card-thumb:hover { box-shadow: var(--md-sys-elevation-2); }
.rcms-media-card-missing {
display: none;
position: absolute;
inset: 0;
align-items: center;
justify-content: center;
font-size: 40px;
color: var(--muted-2);
}
.rcms-media-card-thumb.is-missing img { display: none; }
.rcms-media-card-thumb.is-missing .rcms-media-card-missing { display: flex; }
.rcms-media-card-thumb img {
width: 100%;
height: 100%;
object-fit: contain;
padding: 12px;
box-sizing: border-box;
display: block;
}
.rcms-media-card-thumb[data-fit="cover"] img {
object-fit: cover;
padding: 0;
}
.rcms-menu-builder {
display: grid;
grid-template-columns: 320px 1fr;
gap: 16px;
align-items: start;
}
@media (max-width: 900px) {
.rcms-menu-builder { grid-template-columns: 1fr; }
}
.rcms-menu-builder-picker { padding: 16px; }
.rcms-menu-builder-tabs {
display: flex;
gap: 4px;
margin-bottom: 12px;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-menu-builder-tab {
background: transparent;
border: 0;
padding: 8px 12px;
cursor: pointer;
font: var(--md-sys-typescale-ui-button);
color: var(--md-sys-color-on-surface-variant);
border-bottom: 2px solid transparent;
}
.rcms-menu-builder-tab.active {
color: var(--md-sys-color-primary);
border-bottom-color: var(--md-sys-color-primary);
}
.rcms-menu-builder-page-search {
width: 100%;
margin-bottom: 8px;
height: 40px;
padding: 0 12px;
font: inherit;
color: var(--fg);
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
}
.rcms-menu-builder-page-search:focus {
outline: 2px solid var(--md-sys-color-primary);
outline-offset: -1px;
}
.rcms-menu-builder-page-list {
max-height: 60vh;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 4px;
}
.rcms-menu-builder-picker-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
background: var(--md-sys-color-surface-container-low);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
cursor: grab;
font: var(--md-sys-typescale-ui-body);
color: var(--md-sys-color-on-surface);
text-align: left;
transition: background-color 0.12s, border-color 0.12s;
}
.rcms-menu-builder-picker-item:hover {
background: var(--md-sys-color-surface-container);
border-color: var(--md-sys-color-primary);
}
.rcms-menu-builder-picker-item:active { cursor: grabbing; }
.rcms-menu-builder-picker-label {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rcms-menu-builder-picker-add {
font-size: 18px;
line-height: 1;
color: var(--md-sys-color-primary);
font-weight: 600;
opacity: 0;
transition: opacity 0.12s;
}
.rcms-menu-builder-picker-item:hover .rcms-menu-builder-picker-add { opacity: 1; }
.rcms-menu-builder-tree-wrap { padding: 16px; }
.rcms-menu-builder-tree-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.rcms-menu-builder-dirty {
font-size: 12px;
color: var(--md-sys-color-tertiary);
background: var(--md-sys-color-tertiary-container);
padding: 4px 8px;
border-radius: var(--md-sys-radius-full);
}
.rcms-menu-builder-tree {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 6px;
min-height: 80px;
}
.rcms-menu-builder-card {
--depth: var(--menu-builder-depth, 0);
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
margin-left: calc(var(--depth) * 28px);
background: var(--md-sys-color-surface-container-lowest);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
box-shadow: var(--md-sys-elevation-1);
transition: box-shadow 0.12s, opacity 0.12s, transform 0.12s;
}
.rcms-menu-builder-card:hover { box-shadow: var(--md-sys-elevation-2); }
.rcms-menu-builder-card--dragging { opacity: 0.4; }
.rcms-menu-builder-drop-target {
border-color: var(--md-sys-color-primary);
border-style: dashed;
}
.rcms-menu-builder-handle {
color: var(--md-sys-color-outline);
cursor: grab;
font-size: 20px;
}
.rcms-menu-builder-card-body {
flex: 1;
min-width: 0;
}
.rcms-menu-builder-card-label {
font: var(--md-sys-typescale-ui-button);
color: var(--md-sys-color-on-surface);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rcms-menu-builder-card-target,
.rcms-upload-queue-meta,
.rcms-picker-row__sub {
font-size: 11px;
color: var(--md-sys-color-on-surface-variant);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rcms-menu-builder-card-target { margin-top: 2px; }
.rcms-menu-builder-card-target code {
background: transparent;
color: inherit;
font-size: 11px;
}
.rcms-menu-builder-card-actions {
display: flex;
gap: 2px;
flex-shrink: 0;
}
.rcms-menu-builder-empty {
border: 2px dashed var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
padding: 32px;
text-align: center;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-menu-builder-card { flex-wrap: wrap; }
.rcms-menu-builder-card .rcms-menu-builder-card-disclosure {
flex-basis: 100%;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--md-sys-color-outline-variant);
display: flex;
flex-direction: column;
gap: 4px;
}
.rcms-menu-builder-card .rcms-menu-builder-card-disclosure .rcms-field {
margin-bottom: 0;
}
.rcms-menu-builder-card .rcms-menu-builder-card-disclosure .rcms-checkbox-field {
gap: 8px;
font: var(--md-sys-typescale-ui-body);
color: var(--md-sys-color-on-surface);
}
.rcms-menu-builder-card.expanded {
box-shadow: var(--md-sys-elevation-2);
}
.rcms-menu-builder-card [data-toggle-disclosure] { cursor: pointer; }
.rcms-menu-builder-card--indent-preview {
outline: 2px dashed var(--md-sys-color-primary);
outline-offset: -2px;
transition: margin-left 0.08s ease, outline-color 0.12s;
}
.rcms-menu-builder-picker-meta {
font-size: 10px;
color: var(--md-sys-color-on-surface-variant);
background: var(--md-sys-color-surface-container-high);
padding: 2px 6px;
border-radius: var(--md-sys-radius-full);
margin-left: 4px;
}
.rcms-upload-dropzone {
position: relative;
border: 2px dashed var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-lg);
background: var(--md-sys-color-surface-container-low);
padding: 24px;
text-align: center;
transition: border-color 0.12s, background-color 0.12s;
}
.rcms-upload-dropzone:hover,
.rcms-upload-dropzone--active {
border-color: var(--md-sys-color-primary);
background: color-mix(in srgb, var(--md-sys-color-primary) 4%, var(--md-sys-color-surface-container-low));
}
.rcms-upload-dropzone input[type="file"] {
position: absolute;
inset: 0;
opacity: 0;
pointer-events: none;
width: 100%;
height: 100%;
}
.rcms-upload-dropzone { cursor: pointer; }
.rcms-upload-dropzone-hint { pointer-events: none; }
.rcms-upload-queue-row {
display: grid;
grid-template-columns: 60px 1fr auto auto;
gap: 12px;
align-items: center;
padding: 10px 12px;
background: var(--md-sys-color-surface-container-lowest);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
}
.rcms-upload-queue-thumb {
width: 60px;
height: 60px;
border-radius: var(--md-sys-radius-sm);
background: var(--md-sys-color-surface-container);
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-upload-queue-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.rcms-upload-queue-body {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.rcms-upload-queue-body input[type="text"] {
width: 100%;
padding: 6px 8px;
font: var(--md-sys-typescale-ui-body);
background: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-sm);
}
.rcms-upload-queue-status {
font-size: 12px;
color: var(--md-sys-color-on-surface-variant);
min-width: 80px;
text-align: right;
}
.rcms-upload-queue-row[data-status="uploading"] .rcms-upload-queue-status {
color: var(--md-sys-color-primary);
}
.rcms-upload-queue-row[data-status="done"] .rcms-upload-queue-status {
color: #047857;
}
.rcms-upload-queue-row[data-status="failed"] .rcms-upload-queue-status {
color: var(--md-sys-color-error);
}
.rcms-theme-picker {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 12px;
}
.rcms-theme-picker-form { margin: 0; }
.rcms-theme-picker-tile {
width: 100%;
background: var(--md-sys-color-surface-container-lowest);
border: 2px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-lg);
padding: 12px;
cursor: pointer;
text-align: left;
transition: border-color 0.12s, transform 0.06s, box-shadow 0.12s;
}
.rcms-theme-picker-tile:hover {
border-color: var(--md-sys-color-outline);
box-shadow: var(--md-sys-elevation-1);
}
.rcms-theme-picker-tile:active { transform: scale(0.98); }
.rcms-theme-picker-tile--active {
border-color: var(--md-sys-color-primary);
box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
.rcms-theme-picker-swatch-grid {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 2px;
aspect-ratio: 2 / 1;
border-radius: var(--md-sys-radius-md);
overflow: hidden;
margin-bottom: 8px;
border: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-theme-picker-swatch-grid span {
display: block;
}
.rcms-theme-picker-name {
font: var(--md-sys-typescale-ui-button);
color: var(--md-sys-color-on-surface);
}
.rcms-theme-picker-badge {
font-size: 11px;
color: var(--md-sys-color-primary);
font-weight: 600;
margin-top: 2px;
}
.rcms-icon-tertiary { color: var(--md-sys-color-tertiary); }
.rcms-icon-primary { color: var(--md-sys-color-primary); }
.rcms-icon-bullet { vertical-align: -4px; }
.rcms-cell-meta {
color: var(--md-sys-color-on-surface-variant);
font-size: 12px;
}
.rcms-tag--small { font-size: 11px; }
.rcms-page-form-translate { max-width: 920px; }
.rcms-text-muted-soft { color: var(--md-sys-color-outline); }
.rcms-text-3xs { font-size: 10px; }
.rcms-text-2xs { font-size: 11px; }
.rcms-text-xs { font-size: 12px; }
.rcms-text-sm { font-size: 13px; }
.rcms-text-base { font-size: 14px; }
.rcms-text-lg { font-size: 16px; }
.rcms-text-xl { font-size: 18px; }
.rcms-text-2xl { font-size: 32px; }
.rcms-fw-medium { font-weight: 500; }
.rcms-fw-semibold { font-weight: 600; }
.rcms-italic { font-style: italic; }
.rcms-leading-normal { line-height: 1.5; }
.rcms-font-mono { font-family: ui-monospace, Menlo, monospace; }
.rcms-text-muted { color: var(--md-sys-color-on-surface-variant); }
.rcms-text-muted-2 { color: var(--md-sys-color-outline); }
.rcms-text-primary { color: var(--md-sys-color-primary); }
.rcms-text-on-surface { color: var(--md-sys-color-on-surface); }
.rcms-text-error { color: var(--md-sys-color-error); }
.rcms-text-tertiary { color: var(--md-sys-color-tertiary); }
.rcms-text-accent { color: var(--accent); }
.rcms-text-inherit { color: inherit; }
.rcms-bg-surface-container { background: var(--md-sys-color-surface-container); }
.rcms-opacity-55 { opacity: 0.55; }
.rcms-opacity-60 { opacity: 0.6; }
.rcms-opacity-70 { opacity: 0.7; }
.rcms-flex { display: flex; }
.rcms-inline-flex { display: inline-flex; }
.rcms-inline-block { display: inline-block; }
.rcms-inline { display: inline; }
.rcms-block { display: block; }
.rcms-grid { display: grid; }
.rcms-autogrid-180 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.rcms-autogrid-220 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rcms-autogrid-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rcms-items-center { align-items: center; }
.rcms-items-start { align-items: flex-start; }
.rcms-justify-between { justify-content: space-between; }
.rcms-justify-center { justify-content: center; }
.rcms-flex-wrap { flex-wrap: wrap; }
.rcms-flex-1 { flex: 1; }
.rcms-redirect-search-form { flex: 1 1 260px; }
.rcms-flex-2 { flex: 2; }
.rcms-flex-3 { flex: 3; }
.rcms-flex-none { flex: none; }
.rcms-text-center { text-align: center; }
.rcms-gap-1 { gap: 4px; }
.rcms-gap-2 { gap: 8px; }
.rcms-gap-3 { gap: 12px; }
.rcms-gap-4 { gap: 16px; }
.rcms-m-0 { margin: 0; }
.rcms-mx-0 { margin-left: 0; margin-right: 0; }
.rcms-mt-0 { margin-top: 0; }
.rcms-mt-1 { margin-top: 4px; }
.rcms-mt-2 { margin-top: 8px; }
.rcms-mt-3 { margin-top: 12px; }
.rcms-mt-4 { margin-top: 16px; }
.rcms-mt-5 { margin-top: 20px; }
.rcms-mt-6 { margin-top: 24px; }
.rcms-mt-8 { margin-top: 32px; }
.rcms-mb-0 { margin-bottom: 0; }
.rcms-mb-1 { margin-bottom: 4px; }
.rcms-mb-2 { margin-bottom: 8px; }
.rcms-mb-3 { margin-bottom: 12px; }
.rcms-mb-4 { margin-bottom: 16px; }
.rcms-mb-6 { margin-bottom: 24px; }
.rcms-ml-1 { margin-left: 4px; }
.rcms-ml-2 { margin-left: 8px; }
.rcms-ml-3 { margin-left: 12px; }
.rcms-p-0 { padding: 0; }
.rcms-p-3 { padding: 12px; }
.rcms-p-bar { padding: 16px 20px; }
.rcms-px-0 { padding-left: 0; padding-right: 0; }
.rcms-px-4 { padding-left: 16px; padding-right: 16px; }
.rcms-pl-5 { padding-left: 20px; }
.rcms-pl-6 { padding-left: 24px; }
.rcms-py-2 { padding-top: 8px; padding-bottom: 8px; }
.rcms-py-3 { padding-top: 12px; padding-bottom: 12px; }
.rcms-pt-0 { padding-top: 0; }
.rcms-border { border: 1px solid var(--md-sys-color-outline-variant); }
.rcms-border-0 { border: 0; }
.rcms-border-top { border-top: 1px solid var(--md-sys-color-outline-variant); }
.rcms-border-bottom { border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.rcms-rounded { border-radius: var(--md-sys-radius-md); }
.rcms-rounded-circle { border-radius: 50%; }
.rcms-rounded-0 { border-radius: 0; }
.rcms-relative { position: relative; }
.rcms-absolute { position: absolute; }
.rcms-w-full { width: 100%; }
.rcms-w-32 { width: 32px; }
.rcms-w-60 { width: 60px; }
.rcms-w-70 { width: 70px; }
.rcms-w-100 { width: 100px; }
.rcms-w-180 { width: 180px; }
.rcms-w-320 { width: 320px; }
.rcms-maxw-full { max-width: 100%; }
.rcms-minw-0 { min-width: 0; }
.rcms-minw-160 { min-width: 160px; }
.rcms-minw-180 { min-width: 180px; }
.rcms-minw-200 { min-width: 200px; }
.rcms-minw-220 { min-width: 220px; }
.rcms-minw-280 { min-width: 280px; }
.rcms-maxw-120 { max-width: 120px; }
.rcms-maxw-240 { max-width: 240px; }
.rcms-maxw-600 { max-width: 600px; }
.rcms-maxw-640 { max-width: 640px; }
.rcms-maxw-720 { max-width: 720px; }
.rcms-maxw-760 { max-width: 760px; }
.rcms-maxw-900 { max-width: 900px; }
.rcms-overflow-hidden { overflow: hidden; }
.rcms-overflow-visible { overflow: visible; }
.rcms-overflow-auto { overflow: auto; }
.rcms-maxh-260 { max-height: 260px; }
.rcms-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcms-border-collapse { border-collapse: collapse; }
.rcms-pre-wrap { white-space: pre-wrap; }
.rcms-cursor-pointer { cursor: pointer; }
.rcms-select-none { user-select: none; }
.rcms-list-none { list-style: none; }
.rcms-no-underline { text-decoration: none; }
.rcms-avatar { width: 80px; height: 80px; object-fit: cover; }
.rcms-avatar--sm { width: 28px; height: 28px; }
.rcms-avatar-fallback { background: var(--md-sys-color-surface-container); }
.rcms-avatar--sm.rcms-avatar-fallback { background: var(--md-sys-color-surface-container-high); }
.rcms-md-toolbar {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
padding: 4px 6px;
border: 1px solid var(--md-sys-color-outline-variant);
border-bottom: none;
border-top-left-radius: var(--md-sys-radius-md);
border-top-right-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container-low);
}
.rcms-md-toolbar + textarea {
border-top-left-radius: 0;
border-top-right-radius: 0;
margin-top: 0;
}
.rcms-md-btn {
border: 1px solid transparent;
line-height: 1.4;
cursor: pointer;
font-family: inherit;
}
.rcms-md-btn:hover {
background: var(--md-sys-color-surface-container-high);
border-color: var(--md-sys-color-outline-variant);
}
.rcms-md-btn:active {
background: var(--md-sys-color-secondary-container);
}
.rcms-md-sep {
width: 1px;
height: 16px;
background: var(--md-sys-color-outline-variant);
margin: 0 2px;
}
.rcms-block-picker-tile-label {
display: inline-flex;
flex-direction: column;
text-align: left;
gap: 2px;
order: 1;
flex: 1 1 auto;
min-width: 0;
}
.rcms-block-picker-tile-name {
font-weight: 500;
}
.rcms-block-picker-tile-desc {
font-size: 11px;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-block-picker-tile-preview {
display: block;
margin-top: 6px;
padding: 6px 8px;
border-radius: var(--md-sys-radius-sm);
background: var(--md-sys-color-surface-container-low);
color: var(--md-sys-color-on-surface-variant);
font-size: 11px;
line-height: 1.3;
opacity: 0.85;
pointer-events: none;
overflow: hidden;
max-height: 64px;
}
.rcms-block-picker-tile-preview * { font-size: inherit !important; margin: 0 !important; }
.rcms-stream-block[data-collapsed] .rcms-stream-block-body {
display: none;
}
.rcms-chooser {
display: inline-flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.rcms-media-preview {
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 6px;
border: 1px solid var(--md-sys-color-outline-variant);
background: var(--md-sys-color-surface-container-high);
flex: none;
}
.rcms-chooser-dialog {
border: none;
padding: 0;
border-radius: var(--md-sys-radius-lg);
background: var(--md-sys-color-surface);
color: var(--md-sys-color-on-surface);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.rcms-chooser-dialog::backdrop {
background: rgba(0, 0, 0, 0.4);
}
.rcms-chooser-dialog { width: min(720px, 94vw); }
.rcms-chooser-dialog--media { width: min(960px, 94vw); height: min(640px, 84vh); }
.rcms-picker { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rcms-picker__header {
display: flex; align-items: center; gap: 8px; padding: 12px 16px;
border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-picker__header strong { flex: 1; }
.rcms-picker__toolbar {
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
padding: 10px 16px; border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-picker__search { flex: 1; min-width: 140px; padding: 6px 10px; }
.rcms-picker__media-tools,
.rcms-picker__multi { display: inline-flex; align-items: center; gap: 8px; }
.rcms-picker__media-tools[hidden] { display: none; }
.rcms-picker__collection { max-width: 220px; padding: 6px 8px; }
.rcms-picker__viewtoggle { display: inline-flex; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-radius-md); overflow: hidden; }
.rcms-picker__viewtoggle button {
border: 0; background: transparent; height: 32px; padding: 0 8px; cursor: pointer;
color: var(--md-sys-color-on-surface-variant);
display: inline-flex; align-items: center; justify-content: center;
}
.rcms-picker__body { position: relative; display: flex; flex: 1; min-height: 0; }
.rcms-picker__results {
list-style: none; padding: 4px 0; margin: 0; flex: 1;
max-height: 60vh; overflow-y: auto;
}
.rcms-picker__results[hidden] { display: none; }
.rcms-picker-row {
display: flex; align-items: center; gap: 12px; width: 100%;
padding: 8px 16px; cursor: pointer; text-align: left;
border: 0; border-top: 1px solid var(--md-sys-color-outline-variant);
background: transparent; color: inherit; font: inherit;
}
.rcms-picker-row:hover { background: var(--md-sys-color-surface-container-high); }
.rcms-picker-row__thumb {
width: 40px; height: 40px; object-fit: cover; border-radius: 4px; flex: none;
background: var(--md-sys-color-surface-container-high);
}
.rcms-picker-row__thumb--icon {
display: inline-flex; align-items: center; justify-content: center;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-picker-row--media.rcms-picker-card--selected,
.rcms-picker__viewtoggle button[aria-pressed="true"] {
background: var(--md-sys-color-secondary-container);
color: var(--md-sys-color-on-secondary-container);
}
.rcms-picker-row__text { flex: 1; min-width: 0; display: block; }
.rcms-picker-row__title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcms-picker-row__sub { display: block; font-family: ui-monospace, monospace; }
.rcms-picker-row__meta { flex: none; font-size: 11px; color: var(--md-sys-color-on-surface-variant); }
.rcms-picker__empty { padding: 24px; text-align: center; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }
.rcms-picker__error { padding: 16px; color: var(--md-sys-color-error); }
.rcms-picker__media { display: flex; flex: 1; min-height: 0; }
.rcms-picker__media[hidden] { display: none; }
.rcms-picker__grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
gap: 10px; align-content: start; padding: 12px 16px; flex: 1; overflow-y: auto;
}
.rcms-picker__list { display: flex; flex-direction: column; padding: 4px 0; flex: 1; overflow-y: auto; }
.rcms-picker-card {
position: relative; display: flex; flex-direction: column; gap: 4px;
border: 1px solid var(--md-sys-color-outline-variant); border-radius: 8px;
padding: 4px; background: transparent; cursor: pointer; font: inherit;
color: inherit; text-align: left; min-width: 0;
}
.rcms-picker-card:hover { border-color: var(--md-sys-color-primary); }
.rcms-picker-card--selected {
outline: 2px solid var(--md-sys-color-primary);
outline-offset: -1px; border-color: var(--md-sys-color-primary);
}
.rcms-picker-card__thumb {
width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px;
background: var(--md-sys-color-surface-container-high); display: block;
}
.rcms-picker-card__icon {
width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
font-size: 32px; color: var(--md-sys-color-on-surface-variant);
background: var(--md-sys-color-surface-container-high); border-radius: 5px;
}
.rcms-picker-card__name {
font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
color: var(--md-sys-color-on-surface); padding: 0 2px 2px;
}
.rcms-picker-card__check { position: absolute; top: 8px; left: 8px; z-index: 1; }
.rcms-picker__list .rcms-picker-card__check { position: static; }
.rcms-picker__detail {
width: 240px; flex: none; border-left: 1px solid var(--md-sys-color-outline-variant);
padding: 14px; overflow-y: auto;
}
.rcms-picker__detail-img {
width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px;
background: var(--md-sys-color-surface-container-high); margin-bottom: 10px;
}
.rcms-picker__detail-name { font-weight: 600; font-size: 13px; margin-bottom: 8px; overflow-wrap: anywhere; }
.rcms-picker__detail-meta { margin: 0; font-size: 12px; }
.rcms-picker__detail-meta dt { color: var(--md-sys-color-on-surface-variant); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px; }
.rcms-picker__detail-meta dd { margin: 1px 0 0; overflow-wrap: anywhere; }
.rcms-picker__detail-empty {
color: var(--md-sys-color-on-surface-variant); font-size: 12px;
text-align: center; padding: 32px 8px;
}
.rcms-picker__dropzone {
position: absolute; inset: 8px; z-index: 2;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
border: 2px dashed var(--md-sys-color-primary); border-radius: 10px;
background: color-mix(in srgb, var(--md-sys-color-surface) 88%, var(--md-sys-color-primary));
color: var(--md-sys-color-primary); font-weight: 600; pointer-events: none;
}
.rcms-picker__dropzone[hidden] { display: none; }
.rcms-picker__footer {
display: flex; align-items: center; gap: 8px; justify-content: flex-end;
padding: 10px 16px; border-top: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-picker [hidden] { display: none !important; }
.rcms-picker__notice { flex: 1; font-size: 12px; color: var(--md-sys-color-on-surface-variant); overflow-wrap: anywhere; }
.rcms-picker__notice--error { color: var(--md-sys-color-error); }
.rcms-picker__multi [data-pc-multi-count] { font-size: 12px; color: var(--md-sys-color-on-surface-variant); }
@media (max-width: 719px) {
.rcms-picker__detail { display: none; }
}
@media (max-width: 480px) {
.rcms-chooser-dialog--media {
width: 100vw; height: 100dvh; max-height: 100dvh;
max-width: 100vw; border-radius: 0; margin: 0;
}
.rcms-picker__grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
.rcms-panel-group {
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
padding: 12px 16px 16px;
margin: 12px 0;
background: var(--md-sys-color-surface);
}
.rcms-panel-group > legend {
padding: 0 6px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-panel-group-help {
margin: 0 0 12px;
}
.rcms-panel-group-body {
display: flex;
gap: 12px;
}
.rcms-panel-group--column .rcms-panel-group-body {
flex-direction: column;
}
.rcms-panel-group--row .rcms-panel-group-body {
flex-direction: row;
flex-wrap: wrap;
}
.rcms-panel-group--row .rcms-panel-group-body > .rcms-field {
flex: 1 1 240px;
min-width: 0;
}
@media (max-width: 640px) {
.rcms-panel-group--row .rcms-panel-group-body {
flex-direction: column;
}
}
.rcms-panel-help {
margin: 12px 0;
padding: 12px 16px;
border-left: 3px solid var(--md-sys-color-primary);
background: var(--md-sys-color-surface-container-low);
border-radius: 0 var(--md-sys-radius-md) var(--md-sys-radius-md) 0;
}
.rcms-panel-help :first-child {
margin-top: 0;
}
.rcms-panel-help :last-child {
margin-bottom: 0;
}
.rcms-checkbox-field--switch {
align-items: center;
gap: 8px;
}
.rcms-checkbox-field--switch > input[type="checkbox"] {
position: absolute;
opacity: 0;
pointer-events: none;
width: 0;
height: 0;
}
.rcms-switch-track {
display: inline-block;
position: relative;
width: 36px;
height: 20px;
border-radius: 999px;
background: var(--md-sys-color-surface-container-high);
border: 1px solid var(--md-sys-color-outline-variant);
cursor: pointer;
transition: background 0.18s;
flex: 0 0 auto;
}
.rcms-switch-knob {
position: absolute;
top: 1px;
left: 1px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--md-sys-color-on-surface-variant);
transition: transform 0.18s, background 0.18s;
}
.rcms-checkbox-field--switch > input:checked + .rcms-switch-track {
background: var(--md-sys-color-primary);
border-color: var(--md-sys-color-primary);
}
.rcms-checkbox-field--switch > input:checked + .rcms-switch-track .rcms-switch-knob {
transform: translateX(16px);
background: var(--md-sys-color-on-primary);
}
.rcms-checkbox-field--switch > input:focus-visible + .rcms-switch-track {
outline: 2px solid var(--md-sys-color-primary);
outline-offset: 2px;
}
.rcms-checkbox-field--switch > input:disabled + .rcms-switch-track {
opacity: 0.5;
cursor: not-allowed;
}
.rcms-form-builder { --fb-border: var(--md-sys-color-outline-variant, #cdcdd5); }
.rcms-fb-topbar {
display: flex; align-items: center; justify-content: space-between;
gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.rcms-fb-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rcms-fb-form-title { font-size: 1.2rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcms-fb-topbar-right,
.rcms-fb-page-head { display: flex; align-items: center; gap: 8px; }
.rcms-fb-badge { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--md-sys-color-tertiary-container, #ffe08a); color: var(--md-sys-color-on-tertiary-container, #5b4300); }
.rcms-fb-pagetabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--fb-border); margin-bottom: 14px; }
.rcms-fb-tab {
border: 1px solid transparent; border-bottom: none; background: transparent;
padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer; font: inherit;
color: var(--md-sys-color-on-surface-variant, #444); margin-bottom: -1px;
}
.rcms-fb-tab.active {
background: var(--md-sys-color-surface, #fff);
border-color: var(--fb-border); border-bottom-color: var(--md-sys-color-surface, #fff);
color: var(--md-sys-color-on-surface, #111); font-weight: 600;
}
.rcms-fb-tab-add { margin-left: 4px; }
.rcms-fb-workspace { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.rcms-fb-workspace[hidden] { display: none; }
@media (max-width: 900px) { .rcms-fb-workspace { grid-template-columns: 1fr; } }
.rcms-fb-canvas { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rcms-fb-page-name { flex: 1; font-size: 1.05rem; font-weight: 600; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; }
.rcms-fb-page-name:hover, .rcms-fb-page-name:focus { border-color: var(--fb-border); background: var(--md-sys-color-surface, #fff); }
.rcms-fb-page-tools, .rcms-fb-section-tools, .rcms-fb-row-tools, .rcms-fb-col-tools, .rcms-fb-field-tools { display: flex; gap: 2px; }
.rcms-fb-section { border: 1px solid var(--fb-border); border-radius: 10px; padding: 12px; background: var(--md-sys-color-surface-container-low, #fafafa); }
.rcms-fb-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rcms-fb-section-title { flex: 1; padding: 5px 8px; border: 1px dashed var(--fb-border); border-radius: 6px; background: transparent; font-weight: 600; }
.rcms-fb-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.rcms-fb-row-grid { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.rcms-fb-col { min-width: 120px; border: 1px dashed var(--fb-border); border-radius: 8px; padding: 8px; background: var(--md-sys-color-surface, #fff); display: flex; flex-direction: column; gap: 6px; }
.rcms-fb-col-head { display: flex; align-items: center; justify-content: space-between; }
.rcms-fb-width { font-size: 0.75rem; padding: 2px 4px; border: 1px solid var(--fb-border); border-radius: 4px; }
.rcms-fb-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--fb-border); border-radius: 8px; background: var(--md-sys-color-surface-container, #f3f3f7); cursor: pointer; }
.rcms-fb-field.selected { border-color: var(--md-sys-color-primary, #4f46e5); box-shadow: 0 0 0 2px var(--md-sys-color-primary, #4f46e5) inset; }
.rcms-fb-field-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rcms-fb-field-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcms-fb-field-meta { font-size: 0.72rem; color: var(--md-sys-color-on-surface-variant, #666); }
.rcms-fb-add-field-wrap { position: relative; }
.rcms-fb-add-field, .rcms-fb-add-row, .rcms-fb-add-section { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px dashed var(--fb-border); border-radius: 8px; background: transparent; cursor: pointer; font: inherit; color: var(--md-sys-color-primary, #4f46e5); }
.rcms-fb-add-section { align-self: flex-start; }
.rcms-fb-palette { position: absolute; z-index: 30; top: 100%; left: 0; margin-top: 4px; width: 220px; max-height: 320px; overflow: auto; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--fb-border); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.16); padding: 6px; }
.rcms-fb-palette-group { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--md-sys-color-on-surface-variant, #888); padding: 6px 8px 2px; }
.rcms-fb-palette-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: none; background: transparent; border-radius: var(--md-sys-radius-lg); cursor: pointer; font: inherit; text-align: left; }
.rcms-fb-palette-item:hover { background: var(--md-sys-color-surface-container-high, #ececf2); }
.rcms-fb-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; background: transparent; border-radius: var(--md-sys-radius-lg); cursor: pointer; color: var(--md-sys-color-on-surface-variant); }
.rcms-fb-icon-btn:hover { background: var(--md-sys-color-surface-container-high, #ececf2); }
.rcms-fb-icon-btn.rcms-fb-danger:hover { background: var(--md-sys-color-error-container, #fcd8d8); color: var(--md-sys-color-error, #b3261e); }
.rcms-fb-inspector { border: 1px solid var(--fb-border); border-radius: 10px; padding: 14px; background: var(--md-sys-color-surface-container-lowest); position: sticky; top: 12px; }
.rcms-fb-inspector-empty { text-align: center; color: var(--md-sys-color-on-surface-variant); padding: 24px 8px; }
.rcms-fb-workspace:has(.rcms-fb-inspector-empty) { grid-template-columns: 1fr; }
.rcms-fb-workspace:has(.rcms-fb-inspector-empty) .rcms-fb-inspector {
border: 0;
background: transparent;
padding: 0;
position: static;
}
.rcms-fb-workspace:has(.rcms-fb-inspector-empty) .rcms-fb-inspector-empty {
padding: 10px 8px;
font-size: 0.85rem;
}
.rcms-fb-workspace:has(.rcms-fb-inspector-empty) .rcms-fb-inspector-empty .material-symbols-rounded {
display: none;
}
.rcms-fb-inspector-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.rcms-fb-prop { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.rcms-fb-prop-label { font-size: 0.78rem; font-weight: 600; color: var(--md-sys-color-on-surface-variant, #555); }
.rcms-fb-prop input[type="text"], .rcms-fb-prop input[type="number"], .rcms-fb-prop textarea { width: 100%; padding: 7px 8px; border: 1px solid var(--fb-border); border-radius: 6px; font: inherit; }
.rcms-fb-prop-check { flex-direction: row; align-items: center; gap: 8px; }
.rcms-fb-options { margin-top: 6px; }
.rcms-fb-option { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.rcms-fb-option input { flex: 1; padding: 6px; border: 1px solid var(--fb-border); border-radius: 6px; }
.rcms-fb-option-value { max-width: 90px; }
.rcms-fb-add-option { display: inline-flex; align-items: center; gap: 4px; border: none; background: transparent; color: var(--md-sys-color-primary, #4f46e5); cursor: pointer; padding: 4px; font: inherit; }
.rcms-fb-rules { margin-top: 10px; border-top: 1px solid var(--fb-border); padding-top: 10px; }
.rcms-fb-rule { border: 1px solid var(--fb-border); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.rcms-fb-rule-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; font-size: 0.82rem; }
.rcms-fb-cond { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 8px; }
.rcms-fb-cond select, .rcms-fb-cond input, .rcms-fb-rule-head select { padding: 4px; border: 1px solid var(--fb-border); border-radius: 4px; font-size: 0.82rem; max-width: 100%; }
.rcms-fb-cond > select:first-child { flex: 1 1 100%; }
.rcms-fb-cond > select:nth-child(2) { flex: 1; }
.rcms-fb-cond > :nth-child(3) { flex: 1 1 100%; order: 3; min-width: 60px; }
.rcms-fb-cond > :nth-child(4) { order: 2; }
.rcms-fb-settings { border: 1px solid var(--fb-border); border-radius: 10px; padding: 24px 28px; background: var(--md-sys-color-surface-container-lowest); margin: 0 auto; }
.rcms-fb-translate-menu { position: relative; display: inline-block; }
.rcms-fb-translate-list { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 30; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--fb-border, var(--md-sys-color-outline-variant)); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.16); min-width: 160px; padding: 4px; }
.rcms-fb-translate-list a { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: inherit; }
.rcms-fb-translate-list a:hover { background: var(--md-sys-color-surface-container-high, #ececf2); }
.rcms-fb-settings { max-width: 560px; }
.rcms-fb-settings h3 { margin-top: 0; margin-bottom: 14px; font-size: 1.05rem; }
.rcms-fb-settings .rcms-fb-prop { margin-bottom: 14px; }
.rcms-fb-settings textarea, .rcms-fb-settings input[type="text"] { width: 100%; padding: 8px; border: 1px solid var(--fb-border); border-radius: 6px; font: inherit; }
.rcms-sidebar--blocktree .rcms-sidebar-nav,
.rcms-sidebar--blocktree .rcms-sidebar-footer { display: none; }
.rcms-sidebar-blocktree {
display: flex; flex-direction: column; flex: 1; min-height: 0;
padding: 8px 10px;
}
.rcms-sidebar-blocktree[hidden] { display: none !important; }
.rcms-blocktree-back {
display: flex; align-items: center; gap: 6px;
border: 0; background: transparent; cursor: pointer; font: inherit;
color: var(--md-sys-color-on-surface-variant);
padding: 6px 8px; border-radius: 8px; text-align: left;
}
.rcms-blocktree-back:hover { background: var(--md-sys-color-surface-container-high); }
.rcms-blocktree-toolbar {
display: flex; align-items: center; gap: 2px;
padding: 6px 8px 8px; border-bottom: 1px solid var(--md-sys-color-outline-variant);
margin-bottom: 6px;
}
.rcms-blocktree-title {
flex: 1; font-size: 11px; font-weight: 700; text-transform: uppercase;
letter-spacing: 0.05em; color: var(--md-sys-color-on-surface-variant);
}
.rcms-blocktree-body { flex: 1; overflow-y: auto; min-height: 0; }
.rcms-blocktree-node {
display: flex; align-items: center; gap: 2px;
padding-left: calc(var(--bt-depth, 0) * 14px);
border-radius: 8px;
}
.rcms-blocktree-node:hover { background: var(--md-sys-color-surface-container-high); }
.rcms-blocktree-jump {
flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
border: 0; background: transparent; cursor: pointer; font: inherit;
font-size: 13px; color: var(--md-sys-color-on-surface);
padding: 6px 4px 6px 8px; text-align: left; border-radius: 8px;
}
.rcms-blocktree-label {
flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rcms-blocktree-node.is-collapsed .rcms-blocktree-label { color: var(--md-sys-color-on-surface-variant); }
.rcms-blocktree-fold {
flex: none; border: 0; background: transparent; cursor: pointer;
color: var(--md-sys-color-on-surface-variant);
padding: 4px; border-radius: 6px; display: inline-flex;
}
.rcms-blocktree-fold:hover { background: var(--md-sys-color-surface-container-highest); }
.rcms-blocktree-group {
padding: 6px 8px 2px calc(var(--bt-depth, 0) * 14px + 8px);
font-size: 10px; font-weight: 700; text-transform: uppercase;
letter-spacing: 0.06em; color: var(--md-sys-color-on-surface-variant);
}
.rcms-blocktree-empty {
padding: 18px 8px; font-size: 12px; text-align: center;
color: var(--md-sys-color-on-surface-variant);
}
.rcms-blocktree-node.is-invalid .rcms-blocktree-jump,
.rcms-blocktree-node.is-invalid .rcms-blocktree-label { color: var(--md-sys-color-error); }
.rcms-blocktree-errors {
flex: none; min-width: 16px; height: 16px; border-radius: 999px;
background: var(--md-sys-color-error); color: var(--md-sys-color-on-error);
font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
padding: 0 4px;
}
.rcms-stream-block--invalid > .rcms-stream-block-header .rcms-stream-block-title::after {
content: ""; display: inline-block; width: 7px; height: 7px;
border-radius: 999px; background: var(--md-sys-color-error);
margin-left: 6px; vertical-align: 1px;
}
.rcms-blocktree-root {
padding: 10px 8px 3px;
font-size: 10px; font-weight: 700; text-transform: uppercase;
letter-spacing: 0.07em; color: var(--md-sys-color-primary);
border-top: 1px solid var(--md-sys-color-outline-variant);
margin-top: 6px;
}
.rcms-blocktree-root:first-child { border-top: 0; margin-top: 0; }
.rcms-code-plain,
textarea[data-template-editor] {
width: 100%;
min-height: 60vh;
font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
tab-size: 2;
padding: 12px 14px;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
background: var(--md-sys-color-surface-container-lowest);
color: var(--md-sys-color-on-surface);
resize: vertical;
}
.CodeMirror {
height: auto;
min-height: 60vh;
border: 1px solid var(--md-sys-color-outline-variant);
border-radius: var(--md-sys-radius-md);
font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.CodeMirror.rcms-cm-dark,
.CodeMirror.rcms-cm-dark .CodeMirror-gutters {
background: var(--md-sys-color-surface-container-lowest);
color: var(--md-sys-color-on-surface);
border-color: var(--md-sys-color-outline-variant);
}
.CodeMirror.rcms-cm-dark .CodeMirror-linenumber { color: var(--md-sys-color-on-surface-variant); }
.CodeMirror.rcms-cm-dark .CodeMirror-cursor { border-left-color: var(--md-sys-color-on-surface); }
.CodeMirror.rcms-cm-dark .CodeMirror-activeline-background { background: rgba(255, 255, 255, .04); }
.CodeMirror.rcms-cm-dark .CodeMirror-selected { background: rgba(255, 255, 255, .13); }
.CodeMirror,
textarea[data-template-editor] {
margin-bottom: 36px;
}
.rcms-validate-result {
margin: 0 0 4px;
padding: 10px 12px;
border-radius: var(--md-sys-radius-md);
font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
white-space: pre-wrap;
border: 1px solid var(--md-sys-color-outline-variant);
}
.rcms-validate-result.is-ok {
border-color: var(--md-sys-color-primary);
color: var(--md-sys-color-primary);
}
.rcms-validate-result.is-bad {
border-color: var(--md-sys-color-error);
color: var(--md-sys-color-error);
}
.rcms-inline-form { display: flex; gap: 8px; align-items: center; margin: 12px 0 18px; }
.rcms-inline-form input { flex: 0 1 320px; }
.rcms-row-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.rcms-row-actions form { margin: 0; }