.sgo-page {
    width: 100%;
    margin: 0 auto;
    container-name: sgo-page;
    container-type: inline-size;
}

.sgo-page--compact {
    max-width: 960px;
}

.sgo-page--standard {
    max-width: 1280px;
}

.sgo-page-header {
    display: flex;
    min-height: 68px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--sgo-space-5);
    gap: var(--sgo-space-5);
}

.sgo-page-header__main {
    min-width: 0;
    max-width: 100%;
}

.sgo-page-header__eyebrow {
    margin-bottom: var(--sgo-space-1);
    color: var(--sgo-color-brand-700);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sgo-page-header__title-row {
    display: flex;
    align-items: center;
    gap: var(--sgo-space-3);
}

.sgo-page-header__avatar { width:40px; height:40px; flex:0 0 40px; object-fit:contain; border-radius:var(--sgo-radius-sm); }
.sgo-page-header__avatar-wrap { position:relative; display:inline-flex; flex:0 0 40px; width:40px; height:40px; cursor:zoom-in; }
.sgo-page-header__avatar-preview { display:none; position:absolute; top:calc(100% + 8px); left:0; width:160px; height:160px; max-width:none; object-fit:contain; padding:4px; background:var(--sgo-color-surface); border:1px solid var(--sgo-color-line); border-radius:var(--sgo-radius-sm); box-shadow:0 4px 16px rgba(0,0,0,.2); z-index:100; pointer-events:none; }
.sgo-page-header__avatar-wrap:hover .sgo-page-header__avatar-preview,
.sgo-page-header__avatar-wrap:focus .sgo-page-header__avatar-preview { display:block; }
.sgo-page-header__title-row:has(.sgo-page-header__avatar) { flex-direction:row; align-items:center; }

.sgo-page-header__title {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--sgo-color-ink-950);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.sgo-page-header__status {
    flex-shrink: 0;
    padding: 4px 9px;
    border: 1px solid var(--sgo-color-line-strong);
    border-radius: var(--sgo-radius-chip);
    background: var(--sgo-color-surface);
    color: var(--sgo-color-ink-600);
    font-size: 11px;
    font-weight: 650;
}

.sgo-page-header__subtitle {
    max-width: 760px;
    margin: var(--sgo-space-1) 0 0;
    color: var(--sgo-color-ink-600);
    font-size: 13px;
}

.sgo-page-header--compact {
    min-height: 0;
    align-items: flex-start;
    margin-bottom: 0;
    gap: var(--sgo-space-3);
}

.sgo-page-header--compact .sgo-page-header__main {
    display: flex;
    align-items: center;
}

.sgo-page-header--compact.sgo-page-header--has-actions,
.sgo-page-header--compact.sgo-page-header--has-status,
.sgo-page-header--compact.sgo-page-header--has-summary {
    margin-bottom: var(--sgo-space-3);
}

.sgo-page-header--compact.sgo-page-header--has-status .sgo-page-header__main {
    min-height: 36px;
}

.sgo-page-header--compact .sgo-page-header__summary {
    overflow: hidden;
    min-width: 0;
    flex: 1 1 auto;
}

.sgo-page-header--compact > .sgo-action-bar--adaptive {
    width: fit-content;
    max-width: 65%;
    flex: 0 1 65%;
}

.sgo-action-bar {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sgo-space-2);
}

.sgo-action-bar--adaptive {
    position: relative;
    overflow: visible;
    flex-wrap: nowrap;
}

.sgo-sticky-context-bar {
    position: sticky;
    z-index: 980;
    top: var(--sgo-topbar-height);
    display: grid;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--sgo-color-line);
    border-radius: var(--sgo-radius-md);
    background: color-mix(in srgb, var(--sgo-color-surface) 97%, transparent);
    box-shadow: var(--sgo-shadow-sm);
    gap: 8px;
    backdrop-filter: blur(10px);
}
.sgo-sticky-context-bar__top { display: flex; min-width: 0; align-items: center; gap: 10px; }
.sgo-sticky-context-bar__context { min-width: 0; flex: 1 1 auto; }
.sgo-sticky-context-bar__actions { display: flex; min-width: 0; flex: 0 0 auto; align-items: center; justify-content: flex-end; }
.sgo-sticky-context-bar__actions:empty { display: none; }
.sgo-sticky-context-bar__actions > .sgo-action-bar {
    box-sizing: border-box;
    width: max-content;
    min-height: 44px;
    max-width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 1px;
    scrollbar-width: thin;
}
.sgo-sticky-context-bar__actions > .sgo-action-bar .sgo-action { flex: 0 0 auto; margin-block: 0; }
.sgo-sticky-context-bar__top.is-context-below,
.sgo-sticky-context-bar__top.is-actions-below { align-items: stretch; flex-wrap: wrap; }
.sgo-sticky-context-bar__top.is-context-below .sgo-sticky-context-bar__actions { order: 1; width: 100%; }
.sgo-sticky-context-bar__top.is-context-below .sgo-sticky-context-bar__context { order: 2; width: 100%; flex-basis: 100%; }
.sgo-sticky-context-bar__top.is-context-below.is-context-before .sgo-sticky-context-bar__context { order: 1; }
.sgo-sticky-context-bar__top.is-context-below.is-context-before .sgo-sticky-context-bar__actions { order: 2; justify-content: flex-start; }
.sgo-sticky-context-bar__top.is-actions-below .sgo-sticky-context-bar__context { order: 1; width: 100%; flex-basis: 100%; }
.sgo-sticky-context-bar__top.is-actions-below .sgo-sticky-context-bar__actions { order: 2; width: 100%; justify-content: flex-start; }
.sgo-sticky-context-bar__top.is-scroll-only .sgo-sticky-context-bar__actions { overflow: hidden; flex: 1 1 auto; }
.sgo-sticky-context-bar__toolbar:empty { display: none; }

.sgo-action-bar__item,
.sgo-action-bar__overflow {
    min-width: 0;
    flex: 0 0 auto;
}

.sgo-action-bar__overflow {
    position: relative;
}

.sgo-action-bar__overflow[hidden],
.sgo-action-bar__overflow-menu[hidden] {
    display: none;
}

.sgo-action-bar__overflow-menu {
    position: absolute;
    z-index: 1250;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    min-width: 230px;
    max-width: min(340px, calc(100vw - 32px));
    padding: 6px;
    border: 1px solid var(--sgo-color-line-strong);
    border-radius: var(--sgo-radius-md);
    background: var(--sgo-color-surface);
    box-shadow: var(--sgo-shadow-md);
    gap: 3px;
}

.sgo-action-bar__overflow-menu .sgo-action-bar__item {
    width: 100%;
}

.sgo-action-bar__overflow-menu .sgo-action {
    width: 100%;
    justify-content: flex-start;
    border-color: transparent;
    background: transparent;
}

.sgo-action-bar__overflow-menu .sgo-action:hover {
    border-color: transparent;
    background: var(--sgo-color-brand-50);
}

.sgo-action-bar__overflow-menu .sgo-action--danger {
    color: var(--sgo-color-danger) !important;
}

.sgo-action {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid var(--sgo-color-line-strong);
    border-radius: var(--sgo-radius-sm);
    background: var(--sgo-color-surface);
    color: var(--sgo-color-ink-800) !important;
    font-size: 12px;
    font-weight: 650;
    gap: 6px;
    text-decoration: none !important;
    transition: background var(--sgo-transition-fast), border-color var(--sgo-transition-fast);
}

.sgo-action[hidden] {
    display: none !important;
}

.sgo-action:hover {
    border-color: var(--sgo-color-brand-700);
    background: var(--sgo-color-brand-50);
}

.sgo-action--primary {
    border-color: var(--sgo-color-brand-solid);
    background: var(--sgo-color-brand-solid);
    color: var(--sgo-color-on-solid) !important;
}

.sgo-action--primary:hover {
    border-color: var(--sgo-color-brand-solid-hover);
    background: var(--sgo-color-brand-solid-hover);
}

.sgo-action--danger {
    border-color: color-mix(in srgb, var(--sgo-color-danger) 38%, var(--sgo-color-line));
    color: var(--sgo-color-danger) !important;
}

.sgo-action--quiet {
    min-height: 30px;
    padding: 4px 9px;
    border-color: var(--sgo-color-line);
    background: transparent;
    color: var(--sgo-color-ink-600) !important;
    font-size: 11px;
    font-weight: 700;
}

.sgo-action--quiet:hover,
.sgo-action--quiet:focus-visible {
    border-color: var(--sgo-color-line-strong);
    background: var(--sgo-color-surface-muted);
    color: var(--sgo-color-ink-950) !important;
}

.sgo-action--quiet .sgo-action__icon {
    font-size: 16px;
}

.sgo-action--favorite {
    border-color: color-mix(in srgb, var(--sgo-color-favorite) 62%, var(--sgo-color-line));
    color: var(--sgo-color-favorite) !important;
}

.sgo-action--favorite:hover,
.sgo-action--favorite:focus-visible {
    border-color: var(--sgo-color-favorite);
    background: color-mix(in srgb, var(--sgo-color-favorite) 13%, var(--sgo-color-surface));
    color: var(--sgo-color-favorite) !important;
}

.sgo-action-bar__overflow-menu .sgo-action--favorite {
    color: var(--sgo-color-favorite) !important;
}

.sgo-action .sgo-action__icon {
    display: inline-flex;
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    align-items: center;
    justify-content: center;
    overflow: visible;
    font-size: 17px;
    line-height: 1;
}

.sgo-action-bar--compact .sgo-action:not(.sgo-action--quiet) { min-height:32px; padding:5px 10px; font-size:12px; }

.sgo-action__label {
    min-width: 0;
    white-space: nowrap;
}

.sgo-shortcut-hint {
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
    color: inherit;
    white-space: nowrap;
    gap: 3px;
}

.sgo-shortcut-hint__key {
    display: inline-flex;
    min-width: 20px;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
    border-radius: 4px;
    background: color-mix(in srgb, var(--sgo-color-surface) 14%, transparent);
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
}

.sgo-shortcut-hint__shift { font-size: 13px; }

.sgo-action--icon-only {
    width: 36px;
    padding-inline: 8px;
}

.sgo-action--icon-only > .sgo-action__label--compact-hidden {
    display: none;
}

.sgo-action-bar__overflow-menu .sgo-action--icon-only {
    width: 100%;
}

.sgo-action-bar__overflow-menu .sgo-action--icon-only > .sgo-action__label--compact-hidden {
    display: inline;
}

.sgo-page__content {
    min-width: 0;
}

body.sgo-v2 .rich-status-select__panel {
    z-index: 1200;
    padding: 5px;
    border-color: var(--sgo-color-line-strong);
    border-radius: var(--sgo-radius-md);
    background: var(--sgo-color-surface);
    box-shadow: var(--sgo-shadow-md);
}

body.sgo-v2 .rich-status-select__button {
    border-color: var(--sgo-color-line-strong);
    background: var(--sgo-color-input);
    color: var(--sgo-color-ink-950);
}

body.sgo-v2 .rich-status-select__segment {
    border-color: var(--sgo-color-line-strong);
    background: var(--sgo-color-input);
    color: var(--sgo-color-ink-800);
}

body.sgo-v2 .rich-status-select__segment:hover {
    border-color: var(--sgo-color-brand-500);
    background: var(--sgo-color-brand-50);
}

body.sgo-v2 .rich-status-select__segment.is-selected {
    border-color: var(--sgo-color-brand-700);
    background: var(--sgo-color-brand-100);
    color: var(--sgo-color-ink-950);
}

body.sgo-v2 .rich-status-select__option {
    min-height: 36px;
    padding: 7px 10px 7px 32px;
    border-radius: var(--sgo-radius-sm);
    color: var(--sgo-color-ink-800);
}

body.sgo-v2 .rich-status-select__option:hover,
body.sgo-v2 .rich-status-select__option.is-active {
    background: var(--sgo-color-brand-50);
}

body.sgo-v2 .rich-status-select__option[aria-selected="true"] {
    background: var(--sgo-color-brand-100);
    box-shadow: inset 3px 0 var(--sgo-color-brand-700);
}

body.sgo-v2 .rich-status-select__status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--sgo-color-line-strong);
    border-radius: var(--sgo-radius-chip);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
}

body.sgo-v2 .rich-status-select__status--neutral {
    background: var(--sgo-color-surface-muted);
    color: var(--sgo-color-ink-600);
}

body.sgo-v2 .rich-status-select__status--info {
    border-color: color-mix(in srgb, var(--sgo-color-brand-700) 28%, var(--sgo-color-line));
    background: var(--sgo-color-brand-50);
    color: var(--sgo-color-brand-800);
}

body.sgo-v2 .rich-status-select__status--success {
    border-color: color-mix(in srgb, var(--sgo-color-success) 24%, var(--sgo-color-line));
    background: color-mix(in srgb, var(--sgo-color-success-tint) 72%, var(--sgo-color-surface));
    color: var(--sgo-color-success);
}

body.sgo-v2 .rich-status-select__status--warning {
    border-color: color-mix(in srgb, var(--sgo-color-warning) 24%, var(--sgo-color-line));
    background: color-mix(in srgb, var(--sgo-color-warning-tint) 72%, var(--sgo-color-surface));
    color: var(--sgo-color-warning);
}

body.sgo-v2 .rich-status-select__status--danger {
    border-color: color-mix(in srgb, var(--sgo-color-danger) 30%, var(--sgo-color-line));
    background: var(--sgo-color-danger-tint);
    color: var(--sgo-color-danger);
}

body.sgo-v2 .rich-status-select__tone-card {
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
    border: 1px solid var(--sgo-color-line-strong);
    border-radius: var(--sgo-radius-chip);
    background: var(--sgo-color-surface-muted);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sgo-color-surface) 55%, transparent);
}

body.sgo-v2 .rich-status-select__tone-card--neutral {
    border-color: var(--sgo-color-line-strong);
    background: var(--sgo-color-surface-muted);
}

body.sgo-v2 .rich-status-select__tone-card--info {
    border-color: color-mix(in srgb, var(--sgo-color-brand-700) 28%, var(--sgo-color-line));
    background: var(--sgo-color-brand-50);
}

body.sgo-v2 .rich-status-select__tone-card--success {
    border-color: color-mix(in srgb, var(--sgo-color-success) 24%, var(--sgo-color-line));
    background: color-mix(in srgb, var(--sgo-color-success-tint) 72%, var(--sgo-color-surface));
}

body.sgo-v2 .rich-status-select__tone-card--warning {
    border-color: color-mix(in srgb, var(--sgo-color-warning) 24%, var(--sgo-color-line));
    background: color-mix(in srgb, var(--sgo-color-warning-tint) 72%, var(--sgo-color-surface));
}

body.sgo-v2 .rich-status-select__tone-card--danger {
    border-color: color-mix(in srgb, var(--sgo-color-danger) 30%, var(--sgo-color-line));
    background: var(--sgo-color-danger-tint);
}

@container sgo-page (max-width: 1050px) {
    .sgo-page-header {
        flex-direction: column;
    }

    .sgo-page-header > .sgo-action-bar {
        width: 100%;
        justify-content: flex-start;
    }

    .sgo-page-header--compact {
        flex-direction: row;
    }

    .sgo-page-header--compact > .sgo-action-bar {
        width: auto;
        justify-content: flex-end;
    }
}

@container sgo-page (max-width: 540px) {
    .sgo-page-header__title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--sgo-space-2);
    }

    .sgo-action {
        flex: 1 1 calc(50% - var(--sgo-space-2));
    }

    .sgo-page-header--compact {
        align-items: stretch;
        flex-direction: column;
    }

    .sgo-page-header--compact > .sgo-action-bar--adaptive {
        width: 100%;
        max-width: none;
        flex-basis: auto;
        order: 1;
    }

    .sgo-page-header--compact .sgo-page-header__summary {
        order: 2;
    }

    .sgo-page-header--compact > .sgo-action-bar {
        width: 100%;
        justify-content: flex-end;
    }

    .sgo-action-bar--adaptive .sgo-action,
    .sgo-action-bar--adaptive .sgo-action-bar__item {
        flex: 0 0 auto;
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 1180px) {
        .sgo-page-header { flex-direction: column; }
        .sgo-page-header > .sgo-action-bar { width: 100%; justify-content: flex-start; }
        .sgo-page-header--compact { flex-direction: row; }
        .sgo-page-header--compact > .sgo-action-bar { width: auto; justify-content: flex-end; }
    }
}
.sgo-admin-indicator__identity {
    display: inline-flex;
    align-items: center;
    gap: var(--sgo-space-3);
    min-width: 0;
}

.sgo-admin-indicator__identity > .material-icons {
    color: var(--sgo-color-brand-solid);
    flex: 0 0 auto;
}

.sgo-admin-indicator__identity > span:last-child {
    display: grid;
    min-width: 0;
}
