.disp-hide { display: none; }

/* ---- title / description ---- */

.qr-title {
    margin-bottom: 0.25rem;
}

.qr-title > div {
    font-size: 1.5rem;
    font-weight: 600;
}

.qr-description {
    max-width: 680px;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

/* ---- buttons ---- */

.qr-btn {
    padding: 0.38rem 0.9rem;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.qr-btn-primary {
    background: #1a73e8;
    color: #fff;
    border: 1px solid #1a73e8;
}

.qr-btn-primary:hover {
    background: #1558b0;
    border-color: #1558b0;
}

.qr-btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.qr-btn-secondary:hover {
    background: #f5f5f5;
}

/* ---- form ---- */

.qr-form {
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    max-width: 680px;
    margin-bottom: 1.25rem;
}

.qr-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.qr-form-row:last-child {
    margin-bottom: 0;
}

.qr-form-row--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    align-items: flex-end;
}

.qr-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.qr-form-row label,
.qr-form-field label {
    font-size: 0.82rem;
    color: #555;
}

.qr-textarea {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.92rem;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.qr-textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
}

#qr-ec {
    padding: 0.3rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.92rem;
    background: #fff;
}

#qr-size {
    width: 140px;
    cursor: pointer;
}

.qr-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #777;
    max-width: 340px;
    line-height: 1.45;
}

.qr-error {
    font-size: 0.85rem;
    color: #c62828;
    margin-top: 0.4rem;
}

/* ---- section label ---- */

.qr-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

/* ---- preview ---- */

.qr-preview-wrap {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-canvas {
    display: block;
    image-rendering: pixelated;
    max-width: 100%;
}

.qr-placeholder {
    color: #bbb;
    font-style: italic;
    font-size: 0.9rem;
}

/* ---- notice ---- */

.qr-notice {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 0.6rem;
}

/* ---- actions ---- */

.qr-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 2rem;
}

.qr-copy-confirm {
    font-size: 0.85rem;
    color: #2e7d32;
}

/* ---- mobile ---- */

@media (max-width: 600px) {
    .qr-form-row--inline {
        flex-direction: column;
    }

    #qr-size {
        width: 100%;
    }
}
