


.canvas-container {
    border: 2px solid #EFEFEF;
    border-radius: 12px;
    box-sizing: border-box;
}

#graph-canvas {
    background: white;
    font-family: "Baloo 2", ui-sans-serif, system-ui, sans-serif;
}

.grid-line {
    
    stroke: #d9d9d9;
    stroke-opacity: 0.45;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.06));
}


.axis-line {
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.10));
}

.axis-tick {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.10));
}

.tick-text {
    font-size: 12px;
    font-family: "Baloo 2", ui-sans-serif, system-ui, sans-serif;
    
}

.axis-label {
    font-size: 14px;
    font-weight: 500;
    font-family: "Baloo 2", ui-sans-serif, system-ui, sans-serif;
    
}


.axis-label--interactive {
    cursor: move;
    user-select: none;
}

.label-edit-hit {
    position: absolute;
    background: transparent;
    pointer-events: auto;
    cursor: text;
}

.axis-label-overlay__box {
    position: absolute;
    border: 1.5px dashed #000000;
    border-radius: 12px;
    pointer-events: none;
    box-sizing: border-box;
}

.axis-label-overlay__handle {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 2px solid #000000;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.axis-label-overlay__handle:active {
    cursor: grabbing;
}

.axis-label-overlay__handle .hgi-stroke {
    font-size: 1.05rem;
    line-height: 1;
    color: #000000;
}

.watermark {
    font-size: 14px;
    fill: rgba(49, 87, 98, 0.35);
    font-weight: 500;
}


.graph-title-row {
    font-family: var(--font-sans);
}

.graph-title-wrapper {
    font-family: var(--font-sans);
    align-items: center;
    position: relative;
}

.graph-title-edit-btn {
    align-self: center;
    line-height: 0;
    padding: 0.2em 0.3em;
    transition: background-color 250ms ease;
}


.graph-title-center {
    display: flex;
    align-items: center;
    overflow: visible;
    margin-left: calc(0.25rem + 1.25em); 
}

.graph-title-text {
    font-size: 0.9rem;
    line-height: 0.95;
    color: #000000;
    user-select: none;
    pointer-events: auto;
    cursor: text;
    text-transform: uppercase;
    outline: none;
    min-width: 1ch;
    padding: 5px 8px;
    margin: 0 -8px;
    min-height: 1.2em;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    border: 2px solid transparent;
}

@media (min-width: 480px) {
    .graph-title-text {
        font-size: 1rem;
    }
}

@media (min-width: 640px) {
    .graph-title-text {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .graph-title-text {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .graph-title-text {
        font-size: 1.3rem;
    }
}


.graph-title-text.is-editing {
    pointer-events: auto;
    user-select: text;
    background-color: var(--control-bg);
    border: 2px solid var(--control-border);
    border-radius: 8px;
    caret-color: #000000;
    line-height: 0.95;
}

.graph-title-text.is-editing:empty::before {
    content: attr(data-placeholder);
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.graph-title-bar__icon {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

@media (min-width: 480px) {
    .graph-title-bar__icon {
        font-size: 1rem;
    }
}

@media (min-width: 640px) {
    .graph-title-bar__icon {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .graph-title-bar__icon {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .graph-title-bar__icon {
        font-size: 1.3rem;
    }
}


.graph-title-toast {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, calc(-100% - 10px));
    z-index: 95;

    max-width: min(520px, calc(100% - 24px));
    padding: 8px 10px;
    border-radius: 12px;
    border: none;

    background: #dd2d4a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-align: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.graph-title-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 14px));
}


.canvas-save-btn {
    background-color: var(--text-editor-accent-highlight);
    transition: background-color 250ms ease;
}

.canvas-save-btn:hover {
    background-color: rgba(175, 153, 255, 1) !important;
}

.canvas-save-btn .hgi {
    font-size: 1.1rem;
}

.canvas-save-btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

