.leaflet-control-disclosure {
    box-sizing: border-box;
}

.leaflet-control-disclosure__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 44px;
}

.leaflet-control-disclosure__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaflet-control-disclosure__actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.25rem;
}

.leaflet-control-disclosure__button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font: 700 1rem/1 system-ui, sans-serif;
}

.leaflet-control-disclosure__button:focus-visible,
.home-fullscreen-workspace button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.leaflet-control-disclosure[data-disclosure-state="compact"] .leaflet-control-disclosure__content,
.leaflet-control-disclosure[data-disclosure-state="hidden"] .leaflet-control-disclosure__content,
.leaflet-control-disclosure[data-disclosure-state="compact"] > .leaflet-control-disclosure__content-item,
.leaflet-control-disclosure[data-disclosure-state="hidden"] > .leaflet-control-disclosure__content-item,
.leaflet-control-disclosure[data-disclosure-state="hidden"] .leaflet-control-disclosure__title {
    display: none;
}

.leaflet-control-disclosure__content[hidden],
.leaflet-control-disclosure__content-item[hidden] {
    display: none !important;
}

.leaflet-control-disclosure[data-disclosure-state="hidden"] {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.leaflet-control-disclosure[data-disclosure-state="hidden"] .leaflet-control-disclosure__header {
    min-height: 44px;
}

.home-fullscreen-workspace {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 1200;
    pointer-events: none;
}

.home-fullscreen-workspace__panel {
    width: clamp(300px, 28vw, 420px);
    height: 100%;
    padding: 0.75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: -2px 0 12px rgba(15, 23, 42, 0.2);
    pointer-events: auto;
    transition: width 180ms ease, transform 180ms ease;
}

.home-fullscreen-workspace__settings {
    position: absolute;
    inset: 0 clamp(300px, 28vw, 420px) 0 auto;
    z-index: 2;
    width: min(520px, calc(100vw - clamp(300px, 28vw, 420px)));
    min-width: 320px;
    padding: 0.75rem;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.98);
    box-shadow: -2px 0 12px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
}

.home-fullscreen-workspace__settings[hidden] {
    display: none;
}

.home-fullscreen-workspace__settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 44px;
    margin-bottom: 0.5rem;
}

.home-fullscreen-workspace__settings-content {
    height: calc(100% - 52px);
    overflow: auto;
}

.home-fullscreen-workspace__settings-content .home-demographic-map-settings {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.home-fullscreen-workspace__settings-content > [data-fullscreen-settings-mounted="true"] {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
}

.home-fullscreen-workspace__header,
.home-fullscreen-workspace__actions,
.home-fullscreen-workspace__quick-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.home-fullscreen-workspace__header {
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.home-fullscreen-workspace__header strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-fullscreen-workspace__icon-button,
.home-fullscreen-workspace__launcher,
.home-fullscreen-workspace__quick-actions button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.home-fullscreen-workspace__launcher {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: none;
    place-items: center;
    pointer-events: auto;
}

.home-fullscreen-workspace__content {
    height: calc(100% - 54px);
    overflow: auto;
    overscroll-behavior: contain;
}

.home-fullscreen-workspace__section {
    margin: 0 0 0.75rem;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: rgba(248, 250, 252, 0.92);
}

.home-fullscreen-workspace__section > h3 {
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
}

.home-fullscreen-workspace__quick-actions {
    flex-wrap: wrap;
}

.home-fullscreen-workspace__quick-actions button {
    flex: 1 1 120px;
    padding: 0.4rem 0.6rem;
    font-weight: 650;
}

.home-fullscreen-workspace__quick-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.home-fullscreen-workspace__status,
.home-fullscreen-workspace__empty {
    margin: 0 0 0.5rem;
    color: #64748b;
    font-size: 0.8rem;
}

.home-fullscreen-workspace__competitor-list,
.home-fullscreen-workspace__points {
    max-height: 34vh;
    margin-top: 0.5rem;
    overflow-y: auto;
}

.home-fullscreen-workspace__competitor {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.78rem;
}

.home-fullscreen-workspace__competitor-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.home-fullscreen-workspace__competitor-distance {
    color: #64748b;
    white-space: nowrap;
}

.home-fullscreen-workspace[data-workspace-state="compact"] .home-fullscreen-workspace__panel {
    width: 56px;
    padding: 0.35rem;
}

.home-fullscreen-workspace[data-workspace-state="compact"] .home-fullscreen-workspace__title,
.home-fullscreen-workspace[data-workspace-state="compact"] .home-fullscreen-workspace__content,
.home-fullscreen-workspace[data-workspace-state="compact"] [data-fs-workspace-hide] {
    display: none;
}

.home-fullscreen-workspace[data-workspace-state="hidden"] .home-fullscreen-workspace__panel {
    transform: translateX(100%);
    pointer-events: none;
}

.home-fullscreen-workspace[data-workspace-state="hidden"] .home-fullscreen-workspace__launcher {
    display: grid;
}

@media (max-width: 640px) {
    .home-fullscreen-workspace__panel {
        width: min(88vw, 360px);
    }

    .home-fullscreen-workspace__settings {
        inset: 0;
        width: 100%;
        min-width: 0;
    }
}
