﻿.aetheon-ribbon {
    --aetheon-ribbon-background: #1e1e1e;
    --aetheon-ribbon-tabs-background: #181818;
    --aetheon-ribbon-surface-background: #2d2d30;
    --aetheon-ribbon-surface-background-secondary: #333337;
    --aetheon-ribbon-border: #3f3f46;
    --aetheon-ribbon-group-border: #3f3f46;
    --aetheon-ribbon-command-background: #202020;
    --aetheon-ribbon-command-hover-background: #333337;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #6ea8fe 24%, #202020);
    --aetheon-ribbon-command-active-border: #6ea8fe;
    --aetheon-ribbon-menu-background: #252526;
    --aetheon-ribbon-selection-background: #202020;
    --aetheon-ribbon-text: #f3f3f3;
    --aetheon-ribbon-muted-text: #c8c8c8;
    --aetheon-ribbon-icon: #dbeafe;
    --aetheon-ribbon-accent: #6ea8fe;
    --aetheon-ribbon-critical: #e5484d;

    display: grid;
    grid-template-rows: auto auto;
    min-width: 0;
    color: var(--aetheon-ribbon-text);
    background: var(--aetheon-ribbon-background);
    border-bottom: 1px solid var(--aetheon-ribbon-border);
    box-sizing: border-box;
}

.aetheon-ribbon--theme-default {
    --aetheon-ribbon-background: #202020;
    --aetheon-ribbon-tabs-background: #102033;
    --aetheon-ribbon-surface-background: #243f52;
    --aetheon-ribbon-surface-background-secondary: #2a4a61;
    --aetheon-ribbon-border: #255e7b;
    --aetheon-ribbon-group-border: #255e7b;
    --aetheon-ribbon-command-background: #202020;
    --aetheon-ribbon-command-hover-background: #2a4a61;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #008bd2 24%, #243f52);
    --aetheon-ribbon-command-active-border: #8e7cff;
    --aetheon-ribbon-menu-background: #243f52;
    --aetheon-ribbon-selection-background: #202020;
    --aetheon-ribbon-text: #f3f7fb;
    --aetheon-ribbon-muted-text: #aab6c3;
    --aetheon-ribbon-icon: #eaf6ff;
    --aetheon-ribbon-accent: #008bd2;
    --aetheon-ribbon-critical: #d13438;
}

.aetheon-ribbon--theme-light {
    --aetheon-ribbon-background: #f6f7f9;
    --aetheon-ribbon-tabs-background: #f6f7f9;
    --aetheon-ribbon-surface-background: #ffffff;
    --aetheon-ribbon-surface-background-secondary: #ffffff;
    --aetheon-ribbon-border: #d9dee7;
    --aetheon-ribbon-group-border: #e4e7ec;
    --aetheon-ribbon-command-background: #ffffff;
    --aetheon-ribbon-command-hover-background: #f1f3f6;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #0b6fda 8%, #ffffff);
    --aetheon-ribbon-command-active-border: #0b6fda;
    --aetheon-ribbon-menu-background: #ffffff;
    --aetheon-ribbon-selection-background: #ffffff;
    --aetheon-ribbon-text: #1f2937;
    --aetheon-ribbon-muted-text: #535d6b;
    --aetheon-ribbon-icon: #0b6fda;
    --aetheon-ribbon-accent: #0b6fda;
    --aetheon-ribbon-critical: #b42318;
}

.aetheon-ribbon--theme-dark {
    --aetheon-ribbon-background: #1e1e1e;
    --aetheon-ribbon-tabs-background: #181818;
    --aetheon-ribbon-surface-background: #2d2d30;
    --aetheon-ribbon-surface-background-secondary: #333337;
    --aetheon-ribbon-border: #3f3f46;
    --aetheon-ribbon-group-border: #3f3f46;
    --aetheon-ribbon-command-background: #202020;
    --aetheon-ribbon-command-hover-background: #333337;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #6ea8fe 24%, #202020);
    --aetheon-ribbon-command-active-border: #6ea8fe;
    --aetheon-ribbon-menu-background: #252526;
    --aetheon-ribbon-selection-background: #202020;
    --aetheon-ribbon-text: #f3f3f3;
    --aetheon-ribbon-muted-text: #c8c8c8;
    --aetheon-ribbon-icon: #dbeafe;
    --aetheon-ribbon-accent: #6ea8fe;
    --aetheon-ribbon-critical: #e5484d;
}

.aetheon-ribbon--theme-slate-teal {
    --aetheon-ribbon-background: #13202a;
    --aetheon-ribbon-tabs-background: #0d2630;
    --aetheon-ribbon-surface-background: #203b47;
    --aetheon-ribbon-surface-background-secondary: #264854;
    --aetheon-ribbon-border: #386271;
    --aetheon-ribbon-group-border: #386271;
    --aetheon-ribbon-command-background: #172833;
    --aetheon-ribbon-command-hover-background: #264854;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #4db6ac 25%, #172833);
    --aetheon-ribbon-command-active-border: #7edfd5;
    --aetheon-ribbon-menu-background: #1b3440;
    --aetheon-ribbon-selection-background: #172833;
    --aetheon-ribbon-text: #e8f3f5;
    --aetheon-ribbon-muted-text: #abc7cd;
    --aetheon-ribbon-icon: #cbfbf6;
    --aetheon-ribbon-accent: #4db6ac;
    --aetheon-ribbon-critical: #ef6f6c;
}

.aetheon-ribbon--theme-graphite-violet {
    --aetheon-ribbon-background: #1e1e22;
    --aetheon-ribbon-tabs-background: #272330;
    --aetheon-ribbon-surface-background: #303039;
    --aetheon-ribbon-surface-background-secondary: #383746;
    --aetheon-ribbon-border: #575468;
    --aetheon-ribbon-group-border: #575468;
    --aetheon-ribbon-command-background: #242328;
    --aetheon-ribbon-command-hover-background: #383746;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #a78bfa 24%, #242328);
    --aetheon-ribbon-command-active-border: #c4b5fd;
    --aetheon-ribbon-menu-background: #2b2b31;
    --aetheon-ribbon-selection-background: #242328;
    --aetheon-ribbon-text: #f4f1fa;
    --aetheon-ribbon-muted-text: #c9c2d9;
    --aetheon-ribbon-icon: #e9ddff;
    --aetheon-ribbon-accent: #a78bfa;
    --aetheon-ribbon-critical: #f87171;
}

.aetheon-ribbon--theme-olive-steel {
    --aetheon-ribbon-background: #1d241f;
    --aetheon-ribbon-tabs-background: #263025;
    --aetheon-ribbon-surface-background: #303a33;
    --aetheon-ribbon-surface-background-secondary: #38443b;
    --aetheon-ribbon-border: #586555;
    --aetheon-ribbon-group-border: #586555;
    --aetheon-ribbon-command-background: #242a26;
    --aetheon-ribbon-command-hover-background: #38443b;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #a3b18a 24%, #242a26);
    --aetheon-ribbon-command-active-border: #c2d29a;
    --aetheon-ribbon-menu-background: #2a332c;
    --aetheon-ribbon-selection-background: #242a26;
    --aetheon-ribbon-text: #eef4ea;
    --aetheon-ribbon-muted-text: #c6d0bf;
    --aetheon-ribbon-icon: #e1f0c0;
    --aetheon-ribbon-accent: #a3b18a;
    --aetheon-ribbon-critical: #e78284;
}

.aetheon-ribbon--theme-cloud-blue {
    --aetheon-ribbon-background: #eef4fa;
    --aetheon-ribbon-tabs-background: #d8e8f6;
    --aetheon-ribbon-surface-background: #ffffff;
    --aetheon-ribbon-surface-background-secondary: #edf5fc;
    --aetheon-ribbon-border: #b7cadd;
    --aetheon-ribbon-group-border: #b7cadd;
    --aetheon-ribbon-command-background: #e5eff8;
    --aetheon-ribbon-command-hover-background: #edf5fc;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #3a7ca5 18%, #ffffff);
    --aetheon-ribbon-command-active-border: #2f80ed;
    --aetheon-ribbon-menu-background: #ffffff;
    --aetheon-ribbon-selection-background: #ffffff;
    --aetheon-ribbon-text: #172033;
    --aetheon-ribbon-muted-text: #526475;
    --aetheon-ribbon-icon: #2f80ed;
    --aetheon-ribbon-accent: #3a7ca5;
    --aetheon-ribbon-critical: #b42318;
}

.aetheon-ribbon--theme-obsidian-pulse {
    --aetheon-ribbon-background: #05070b;
    --aetheon-ribbon-tabs-background: #030712;
    --aetheon-ribbon-surface-background: #101827;
    --aetheon-ribbon-surface-background-secondary: #151f33;
    --aetheon-ribbon-border: #334155;
    --aetheon-ribbon-group-border: #334155;
    --aetheon-ribbon-command-background: #090d16;
    --aetheon-ribbon-command-hover-background: #151f33;
    --aetheon-ribbon-command-active-background: color-mix(in srgb, #00e5ff 22%, #090d16);
    --aetheon-ribbon-command-active-border: #ff4fd8;
    --aetheon-ribbon-menu-background: #0b1020;
    --aetheon-ribbon-selection-background: #090d16;
    --aetheon-ribbon-text: #f8fafc;
    --aetheon-ribbon-muted-text: #b6c2d3;
    --aetheon-ribbon-icon: #b9f8ff;
    --aetheon-ribbon-accent: #00e5ff;
    --aetheon-ribbon-critical: #fb7185;
}
.aetheon-ribbon.aetheon-ribbon--rounded {
    background: var(--aetheon-ribbon-tabs-background);
}

.aetheon-ribbon__tabs {
    display: flex;
    align-items: end;
    gap: 0;
    min-width: 0;
    min-height: 31px;
    padding: 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--aetheon-ribbon-tabs-background);
}

.aetheon-ribbon__tab {
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    color: var(--aetheon-ribbon-muted-text);
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.aetheon-ribbon__tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: width 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.aetheon-ribbon__tab:hover,
.aetheon-ribbon__tab:focus {
    color: var(--aetheon-ribbon-text);
    background: transparent;
    outline: none;
}

.aetheon-ribbon__tab:focus-visible {
    box-shadow: inset 0 0 0 1px var(--aetheon-ribbon-border);
}

.aetheon-ribbon__tab:hover::after,
.aetheon-ribbon__tab:focus-visible::after {
    width: 28px;
    background: color-mix(in srgb, var(--aetheon-ribbon-muted-text) 55%, transparent);
    transform: translateX(-50%) scaleX(1);
}

.aetheon-ribbon__tab--selected,
.aetheon-ribbon__tab[aria-selected="true"],
.aetheon-ribbon__tab[aria-selected="True"] {
    color: var(--aetheon-ribbon-text);
    background: transparent;
    font-weight: 700;
}

.aetheon-ribbon__tab--selected::after,
.aetheon-ribbon__tab[aria-selected="true"]::after,
.aetheon-ribbon__tab[aria-selected="True"]::after {
    width: 24px;
    background: var(--aetheon-ribbon-accent);
    transform: translateX(-50%) scaleX(1);
}

.aetheon-ribbon__tab--selected:hover::after,
.aetheon-ribbon__tab--selected:focus-visible::after,
.aetheon-ribbon__tab[aria-selected="true"]:hover::after,
.aetheon-ribbon__tab[aria-selected="true"]:focus-visible::after,
.aetheon-ribbon__tab[aria-selected="True"]:hover::after,
.aetheon-ribbon__tab[aria-selected="True"]:focus-visible::after {
    width: 34px;
    background: var(--aetheon-ribbon-accent);
}

.aetheon-ribbon__tab--contextual {
    color: color-mix(in srgb, var(--aetheon-ribbon-accent) 62%, var(--aetheon-ribbon-text));
}

.aetheon-ribbon__surface {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    min-height: 90px;
    padding: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid var(--aetheon-ribbon-border);
    background: var(--aetheon-ribbon-surface-background);
}

.aetheon-ribbon--rounded .aetheon-ribbon__surface {
    margin: 0 4px 4px;
    border: 1px solid var(--aetheon-ribbon-border);
    border-radius: 5px;
    background: var(--aetheon-ribbon-surface-background-secondary);
}

.aetheon-ribbon__empty {
    display: grid;
    place-items: center;
    min-height: 84px;
    min-width: 220px;
    color: var(--aetheon-ribbon-muted-text);
    font-size: 0.86rem;
}

.aetheon-ribbon__group {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 88px;
    min-height: 80px;
    padding: 0 8px 2px;
    border-right: 1px solid var(--aetheon-ribbon-group-border);
    box-sizing: border-box;
}

.aetheon-ribbon__group-commands {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 0;
}

.aetheon-ribbon__group-label {
    min-width: 0;
    overflow: hidden;
    color: var(--aetheon-ribbon-muted-text);
    font-size: 0.66rem;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aetheon-ribbon__command,
.aetheon-ribbon__menu-summary,
.aetheon-ribbon__split-summary,
.aetheon-ribbon__menu-item {
    border: 1px solid transparent;
    color: var(--aetheon-ribbon-text);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.aetheon-ribbon__command {
    display: grid;
    place-items: center;
    min-width: var(--aetheon-ribbon-command-width, 34px);
    min-height: 32px;
    padding: 4px 7px;
    box-sizing: border-box;
    text-decoration: none;
}

.aetheon-ribbon__command--largeiconbutton {
    min-width: var(--aetheon-ribbon-command-width, 58px);
    min-height: 62px;
    padding: 4px 6px 2px;
}

.aetheon-ribbon__command:hover,
.aetheon-ribbon__command:focus,
.aetheon-ribbon__menu-summary:hover,
.aetheon-ribbon__menu-summary:focus,
.aetheon-ribbon__split-summary:hover,
.aetheon-ribbon__split-summary:focus,
.aetheon-ribbon__menu-item:hover,
.aetheon-ribbon__menu-item:focus {
    border-color: var(--aetheon-ribbon-border);
    background: var(--aetheon-ribbon-command-hover-background);
    outline: none;
}

.aetheon-ribbon__command--active,
.aetheon-ribbon__command[aria-pressed="true"] {
    border-color: transparent;
    background: var(--aetheon-ribbon-command-active-background);
}

.aetheon-ribbon__command:disabled,
.aetheon-ribbon__menu-item:disabled,
.aetheon-ribbon__selection--disabled,
.aetheon-ribbon__menu-command--disabled,
.aetheon-ribbon__split-command--disabled {
    opacity: 0.48;
    cursor: default;
}

.aetheon-ribbon__command-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.aetheon-ribbon__command-content--large {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    min-width: 42px;
    height: 100%;
}

.aetheon-ribbon__command-icon,
.aetheon-ribbon__menu-icon,
.aetheon-ribbon__chevron {
    display: inline-grid;
    place-items: center;
    font-family: "Segoe MDL2 Assets";
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.aetheon-ribbon__command-icon {
    color: var(--aetheon-ribbon-icon);
    font-size: 1rem;
}

.aetheon-ribbon__command-content--large .aetheon-ribbon__command-icon {
    align-self: center;
    font-size: 1.75rem;
}

.aetheon-ribbon__command-text {
    min-width: 0;
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aetheon-ribbon__command-content--large .aetheon-ribbon__command-text {
    max-width: 58px;
    text-align: center;
    white-space: normal;
}

.aetheon-ribbon__menu-command {
    position: relative;
    min-width: var(--aetheon-ribbon-command-width, 40px);
}

.aetheon-ribbon__menu-summary {
    display: grid;
    min-height: 32px;
    padding: 4px 7px;
    list-style: none;
}

.aetheon-ribbon__menu-summary::-webkit-details-marker,
.aetheon-ribbon__split-summary::-webkit-details-marker {
    display: none;
}

.aetheon-ribbon__menu-command[open] .aetheon-ribbon__menu,
.aetheon-ribbon__split-menu[open] .aetheon-ribbon__menu {
    display: grid;
}

.aetheon-ribbon__menu {
    position: absolute;
    z-index: 20;
    display: none;
    min-width: 190px;
    margin-top: 2px;
    padding: 5px;
    border: 1px solid var(--aetheon-ribbon-border);
    background: var(--aetheon-ribbon-menu-background);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.aetheon-ribbon__menu-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 8px;
    text-align: left;
}

.aetheon-ribbon__split-command {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    align-items: stretch;
}

.aetheon-ribbon__split-command > .aetheon-ribbon__command {
    min-width: var(--aetheon-ribbon-command-width, 64px);
}

.aetheon-ribbon__split-summary {
    display: grid;
    width: 22px;
    min-height: 32px;
    place-items: center;
    padding: 0;
    list-style: none;
}

.aetheon-ribbon__split-menu {
    position: static;
}

.aetheon-ribbon__selection {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: var(--aetheon-ribbon-command-width, 116px);
    min-height: 54px;
    color: var(--aetheon-ribbon-text);
}

.aetheon-ribbon__selection-label {
    color: var(--aetheon-ribbon-muted-text);
    font-size: 0.68rem;
    font-weight: 700;
}

.aetheon-ribbon__selection-input {
    width: 100%;
    min-width: 0;
    height: 30px;
    border: 1px solid var(--aetheon-ribbon-border);
    color: var(--aetheon-ribbon-text);
    background: var(--aetheon-ribbon-selection-background);
    font: inherit;
    font-size: 0.78rem;
}

@media (max-width: 760px) {
    .aetheon-ribbon__surface {
        min-height: 78px;
        padding: 4px;
    }

    .aetheon-ribbon__group {
        min-width: 76px;
        min-height: 70px;
        padding-inline: 5px;
    }

    .aetheon-ribbon__command--largeiconbutton {
        min-width: 48px;
    }

    .aetheon-ribbon__command-content--large .aetheon-ribbon__command-icon {
        font-size: 1.45rem;
    }

    .aetheon-ribbon__command-text {
        font-size: 0.68rem;
    }
}
