.toolbar.content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;


    padding: 12px;

    background: linear-gradient(180deg, var(--toolbarBG) 0%, rgba(255, 255, 255, 0) 100%);
}

.toolbar.content-wrapper.panel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;


    padding: 0px;

    background: transparent
}

.toolbar.controller-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;

    cursor: pointer;

    padding: 4px 18px 4px 10px;
    gap: 6px;

    background-color: var(--toolbarBG);
    border-radius: 99px;

    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.025), 0px 2px 15px rgba(0, 0, 0, 0.025);

    transition: all 0.25s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.toolbar.controller-wrapper:hover {
    scale: 1.01;
}

.toolbar.location-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;

    padding: 6px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--primary-accent);
    background-color: transparent;
    border-radius: 99px;
}

.toolbar.controller-details {
    display: flex;
    flex-direction: column;

    font-size: 12px;
}

.controller.active-window {
    font-weight: 700;
    color: var(--primary-text);
}

.controller.active-location {
    font-weight: 700;
    color: var(--secondary-text);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.toolbar.button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 6px;
}

.button.toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 36.83px;

    margin-top: 0px;
    padding: 0px;
    aspect-ratio: 1/1;

    color: var(--primary-accent);
    background-color: var(--toolbarBG);
    border-radius: 99px;

    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.025), 0px 2px 15px rgba(0, 0, 0, 0.025);

transition: all 0.25s cubic-bezier(0.00, 1.13, 0.00, 0.97);}

.button.toolbar:hover {
    scale: 1.025;
}

.button.toolbar.noaccent {
    color: var(--primary-text);
}

.input.toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 212px;
    height: 36.83px;

    margin-top: 0px;
    padding: 0px 16px;
    aspect-ratio: 1/1;

    border: none;
    color: var(--primary-accent);
    background-color: var(--toolbarBG);
    border-radius: 99px;

    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.025), 0px 2px 15px rgba(0, 0, 0, 0.025);
}

.toolbar.home.timeframe-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 36.83px;
    min-width: 213.66px;
    max-width: 512px;
    width: 40%;

    padding: 0px 6px;
    gap: 6px;

    font-size: 12px;
    font-weight: 500;
    color: var(--primary-text);
    background-color: var(--toolbarBG);
    border-radius: 99px;

    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.025), 0px 2px 15px rgba(0, 0, 0, 0.025);
}

.timeframe-current {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    height: 30.83px;
    width: 100%;
    min-width: 128px;
    padding: 0px 18px;

    font-weight: 700;
    color: var(--primary-text);
    background-color: var(--toolbar-insetBG);
    border-radius: 99px;

}

.timeframe-current[role="button"] {
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.00, 1.13, 0.00, 0.97);
}

.timeframe-current[role="button"]:hover {
    scale: 1.01;
}

.timeframe-current[role="button"]:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

.timeframe-shift {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    aspect-ratio: 1/1;
    height: 30.83px;

    background-color: var(--toolbar-insetBG);
    border-radius: 99px;
    cursor: pointer;
    user-select: none;

transition: all 0.25s cubic-bezier(0.00, 1.13, 0.00, 0.97);}

.timeframe-shift:hover {
    scale: 1.025;
}

.timeframe-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    width: 12px;
    height: 12px;
}

.timeframe-icon.previous {
    transform: rotate(180deg);
}

.home-timeframe.dialog {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    color: var(--primary-text);
}

.home-timeframe.dialog-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-timeframe.dialog-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-text);
}

.home-timeframe.dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    background: var(--bodyBG);
    color: var(--primary-text);
    cursor: pointer;
}

.home-timeframe.dialog-close:hover {
    background: var(--sectionBG);
}

.home-timeframe.panel-shell {
    margin-top: 16px;
    width: 100%;
}

.home-timeframe.panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.home-timeframe.field-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-timeframe.segmented {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    min-height: 42px;
    border: 1px solid var(--primary-border);
    border-radius: 99px;
    padding: 0px 3px;
    background-color: var(--sidebar-segmentedBG);
}

.home-timeframe.segmented-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 34px;
    border: none;
    border-radius: 99px;
    background: transparent;
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.home-timeframe.segmented-tab:hover {
    background: var(--sectionBG);
}

.home-timeframe.segmented-tab.active {
    background: var(--primary-accent);
    color: var(--primary-text-alt);
}

.home-timeframe.segmented-splitter {
    width: 1px;
    height: 18px;
    flex: 0 0 1px;
    background: var(--primary-border);
}

.home-timeframe.date-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-timeframe.field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-text);
    text-transform: uppercase;
}

.home-timeframe.date-input {
    min-height: 40px;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-text);
    background: var(--bodyBG);
}

.home-timeframe.date-input:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-accent) 65%, white);
    outline-offset: 1px;
}

.home-timeframe.range-preview {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-text);
}

.home-timeframe.actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .home-timeframe.dialog-title {
        font-size: 20px;
    }

    .home-timeframe.segmented-tab {
        font-size: 12px;
    }
}
