/* Layout around the Fluent UI components. Colours and fonts come from the Fluent design tokens. */
* { box-sizing: border-box; }

/* Surfaces: a soft blue-grey page behind white cards, panes a shade lighter, so it is not white on white.
   Fluent marks dark mode with data-theme="dark" on <body>; there the Fluent greys are used. */
:root {
    --app-bg: #e8edf4;
    --pane-bg: #f5f7fa;
    --scrollbar-size: 10px;
    --scrollbar-thumb: #c2c9d3;
    --scrollbar-thumb-hover: #9aa4b2;
    --content-pad-x: 32px;
}
body[data-theme="dark"] {
    --app-bg: var(--colorNeutralBackground2, #1f1f1f);
    --pane-bg: var(--colorNeutralBackground3, #141414);
    --scrollbar-thumb: #4a4f57;
    --scrollbar-thumb-hover: #6b717b;
}

html, body {
    margin: 0;
    background: var(--app-bg);
    color: var(--colorNeutralForeground1, #242424);
    font-family: var(--fontFamilyBase, "Segoe UI", system-ui, sans-serif);
    font-size: var(--fontSizeBase300, 14px);
}

h1:focus { outline: none; }

/* App shell: the top bar stays put and each pane under it scrolls on its own, so a long page
   always gets a scrollbar and the editor's save bar can sit at the bottom of the window. */
body:has(.app-body) { height: 100vh; height: 100dvh; overflow: hidden; }
/* Login pages have no workspace and scroll as a normal page; room for the scrollbar on both sides keeps the box centred. */
html:not(:has(.app-body)) { scrollbar-gutter: stable both-edges; }

/* Scrollbars: thin, rounded, on a clear track, the same in every pane. Every scrolling area keeps room for its
   scrollbar (scrollbar-gutter), so nothing moves when a page grows long enough to scroll. Chromium and Safari use the
   ::-webkit-scrollbar rules (they skip them where scrollbar-width or scrollbar-color is set); Firefox has only the
   standard properties. Fluent's own popups (shadow DOM) keep their scrollbars, in our colours where they inherit. */
::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb); background-clip: padding-box;
    border: 2px solid transparent; border-radius: 999px; min-height: 32px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--colorNeutralForeground3, #616161); }
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }
}
.sidenav, .workspace > *, .tree-pane, .media-grid, .scope-list, .image-editor-tools { scrollbar-gutter: stable; }
/* The main menu is narrow (icons only when folded): a slimmer scrollbar, taken from its right padding. */
.sidenav::-webkit-scrollbar { width: 6px; }
.sidenav::-webkit-scrollbar-thumb { border-width: 1px; }

/* Top bar: light, logo and environment left, user and sign-out right. */
.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 16px;
    background: var(--colorNeutralBackground1, #fff);
    border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    box-shadow: 0 1px 4px rgba(15, 40, 80, .06);
    position: relative; z-index: 3;
}
.topbar form { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 28px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 17px; }
/* The product name: "content" in the text colour, "Cloud" in the logo blue (#2563EB; lighter in the dark theme). */
.wordmark { font-weight: 400; letter-spacing: -.01em; color: var(--colorNeutralForeground1, #242424); }
.wordmark > span { font-weight: 600; color: var(--brand-cloud, #2563EB); }
body[data-theme="dark"] .wordmark > span { --brand-cloud: #60A5FA; }
.brand-sub { font-size: 11px; color: var(--colorNeutralForeground3, #616161); }
.env-label {
    margin-left: 8px; padding: 2px 10px; border-radius: 4px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--colorPaletteDarkOrangeForeground1, #b45309); border: 1px solid currentColor;
}
.topbar-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.topbar-user:hover { background: var(--colorNeutralBackground1Hover, #f5f5f5); }
.topbar-user-text { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.topbar-user-name { font-weight: 600; }
.topbar-user-sub { font-size: 11px; color: var(--colorNeutralForeground3, #616161); }
.avatar {
    width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
    background: var(--colorBrandBackground2, #ebf3fc); color: var(--colorBrandForeground1, #0f6cbd); font-size: 12px; font-weight: 600;
}
.topbar-divider { width: 1px; height: 28px; background: var(--colorNeutralStroke2, #e0e0e0); }

/* Main menu on the left: a plain list, the open screen with a light background and a bar on the left. */
.app-body { display: flex; height: calc(100vh - 56px); height: calc(100dvh - 56px); overflow: hidden; }
.sidenav {
    --nav-icon-color: var(--colorNeutralForeground3, #616161);
    width: 208px; flex: none; overflow: auto;
    display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 12px 8px;
    background: var(--pane-bg);
    border-right: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px;
    color: var(--colorNeutralForeground2, #424242); text-decoration: none; position: relative;
}
.nav-item:hover { background: var(--colorNeutralBackground1Hover, #f5f5f5); color: var(--colorNeutralForeground1, #242424); }
.nav-item.active {
    --nav-icon-color: var(--colorBrandForeground1, #0f6cbd);
    background: var(--colorBrandBackground2, #ebf3fc); color: var(--colorNeutralForeground1, #242424); font-weight: 600;
}
.nav-item.active::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px;
    background: var(--colorBrandBackground, #0f6cbd);
}
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-section {
    margin: 16px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--colorNeutralForeground3, #616161); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-language { display: flex; align-items: center; gap: 8px; margin: 0 4px 6px; padding: 4px 8px; border-radius: 6px; background: var(--colorNeutralBackground3, #f5f5f5); }
.nav-language-select { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--colorNeutralForeground1, #242424); cursor: pointer; }
html.nav-collapsed .nav-language { display: none; }
.nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.nav-toggle { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.nav-toggle span { display: inline-flex; }
.nav-toggle .when-collapsed, html.nav-collapsed .nav-toggle .when-open { display: none; }
html.nav-collapsed .nav-toggle .when-collapsed { display: inline-flex; }
/* Folded by the editor (the toggle at the bottom), or a narrow window: the menu shrinks to icons. */
html.nav-collapsed .sidenav { width: 52px; padding: 12px 0 12px 6px; }
html.nav-collapsed .nav-text, html.nav-collapsed .nav-section { display: none; }
html.nav-collapsed .nav-item { justify-content: center; padding: 8px; }
@media (max-width: 1180px) {
    .sidenav { width: 52px; padding: 12px 0 12px 6px; }
    .nav-text, .nav-section, .nav-language { display: none; }
    .nav-item { justify-content: center; padding: 8px; }
    .nav-toggle { display: none; }
    .brand-text, .topbar-user-text { display: none; }
}

.workspace { flex: 1; min-width: 0; display: flex; height: 100%; overflow: hidden; background: var(--app-bg); }
.workspace > * { overflow: auto; }

.tree-pane {
    width: 300px;
    flex: none;
    background: var(--pane-bg);
    border-right: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    padding: 12px max(2px, calc(12px - var(--scrollbar-size))) 12px 12px;
    overflow: auto;
}
.pane-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.page-tree { width: 100%; }

/* The right padding gives way to the scrollbar's room, so the content keeps its place. */
.content-area { flex: 1; min-width: 0; padding: 24px calc(var(--content-pad-x) - var(--scrollbar-size)) 0 var(--content-pad-x); display: flex; flex-direction: column; }
.content-area > * { flex-shrink: 0; max-width: 1180px; }
.content-area > :last-child:not(.save-bar) { margin-bottom: 24px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.toolbar { margin-bottom: 12px; }
.tabs { margin-top: 8px; }
.message { margin: 8px 0 12px; }

.inline-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }

.form {
    background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: var(--borderRadiusLarge, 6px);
    padding: 20px;
    margin-top: 12px;
}
.grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.grid > div { min-width: 200px; }
.fields-divider { margin: 20px 0 4px; }
.w-100 { flex: 1 1 100%; }
.w-75 { flex: 1 1 calc(75% - 16px); }
.w-66 { flex: 1 1 calc(66% - 16px); }
.w-50 { flex: 1 1 calc(50% - 16px); }
.w-33 { flex: 1 1 calc(33% - 16px); }
.w-25 { flex: 1 1 calc(25% - 16px); }
.align-end { display: flex; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field .help { color: var(--colorNeutralForeground3, #616161); }
.field .multi { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.field img.preview[hidden] { display: none; }
.field img.preview { max-width: 220px; max-height: 120px; border-radius: 4px; object-fit: contain; border: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.field fluent-textarea, .field fluent-text-input, .field fluent-dropdown { width: 100%; }
.code textarea, textarea.code { font-family: Consolas, ui-monospace, monospace; }
.buttons { margin-top: 20px; display: flex; gap: 8px; }

.paragraphs, .paragraphs ol { list-style: none; margin: 12px 0 0; padding: 0; }
.paragraphs ol { padding-left: 24px; margin-top: 0; }
.paragraph {
    display: flex; align-items: center; gap: 10px;
    background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: var(--borderRadiusMedium, 4px);
    padding: 6px 10px; margin-bottom: 6px; min-height: 42px;
}
.paragraphs li.inactive > .paragraph { opacity: .7; }
.paragraph .actions { margin-left: auto; display: inline-flex; gap: 2px; opacity: 0; }
.paragraph:hover .actions, .paragraph:focus-within .actions { opacity: 1; }
.add-paragraph { margin-top: 20px; padding: 16px; }

.login {
    max-width: 380px; margin: 12vh auto; padding: 32px;
    background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: 8px;
    display: flex; flex-direction: column; gap: 16px;
}
.login-logo { margin: 0 0 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.login-logo img { width: 86px; height: 60px; }
.login-logo .wordmark { font-size: 30px; line-height: 1.1; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.login label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.login input.native {
    font: inherit; padding: 6px 10px; min-height: 32px;
    border: 1px solid var(--colorNeutralStroke1, #d1d1d1); border-bottom-color: var(--colorNeutralStrokeAccessible, #616161);
    border-radius: var(--borderRadiusMedium, 4px); background: var(--colorNeutralBackground1, #fff);
}
.login input.native:focus { outline: none; border-bottom: 2px solid var(--colorCompoundBrandStroke, #0f6cbd); }
.login label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.login label.check + .hint { margin: -8px 0 0; }
.login .or { display: flex; align-items: center; gap: 8px; color: var(--colorNeutralForeground3, #616161); font-size: var(--fontSizeBase200, 12px); }
.login .or::before, .login .or::after { content: ""; flex: 1; border-top: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.login .passkey-button { align-self: stretch; }
.login .passkey-error { margin: 0; color: var(--colorPaletteRedForeground1, #bc2f32); }
.passkey-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.passkey-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.login .native-primary {
    font: inherit; font-weight: 600; min-height: 32px; padding: 5px 12px; cursor: pointer;
    color: var(--colorNeutralForegroundOnBrand, #fff); background: var(--colorBrandBackground, #0f6cbd);
    border: 1px solid transparent; border-radius: var(--borderRadiusMedium, 4px);
}
.login .native-primary:hover { background: var(--colorBrandBackgroundHover, #115ea3); }

.sites { padding: 24px calc(var(--content-pad-x) - var(--scrollbar-size)) 24px var(--content-pad-x); flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sites > *, .account > * { max-width: 856px; }
.site-list { padding: 0; }
.site-row { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.site-row:last-child { border-bottom: 0; }
.site-row .site-name { flex: 1; }

.validation-message { color: var(--colorPaletteRedForeground1, #bc2f32); }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/* Rich text: the Radzen HTML editor, sized, labelled and coloured like the Fluent fields around it. */
.richtext { display: flex; flex-direction: column; gap: 4px; }
.richtext-label { font-weight: 600; font-size: var(--fontSizeBase300, 14px); color: var(--colorNeutralForeground1); }
.richtext-editor,
.rz-dialog-wrapper {
    --rz-primary: var(--colorBrandBackground);
    --rz-on-primary: var(--colorNeutralForegroundOnBrand);
    --rz-text-color: var(--colorNeutralForeground1);
    --rz-base-background-color: var(--colorNeutralBackground1);
    --rz-editor-content-background-color: var(--colorNeutralBackground1);
    --rz-editor-toolbar-background-color: var(--colorNeutralBackground3);
    --rz-editor-border: 1px solid var(--colorNeutralStroke1);
    --rz-editor-border-radius: var(--borderRadiusMedium);
    --rz-editor-focus-outline: 2px solid var(--colorCompoundBrandStroke);
    font-family: inherit;
}
.richtext-editor { min-height: 320px; width: 100%; color: var(--colorNeutralForeground1); }
.richtext-editor .rz-html-editor-content { min-height: 260px; color: var(--colorNeutralForeground1); font-family: inherit; }
.richtext-editor .rz-html-editor-content a { color: var(--colorBrandForegroundLink); }
.rz-dialog { background-color: var(--colorNeutralBackground1); color: var(--colorNeutralForeground1); font-family: inherit; }

/* Date and time side by side: the date picker carries a vertical margin the time picker does not, so they line up. */
.datetime .fluent-datepicker { margin-top: 0; margin-bottom: 0; }

/* Blocks of a page (BlockListEditor). */
.blocks { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.blocks .empty { color: var(--colorNeutralForeground3); }
.block {
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge, 6px);
    padding: 8px 16px 16px;
}
.block.collapsed { padding-bottom: 8px; }
.block-head { display: flex; align-items: center; gap: 4px; }
.block-title { font-weight: 600; }
.block-summary { font-weight: 400; color: var(--colorNeutralForeground3); margin-left: 4px; }
.json-head { display: block; margin-top: 24px; }
pre.json { background: var(--colorNeutralBackground3); padding: 12px; border-radius: var(--borderRadiusMedium); overflow: auto; font-size: 12px; }

/* Fields of the new content model. */
.link-field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.link-field legend { font-weight: 600; font-size: var(--fontSizeBase300, 14px); padding: 0; margin-bottom: 4px; }
.link-row { display: flex; gap: 8px; align-items: center; }
.color-field { display: flex; flex-direction: column; gap: 4px; }
.color-field label { font-size: var(--fontSizeBase300, 14px); }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--colorNeutralStroke1); border-radius: var(--borderRadiusMedium); background: none; }
.opacity-row { display: flex; gap: 8px; align-items: center; font-size: var(--fontSizeBase200, 12px); color: var(--colorNeutralForeground2); }
.opacity-row input[type=range] { flex: 1; min-width: 0; }
.block-style-swatch { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 28px; padding: 0 8px; border: 1px solid var(--colorNeutralStroke1); border-radius: var(--borderRadiusMedium); font-size: 12px; }
.block-style-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.block-style-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.block-style-row .block-style-name { font-weight: 600; min-width: 160px; }
.block-style-row .block-style-meta { color: var(--colorNeutralForeground3); font-size: 12px; flex: 1; }
.opacity-value { min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
/* "Afstand over/under" on a block (BlockSpacingInput); greyed while the theme's own space is used. */
.spacing-field { display: flex; flex-direction: column; gap: 4px; }
.spacing-row { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.spacing-row input[type="range"] { flex: 1 1 auto; max-width: 260px; }
.spacing-row input[type="range"].is-default { opacity: 0.45; }
.spacing-value { min-width: 4.5em; font-variant-numeric: tabular-nums; }
.save-bar {
    position: sticky; bottom: 0; z-index: 2;
    display: flex; gap: 8px; align-items: center;
    margin-top: 16px; padding: 12px 0;
    background: var(--app-bg);
    border-top: 1px solid var(--colorNeutralStroke2);
}
/* The page and news editor's bar is pinned to the bottom of the window, also when the page is short. */
.content-area > .save-bar {
    margin: auto calc(var(--scrollbar-size) - var(--content-pad-x)) 0 calc(-1 * var(--content-pad-x));
    padding: 12px calc(var(--content-pad-x) - var(--scrollbar-size)) 12px var(--content-pad-x); max-width: none;
    background: var(--colorNeutralBackground1);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
}
.save-bar .dirty { color: var(--colorPaletteDarkOrangeForeground1, #b45309); }
table.versions { width: 100%; border-collapse: collapse; }
table.versions th, table.versions td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--colorNeutralStroke2); }

/* Media library and image fields. */
.media-field { display: flex; flex-direction: column; gap: 6px; }
.media-field > label { font-size: var(--fontSizeBase300, 14px); }
.media-chosen { display: flex; gap: 12px; align-items: flex-start; }
.media-chosen-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.media-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: var(--borderRadiusMedium); border: 1px solid var(--colorNeutralStroke2); background: var(--colorNeutralBackground3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.media-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.media-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.media-list li { display: flex; align-items: center; gap: 8px; }
.media-list .media-thumb { width: 64px; height: 48px; }
.media-picker { border: 1px solid var(--colorNeutralStroke1); border-radius: var(--borderRadiusLarge, 6px); padding: 12px; background: var(--colorNeutralBackground2); display: flex; flex-direction: column; gap: 8px; }
.media-picker-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.media-picker .empty { color: var(--colorNeutralForeground3); margin: 4px 0; }
.media-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.media-tile { width: 100%; display: flex; flex-direction: column; gap: 4px; align-items: stretch; padding: 4px; border: 1px solid transparent; border-radius: var(--borderRadiusMedium); background: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.media-tile:hover, .media-tile:focus-visible { border-color: var(--colorBrandStroke1, var(--colorCompoundBrandStroke)); background: var(--colorNeutralBackground1); }
.media-tile:disabled { opacity: .4; cursor: default; }
.media-tile .media-thumb { width: 100%; height: 90px; }
.upload-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--colorNeutralStroke1); border-radius: var(--borderRadiusMedium); background: var(--colorNeutralBackground1); cursor: pointer; font-weight: 600; }
.upload-button input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-button:focus-within { outline: 2px solid var(--colorCompoundBrandStroke); }
.media-field .error { color: var(--colorPaletteRedForeground1); }

/* Pages / news switch and the news list in the left pane. */
.section-nav { display: flex; gap: 4px; margin-top: 8px; }
.news-filter { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 8px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 4px; color: inherit; text-decoration: none; }
.news-list a:hover { background: var(--colorNeutralBackground1Hover, #f5f5f5); }
.news-list li.selected a { background: var(--colorBrandBackground2, #ebf3fc); }
.news-list .news-title { font-weight: 600; }
.news-list .news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--colorNeutralForeground3, #616161); font-size: 12px; }
.news-none { color: var(--colorNeutralForeground3, #616161); }
.new-event .datetime { margin: 0; }
.archive-news tr.is-over td { color: var(--colorNeutralForeground3, #616161); }

/* The dates of an event (EventDatesField). */
.event-dates-field { display: flex; flex-direction: column; gap: 8px; }
.event-dates-table { width: 100%; }
.event-dates-table td { vertical-align: bottom; padding: 4px 6px; }
.event-dates-table tr.invalid td { background: var(--colorStatusDangerBackground1, #fdf3f4); }
.event-dates-field .error { color: var(--colorStatusDangerForeground1, #b10e1c); }
.event-dates-repeat { padding: 8px 12px; background: var(--colorNeutralBackground2, #fafafa); border-radius: 4px; }

/* Users, roles and accounts */
.user-pane .list-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 4px; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list a { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--borderRadiusMedium, 4px); color: inherit; text-decoration: none; }
.pick-list a:hover { background: var(--colorNeutralBackground1Hover, #f5f5f5); }
.pick-list li.selected a { background: var(--colorBrandBackground2, #ebf3fc); font-weight: 600; }
.pick-list .sub, .muted { color: var(--colorNeutralForeground3, #616161); font-size: var(--fontSizeBase200, 12px); font-weight: 400; }
.rights { width: 100%; border-collapse: collapse; margin-top: 12px; }
.rights th, .rights td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.rights tbody th { font-weight: 600; width: 160px; padding-top: 12px; }
.rights td { display: flex; flex-wrap: wrap; gap: 0 16px; }
.role-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 16px; }
.role-list .muted { margin-left: 28px; }
.scope-list { list-style: none; margin: 4px 0 0; padding: 4px; max-height: 260px; overflow: auto; border: 1px solid var(--colorNeutralStroke2, #e0e0e0); border-radius: var(--borderRadiusMedium, 4px); }
.log { width: 100%; border-collapse: collapse; font-size: var(--fontSizeBase200, 12px); }
.log th, .log td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0); vertical-align: top; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0); vertical-align: middle; }
.users-table td.actions { white-space: nowrap; }
.danger { --colorBrandBackground: var(--colorPaletteRedBackground3, #c50f1f); --colorBrandBackgroundHover: var(--colorPaletteRedForeground1, #b10e1c); }
.login.wide { max-width: 520px; }
.login .small-link, .account .small-link { font-size: var(--fontSizeBase200, 12px); color: var(--colorBrandForegroundLink, #115ea3); }
.login .hint { font-weight: 400; font-size: var(--fontSizeBase200, 12px); color: var(--colorNeutralForeground3, #616161); }
.login a.as-button { text-align: center; text-decoration: none; display: block; }
.login .native-secondary {
    font: inherit; min-height: 32px; padding: 5px 12px; cursor: pointer; align-self: flex-start;
    color: var(--colorNeutralForeground1, #242424); background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke1, #d1d1d1); border-radius: var(--borderRadiusMedium, 4px);
}
.login .qr { margin: 8px 0; }
.login .qr img { background: #fff; padding: 8px; border-radius: 4px; }
.login code.key, .recovery-codes code { font-family: Consolas, ui-monospace, monospace; font-size: 15px; user-select: all; }
.recovery-codes { columns: 2; padding-left: 20px; margin: 0; }
.setup-steps { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.account { padding: 24px calc(var(--content-pad-x) - var(--scrollbar-size)) 24px var(--content-pad-x); flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.account .login { margin: 0; max-width: 520px; }

/* Forms: the field list and the submissions table. */
.form-fields { list-style: none; margin: 0; padding: 0; }
.form-fields > li { margin-top: 12px; }
.form-field-head { display: flex; align-items: center; gap: 8px; }
.help-text { color: var(--colorNeutralForeground3, #616161); margin: 12px 0 8px; }
.submissions-scroll { overflow-x: auto; }
table.submissions td.value { white-space: pre-wrap; max-width: 320px; overflow-wrap: anywhere; }
table.submissions tr.unread td { font-weight: 600; }

/* Detail screens (page, news, form, user, role): header card, tab bar with icons, process steps and info cards,
   inspired by a classic "record" layout. */
.detail-hero {
    --hero-fg: #fff;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
    padding: 16px 20px 18px; color: var(--hero-fg);
    border-radius: var(--borderRadiusXLarge, 8px) var(--borderRadiusXLarge, 8px) 0 0;
    background:
        radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .18), transparent 45%),
        radial-gradient(circle at 10% 130%, rgba(255, 255, 255, .10), transparent 40%),
        linear-gradient(120deg, #0c2f52 0%, #114a80 55%, #1c6fb5 100%);
}
.detail-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; flex: 1 1 320px; }
.detail-back {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 10px 3px 6px; border-radius: 4px;
    color: var(--hero-fg); text-decoration: none; font-weight: 600; font-size: 13px; background: rgba(0, 0, 0, .25);
}
.detail-back:hover { background: rgba(0, 0, 0, .4); }
.detail-kind { font-size: 13px; opacity: .9; }
.detail-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--hero-fg); overflow-wrap: anywhere; }
.detail-title:focus { outline: none; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-meta { font-size: 13px; opacity: .9; }
.detail-meta a { color: var(--hero-fg); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.detail-hero-side { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; justify-content: flex-end; }
.fact {
    display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; min-height: 44px; max-width: 280px;
    background: rgba(5, 20, 40, .55); border-radius: 6px; backdrop-filter: blur(2px);
}
.fact dd { margin: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact dt { font-size: 11px; opacity: .85; }
.detail-avatar {
    width: 64px; height: 64px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none;
    border: 2px solid rgba(255, 255, 255, .8); background: rgba(5, 20, 40, .35); font-size: 22px; font-weight: 700;
}
.detail-avatar svg { width: 32px !important; height: 32px !important; }

/* The tab bar right under the header card, centred on a light strip; the panels get the page's own spacing. */
.detail-tabs > fluent-tablist, .detail-tabs > div[slot=overflow-header] {
    justify-content: center;
    background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0); border-top: 0;
    border-radius: 0 0 var(--borderRadiusXLarge, 8px) var(--borderRadiusXLarge, 8px);
    padding: 2px 8px;
}
.detail-tabs > .fluent-tab-panel { padding: 16px 0 0; }
.detail-hero + .message, .detail-hero + fluent-message-bar { margin-top: 12px; }
/* Without tabs under it (users, roles) the header card gets round corners all the way. */
.detail-hero.alone { border-radius: var(--borderRadiusXLarge, 8px); margin-bottom: 16px; }

/* Cards: white boxes with a title bar. */
.card {
    background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: var(--borderRadiusLarge, 6px);
}
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 16px; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    background: var(--colorNeutralBackground3, #f5f5f5);
    border-radius: var(--borderRadiusLarge, 6px) var(--borderRadiusLarge, 6px) 0 0;
}
.card-title { font-weight: 600; font-size: 15px; }
/* Foldable cards (Indstillinger > Design): the title is a button; a folded card is only its title bar. */
.fold-card.folded .card-head { border-bottom: 0; border-radius: var(--borderRadiusLarge, 6px); }
.fold-title { font-weight: 600; font-size: 15px; padding-inline-start: 0; }
/* All cards in a grid get the same height: the tallest card sets the height of every row. */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); grid-auto-rows: 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.info-grid > .info-card { height: 100%; margin: 0; }
.form-heading { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
.form-heading:first-child { margin-top: 0; }
.info-rows { margin: 0; }
.info-row {
    display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px;
    padding: 10px 16px; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--colorNeutralForeground2, #424242); }
.info-row dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.info-row dd.empty { color: var(--colorNeutralForeground4, #707070); font-weight: 400; }
.info-row dd a { color: var(--colorBrandForegroundLink, #115ea3); }
.edit-hint {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 16px;
}

/* Process steps on a line. */
.process { padding: 12px 16px 16px; }
.process-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.process-title { font-weight: 600; }
.process-status { color: var(--colorNeutralForeground3, #616161); }
.process-count {
    margin-left: auto; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600;
    background: var(--colorBrandBackground2, #ebf3fc); color: var(--colorBrandForeground1, #0f6cbd);
}
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps), 1fr); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 8px; }
/* The line between the dots: each step draws the half towards the previous step. */
.step + .step::before {
    content: ""; position: absolute; top: 13px; right: 50%; left: -50%; height: 3px;
    background: var(--colorNeutralStroke1, #d1d1d1); z-index: 0;
}
.step.done + .step::before { background: var(--colorPaletteGreenBackground3, #107c10); }
.step-dot {
    position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 6px;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
    background: var(--colorNeutralBackground1, #fff); border: 2px solid var(--colorNeutralStroke1, #d1d1d1); color: var(--colorNeutralForeground3, #616161);
}
.step.done .step-dot { background: var(--colorPaletteGreenBackground3, #107c10); border-color: var(--colorPaletteGreenBackground3, #107c10); }
.step.current .step-dot { border-color: var(--colorBrandBackground, #0f6cbd); color: var(--colorBrandForeground1, #0f6cbd); box-shadow: 0 0 0 4px var(--colorBrandBackground2, #ebf3fc); }
.step-label { font-weight: 600; font-size: 13px; }
.step.done .step-label { color: var(--colorPaletteGreenForeground1, #0e700e); }
.step.current .step-label { color: var(--colorBrandForeground1, #0f6cbd); }
.step-desc { font-size: 12px; color: var(--colorNeutralForeground3, #616161); }
.process-note {
    display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 4px;
    background: var(--colorBrandBackground2, #ebf3fc); color: var(--colorNeutralForeground1, #242424);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Empty states of the list screens ("Vælg en side i træet"). */
.empty-state { display: flex; flex-direction: column; gap: 8px; padding: 24px; margin-top: 8px; }
.pane-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pane-title h2 { margin: 0; font-size: 16px; font-weight: 600; }
.card-body { padding: 16px; }
.section-card { margin-top: 16px; }
.section-card .save-bar { background: var(--colorNeutralBackground1, #fff); }
.pane-head .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A message or an open panel (move, delete) between the header card and the tabs: both get round corners. */
.detail-hero:not(.alone):not(:has(+ .detail-tabs)) { border-radius: var(--borderRadiusXLarge, 8px); }
.detail-hero:not(:has(+ .detail-tabs)) ~ .detail-tabs > fluent-tablist,
.detail-hero:not(:has(+ .detail-tabs)) ~ .detail-tabs > div[slot=overflow-header] {
    border-top: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: var(--borderRadiusXLarge, 8px);
    margin-top: 12px;
}

/* Redirects: long addresses wrap, numbers line up on the right. */
table.redirects td.path { overflow-wrap: anywhere; max-width: 380px; }
table.redirects th.num, table.redirects td.num { text-align: right; }
table.redirects th:first-child, table.redirects td:first-child { padding-left: 16px; }

/* Galleries: the list with cover pictures, the cards on the overview page and the gallery images field. */
.news-list.album-list a { flex-direction: row; align-items: center; gap: 10px; }
.album-thumb { flex: none; width: 56px; height: 42px; object-fit: cover; border-radius: 3px; background: var(--colorNeutralBackground3, #f0f0f0); display: inline-flex; align-items: center; justify-content: center; }
.album-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.album-cards { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.album-cards li { display: flex; flex-direction: column; gap: 4px; }
.album-cards a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.album-cards img, .album-cover-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--colorNeutralBackground3, #f0f0f0); display: flex; align-items: center; justify-content: center; }
.album-cards a:hover .album-card-title { text-decoration: underline; }
.album-card-title { font-weight: 600; }

.gallery-images-field { display: flex; flex-direction: column; gap: 8px; }
.gallery-images { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: gallery; }
.gallery-images li { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: start; padding: 8px; border: 1px solid var(--colorNeutralStroke2, #e0e0e0); border-radius: 6px; background: var(--colorNeutralBackground1, #fff); counter-increment: gallery; }
.gallery-image-thumb { position: relative; }
.gallery-image-thumb::before { content: counter(gallery); position: absolute; top: 4px; left: 4px; min-width: 20px; padding: 0 5px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; text-align: center; }
.gallery-image-thumb .media-thumb { width: 140px; height: 105px; object-fit: cover; border-radius: 4px; }
.gallery-image-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gallery-image-actions { display: flex; flex-direction: column; gap: 2px; }
/* Where a slide's texts lie (SlidesField): nine buttons in a 3 × 3 grid, like the image. */
.position-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.position-grid { display: grid; grid-template-columns: repeat(3, 22px); grid-auto-rows: 16px; gap: 3px; padding: 4px; border-radius: 4px; background: var(--colorNeutralBackground3, #f0f0f0); }
.position-grid button { padding: 0; border: 1px solid var(--colorNeutralStroke1, #c7c7c7); border-radius: 2px; background: var(--colorNeutralBackground1, #fff); cursor: pointer; }
.position-grid button:hover:not(:disabled) { border-color: var(--colorBrandStroke1, #0f6cbd); }
.position-grid button.on { background: var(--colorBrandBackground, #0f6cbd); border-color: var(--colorBrandBackground, #0f6cbd); }
.position-grid button:focus-visible { outline: 2px solid var(--colorStrokeFocus2, #000); outline-offset: 1px; }
.position-grid button:disabled { cursor: default; }
@media (max-width: 700px) {
    .gallery-images li { grid-template-columns: 1fr; }
    .gallery-image-actions { flex-direction: row; }
}

/* The image editor: a full-window dialog with the tools on the left and the picture on the right. */
.image-editor { position: fixed; inset: 24px; z-index: 1000; display: flex; flex-direction: column; background: var(--colorNeutralBackground1, #fff); border-radius: 8px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), 0 8px 32px rgba(0, 0, 0, .3); overflow: hidden; }
.image-editor-head, .image-editor-actions { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.image-editor-actions { border-bottom: 0; border-top: 1px solid var(--colorNeutralStroke2, #e0e0e0); flex-wrap: wrap; }
.image-editor-body { flex: 1; display: flex; min-height: 0; }
.image-editor-tools { width: 270px; flex: none; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
.image-editor-tools section { display: flex; flex-direction: column; gap: 8px; }
.image-editor-tools h4 { margin: 0; font-size: 13px; }
.image-editor-tools .tool-row { display: flex; flex-wrap: wrap; gap: 6px; }
.image-editor-tools label.range { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 13px; }
.image-editor-tools label.range input { grid-column: 1 / -1; width: 100%; }
.image-editor-tools label.range span { color: var(--colorNeutralForeground3, #616161); font-variant-numeric: tabular-nums; }
.image-editor-stage { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; user-select: none; touch-action: none;
    background: repeating-conic-gradient(#e8e8e8 0 25%, #f6f6f6 0 50%) 0 0 / 20px 20px; }
.image-editor-stage img { max-width: 100%; max-height: 100%; display: block; cursor: crosshair; }
.image-editor-stage .crop-box { position: absolute; box-sizing: border-box; border: 2px solid #fff; outline: 1px solid rgba(0, 0, 0, .5); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); cursor: move; }
.image-editor-stage .crop-box:focus-visible { outline: 2px solid var(--colorBrandStroke1, #0f6cbd); }
.image-editor-stage .crop-handle { position: absolute; width: 14px; height: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, .6); border-radius: 2px; }
.image-editor-stage .crop-handle.nw { left: -8px; top: -8px; cursor: nwse-resize; }
.image-editor-stage .crop-handle.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.image-editor-stage .crop-handle.sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.image-editor-stage .crop-handle.se { right: -8px; bottom: -8px; cursor: nwse-resize; }
@media (max-width: 800px) {
    .image-editor { inset: 0; border-radius: 0; }
    .image-editor-body { flex-direction: column; }
    .image-editor-tools { width: auto; max-height: 40%; border-right: 0; border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0); }
}
.image-editor-stage .focus-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(0, 0, 0, .6); pointer-events: none; }
.image-editor-stage .focus-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.image-editor-stage.picking-focus img { cursor: copy; }

/* Indstillinger > Design */
.design-column { border: 1px solid var(--neutral-stroke-rest, #d6d6d6); border-radius: 8px; padding: 12px 16px 16px; margin: 16px 0 0; }
.design-column legend { font-weight: 600; padding: 0 6px; }
.design-warning { display: block; margin-top: 8px; color: var(--colorPaletteDarkOrangeForeground1, #bc4b09); font-size: var(--fontSizeBase200, 12px); }
.design-links { margin-top: 8px; }
.design-link { align-items: flex-start; }

/* News: the archive type on an archive page, and the type's fields on an article (Indstillinger > Arkivtyper). */
.archive-type { margin-bottom: 16px; }
.archive-fields-title { display: block; margin-top: 24px; }
.archive-field-heading { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
