body.admin-shell {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--ground);
    color: var(--ink);
    font: 14px/1.4 var(--ui);
    -webkit-font-smoothing: antialiased;
}
.admin-shell [x-cloak],
.admin-shell [hidden] {
    display: none !important;
}
.admin-shell *,
.admin-shell *::before,
.admin-shell *::after {
    box-sizing: border-box;
}
.admin-shell * {
    scrollbar-color: var(--rule) var(--ground);
    scrollbar-width: thin;
}
.admin-shell ::selection {
    background: var(--indigo);
    color: var(--paper);
}
.admin-shell :is(input, textarea) {
    caret-color: var(--indigo);
}
.admin-shell :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
.admin-shell__app {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    height: 100%;
}
.admin-shell__skip {
    position: fixed;
    top: 8px;
    left: calc(var(--rail) + 20px);
    z-index: 1100;
    padding: 10px;
    background: var(--paper);
    color: var(--indigo);
    transform: translateY(-160%);
}
.admin-shell__skip:focus {
    transform: none;
}
.admin-shell__rail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 24px 0 18px;
    background: var(--indigo);
    color: var(--rail-text);
}
.admin-shell__rail :focus-visible {
    outline-color: var(--paper);
}
.admin-shell__wordmark {
    flex-shrink: 0;
    display: block;
    padding: 0 24px 28px;
    color: var(--paper);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-decoration: none;
}
.admin-shell__wordmark span {
    display: block;
    color: var(--wordmark-accent);
}
.admin-shell__wordmark:is(:hover, :focus) {
    color: var(--paper);
    text-decoration: none;
}
.admin-shell__nav {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}
.admin-shell__nav a,
.admin-shell__catalogue summary {
    display: block;
    padding: 9px 24px;
    color: var(--rail-text);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.admin-shell__nav a:hover,
.admin-shell__catalogue summary:hover {
    background: var(--rail-hover);
    color: var(--rail-text);
    text-decoration: none;
}
.admin-shell__nav a[aria-current="page"] {
    background: var(--ground);
    color: var(--indigo);
}
.admin-shell__catalogue summary {
    cursor: pointer;
    display: list-item;
    list-style-position: inside;
}
.admin-shell__catalogue a {
    padding: 7px 24px 7px 36px;
    font-size: 13px;
}
.admin-shell__identity {
    flex-shrink: 0;
    margin-top: auto;
    padding: 20px 24px 0;
    border-top: 1px solid var(--rail-rule);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.admin-shell__identity a {
    display: block;
    margin-bottom: 8px;
    color: var(--rail-text);
    text-underline-offset: 3px;
}
.admin-shell__identity p {
    margin: 0 0 8px;
}
.admin-shell__logout {
    margin: 0;
}
.admin-shell__logout-button {
    min-height: 30px;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rail-text);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.admin-shell__main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
}
.admin-shell__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 22px;
    align-items: center;
    padding: 20px 28px 15px;
    border-bottom: 2px solid var(--ink);
}
.admin-shell__header .admin-shell__title {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.admin-shell__facts {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.admin-shell__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    font-size: 13px;
    font-weight: 600;
}
.admin-shell__steps a {
    padding: 8px 0 5px;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    text-decoration: none;
}
.admin-shell__steps a[aria-current="step"] {
    border-color: var(--madder);
    color: var(--ink);
}
.admin-shell__steps a:hover {
    border-bottom-color: var(--rule);
    color: var(--indigo);
}
.admin-shell__workspace {
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    font-variant-numeric: tabular-nums;
}
.admin-shell--legacy .admin-shell__workspace {
    padding: 24px 28px;
}
.admin-shell__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 62px;
    padding: 12px 28px;
    border-top: 2px solid var(--ink);
    background: var(--paper);
}
.admin-shell__status {
    margin: 0;
    font-size: 13px;
}
.admin-shell__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.admin-shell__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 13px;
    border: 2px solid var(--indigo);
    border-radius: 0;
    background: var(--indigo);
    color: var(--paper);
    font: 700 14px/1.4 var(--ui);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}
.admin-shell__button:is(:hover, :focus) {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}
.admin-shell__button:disabled,
.admin-shell__button[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
}
.admin-shell__flash {
    margin: 16px 28px;
    padding: 12px;
    border: 1px solid var(--rule);
    background: var(--paper);
    overflow-wrap: anywhere;
}
.admin-shell__flash[role="alert"] {
    border-color: var(--madder);
    color: var(--madder);
    background: var(--attention);
}
/* Keep loading targets available without bringing legacy styles into imports. */
.admin-shell #loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgb(255 255 255 / 80%) url('../img/ajax-loader2.gif') center no-repeat;
}
@media (max-width: 1279px) {
    .admin-shell {
        --rail: 180px;
    }
    .admin-shell__header,
    .admin-shell__footer {
        padding-inline: 20px;
    }
}
@media (max-width: 767px) {
    .admin-shell {
        --rail: 145px;
    }
    .admin-shell__header {
        grid-template-columns: minmax(0, 1fr);
    }
    .admin-shell__nav a,
    .admin-shell__catalogue summary {
        padding-inline: 14px;
    }
    .admin-shell__wordmark,
    .admin-shell__identity {
        padding-inline: 14px;
    }
    .admin-shell__footer {
        flex-wrap: wrap;
    }
    .admin-shell--legacy .admin-shell__workspace {
        padding: 16px;
    }
}
