/* Line tool (/line-tool): the stage (one canvas with the photo and the lines) and the few controls of its own.
   Buttons, sliders, palettes and colours come from the app kit and the shared landing controls (docs/app-kit.md).
   Loaded only on this app's page (StylePaths in SeoFilterDemoCatalog.LineTool.cs). */

.line-tool-landing-app {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.filter-landing-stage.line-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    overflow: hidden;
    box-shadow: none;
    background: #eef1f5;
}

.dark .filter-landing-stage.line-stage {
    background: #161a22;
}

.line-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    /* Lines are drawn and dragged on the canvas, so it handles touch itself. */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
    outline: none;
}

.line-canvas:focus-visible {
    box-shadow: 0 0 0 3px var(--ak-accent, #2563eb);
}

.line-canvas.is-dragging {
    cursor: move;
}

body.filter-app-mode .line-tool-landing-app > .filter-landing-stage.line-stage {
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

body.filter-app-mode .line-canvas {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.line-file-input {
    display: none;
}

.line-status {
    margin: 0;
    min-height: 1.4em;
    font-size: 0.875rem;
    color: var(--ak-muted, #64748b);
    font-variant-numeric: tabular-nums;
}

.line-actions [hidden] {
    display: none;
}

/* Curved shows only for polylines. */
.line-controls label[hidden] {
    display: none;
}

/* CJK labels never wrap before a prolonged sound mark or small kana (コピ / ー). */
.line-controls {
    line-break: strict;
}
