:root[data-ui-theme="white"] {
  color-scheme: light;
  --ui-base: #f5f6f8;
  --ui-surface: #ffffff;
  --ui-raised: #eef0f3;
  --ui-hover: #dfe3e9;
  --ui-border: #cbd0d8;
  --ui-text: #24282e;
  --ui-muted: #59616d;
}
:root[data-ui-theme="cream"] {
  color-scheme: light;
  --ui-base: #eee6d8;
  --ui-surface: #faf5eb;
  --ui-raised: #f2eadc;
  --ui-hover: #e4d9c7;
  --ui-border: #cfc2ac;
  --ui-text: #332f29;
  --ui-muted: #665e50;
}
:root:is([data-ui-theme="white"],[data-ui-theme="cream"]) { --accent-ink: #245d9e; }
:root:is([data-ui-theme="white"],[data-ui-theme="cream"])[data-accent="Rot"] { --accent-ink: #a62f3b; }
:root:is([data-ui-theme="white"],[data-ui-theme="cream"])[data-accent="Gelb"] { --accent-ink: #765409; }
:root:is([data-ui-theme="white"],[data-ui-theme="cream"])[data-accent="Grün"] { --accent-ink: #396221; }
:root:is([data-ui-theme="white"],[data-ui-theme="cream"])[data-accent="Violett"] { --accent-ink: #7041a3; }
.ui-theme-control { display:flex;flex-direction:column;gap:8px;padding:12px 9px;font-size:11px;color:var(--ui-muted,#a7adb5); }
.ui-theme-control select { font-size:13px;height:40px; }
.compact-editor .ui-theme-control { padding:0;margin:0 0 18px; }
:root:not([data-ui-theme="dark"]) .saved-status.error,
:root:not([data-ui-theme="dark"]) .iconify-status.error,
:root:not([data-ui-theme="dark"]) .danger { color:#a03128; }
:root:not([data-ui-theme="dark"]) .danger:hover { background:#f8e3df; }
:root:not([data-ui-theme="dark"]) .toast.error { background:#fff0e6;color:#873b17;border-color:#c18b67; }
:root:not([data-ui-theme="dark"]) .table-warning { color:#87520c; }
:root:not([data-ui-theme="dark"]) .primary { color:#1b2534; }
:root:not([data-ui-theme="dark"]) .topbar { background:var(--ui-surface); }
.crop-dialog{width:820px;max-height:92dvh;overflow:auto}
.crop-preview{display:flex;justify-content:center;background:var(--ui-raised,#1c1d1f);border-radius:6px;padding:8px}
.crop-preview canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}
.crop-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}
.crop-fields label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--ui-muted,#a7adb5)}
.crop-fields input{width:100%;padding:0 10px}
.crop-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.offslide-element{background:var(--ui-surface,#292b2e);color:var(--ui-text,#e9e9eb);border:2px dashed var(--accent-edge);font-size:18px;cursor:move}
#alignmentGuides{position:absolute;inset:0;pointer-events:none;z-index:5}
.alignment-guide{position:absolute;background:#d936e8;pointer-events:none;box-shadow:0 0 1px #ffffff80}
.clipped-selection{border-style:dashed}
@media(max-width:600px){.crop-dialog{padding:18px}.crop-fields{grid-template-columns:1fr 1fr}.crop-actions .button{min-height:44px}}
