:root {
    --canvas-bg: #ffffff;
    --canvas-text: #111827;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--canvas-bg);
    color: var(--canvas-text);
    font-family: "Segoe UI", Arial, sans-serif;
}

.canvas-surface {
    min-height: 100vh;
    width: 100%;
}

.canvas {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--canvas-bg);
    position: relative;
    overflow: hidden;
}

.canvas-frame {
    width: 100%;
    position: relative;
}
.canvas-frame:not(:last-child) {
    margin-bottom: var(--image-gap, 24px);
}

.canvas-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.canvas-copy {
    width: min(100vw, 1100px);
    margin: 0 auto 32px auto;
    padding: 0 20px;
}

.canvas-copy h1 {
    margin: 0 0 12px;
    font-size: 32px;
    letter-spacing: 0.3px;
}

.canvas-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.canvas-text {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0;
    background: transparent;
    color: #f8fafc;
    border-radius: 0;
    border: none;
    max-width: min(480px, 85vw);
    font-size: 16px;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.editor-shell .canvas-text {
    pointer-events: auto;
    cursor: move;
}
.canvas-shape-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.editor-shell .canvas-shape-layer {
    pointer-events: auto;
}
.canvas-shape {
    width: 100%;
    height: 100%;
}
.canvas-shape polygon,
.canvas-shape polyline {
    vector-effect: non-scaling-stroke;
}
.editor-shell .canvas-shape polygon,
.editor-shell .canvas-shape polyline {
    pointer-events: none;
}
.canvas-shape .shape-handle {
    fill: #10b981;
    stroke: #064e3b;
    stroke-width: 1;
    cursor: grab;
    pointer-events: auto;
}
.canvas-shape .shape-handle.is-active {
    cursor: grabbing;
    fill: #fbbf24;
    stroke: #b45309;
}
