/* Simple, high-contrast desktop shortcuts. */
#desktop > .desktop-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    height: 88px;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.desktop-shortcut .shortcut-tile {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 48px;
    height: 42px;
    color: #fff;
    pointer-events: none;
}

.shortcut-tile svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.8;
    /* A tight dark edge preserves contrast; the wider shadow adds depth. */
    filter: drop-shadow(0 1px 1px rgba(3, 12, 24, .9))
            drop-shadow(0 4px 4px rgba(3, 12, 24, .7));
}

.desktop-shortcut .shortcut-label {
    display: block;
    padding: 2px 4px;
    border-radius: 3px;
    background: rgba(8, 18, 32, .38);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    #desktop > .desktop-shortcut:hover {
        background: rgba(255, 255, 255, .1);
        border-color: rgba(255, 255, 255, .2);
    }
}

#desktop > .desktop-shortcut:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    background: rgba(255, 255, 255, .1);
}

#desktop > .desktop-shortcut.selected,
#desktop > .desktop-shortcut:active {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .3);
}

@media (prefers-reduced-motion: reduce) {
    #desktop > .desktop-shortcut { transition: none; }
}
/* Mark the current wallpaper without adding thumbnail downloads. */
.wallpaper-option {padding-right:28px;white-space:nowrap}
.wallpaper-option[aria-checked="true"] {background:rgba(255,255,255,.1)}
.wallpaper-option[aria-checked="true"]::after {content:'✓';position:absolute;right:10px;color:#d8edff}

/* Keep consultation actions in one taskbar row. */
.consultation-desktop .taskbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 16px;
    height: auto;
    min-height: 48px;
    padding: 6px 16px;
}
.taskbar-support {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
}
.taskbar-support a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 4px 14px;
    border-radius: 4px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}
.taskbar-support a:first-child {background: #1c665e}
.taskbar-support a:hover {background: rgba(255, 255, 255, .12)}
.taskbar-support a:first-child:hover {background: #23786e}
.taskbar-support a:focus-visible {outline: 2px solid #fff;outline-offset: 2px}
.consultation-desktop .taskbar-clock {
    position: static;
    width: auto;
    height: auto;
}
@media (max-width: 600px) {
    .consultation-desktop .taskbar {
        grid-template-columns: minmax(0, 1fr) 58px;
        gap: 6px;
        padding: 6px 8px;
        min-height: 48px;
    }
    .taskbar-support {display:grid;grid-template-columns:.8fr 1.4fr;gap:4px;font-size:11px}
    .taskbar-support a {min-height:36px;padding:4px}
    .consultation-desktop .taskbar-clock {font-size:10px}
    .consultation-desktop .taskbar-clock .date {font-size:9px}
}

/* Keep desktop legal links readable over landscape wallpapers. */
.consultation-desktop .copyright,
.consultation-desktop .copyright .site-policy-link {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.consultation-desktop .copyright .site-policy-link:focus-visible {outline: 2px solid #fff;outline-offset: 3px}

/* Match the copyright edge to the taskbar action inset. */
.consultation-desktop .copyright {left:16px}
@media (max-width:600px) {
    .consultation-desktop .copyright {left:8px}
}
