/* Composition overlay page styles. Theme tokens only. The guide lines themselves are
   drawn on the canvas by the controller using a user-picked color, not via CSS. */

.composition-overlay .tool-title {
    margin-bottom: 0.25rem;
}

.composition-overlay .tool-intro {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* --- Drop zone --------------------------------------------------------- */

.co-drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    padding: 1.25rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.co-drop:hover,
.co-drop:focus-within,
.co-drop.is-dragging {
    border-color: var(--accent);
    background: var(--accent-weak);
}

.co-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.co-drop-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    pointer-events: none;
}

.co-drop-text strong {
    color: var(--text);
    font-size: 1.05rem;
}

/* --- Controls ---------------------------------------------------------- */

.co-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.co-guides {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* A pressed guide reuses the accent so it reads as "on". */
.co-toggle[aria-pressed='true'],
.co-toggle.is-active {
    border-color: var(--accent);
    background: var(--accent-weak);
    color: var(--accent);
}

.co-options {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.co-option {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.co-option__label {
    font-size: 0.85rem;
    color: var(--muted);
}

.co-color {
    width: 3rem;
    height: 2.25rem;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
}

.co-spiral-corner {
    min-width: 9rem;
}

.co-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

@media (max-width: 560px) {
    .co-actions {
        margin-left: 0;
    }
}

/* --- Canvas ------------------------------------------------------------ */

.co-canvas-wrap {
    margin-top: 1.5rem;
}

.co-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}
