/* Strip padding from this dialog's content so the cover image goes edge-to-edge */
.wl-dialog-content {
    padding: 0 !important;
    overflow: hidden;
}

/* ── Cover image area ── */
.wl-cover-area {
    position: relative;
    height: 160px;
    overflow: hidden;
    cursor: pointer;
}

.wl-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wl-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px;
    gap: 2px;
}

.wl-cover-placeholder-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mud-palette-text-primary);
}

.wl-cover-placeholder-hint {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.wl-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.wl-cover-area:hover .wl-cover-overlay {
    opacity: 1;
}

.wl-cover-overlay-label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
}

/* ── Body ── */
.wl-body {
    padding: 20px 20px 4px;
}

/* ── Name field ── */
.wl-name-field .mud-input-root input {
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    padding-bottom: 10px !important;
}

.wl-name-field .mud-input-root::before {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.wl-name-field label {
    display: none;
}

/* ── URL disclosure row ── */
.wl-url-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-top: 0.5px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    user-select: none;
}

.wl-url-icon-wrap {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mud-palette-text-secondary);
}

.wl-url-text {
    flex: 1;
    font-size: 14px;
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wl-url-text--empty {
    color: var(--mud-palette-text-secondary);
}

.wl-url-chevron {
    color: var(--mud-palette-text-secondary);
    flex-shrink: 0;
}

/* ── URL expanded field ── */
.wl-url-field {
    padding-bottom: 8px;
}

/* ── Footer ── */
.wl-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 20px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.09);
}

.wl-btn-cancel {
    font-size: 15px;
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    transition: color 0.1s;
}

.wl-btn-cancel:hover {
    color: var(--mud-palette-text-primary);
}

.wl-btn-save {
    font-size: 15px;
    font-weight: 600;
    color: var(--mud-palette-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    transition: opacity 0.1s;
}

.wl-btn-save:hover:not(:disabled) {
    opacity: 0.8;
}

.wl-btn-save:disabled {
    color: var(--mud-palette-text-secondary);
    cursor: default;
}
