/* Lines tool (/lines-tool): the stage (one canvas with the diagram) 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.LinesTool.cs). */

.lines-tool-landing-app {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.filter-landing-stage.lines-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.lines-stage {
    background: #161a22;
}

.lines-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    /* Boxes and 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;
}

.lines-canvas:focus-visible {
    box-shadow: 0 0 0 3px var(--ak-accent, #2563eb);
}

.lines-canvas.is-dragging {
    cursor: move;
}

body.filter-app-mode .lines-tool-landing-app > .filter-landing-stage.lines-stage {
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

body.filter-app-mode .lines-canvas {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.lines-file-input {
    display: none;
}

.lines-status {
    margin: 0;
    min-height: 1.4em;
    font-size: 0.875rem;
    color: var(--ak-muted, #64748b);
    font-variant-numeric: tabular-nums;
}

/* The text and label fields show only for a selected box or line. */
.lines-controls [hidden] {
    display: none;
}

/* CJK labels never wrap before a prolonged sound mark or small kana (コピ / ー). */
.lines-controls {
    line-break: strict;
}
