.sketch-source-switch {
    margin: 10px 0 2px;
    padding: 9px;
    border: 1px solid #d9e0e5;
    border-radius: 8px;
    background: #f7f9fa;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.sketch-source-switch[hidden] {
    display: none !important;
}

.sketch-source-switch-label {
    margin-bottom: 6px;
    color: #455a64;
    font-family: 'Jfont', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.sketch-source-switch-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.sketch-source-switch-options button {
    min-width: 0;
    min-height: 34px;
    padding: 5px 6px;
    border: 1px solid #b7c3cc;
    border-radius: 6px;
    background: #ffffff;
    color: #37474f;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.sketch-source-switch-options button[aria-pressed="true"] {
    border-color: #2980b9;
    background: #2980b9;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(41, 128, 185, 0.28);
}

.sketch-source-switch-options button:focus-visible {
    outline: 2px solid #1e88e5;
    outline-offset: 2px;
}

.side-drawer .sketch-source-switch {
    margin: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.side-drawer .sketch-source-switch-label {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 600px) and (orientation: portrait),
       (max-height: 500px) and (orientation: landscape) {
    .photo-panel .sketch-source-switch {
        margin: 5px 0 1px;
        padding: 5px 4px;
        border-radius: 5px;
    }

    .photo-panel .sketch-source-switch-label {
        margin-bottom: 4px;
        font-size: 8px;
        letter-spacing: 0.35px;
    }

    .photo-panel .sketch-source-switch-options {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .photo-panel .sketch-source-switch-options button {
        min-height: 26px;
        padding: 2px 3px;
        font-size: 8px;
        border-radius: 4px;
    }
}
