/* A reserved toolbar row keeps instructions off the drawing surface. */
.drawing-guide {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 36px;
    padding: 0.2rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--accent-soft);
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.5;
}

.landing-overlay.hidden ~ .drawing-guide:not([hidden]) {
    display: flex;
}

.drawing-guide-context {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.drawing-guide-icon {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 0.875rem;
}

.drawing-guide-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.drawing-guide-close:hover {
    background: var(--accent-soft-2);
    color: var(--text);
}

.drawing-guide-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.helper-notice {
    width: min(380px, calc(100% - 2rem));
    margin: auto;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.helper-notice::backdrop {
    background: rgba(17, 24, 39, 0.35);
}

.helper-notice h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.helper-notice p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.helper-notice form {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.drawing-guide-tool {
    flex-shrink: 0;
    color: var(--text);
    font-weight: 600;
}

.drawing-guide-shortcuts {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.drawing-guide-shortcuts kbd {
    font: inherit;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 1000px), (hover: none) and (pointer: coarse) {
    .drawing-guide-shortcuts {
        display: none;
    }
}

@media (max-width: 768px) {
    .drawing-guide {
        min-height: 52px;
        padding: 0.35rem 0.6rem;
    }

    .drawing-guide-context {
        gap: 0.5rem;
    }

    .drawing-guide-close {
        width: 36px;
        height: 36px;
    }
}
