#hunter-canvas-app {
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.hsc-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: max-content;
    min-width: min(100%, 2000px);
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(242, 242, 242, 0.96);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.hsc-toolbar label { display: flex; align-items: center; gap: 6px; }
.hsc-toolbar button {
    padding: 8px 14px;
    border: 1px solid #777;
    border-radius: 6px;
    background: #fff;
    color: #111;
    cursor: pointer;
}
.hsc-toolbar button:hover { background: #e8e8e8; }
.hsc-toolbar button.is-active { background: #222; color: #fff; border-color: #222; }

#hunter-canvas-app .hsc-canvas-wrap {
    width: 2000px !important;
    max-width: none !important;
    height: 2000px !important;
    min-height: 0 !important;
    overflow: visible !important;
    border: 2px solid #222;
    background-color: #fff;
    background-image: linear-gradient(#ddd 1px, transparent 1px), linear-gradient(90deg, #ddd 1px, transparent 1px);
    background-size: 40px 40px;
    box-sizing: border-box !important;
    touch-action: none;
}

#hunter-canvas-app #hsc-canvas {
    display: block !important;
    width: 2000px !important;
    height: 2000px !important;
    min-width: 2000px !important;
    min-height: 2000px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: crosshair;
    object-fit: none !important;
    touch-action: none;
}

#hunter-canvas-app #hsc-canvas[data-tool="fill"] { cursor: cell; }
#hunter-canvas-app #hsc-canvas[data-tool="delete"] { cursor: not-allowed; }
.wp-block-shortcode:has(#hunter-canvas-app) { width: 2000px !important; max-width: none !important; overflow: visible !important; }
html, body { overflow-x: auto !important; }
body:has(#hunter-canvas-app),
body:has(#hunter-canvas-app) main,
body:has(#hunter-canvas-app) article,
body:has(#hunter-canvas-app) .entry-content { max-width: none !important; overflow: visible !important; }

@media (max-width: 700px) {
    #hunter-canvas-app { padding: 0 8px !important; }
    .hsc-toolbar { gap: 8px; padding: 8px; }
    .hsc-toolbar button { padding: 7px 10px; }
}
