        /* Preview celular WhatsApp */
        .wpp-phone-frame {
            background: linear-gradient(145deg, #0b141a 0%, #111b21 100%);
            border-radius: 2.25rem;
            padding: 0.65rem;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
            max-width: 320px;
            margin-left: auto;
            margin-right: auto;
        }
        .wpp-phone-notch {
            width: 96px;
            height: 22px;
            background: #0b141a;
            border-radius: 0 0 14px 14px;
            margin: 0 auto 0.5rem;
        }
        .wpp-screen {
            background: #0b141a;
            border-radius: 1.5rem;
            overflow: hidden;
            min-height: 420px;
            display: flex;
            flex-direction: column;
        }
        .wpp-header-bar {
            background: #1f2c34;
            padding: 0.65rem 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .wpp-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #25d366;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.1rem;
        }
        .wpp-chat-bg {
            flex: 1;
            background: #0b141a url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a262d' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            padding: 0.75rem;
        }
        .wpp-bubble {
            background: #005c4b;
            color: #e9edef;
            border-radius: 0.5rem 0.5rem 0 0.5rem;
            padding: 0.45rem 0.65rem 0.35rem;
            max-width: 92%;
            margin-left: auto;
            font-size: 0.875rem;
            line-height: 1.45;
            word-break: break-word;
            box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
        }
        .wpp-bubble-time {
            text-align: right;
            font-size: 0.65rem;
            color: rgba(233,237,239,0.55);
            margin-top: 0.15rem;
        }
        /* Abas segmentadas — modo URL / WhatsApp */
        .shorten-mode-tabs {
            display: flex;
            width: 100%;
            max-width: 42rem;
            margin-left: auto;
            margin-right: auto;
            padding: 0.35rem;
            gap: 0.25rem;
            border-radius: 1rem;
            background: linear-gradient(180deg, #eef0f4 0%, #e5e7eb 100%);
            border: 1px solid #d1d5db;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
        }
        @media (min-width: 640px) {
            .shorten-mode-tabs {
                max-width: 44rem;
                padding: 0.4rem;
                gap: 0.35rem;
            }
        }
        .shorten-mode-tab {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.7rem 0.75rem;
            border: none;
            border-radius: 0.75rem;
            font-size: 0.8125rem;
            font-weight: 600;
            font-family: inherit;
            color: #6b7280;
            background: transparent;
            cursor: pointer;
            transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
        }
        @media (min-width: 640px) {
            .shorten-mode-tab {
                padding: 0.85rem 1.25rem;
                font-size: 0.9375rem;
                gap: 0.65rem;
            }
        }
        .shorten-mode-tab:hover:not(.shorten-mode-tab--active-url):not(.shorten-mode-tab--active-wpp) {
            color: #374151;
            background: rgba(255,255,255,0.45);
        }
        .shorten-mode-tab:focus-visible {
            outline: 2px solid #1d1b45;
            outline-offset: 2px;
        }
        .shorten-mode-tab--active-url {
            color: #1d1b45;
            background: #fff;
            box-shadow: 0 2px 10px rgba(29, 27, 69, 0.12), 0 0 0 1px rgba(29, 27, 69, 0.1);
        }
        .shorten-mode-tab--active-wpp {
            color: #065f46;
            background: #fff;
            box-shadow: 0 2px 12px rgba(37, 211, 102, 0.2), 0 0 0 1px rgba(37, 211, 102, 0.35);
        }
        .shorten-mode-tab .tab-icon-url { color: #4f46e5; }
        .shorten-mode-tab .tab-icon-wpp { color: #25d366; }
        .shorten-mode-tab--active-url .tab-icon-url { color: #1d1b45; }
        .shorten-mode-tab--active-wpp .tab-icon-wpp { color: #16a34a; }
        /* Modal emojis */
        .wpp-emoji-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(4px);
            z-index: 7000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }
        .wpp-emoji-modal-backdrop.is-open {
            opacity: 1;
            pointer-events: auto;
        }
        .wpp-emoji-modal-dialog {
            background: #fff;
            border-radius: 1rem;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            max-width: 420px;
            width: 100%;
            max-height: min(85vh, 560px);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #e5e7eb;
        }
        .wpp-emoji-modal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1rem;
            border-bottom: 1px solid #e5e7eb;
            background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
        }
        .wpp-emoji-modal-head h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            color: #111827;
        }
        #wpp-emoji-picker-host {
            min-height: 320px;
            max-height: min(60vh, 440px);
            overflow: auto;
        }
        #wpp-emoji-picker-host emoji-picker {
            width: 100%;
            height: 100%;
            min-height: 320px;
            --emoji-size: 1.35rem;
        }
        /* Painel formulário WhatsApp — coluna esquerda */
        .wpp-form-panel {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: linear-gradient(165deg, #fafbfc 0%, #ffffff 45%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 1.125rem;
            padding: 1.35rem 1.25rem 1.5rem;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 24px -4px rgba(15, 23, 42, 0.06);
        }
        @media (min-width: 640px) {
            .wpp-form-panel {
                padding: 1.5rem 1.5rem 1.65rem;
            }
        }
        .wpp-form-panel__head {
            padding-bottom: 1rem;
            margin-bottom: 1rem;
            border-bottom: 1px solid #eef2f7;
        }
        .wpp-form-panel__title {
            font-size: 1.125rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }
        .wpp-form-panel__title-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
            background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%);
            color: #15803d;
            box-shadow: 0 1px 2px rgba(22, 163, 74, 0.15);
        }
        .wpp-form-panel__lead {
            margin: 0.5rem 0 0;
            font-size: 0.875rem;
            line-height: 1.5;
            color: #64748b;
        }
        .wpp-field {
            margin-bottom: 1.25rem;
        }
        .wpp-field:last-of-type {
            margin-bottom: 0;
        }
        .wpp-field label.wpp-field__label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 0.45rem;
            letter-spacing: 0.01em;
        }
        .wpp-field__hint {
            margin-top: 0.4rem;
            font-size: 0.75rem;
            line-height: 1.4;
            color: #94a3b8;
        }
        .wpp-phone-row {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }
        @media (min-width: 640px) {
            .wpp-phone-row {
                flex-direction: row;
                align-items: stretch;
                gap: 0.5rem;
            }
        }
        .wpp-phone-country {
            display: flex;
            align-items: stretch;
            gap: 0.5rem;
            width: 100%;
        }
        .wpp-flag-display {
            flex-shrink: 0;
            width: 3rem;
            height: 2.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0.15rem;
            background: #f1f5f9;
            border-radius: 0.75rem;
            user-select: none;
            overflow: hidden;
        }
        .wpp-flag-display img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0.35rem;
        }
        .wpp-country-select {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            padding: 0.65rem 2rem 0.65rem 0.75rem;
            font-size: 0.8125rem;
            font-weight: 500;
            color: #1e293b;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background-color: #fff;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
            background-size: 1rem;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        @media (min-width: 640px) {
            .wpp-phone-country {
                width: auto;
                max-width: 13.5rem;
                flex-shrink: 0;
            }
            .wpp-country-select {
                max-width: 10.25rem;
                min-width: 8.5rem;
            }
        }
        .wpp-country-select:hover {
            border-color: #cbd5e1;
        }
        .wpp-country-select:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .wpp-phone-local-input {
            flex: 1;
            min-width: 0;
            width: 100%;
            padding: 0.65rem 1rem;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            color: #0f172a;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fff;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        .wpp-phone-local-input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }
        .wpp-phone-local-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .wpp-message-wrap textarea {
            width: 100%;
            padding: 0.85rem 1rem;
            font-size: 0.9375rem;
            line-height: 1.5;
            color: #1e293b;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fff;
            resize: vertical;
            min-height: 7.5rem;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        .wpp-message-wrap textarea:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .wpp-message-actions {
            display: flex;
            justify-content: flex-start;
            margin-top: 0.5rem;
        }
        .wpp-emoji-icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            padding: 0;
            font-size: 1.35rem;
            line-height: 1;
            border: 2px solid #e2e8f0;
            border-radius: 0.65rem;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            color: inherit;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s, transform 0.1s;
            font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
        }
        .wpp-emoji-icon-btn:hover {
            border-color: #cbd5e1;
            background: #f1f5f9;
        }
        .wpp-emoji-icon-btn:focus-visible {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .wpp-emoji-icon-btn:active {
            transform: scale(0.96);
        }
        .wpp-field--domain {
            margin-top: 0.35rem;
            padding-top: 1.15rem;
            border-top: 1px dashed #e2e8f0;
        }
        .wpp-field--domain .wpp-domain-row {
            display: flex;
            align-items: stretch;
            gap: 0.5rem;
        }
        .wpp-field--domain select {
            flex: 1;
            min-width: 0;
            padding: 0.85rem 1rem;
            font-size: 0.9375rem;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fff;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        .wpp-field--domain select:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        /* Painel modo URL — encurtador clássico */
        .url-form-panel {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            max-width: 40rem;
            margin-left: auto;
            margin-right: auto;
            background: linear-gradient(165deg, #fafbfc 0%, #ffffff 48%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 1.125rem;
            padding: 1.35rem 1.25rem 1.5rem;
            box-shadow:
                0 1px 2px rgba(15, 23, 42, 0.04),
                0 4px 24px -4px rgba(15, 23, 42, 0.06);
        }
        @media (min-width: 640px) {
            .url-form-panel {
                padding: 1.5rem 1.5rem 1.65rem;
            }
        }
        .url-form-panel__head {
            padding-bottom: 1rem;
            margin-bottom: 1.25rem;
            border-bottom: 1px solid #eef2f7;
        }
        .url-form-panel__title {
            font-size: 1.125rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }
        .url-form-panel__title-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
            background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 100%);
            color: #4338ca;
            box-shadow: 0 1px 2px rgba(67, 56, 202, 0.12);
        }
        .url-form-panel__lead {
            margin: 0.5rem 0 0;
            font-size: 0.875rem;
            line-height: 1.55;
            color: #64748b;
        }
        .url-field {
            margin-bottom: 1.2rem;
        }
        .url-field__label {
            display: block;
            font-size: 0.8125rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 0.45rem;
            letter-spacing: 0.01em;
        }
        .url-field__hint {
            margin-top: 0.4rem;
            font-size: 0.75rem;
            line-height: 1.4;
            color: #94a3b8;
        }
        .url-input-wrap {
            position: relative;
        }
        .url-input-wrap .url-input-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1rem;
            pointer-events: none;
        }
        .url-input {
            width: 100%;
            padding: 0.85rem 2.75rem 0.85rem 1rem;
            font-size: 1rem;
            font-weight: 500;
            color: #0f172a;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fff;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        .url-input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }
        .url-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .url-field--domain .url-domain-row {
            display: flex;
            align-items: stretch;
            gap: 0.5rem;
        }
        .url-field--domain select {
            flex: 1;
            min-width: 0;
            padding: 0.85rem 1rem;
            font-size: 0.9375rem;
            font-weight: 500;
            color: #1e293b;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fff;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        .url-field--domain select:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .url-submit-wrap {
            margin-top: 0.25rem;
            padding-top: 1.15rem;
            border-top: 1px dashed #e2e8f0;
        }
        .url-submit-wrap .btn-primary {
            box-shadow: 0 2px 8px rgba(29, 27, 69, 0.15);
        }
        /* Fluxo URL: resultado no lugar do formulário */
        .url-encurtar-outro-bar {
            display: flex;
            justify-content: flex-start;
            margin-bottom: 1rem;
        }
        .url-encurtar-outro-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.55rem 1.1rem;
            font-size: 0.875rem;
            font-weight: 600;
            color: #4338ca;
            background: #fff;
            border: 2px solid #c7d2fe;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        .url-encurtar-outro-btn:hover {
            background: #eef2ff;
            border-color: #a5b4fc;
            color: #3730a3;
        }
        .url-encurtar-outro-btn:focus-visible {
            outline: 2px solid #6366f1;
            outline-offset: 2px;
        }
        .shortened-url-section--solo {
            margin-top: 0.5rem;
        }
        /* Resultado — link encurtado + QR */
        .shortened-url-section {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
        }
        .shortened-result-panel {
            background: linear-gradient(165deg, #f0fdf4 0%, #ffffff 40%, #f8fafc 100%);
            border: 1px solid #bbf7d0;
            border-radius: 1.125rem;
            padding: 1.35rem 1.25rem 1.5rem;
            box-shadow:
                0 1px 2px rgba(15, 23, 42, 0.04),
                0 8px 28px -6px rgba(22, 163, 74, 0.12);
        }
        @media (min-width: 640px) {
            .shortened-result-panel {
                padding: 1.5rem 1.5rem 1.65rem;
            }
        }
        .shortened-result-panel__head {
            display: flex;
            align-items: flex-start;
            gap: 0.85rem;
            margin-bottom: 1.15rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #d1fae5;
        }
        .shortened-result-panel__badge {
            flex-shrink: 0;
            width: 2.75rem;
            height: 2.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.85rem;
            background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
            color: #fff;
            font-size: 1.15rem;
            box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
        }
        .shortened-result-panel__title {
            margin: 0;
            font-size: 1.125rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: #0f172a;
        }
        .shortened-result-panel__lead {
            margin: 0.25rem 0 0;
            font-size: 0.875rem;
            line-height: 1.5;
            color: #64748b;
        }
        .shortened-result-panel__url-row {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
        }
        @media (min-width: 640px) {
            .shortened-result-panel__url-row {
                flex-direction: row;
                align-items: stretch;
                gap: 0.75rem;
            }
        }
        .shortened-result-input {
            flex: 1;
            min-width: 0;
            width: 100%;
            padding: 0.9rem 1rem;
            font-size: 0.9375rem;
            font-weight: 500;
            font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
            color: #0f172a;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fff;
            box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .shortened-result-panel__copy-btn {
            flex-shrink: 0;
            white-space: nowrap;
            padding-left: 1.25rem;
            padding-right: 1.25rem;
            border-radius: 0.75rem;
            font-weight: 600;
        }
        .shortened-result-panel__copy-btn.is-copied {
            background: #059669 !important;
            color: #fff !important;
            border-color: #059669 !important;
        }
        .shortened-qr-panel {
            background: linear-gradient(165deg, #fafbfc 0%, #ffffff 50%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 1.125rem;
            padding: 1.35rem 1.25rem 1.5rem;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 20px -4px rgba(15, 23, 42, 0.06);
        }
        @media (min-width: 640px) {
            .shortened-qr-panel {
                padding: 1.5rem;
            }
        }
        .shortened-qr-panel__title {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 0 0 1rem;
            font-size: 0.9375rem;
            font-weight: 700;
            color: #334155;
        }
        .shortened-qr-panel__title i {
            color: #6366f1;
        }
        .shortened-qr-panel .btn-secondary {
            width: 100%;
            border-radius: 0.75rem;
            font-weight: 600;
        }
        #qr-code-container {
            margin-top: 1rem;
            padding: 1.25rem;
            border-radius: 0.85rem;
            border: 2px dashed #e2e8f0;
            background: #f8fafc;
            min-height: 8rem;
        }
        #qr-code-container img {
            border-radius: 0.5rem;
        }
        .shortened-qr-placeholder {
            text-align: center;
            color: #64748b;
        }
        .shortened-qr-placeholder svg {
            opacity: 0.85;
        }

        /* Dashboard início — mesmo visual do QR da home (IDs com prefixo dash-) */
        #dash-home-qr-code-container {
            margin-top: 1rem;
            padding: 1.25rem;
            border-radius: 0.85rem;
            border: 2px dashed #e2e8f0;
            background: #f8fafc;
            min-height: 8rem;
        }
        #dash-home-qr-code-container img {
            border-radius: 0.5rem;
        }
        #dash-wpp-emoji-picker-host {
            min-height: 320px;
            max-height: min(60vh, 440px);
            overflow: auto;
        }
        #dash-wpp-emoji-picker-host emoji-picker {
            width: 100%;
            height: 100%;
            min-height: 320px;
            --emoji-size: 1.35rem;
        }

        /* Boas-vindas — painel início do dashboard */
        .dashboard-welcome {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            margin-bottom: 2rem;
            border-radius: 1.125rem;
            border: 1px solid #e2e8f0;
            background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 42%, #faf5ff 100%);
            box-shadow: 0 4px 28px -10px rgba(67, 56, 202, 0.15);
            overflow: hidden;
        }
        .dashboard-welcome__inner {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            padding: 1.5rem 1.35rem 1.65rem;
        }
        @media (min-width: 900px) {
            .dashboard-welcome__inner {
                flex-direction: row;
                align-items: stretch;
                justify-content: space-between;
                padding: 1.75rem 1.85rem;
                gap: 2.25rem;
            }
        }
        .dashboard-welcome__main {
            flex: 1;
            min-width: 0;
        }
        .dashboard-welcome__aside {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            flex-shrink: 0;
            width: 100%;
            max-width: 20rem;
        }
        @media (min-width: 900px) {
            .dashboard-welcome__aside {
                width: auto;
                min-width: 17.5rem;
            }
        }
        .dashboard-welcome__eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin: 0 0 0.75rem;
            padding: 0.3rem 0.75rem;
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #4338ca;
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 9999px;
        }
        .dashboard-welcome__title {
            margin: 0 0 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            line-height: 1.2;
        }
        .dashboard-welcome__title-line {
            font-size: 0.9375rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            color: #64748b;
        }
        .dashboard-welcome__title-name {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 800;
            letter-spacing: -0.035em;
            background: linear-gradient(120deg, #312e81 0%, #4338ca 40%, #6366f1 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .dashboard-welcome__lead {
            margin: 0 0 1rem;
            font-size: 0.9375rem;
            line-height: 1.65;
            color: #64748b;
            max-width: 40rem;
        }
        .dashboard-welcome__lead strong {
            font-weight: 600;
            color: #475569;
        }
        .dashboard-welcome__roadmap {
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
            padding: 0.85rem 1rem;
            border-radius: 0.75rem;
            border: 1px dashed #c7d2fe;
            background: rgba(255, 255, 255, 0.65);
        }
        .dashboard-welcome__roadmap-icon {
            flex-shrink: 0;
            width: 2.25rem;
            height: 2.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.65rem;
            background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 100%);
            color: #4338ca;
            font-size: 0.95rem;
        }
        .dashboard-welcome__roadmap-title {
            margin: 0 0 0.2rem;
            font-size: 0.8125rem;
            font-weight: 700;
            color: #334155;
        }
        .dashboard-welcome__roadmap-text {
            margin: 0;
            font-size: 0.8125rem;
            line-height: 1.5;
            color: #64748b;
        }
        .dashboard-welcome__plan-card {
            padding: 1rem 1.1rem;
            border-radius: 0.85rem;
            border: 1px solid #e2e8f0;
            background: #fff;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
        }
        .dashboard-welcome__plan-label {
            display: block;
            font-size: 0.6875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #94a3b8;
            margin-bottom: 0.35rem;
        }
        .dashboard-welcome__plan-name {
            display: block;
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }
        .dashboard-welcome__plan-hint {
            display: block;
            margin-top: 0.35rem;
            font-size: 0.75rem;
            line-height: 1.4;
            color: #94a3b8;
        }
        .dashboard-welcome__plan-card--free {
            border-color: #e2e8f0;
            background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
        }
        .dashboard-welcome__plan-card--free .dashboard-welcome__plan-name {
            color: #475569;
        }
        .dashboard-welcome__plan-card--premium {
            border-color: #a7f3d0;
            background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%, #f0fdf4 100%);
        }
        .dashboard-welcome__plan-card--premium .dashboard-welcome__plan-name {
            color: #047857;
        }
        .dashboard-welcome__plan-card--advanced {
            border-color: #c4b5fd;
            background: linear-gradient(165deg, #f5f3ff 0%, #fff 50%, #faf5ff 100%);
        }
        .dashboard-welcome__plan-card--advanced .dashboard-welcome__plan-name {
            color: #5b21b6;
        }
        .dashboard-welcome__plan-card--pro {
            border-color: #fcd34d;
            background: linear-gradient(165deg, #fffbeb 0%, #fff 45%, #fffbeb 100%);
            box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25), 0 4px 20px -8px rgba(180, 83, 9, 0.25);
        }
        .dashboard-welcome__plan-card--pro .dashboard-welcome__plan-name {
            background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #ca8a04 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .dashboard-welcome__stat {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            background: #fff;
            border: 1px solid #e2e8f0;
        }
        .dashboard-welcome__stat-label {
            font-size: 0.8125rem;
            font-weight: 600;
            color: #64748b;
        }
        .dashboard-welcome__stat-value {
            font-size: 1.35rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #0f172a;
            font-variant-numeric: tabular-nums;
        }
        .dashboard-welcome__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .dashboard-welcome__btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            padding: 0.65rem 1.1rem;
            font-size: 0.875rem;
            font-weight: 600;
            border-radius: 0.7rem;
            cursor: pointer;
            transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
            text-decoration: none;
            border: 1px solid transparent;
        }
        .dashboard-welcome__btn:focus-visible {
            outline: 2px solid #6366f1;
            outline-offset: 2px;
        }
        .dashboard-welcome__btn--primary {
            color: #fff;
            background: linear-gradient(90deg, #4338ca 0%, #6366f1 100%);
            border-color: transparent;
            box-shadow: 0 2px 10px rgba(67, 56, 202, 0.35);
        }
        .dashboard-welcome__btn--primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(67, 56, 202, 0.4);
            color: #fff;
        }
        .dashboard-welcome__btn--ghost {
            color: #334155;
            background: #fff;
            border-color: #e2e8f0;
        }
        .dashboard-welcome__btn--ghost:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #0f172a;
        }

        /* Sub-abas URL (um / lote) — só dashboard */
        .dash-url-subtabs-wrap {
            margin-bottom: 1.25rem;
        }
        .dash-url-subtabs-label {
            margin: 0 0 0.5rem;
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            text-align: center;
            color: #94a3b8;
        }
        .dash-url-subtabs {
            display: flex;
            width: 100%;
            max-width: 28rem;
            margin: 0 auto;
            padding: 0.3rem;
            gap: 0.35rem;
            border-radius: 0.85rem;
            background: linear-gradient(180deg, #eef0f4 0%, #e5e7eb 100%);
            border: 1px solid #d1d5db;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        .dash-url-subtab {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.55rem 0.65rem;
            border: none;
            border-radius: 0.65rem;
            font-size: 0.8125rem;
            font-weight: 600;
            font-family: inherit;
            color: #64748b;
            background: transparent;
            cursor: pointer;
            transition: color 0.15s, background 0.15s, box-shadow 0.15s;
        }
        .dash-url-subtab:hover:not(.dash-url-subtab--active) {
            color: #334155;
            background: rgba(255, 255, 255, 0.5);
        }
        .dash-url-subtab--active {
            color: #1d1b45;
            background: #fff;
            box-shadow: 0 2px 8px rgba(29, 27, 69, 0.1), 0 0 0 1px rgba(29, 27, 69, 0.08);
        }

        .dash-batch-textarea {
            width: 100%;
            padding: 0.85rem 1rem;
            font-size: 0.875rem;
            line-height: 1.5;
            font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
            color: #0f172a;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            background: #fff;
            resize: vertical;
            min-height: 12rem;
            transition: border-color 0.15s, box-shadow 0.15s;
        }
        .dash-batch-textarea:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        .dash-batch-table-wrap {
            overflow-x: auto;
            margin: 0.5rem 0 1rem;
            border-radius: 0.75rem;
            border: 1px solid #e2e8f0;
            background: #fff;
        }
        .dash-batch-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8125rem;
        }
        .dash-batch-table thead {
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }
        .dash-batch-table th {
            text-align: left;
            padding: 0.65rem 0.75rem;
            font-weight: 600;
            color: #64748b;
            white-space: nowrap;
        }
        .dash-batch-table__col-status {
            width: 1%;
            white-space: nowrap;
        }
        .dash-batch-table td {
            padding: 0.55rem 0.75rem;
            vertical-align: top;
            border-bottom: 1px solid #f1f5f9;
        }
        .dash-batch-table tbody tr:last-child td {
            border-bottom: none;
        }
        .dash-batch-table__row--ok {
            background: rgba(240, 253, 244, 0.5);
        }
        .dash-batch-table__row--err {
            background: rgba(254, 242, 242, 0.55);
        }
        .dash-batch-table__cell--orig {
            max-width: 14rem;
            word-break: break-all;
            color: #475569;
        }
        .dash-batch-short-link {
            color: #4338ca;
            font-weight: 600;
            text-decoration: none;
            word-break: break-all;
        }
        .dash-batch-short-link:hover {
            text-decoration: underline;
        }
        .dash-batch-table__cell--muted {
            color: #94a3b8;
        }
        .dash-batch-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.5rem;
            border-radius: 0.35rem;
            font-size: 0.6875rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }
        .dash-batch-badge--ok {
            background: #dcfce7;
            color: #166534;
        }
        .dash-batch-err-msg {
            font-size: 0.75rem;
            color: #b91c1c;
            line-height: 1.35;
        }
        .dash-batch-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

/* Dashboard — Meus links: bloco de conteúdo (não é o header global da página) */
.dashboard-links-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
/* Título | filtros (centro) | Novo link — empilha em telas estreitas */
.dashboard-links-section__top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
@media (min-width: 1024px) {
    .dashboard-links-section__top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem 1rem;
    }
    .dashboard-links-section__title-block {
        justify-self: start;
        max-width: 22rem;
    }
    .dashboard-links-section__filters {
        justify-self: center;
    }
    .dashboard-links-section__top-action {
        justify-self: end;
        align-self: center;
    }
}
.dashboard-links-section__title-block {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 0;
}
.dashboard-links-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.08));
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.08);
}
.dashboard-links-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111827;
    line-height: 1.25;
    margin: 0;
}
.dashboard-links-section__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6b7280;
    max-width: 28rem;
}
.dashboard-links-section__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
@media (max-width: 1023px) {
    .dashboard-links-section__top-action {
        align-self: flex-end;
    }
}
.dashboard-links-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.35rem 0.45rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dashboard-links-toolbar select {
    min-height: 2.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    max-width: 9.75rem;
}
.dashboard-links-toolbar #links-filter-field-wrap {
    flex: 0 1 auto;
    min-width: 6.5rem;
    max-width: 11rem;
}
.dashboard-links-toolbar #links-filter-field-wrap input:not(.hidden) {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.dashboard-links-toolbar .dashboard-links-toolbar__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
}
.dashboard-links-toolbar .dashboard-links-toolbar__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 0.375rem;
    flex-shrink: 0;
    text-decoration: none;
}
.dashboard-links-toolbar .dashboard-links-toolbar__submit.btn {
    padding: 0;
    min-height: 2.25rem;
}

/* QR modal (dashboard) */
.qr-modal-backdrop {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(3px);
}
.qr-modal-backdrop.is-open {
    display: flex;
}
.qr-modal-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.28);
    overflow: hidden;
}
.qr-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.1rem 0.6rem;
}
.qr-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}
.qr-modal-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
}
.qr-modal-close {
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #6b7280;
    background: #fff;
}
.qr-modal-close:hover {
    color: #111827;
    background: #f9fafb;
}
.qr-modal-body {
    padding: 0.35rem 1.1rem 1.1rem;
}
.qr-modal-preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #f8fafc, #f1f5f9);
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1rem;
}
.qr-modal-image {
    width: min(18rem, 100%);
    height: auto;
    border-radius: 0.65rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.qr-modal-actions {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.qr-modal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

/* Confirmation modal (dashboard) */
.confirm-modal-backdrop {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(3px);
}
.confirm-modal-backdrop:not(.hidden) {
    display: flex;
}
.confirm-modal-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 54px rgba(2, 6, 23, 0.28);
    padding: 1rem;
}
.confirm-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.confirm-modal-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #475569;
    flex-shrink: 0;
}
.confirm-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.confirm-modal-message {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #4b5563;
}
.confirm-modal-close {
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #6b7280;
    background: #fff;
    flex-shrink: 0;
}
.confirm-modal-close:hover {
    color: #111827;
    background: #f9fafb;
}
.confirm-modal-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

/* QR editor section */
.qr-editor-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.qr-editor-head__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.08));
    border: 1px solid #e5e7eb;
}
.qr-editor-head__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}
.qr-editor-head__subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.84rem;
    color: #6b7280;
}
.qr-editor-empty {
    margin-top: 0.5rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.9rem;
    padding: 1rem;
    background: #fafafa;
    color: #4b5563;
    font-size: 0.9rem;
}
.qr-editor-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
}
.qr-editor-list-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.75rem;
}
.qr-editor-list-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 0.6rem;
}
.qr-editor-list {
    max-height: 460px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.qr-editor-link-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    background: #fff;
}
.qr-editor-link-item:hover { border-color: #c7d2fe; background: #f8faff; }
.qr-editor-link-item.is-active { border-color: #6366f1; background: #eef2ff; }
.qr-editor-link-item__thumb {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.45rem;
    border: 1px solid #e5e7eb;
    object-fit: cover;
    background: #fff;
}
.qr-editor-link-item__short { font-weight: 700; color: #1f2937; font-size: 0.82rem; }
.qr-editor-link-item__url { color: #64748b; font-size: 0.74rem; }
.qr-editor-panel {
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.85rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}
.qr-editor-presets {
    margin-top: 0.85rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid #e5e7eb;
}
.qr-editor-presets__head {
    margin-bottom: 0.5rem;
}
.qr-editor-presets__title {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.qr-editor-presets__desc {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
    max-width: 52rem;
}
.qr-editor-presets__pro-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.12rem 0.35rem;
    border-radius: 0.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    vertical-align: middle;
}
.qr-editor-presets__toolbar {
    margin-bottom: 0.5rem;
}
.qr-editor-preset-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.qr-editor-preset-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}
.qr-editor-preset-tab {
    flex: 0 1 auto;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.qr-editor-preset-tab:hover {
    background: #e2e8f0;
    color: #334155;
}
.qr-editor-preset-tab.is-active {
    background: #eef2ff;
    border-color: #a5b4fc;
    color: #4338ca;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}
.qr-editor-preset-panels {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.qr-editor-preset-panel {
    display: none;
    width: 100%;
    max-width: 100%;
    max-height: 14.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.qr-editor-preset-panel.is-active {
    display: block;
}
.qr-editor-preset-panel__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    align-content: flex-start;
}
.qr-editor-preset-panel__empty {
    margin: 0;
    padding: 0.5rem 0.25rem;
    font-size: 0.78rem;
    color: #94a3b8;
}
.qr-editor-preset {
    position: relative;
    flex: 0 0 auto;
    width: 7.35rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 0.45rem 0.4rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.65rem;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.qr-editor-preset:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}
.qr-editor-preset.is-active {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}
.qr-editor-preset--pro-preview {
    border-style: dashed;
    border-color: #c4b5fd;
}
.qr-editor-preset--pro-preview:hover {
    border-color: #a78bfa;
}
.qr-editor-preset__swatch {
    display: block;
    height: 1.75rem;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, var(--qr-p-fg, #111) 0%, var(--qr-p-fg, #111) 45%, var(--qr-p-bg, #fff) 45%, var(--qr-p-bg, #fff) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.qr-editor-preset__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.qr-editor-preset__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qr-editor-preset__cat {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}
.qr-editor-preset__tier {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6366f1;
}
.qr-editor-preset__tier i {
    font-size: 0.55rem;
    margin-right: 0.12rem;
    opacity: 0.9;
}
.qr-editor-preset__eye {
    position: absolute;
    bottom: 0.32rem;
    right: 0.32rem;
    color: #7c3aed;
    font-size: 0.72rem;
    opacity: 0.95;
}
.qr-editor-pro-upsell {
    margin-top: 0.75rem;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.11), rgba(139, 92, 246, 0.09));
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.qr-editor-pro-upsell__inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.qr-editor-pro-upsell__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.95rem;
}
.qr-editor-pro-upsell__text {
    flex: 1 1 12rem;
    min-width: 0;
}
.qr-editor-pro-upsell__title {
    display: block;
    font-size: 0.84rem;
    color: #3730a3;
    margin: 0 0 0.2rem;
}
.qr-editor-pro-upsell__desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #5b21b6;
}
.qr-editor-pro-upsell__cta {
    font-size: 0.82rem;
    font-weight: 600;
}
.qr-editor-save--pro-locked {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.65);
}
.qr-editor-preview-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.8rem;
    background: radial-gradient(circle at top, #f8fafc, #f1f5f9);
    padding: 0.9rem;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
}
.qr-editor-frame-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}
.qr-editor-frame-caption {
    margin: 0.5rem 0 0;
    padding: 0 0.35rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
    max-width: min(22rem, 100%);
    color: #111827;
}
.qr-editor-frame-caption__row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    max-width: 100%;
}
/* Texto primeiro, dois ícones à direita (ex.: Bebidas & distrib.) */
.qr-editor-frame-caption__row--icons-after {
    flex-wrap: nowrap;
}
.qr-editor-frame-caption__row--icons-after .qr-editor-frame-caption__text {
    flex: 0 1 auto;
    order: 1;
}
.qr-editor-frame-caption__row--icons-after .qr-editor-frame-caption__ico--left {
    order: 2;
}
.qr-editor-frame-caption__row--icons-after .qr-editor-frame-caption__ico--right {
    order: 3;
}
.qr-editor-frame-caption__text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    line-height: 1.35;
}
.qr-editor-frame-caption__ico {
    flex-shrink: 0;
    opacity: 0.88;
    line-height: 1;
}
.qr-editor-frame-caption.hidden {
    display: none !important;
}
.qr-editor-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease, padding 0.2s ease;
}
.qr-editor-frame--none {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.qr-editor-frame--simple {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff);
    border: var(--qr-frame-bw, 3px) solid var(--qr-frame-c1, #d1d5db);
    border-radius: var(--qr-frame-r, 4px);
    box-shadow: none;
}
.qr-editor-frame--rounded {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff);
    border: var(--qr-frame-bw, 3px) solid var(--qr-frame-c1, #d1d5db);
    border-radius: var(--qr-frame-r, 16px);
    box-shadow: none;
}
.qr-editor-frame--double {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff);
    border: none;
    border-radius: var(--qr-frame-r, 16px);
    box-shadow:
        0 0 0 2px var(--qr-frame-c1, #d1d5db),
        0 0 0 5px var(--qr-frame-c2, #111827);
}
.qr-editor-frame--shadow {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff);
    border: 1px solid var(--qr-frame-c1, #e5e7eb);
    border-radius: var(--qr-frame-r, 16px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.qr-editor-preview {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-editor-saved-qr {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.qr-editor-saved-qr--hidden {
    display: none !important;
}
.qr-editor-live-mount--hidden {
    position: absolute;
    width: 280px;
    height: 280px;
    left: -9999px;
    top: 0;
    opacity: 0;
    pointer-events: none;
}
.qr-frame-preset-select-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.qr-frame-accordion {
    margin-top: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.qr-frame-accordion__toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    text-align: left;
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
    border: none;
    cursor: pointer;
    color: #334155;
    transition: background 0.15s ease;
}
.qr-frame-accordion__toggle:hover {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.qr-frame-accordion__main-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    flex-shrink: 0;
    min-width: 0;
}
.qr-frame-accordion__main {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}
.qr-frame-accordion__sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.qr-frame-accordion__current {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.78rem;
    color: #475569;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qr-frame-accordion__chev {
    flex-shrink: 0;
    color: #64748b;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}
.qr-frame-accordion__toggle:not(.collapsed) .qr-frame-accordion__chev {
    transform: rotate(180deg);
}
.qr-frame-accordion__panel {
    padding: 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.qr-frame-accordion__panel.collapsed {
    display: none;
}
.qr-frame-accordion__intro {
    margin: 0;
    padding: 0.65rem 0.85rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.qr-frame-accordion__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.75rem, 1fr));
    gap: 0.65rem;
    padding: 0.75rem 0.85rem 0.85rem;
}
.qr-frame-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    text-align: left;
    overflow: visible;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.qr-frame-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.qr-frame-card:focus-visible {
    outline: none;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}
.qr-frame-card.is-active {
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 4px 16px rgba(99, 102, 241, 0.12);
}
.qr-frame-card__selected-mark {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.55rem;
    color: #fff;
    background: var(--primary-color, #6366f1);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}
.qr-frame-card.is-active .qr-frame-card__selected-mark {
    opacity: 1;
    transform: scale(1);
}
.qr-frame-card__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6.75rem;
    padding: 0.65rem 0.6rem 0.5rem;
    background: radial-gradient(ellipse 120% 100% at 50% 0%, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid #f1f5f9;
    overflow: visible;
}
.qr-frame-card__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
}
.qr-frame-card__bare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #fff;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}
.qr-frame-card__frame {
    max-width: 100%;
    box-sizing: border-box;
}
.qr-frame-card__frame.qr-editor-frame--shadow {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}
.qr-frame-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.qr-frame-card__mock {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.qr-frame-card__mock svg {
    display: block;
    width: 100%;
    height: 100%;
}
.qr-frame-card__mini-caption {
    display: block;
    max-width: 100%;
    padding: 0 0.2rem;
    font-size: 0.5rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.02em;
}
.qr-frame-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.65rem 0.65rem;
}
.qr-frame-card__label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.qr-frame-card__label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.qr-frame-card__pro-tag {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.3rem;
    border-radius: 0.22rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    flex-shrink: 0;
}
.qr-frame-card__hint {
    font-size: 0.65rem;
    line-height: 1.35;
    color: #64748b;
}
.qr-editor-frame--wallet {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff);
    border: none;
    border-radius: var(--qr-frame-r, 16px);
    box-shadow:
        0 0 0 2px var(--qr-frame-c1, #d1d5db),
        0 0 0 5px var(--qr-frame-c2, #111827);
}
.qr-editor-frame--dining {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff);
    border: var(--qr-frame-bw, 3px) solid var(--qr-frame-c1, #d1d5db);
    border-radius: var(--qr-frame-r, 20px);
    box-shadow: inset 0 0 0 2px var(--qr-frame-c2, #92400e);
    box-sizing: border-box;
}
.qr-editor-frame--coupon {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff);
    border: var(--qr-frame-bw, 3px) solid var(--qr-frame-c1, #b91c1c);
    border-radius: var(--qr-frame-r, 14px);
    box-shadow: none;
    border-bottom: 3px dashed var(--qr-frame-c2, #991b1b);
}
/* Molduras integradas: borda única envolvendo QR + legenda */
.qr-editor-frame-stack--integrated #qr-editor-frame-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: 100%;
}
.qr-editor-frame-stack--integrated .qr-editor-frame-caption {
    margin: 0.35rem 0.4rem 0.45rem;
    padding: 0 0.35rem;
}
/* Preview: faixa de texto mais estreita (estilo placa) alinhada ao export */
.qr-editor-frame--plate.qr-editor-frame-stack--integrated .qr-editor-frame-caption {
    max-width: min(14rem, 72%);
    margin-left: auto;
    margin-right: auto;
}
.qr-editor-caption-edit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 30%);
    gap: 0.65rem 0.85rem;
    align-items: start;
}
.qr-editor-caption-edit-row__text,
.qr-editor-caption-edit-row__font {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.qr-editor-caption-edit-row__font .qr-editor-select {
    width: 100%;
}
.qr-editor-caption-text-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.qr-editor-caption-text-inner .qr-editor-caption-textarea {
    flex: 1;
    min-width: 0;
}
.qr-caption-emoji-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    border: 2px solid #e2e8f0;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}
.qr-caption-emoji-icon-btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.qr-caption-emoji-icon-btn:focus-visible {
    outline: none;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.qr-caption-emoji-icon-btn:active {
    transform: scale(0.96);
}
.qr-editor-caption-colors-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem 1rem;
    margin-top: 0.5rem;
}
.qr-editor-caption-color-field--hidden {
    display: none !important;
}
.qr-editor-caption-color-field .qr-editor-label {
    margin-bottom: 0.15rem;
}
.qr-editor-hint--tight {
    margin: 0.25rem 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
}
@media (max-width: 520px) {
    .qr-editor-caption-edit-row {
        grid-template-columns: 1fr;
    }
    .qr-editor-caption-colors-row {
        grid-template-columns: 1fr;
    }
}
.qr-caption-emoji-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.qr-caption-emoji-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.qr-caption-emoji-modal-dialog {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 100%;
    max-height: min(85vh, 560px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.qr-caption-emoji-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f9fafb 0%, #fff 100%);
}
.qr-caption-emoji-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.qr-caption-emoji-modal-close {
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.qr-caption-emoji-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}
#qr-caption-emoji-picker-host {
    min-height: 320px;
    max-height: min(60vh, 440px);
    overflow: auto;
}
#qr-caption-emoji-picker-host emoji-picker {
    width: 100%;
    height: 100%;
    min-height: 320px;
    --emoji-size: 1.35rem;
}
.qr-caption-emoji-picker-loading,
.qr-caption-emoji-picker-error {
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}
.qr-caption-emoji-picker-error {
    color: #dc2626;
}
.qr-editor-caption-textarea {
    width: 100%;
    min-height: 2.75rem;
    max-height: 8rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
}
.qr-editor-caption-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.qr-editor-frame--custom {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fafafa);
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #94a3b8);
    border-radius: var(--qr-frame-r, 14px);
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.qr-editor-frame--beverage {
    padding: var(--qr-frame-pad, 28px);
    background: linear-gradient(165deg, rgba(124, 58, 237, 0.12) 0%, var(--qr-frame-bg, #faf5ff) 42%, var(--qr-frame-bg, #faf5ff) 100%);
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #7c3aed);
    border-radius: var(--qr-frame-r, 16px);
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(76, 29, 149, 0.12);
}
.qr-editor-frame--retail {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #f8fafc);
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #64748b);
    border-radius: var(--qr-frame-r, 12px);
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.qr-editor-frame--fitness {
    padding: var(--qr-frame-pad, 28px);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.06) 0%, var(--qr-frame-bg, #fff) 55%);
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #16a34a);
    border-radius: var(--qr-frame-r, 18px);
    box-sizing: border-box;
}
.qr-editor-frame--tech {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #f1f5f9);
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #2563eb);
    border-radius: var(--qr-frame-r, 10px);
    box-sizing: border-box;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
.qr-editor-frame--bakery {
    padding: var(--qr-frame-pad, 28px);
    background: radial-gradient(circle at 30% 0%, rgba(251, 191, 36, 0.15), var(--qr-frame-bg, #fffbeb));
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #d97706);
    border-radius: var(--qr-frame-r, 20px);
    box-sizing: border-box;
}
.qr-editor-frame--event {
    padding: var(--qr-frame-pad, 28px);
    background: linear-gradient(180deg, rgba(147, 51, 234, 0.08), var(--qr-frame-bg, #faf5ff));
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #9333ea);
    border-radius: var(--qr-frame-r, 14px);
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(91, 33, 182, 0.1);
}
.qr-editor-frame--boutique {
    padding: var(--qr-frame-pad, 28px);
    background: var(--qr-frame-bg, #fff1f2);
    border: var(--qr-frame-bw, 2px) solid var(--qr-frame-c1, #fb7185);
    border-radius: var(--qr-frame-r, 18px);
    box-sizing: border-box;
    box-shadow:
        inset 0 0 0 1px rgba(212, 175, 55, 0.45),
        0 8px 22px rgba(190, 24, 93, 0.08);
}
.qr-frame-card__frame--integrated {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    min-width: 0;
}
.qr-frame-card__mini-caption--in {
    margin-top: 0.15rem;
    padding: 0 0.2rem 0.1rem;
    max-width: 100%;
    font-size: 0.48rem;
    line-height: 1.2;
}
.qr-editor-selected-url {
    margin: 0.55rem 0 0;
    font-size: 0.76rem;
    color: #6b7280;
    text-align: center;
}
.qr-editor-controls {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 1280px) {
    .qr-editor-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.qr-editor-subsection-title {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0.35rem 0 0.1rem;
    padding-top: 0.35rem;
    border-top: 1px solid #f1f5f9;
}
.qr-editor-controls .qr-editor-subsection-title:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.qr-editor-control-group--full {
    grid-column: 1 / -1;
}
.qr-editor-appearance {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1rem 1rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}
.qr-editor-appearance__colors,
.qr-editor-appearance__styles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
}
.qr-editor-appearance__logo {
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}
@media (max-width: 639px) {
    .qr-editor-appearance__colors,
    .qr-editor-appearance__styles {
        grid-template-columns: 1fr;
    }
}
.qr-editor-hint {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #94a3b8;
}
.qr-editor-range-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qr-editor-range {
    flex: 1;
    min-width: 0;
    accent-color: var(--primary-color, #6366f1);
}
.qr-editor-range-value {
    flex-shrink: 0;
    min-width: 2.75rem;
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    color: #475569;
}
.qr-editor-control-group { min-width: 0; }
.qr-editor-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.qr-editor-color-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qr-editor-color-row input[type="color"] {
    width: 2.5rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.15rem;
    background: #fff;
}
.qr-editor-color-row span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #374151;
}
.qr-editor-select, .qr-editor-file {
    width: 100%;
    min-height: 2.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.55rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
    background: #fff;
}
.qr-editor-actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}
@media (max-width: 1023px) {
    .qr-editor-layout { grid-template-columns: 1fr; }
    .qr-editor-list { max-height: 220px; }
    .qr-editor-controls { grid-template-columns: 1fr; }
}

/* Dashboard — Meus domínios: cabeçalho (mesmo nível visual de Meus links, sem filtros) */
.dashboard-domains-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.dashboard-domains-section__top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .dashboard-domains-section__top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }
    .dashboard-domains-section__title-block {
        flex: 1;
        min-width: 0;
        max-width: 36rem;
    }
    .dashboard-domains-section__top-action {
        flex-shrink: 0;
        align-self: flex-start;
    }
}
.dashboard-domains-section__title-block {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 0;
}
.dashboard-domains-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.08));
    color: var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.08);
}
.dashboard-domains-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111827;
    line-height: 1.25;
    margin: 0;
}
.dashboard-domains-section__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6b7280;
    max-width: 28rem;
}
@media (max-width: 639px) {
    .dashboard-domains-section__top-action {
        align-self: flex-end;
    }
}