{"version":3,"sourceRoot":null,"mappings":"AACA,kBAIE,ovBA6BE,kDAIA,uLASA,+JAWA,yJAOA,iEAIA,4CAGA,kDAGA,wGAKA,2CAGA,oHASF,uCAGE,wBAGA,0BAKF,uCACE,4CAKF,+BACE,+CAKF,8BACE,uCAGE","sources":["dist/components/visual-editor.css"],"sourcesContent":["/* ── components/visual-editor/visual-editor.css ── */\n@layer components {\n  /* the editor: a framed box whose canvas is GrapesJS's. GrapesJS reads its chrome colours from --gjs-* custom\n     properties, so the theme reaches the selection outline, the toolbar and the drop placeholder through them; its\n     own sheet is unlayered, so the few literal colours it sets are overridden with !important (as MathLive's). */\n  .visual-editor {\n    --gjs-canvas-top: 0px;\n    --gjs-left-width: 0px;\n    --gjs-main-font: var(--font-sans);\n    --gjs-font-size: 0.75rem;\n    --gjs-color-blue: var(--primary);\n    --gjs-color-highlight: var(--ring);\n    --gjs-placeholder-background-color: var(--primary);\n    --gjs-primary-color: var(--card);\n    --gjs-secondary-color: var(--card-foreground);\n    --gjs-tertiary-color: var(--primary);\n    --gjs-quaternary-color: var(--ring);\n    --gjs-main-color: var(--card);\n    --gjs-font-color: var(--card-foreground);\n    --gjs-font-color-active: var(--primary);\n    --gjs-animation-duration: 0.15s;\n\n    position: relative;\n    display: block;\n    block-size: var(--visual-editor-height, 32rem);\n    min-block-size: 12rem;\n    inline-size: 100%;\n    overflow: hidden;\n    background: var(--muted);\n    color: var(--foreground);\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n\n    /* the canvas fills the box; before the engine is ready, the box shows a quiet placeholder */\n    & > .visual-editor-canvas {\n      position: absolute;\n      inset: 0;\n    }\n    &:not([data-ready]):not([data-error])::before {\n      content: \"Loading the editor...\";\n      position: absolute;\n      inset: 0;\n      display: grid;\n      place-items: center;\n      color: var(--muted-foreground);\n      font-size: 0.875rem;\n    }\n    &[data-error]::before {\n      content: \"The editor could not load.\";\n      position: absolute;\n      inset: 0;\n      display: grid;\n      place-items: center;\n      color: var(--destructive);\n      font-size: 0.875rem;\n    }\n\n    /* readonly: the canvas is inert (set by the runtime); the selection chrome goes */\n    &[data-readonly] .gjs-toolbar,\n    &[data-readonly] .gjs-badge,\n    &[data-readonly] .gjs-highlighter,\n    &[data-readonly] .gjs-highlighter-sel {\n      display: none !important;\n    }\n\n    & .gjs-editor,\n    & .gjs-cv-canvas {\n      background: var(--muted) !important;\n    }\n    & .gjs-cv-canvas {\n      inline-size: 100% !important;\n    }\n    & .gjs-frame-wrapper {\n      background: var(--background);\n    }\n    & .gjs-toolbar {\n      color: var(--primary-foreground) !important;\n      border-radius: var(--radius-sm);\n      overflow: hidden;\n    }\n    & .gjs-toolbar-item {\n      padding: 0.25rem 0.375rem;\n    }\n    & .gjs-badge {\n      color: var(--primary-foreground) !important;\n      border-radius: var(--radius-sm);\n      font-family: var(--font-mono);\n    }\n  }\n\n  /* blocks: any element with data-visual-editor-block and a <template> of markup - drag it into the canvas or click\n     it; the template stays hidden */\n  [data-visual-editor-block] {\n    cursor: grab;\n\n    & > template {\n      display: none;\n    }\n    &:active {\n      cursor: grabbing;\n    }\n  }\n\n  @media (prefers-reduced-motion: reduce) {\n    .visual-editor {\n      --gjs-animation-duration: 0s;\n    }\n  }\n\n  @media (prefers-contrast: more) {\n    .visual-editor {\n      border-color: var(--foreground);\n    }\n  }\n\n  @media (forced-colors: active) {\n    .visual-editor {\n      border-color: CanvasText;\n\n      & .gjs-toolbar,\n      & .gjs-badge {\n        forced-color-adjust: none;\n        background: Highlight !important;\n        color: HighlightText !important;\n      }\n    }\n  }\n}\n"],"names":[]}