.dndv-widget {
        --dndv-bg: transparent;
        --dndv-panel: rgba(127, 127, 127, 0.06);
        --dndv-border: rgba(127, 127, 127, 0.35);
        --dndv-accent: currentColor;
        --dndv-text: inherit;
        --dndv-muted: rgba(127, 127, 127, 0.9);
        box-sizing: border-box;
        max-width: 960px;
        margin: 0 auto;
        padding: 24px;
        background: var(--dndv-bg);
        border: 1px solid var(--dndv-border);
        border-radius: 10px;
        color: var(--dndv-text);
        font-family: inherit;
}

.dndv-widget * {
        box-sizing: border-box;
}

.dndv-controls {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
}

.dndv-label {
        font-size: 13px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--dndv-muted);
}

.dndv-select {
        width: 100%;
        max-width: 320px;
        padding: 10px 14px;
        background: var(--dndv-panel);
        border: 1px solid var(--dndv-border);
        border-radius: 6px;
        color: inherit;
        font-size: 15px;
        font-family: inherit;
}

.dndv-alphabet {
        display: flex;
        justify-content: center;
        padding: 18px;
        margin-bottom: 22px;
        background: #f5f2ea;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        min-height: 60px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.dndv-alphabet-item img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
}

.dndv-no-image {
        margin: 0;
        color: #4a4a4a;
        font-style: italic;
        font-size: 14px;
        text-align: center;
}

.dndv-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
}

@media (max-width: 640px) {
        .dndv-columns {
                grid-template-columns: 1fr;
        }
}

.dndv-column {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: relative;
}

.dndv-column-label {
        font-size: 13px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--dndv-muted);
}

.dndv-input,
.dndv-output {
        width: 100%;
        min-height: 220px;
        padding: 16px;
        background: var(--dndv-panel);
        border: 1px solid var(--dndv-border);
        border-radius: 8px;
        color: inherit;
        resize: vertical;
        line-height: 1.6;
}

.dndv-input {
        font-size: 16px;
        font-family: inherit;
}

.dndv-input:focus,
.dndv-output:focus {
        outline: 2px solid var(--dndv-border);
        outline-offset: 2px;
}

.dndv-output {
        font-size: 26px;
        white-space: pre-wrap;
        word-break: break-word;
        overflow-y: auto;
}

.dndv-output-placeholder {
        position: absolute;
        top: 40px;
        left: 16px;
        color: var(--dndv-muted);
        font-size: 14px;
        font-style: italic;
        pointer-events: none;
}

.dndv-output-placeholder.dndv-hidden {
        display: none;
}

.dndv-copy {
        align-self: flex-start;
        margin-top: 4px;
        padding: 9px 18px;
        background: var(--dndv-panel);
        border: 1px solid var(--dndv-border);
        border-radius: 6px;
        color: inherit;
        font-weight: 600;
        font-size: 14px;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
}

.dndv-copy:hover {
        background: rgba(127, 127, 127, 0.16);
        transform: translateY(-1px);
}

.dndv-copy:active {
        transform: translateY(0);
}

.dndv-copy-feedback {
        margin-left: 10px;
        font-size: 13px;
        color: var(--dndv-muted);
        opacity: 0;
        transition: opacity 0.2s ease;
}

.dndv-copy-feedback.dndv-visible {
        opacity: 1;
}
