@font-face {
    font-family: Inter;
    src: url("fonts/inter-cyrillic.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --shell-rail: 212px;
    --shell-bar: 52px;
    --shell-width: 1128px;
    --shell-gutter: clamp(16px, 2vw, 26px);
    --shell-radius: 3px;
    --shell-control-height: 34px;
    --shell-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --shell-canvas: light-dark(#f6f7f8, #161a1e);
    --shell-paper: light-dark(#fff, #1c2227);
    --shell-light: light-dark(#f7f8f9, #232a30);
    --shell-line: light-dark(#e0e3e5, #343d45);
    --shell-ink: light-dark(#1b2026, #e8eef2);
    --shell-muted: light-dark(#555f68, #a8b4bf);
    --shell-green: light-dark(#087b5c, #8de2c2);
    --shell-green-bg: light-dark(#dff3ea, #233e36);
    --shell-selected: light-dark(#e9eef3, #27333b);
    --shell-rail-bg: light-dark(#edf0f3, #12161a);
    --shell-rail-hover: light-dark(#e4e9ef, #1f262d);
    --shell-rail-line: light-dark(#dce1e6, #262c33);
    --shell-rail-muted: light-dark(#454f5c, #a7b1ba);
    --shell-rail-subtle: light-dark(#596677, #86929d);
    --shell-rail-ink: light-dark(#1c2937, #eef3f5);
    --shell-rail-active: light-dark(#dce6f0, #263341);
    --shell-rail-active-ink: light-dark(#243f5a, #d8e6f4);
    --shell-primary: #087b5c;
    --shell-focus: light-dark(#087b5c, #8de2c2);
    --shell-field-focus: light-dark(#738395, #69798a);
    --strike-accent: light-dark(#9a410c, #ffc281);
    --strike-tint: light-dark(#fceadd, #3a2a23);
    --strike-primary: light-dark(#a94109, #f6a254);
    --strike-contrast: light-dark(#fff, #251507);
    --shell-motion: 150ms cubic-bezier(.2, .65, .3, 1);
}

html[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) { color-scheme: dark; }
}

:root,
html[data-theme] {
    --font-family-primary: Inter, "Segoe UI", system-ui, sans-serif;
    --font-family-monospace: var(--shell-mono);
    --body-fg: var(--shell-ink);
    --body-bg: var(--shell-paper);
    --body-quiet-color: var(--shell-muted);
    --body-medium-color: var(--shell-ink);
    --body-loud-color: var(--shell-ink);
    --link-fg: var(--shell-green);
    --link-hover-color: var(--shell-green);
    --hairline-color: var(--shell-line);
    --border-color: var(--shell-line);
    --darkened-bg: var(--shell-light);
    --selected-bg: var(--shell-light);
    --selected-row: var(--shell-green-bg);
    --header-bg: var(--shell-canvas);
    --header-color: var(--shell-ink);
    --header-link-color: var(--shell-ink);
    --button-bg: var(--shell-primary);
    --button-hover-bg: #096b52;
    --default-button-bg: var(--shell-primary);
    --default-button-hover-bg: #096b52;
}

body.shop-admin {
    background: var(--shell-canvas);
    color: var(--shell-ink);
    font-size: 14px;
    line-height: 1.45;
}

.shop-admin :is(.tabular, .shop-order-totals dd, .queue-tabs small, .shop-queue small,
    .support-meta, .support-message time, td, input[type="number"]) {
    font-variant-numeric: lining-nums tabular-nums;
}

.shell-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.shell-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#container { min-width: 0; }
#container > .main { display: block; }
#container .skip-to-content-link:focus { z-index: 60; }

#header.shell-top, .shell-sidebar-header {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    block-size: var(--shell-bar);
    border-bottom: 1px solid var(--shell-line);
    background: var(--shell-canvas);
}

#header.shell-top {
    position: sticky;
    top: 0;
    z-index: 25;
    flex-direction: row;
    flex: 0 0 var(--shell-bar);
    min-block-size: var(--shell-bar);
    padding: 0 var(--shell-gutter);
    color: var(--shell-ink);
}

.shell-top-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: var(--shell-width);
    min-width: 0;
    margin-inline: auto;
}

#container:has(> #nav-sidebar):not(.shell-rail-closed) > :is(#header.shell-top, nav, #main) {
    margin-inline-start: var(--shell-rail);
}

.shell-icon-button,
#header .theme-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--shell-radius);
    background: transparent;
    color: var(--shell-muted);
    cursor: pointer;
}

.shell-icon-button:hover,
#header .theme-toggle:hover {
    background: var(--shell-selected);
    color: var(--shell-ink);
}

#container > #toggle-nav-sidebar {
    position: fixed;
    z-index: 27;
    inset-block-start: calc((var(--shell-bar) - 32px) / 2);
    inset-inline-start: 50px;
}
@media (min-width: 768px) {
    #container:not(.shell-rail-closed) > #toggle-nav-sidebar {
        transform: translateX(calc(var(--shell-rail) - 88px));
    }
    .shell-sidebar-header > :is(.shell-brand, #shell-nav-close) { display: none; }
    #container.shell-rail-closed > #nav-sidebar { transform: translateX(-100%); }
}
@media (min-width: 768px) and (max-width: 1319px) {
    #container.shell-rail-closed .shell-top-inner { padding-inline-start: 72px; }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    #container.shell-rail-animated > :is(#header.shell-top, nav, #main) {
        transition: margin-inline-start 180ms ease-out;
    }
    #container.shell-rail-animated > #nav-sidebar { transition: transform 180ms ease-out; }
    #container.shell-rail-animated.shell-rail-closed > #nav-sidebar {
        transition: transform 180ms ease-out, visibility 0s 180ms;
    }
    #container.shell-rail-animated > #toggle-nav-sidebar {
        transition: transform 180ms ease-out, background-color var(--shell-motion), color var(--shell-motion);
    }
}
#header .theme-toggle { margin: 0; }
#header .theme-toggle svg { width: 16px; height: 16px; fill: var(--shell-muted); color: var(--shell-canvas); }
.shell-top-actions { display: flex; align-items: center; gap: 5px; margin-inline-start: auto; }

.shell-theme { position: relative; }
.shell-theme > summary { list-style: none; }
.shell-theme > summary::-webkit-details-marker { display: none; }
.shell-theme > summary > .shell-icon { display: none; }
:root:not([data-theme="light"], [data-theme="dark"]) .shell-theme > summary > :nth-child(1),
:root[data-theme="light"] .shell-theme > summary > :nth-child(2),
:root[data-theme="dark"] .shell-theme > summary > :nth-child(3) { display: block; }
.shell-theme[open] > summary { background: var(--shell-selected); color: var(--shell-ink); }
.shell-theme-options {
    position: absolute;
    inset-block-start: calc(100% + 7px);
    inset-inline-end: 0;
    display: grid;
    min-inline-size: 152px;
    padding: 4px;
    border: 1px solid var(--shell-line);
    border-radius: 7px;
    background: var(--shell-paper);
    box-shadow: 0 6px 20px #0003;
}
.shell-theme-options button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-block-size: 38px;
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--shell-ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.shell-theme-options button:hover { background: var(--shell-light); }
.shell-theme-options button[aria-pressed="true"] { background: var(--shell-selected); }
.shell-theme-options button[aria-pressed="true"]::after { content: "✓" / ""; margin-inline-start: auto; }

.shell-search {
    flex: 0 1 260px;
    min-width: 0;
}

.shop-search-field {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: var(--shell-control-height);
    gap: 7px;
    padding: 0 8px;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
    background: var(--shell-paper);
    color: var(--shell-muted);
}

.shop-search-field input[type="search"], #toolbar input#searchbar {
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--shell-ink);
    font: inherit;
    font-size: 13px;
}

.shop-search-field kbd {
    flex: 0 0 auto;
    padding: 1px 3px;
    border: 1px solid var(--shell-line);
    border-radius: 2px;
    font: 10px var(--shell-mono);
}

#container > #nav-sidebar {
    position: fixed;
    z-index: 26;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--shell-rail);
    box-sizing: border-box;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: var(--shell-rail-bg);
    color: var(--shell-rail-ink);
}

#container.shell-rail-closed > #nav-sidebar { visibility: hidden; }
#shell-nav-backdrop { display: none; }
#shell-nav-close { margin-inline-end: 6px; color: var(--shell-muted); }
#main > .content { min-width: 0; }

.shell-sidebar-header { flex: 0 0 auto; }

.shell-brand {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    min-width: 0;
    block-size: 100%;
    padding-inline: 12px;
}

.shell-brand:link, .shell-brand:visited { color: var(--shell-rail-ink); }
.shell-fixed-brand {
    position: fixed;
    z-index: 27;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: calc(var(--shell-rail) - 38px);
    height: var(--shell-bar);
    box-sizing: border-box;
}
#container.shell-rail-closed > .shell-fixed-brand { width: 48px; }
#container.shell-rail-closed > .shell-fixed-brand > span { display: none; }
.shell-brand-mark { flex: none; }
.shell-brand-icon {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.shell-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.shell-brand > span { min-width: 0; }
.shell-brand strong { display: block; font-size: 14px; line-height: 1.2; }
.shell-brand small, .shell-account small { display: block; color: var(--shell-rail-subtle); font-size: 11px; }
.shell-sections { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px; }

.shell-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    box-sizing: border-box;
    padding: 4px 7px;
    border-radius: var(--shell-radius);
    font-size: 12px;
    font-weight: 460;
    line-height: 1.4;
}

.shell-nav-link:link, .shell-nav-link:visited { color: var(--shell-rail-muted); }

.shell-nav-link:hover, .shell-nav-link[aria-current] {
    background: var(--shell-rail-hover);
    color: var(--shell-rail-ink);
}

.shell-nav-link[aria-current] { background: var(--shell-rail-active); color: var(--shell-rail-active-ink); font-weight: 650; }

.shell-nav-count {
    margin-inline-start: auto;
    padding: 1px 4px;
    border-radius: 2px;
    background: var(--shell-rail-hover);
    color: var(--shell-rail-ink);
    font: 10px var(--shell-mono);
}

.shop-menu-group { margin: 5px 0; }
.shop-menu-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 7px;
    color: var(--shell-rail-subtle);
    font: 9px var(--shell-mono);
    letter-spacing: .13em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}

.shop-menu-group > summary::-webkit-details-marker { display: none; }
.shop-menu-group > summary::after { width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(-45deg); content: ""; }
.shop-menu-group[open] > summary::after { transform: translateY(-1px) rotate(45deg); }
.shop-nav-group { margin: 0; padding: 0; }
.shop-nav-group > li { margin: 0; padding: 0; list-style: none; }

.shell-account {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid var(--shell-rail-line);
}

.shell-avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 3px;
    background: var(--shell-rail-hover);
    color: var(--shell-rail-ink);
    font: 10px var(--shell-mono);
}

.shell-account-name { flex: 1 1 auto; min-width: 0; }
.shell-account strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }
.shell-account .shell-icon-button { width: 24px; height: 28px; color: var(--shell-rail-muted); }
.shell-account .shell-icon-button:hover { background: var(--shell-rail-hover); color: var(--shell-rail-ink); }

#container > nav > .breadcrumbs {
    box-sizing: border-box;
    max-width: calc(var(--shell-width) + 2 * var(--shell-gutter));
    margin-inline: auto;
    padding: 15px var(--shell-gutter) 0;
    background: transparent;
    color: var(--shell-muted);
    font: 10px var(--shell-mono);
    letter-spacing: .09em;
    text-transform: uppercase;
}

#container > nav .breadcrumbs a { color: var(--shell-muted); }
#container #content {
    box-sizing: border-box;
    max-width: calc(var(--shell-width) + 2 * var(--shell-gutter));
    margin-inline: auto;
    padding: 11px var(--shell-gutter) 28px;
}

#content h1 {
    margin: 0 0 14px;
    color: var(--shell-ink);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.02em;
}

#content h2 { color: var(--shell-ink); }
#content .help { color: var(--shell-muted); }
.shop-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-quick-actions .shop-button { min-height: 36px; padding-inline: 11px; }
.shop-workflows { clear: both; margin: 0 0 12px; }

.shop-button:link, .shop-button:visited, :where(button).shop-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    box-sizing: border-box;
    min-height: 29px;
    padding: 4px 9px;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
    background: var(--shell-paper);
    color: var(--shell-ink);
    font-size: 12px;
    font-weight: 560;
}

.shop-button:hover { border-color: var(--shell-green); color: var(--shell-green); }
button.shop-button { cursor: pointer; }
.shop-button .shell-icon { width: 14px; height: 14px; }
.shop-button-primary:link, .shop-button-primary:visited, :where(button).shop-button-primary {
    border-color: var(--shell-primary);
    background: var(--shell-primary);
    color: #fff;
}
.shop-button-primary:hover { background: #096b52; color: #fff; }
.shop-button-soft:link, .shop-button-soft:visited, :where(button).shop-button-soft { border: 0; background: var(--shell-green-bg); color: var(--shell-green); }

.shop-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 400px;
    min-width: 0;
    max-width: 100%;
}
.shop-search-row .shop-button { flex: 0 0 auto; }
.shop-search-row .shop-button, .shop-control-form .shop-button { min-height: var(--shell-control-height); }
.shop-control-form :is(input[type="date"], select), #changelist .actions select[name="action"] {
    box-sizing: border-box;
    max-width: 100%;
    height: var(--shell-control-height);
    margin: 0;
    padding: 4px 8px;
    color: var(--shell-ink);
    background: var(--shell-paper);
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
    font: inherit;
    font-size: 13px;
}

.shop-panel { min-width: 0; border: 1px solid var(--shell-line); background: var(--shell-paper); }
.shop-panel-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px 12px;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 12px;
    border-bottom: 1px solid var(--shell-line);
}

#content .shop-panel-header h2 { margin: 0; font-size: 14px; font-weight: 650; }
.shop-panel-header p { margin: 2px 0 0; color: var(--shell-muted); font-size: 12px; }
.queue-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 3px;
    padding: 4px 8px;
    background: var(--shell-paper);
    border-bottom: 1px solid var(--shell-line);
}

.queue-tabs a {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 6px 8px;
    border-radius: var(--shell-radius);
    color: var(--shell-muted);
    font-size: 12px;
}

.queue-tabs a:hover { background: var(--shell-selected); color: var(--shell-ink); }
.queue-tabs a[aria-current] { background: var(--shell-rail-active); color: var(--shell-rail-active-ink); }
.queue-tabs small { font-size: 10px; }
.shop-table-scroll { overflow-x: auto; }
.shop-queue { width: 100%; }
.shop-queue th, .shop-queue td { padding: 9px 12px; vertical-align: middle; background: var(--shell-paper); font-size: 13px; white-space: nowrap; }
.shop-queue thead th { background: var(--shell-light); }
.shop-queue tbody th { font-weight: 540; }
.shop-queue tbody tr:last-child > * { border-bottom: 0; }
.shop-queue small { color: var(--shell-muted); font-size: 10px; }
.shop-queue .shop-empty { padding: 18px 14px; color: var(--shell-muted); white-space: normal; }
.shop-empty .shell-icon { margin-inline-end: 7px; vertical-align: -3px; }
.shop-status {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid var(--shell-line);
    border-radius: 2px;
    background: var(--shell-light);
    color: var(--shell-muted);
    font-size: 11px;
    white-space: nowrap;
}

.shop-status:is([data-status="paid"], [data-status="waiting"]) { color: light-dark(#784f06, #efc174); background: light-dark(#fff4de, #443822); }
.shop-status[data-status="working"] { color: light-dark(#2b5f7f, #a2d2f2); background: light-dark(#e8f3fa, #233b49); }
.shop-status:is([data-status="delivered"], [data-status="active"], [data-status="answered"]) { color: var(--shell-green); background: var(--shell-green-bg); }
.shop-status[data-status="archived"] { color: var(--shell-muted); background: var(--shell-selected); }
.shop-status[data-status="archived-final"] { color: light-dark(#65487d, #d8b8f2); background: light-dark(#f1e9f8, #3a2e45); }
.shop-status[data-status="late"], .shop-overdue { color: light-dark(#a13740, #ffb3b6); background: light-dark(#fce8e8, #492c30); }
.shop-overdue { display: block; font-size: 11px; }

#content-main #changelist { flex-direction: column; gap: 9px; min-height: 0; background: transparent; border: 0; }
#changelist .changelist-form-container { width: 100%; }
#content-main #toolbar, #changelist .paginator, #changelist-form .results,
.shop-list-filters, #content fieldset.module, #content-main .submit-row { border: 1px solid var(--shell-line); background: var(--shell-paper); }
#content-main #toolbar { margin-bottom: 9px; }
.shop-list-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
#toolbar .shop-search-count { margin: 0; }
#toolbar #searchbar_helptext { flex: 0 0 100%; margin: 0; padding: 0; }
#changelist-form .results { box-sizing: border-box; overflow-x: auto; }
#changelist table tbody th, #changelist table tbody td { padding: 9px 11px; vertical-align: middle; }
#changelist table .column-title, #changelist table .field-title { min-width: 130px; }
#changelist .paginator { border-top: 0; padding: 8px 11px; }
#changelist .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    box-sizing: border-box;
    margin-bottom: 6px;
    background: var(--shell-paper);
}
#changelist .actions label { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
#changelist .actions select { min-width: 0; }
#changelist .actions button.button {
    height: var(--shell-control-height);
    padding: 4px 9px;
    border-color: var(--shell-line);
    border-radius: var(--shell-radius);
    background: var(--shell-paper);
    color: var(--shell-ink);
    box-shadow: none;
}
#changelist .actions button.button:hover { border-color: var(--shell-green); color: var(--shell-green); }

.shop-list-filters { order: -1; width: 100%; box-sizing: border-box; }
.shop-list-filters > summary { padding: 7px 11px; font-size: 12px; font-weight: 610; cursor: pointer; }
#content-main #changelist-filter {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 7px 12px;
    margin: 0;
    padding: 8px 11px;
    border: 0;
    border-top: 1px solid var(--shell-line);
    background: transparent;
}
#content-main #changelist-filter > h2 { display: none; }
#content-main #changelist-filter-extra-actions { grid-column: 1 / -1; }

#content .object-tools a, #content input[type="submit"], #content a.button { border-radius: var(--shell-radius); }
#content .object-tools a:link, #content .object-tools a:visited {
    border: 1px solid var(--shell-line);
    background-color: var(--shell-paper);
    color: var(--shell-ink);
    letter-spacing: 0;
    text-transform: none;
}
#content .object-tools a.addlink:link, #content .object-tools a.addlink:visited {
    border-color: var(--shell-primary);
    background-color: var(--shell-primary);
    color: #fff;
}
#content input[type="submit"] { min-height: 30px; }
#content-main .form-row { padding: 10px 12px; }
#content fieldset.module > h2, #content .inline-group > h2 {
    padding: 9px 12px;
    border-bottom: 1px solid var(--shell-line);
    background: var(--shell-light);
    color: var(--shell-ink);
    font-size: 13px;
    font-weight: 620;
    letter-spacing: 0;
    text-transform: none;
}
#content-main .form-row :is(input,select,textarea) { max-width: 100%; box-sizing: border-box; }
#content-main .form-row :is(input,select):not([type="checkbox"],[type="radio"],[type="hidden"],[type="file"],[multiple]) { min-height: 30px; }
#content-main .field-sync_emoji > div { width: auto; }
#content-main .field-sync_emoji .checkbox-row { align-items: flex-start; gap: 8px; }
#content-main .field-sync_emoji .checkbox-row input { flex: none; margin: 3px 0 0; }
#content-main .field-sync_emoji .vCheckboxLabel { width: auto; min-width: 0; padding: 0; }
#content-main .field-sync_emoji #id_sync_emoji_helptext { width: auto; margin-inline-start: 21px; }
.shop-workflow-form { max-width: 650px; padding: 14px; border: 1px solid var(--shell-line); background: var(--shell-paper); }
.shop-workflow-form > p { display: grid; gap: 5px; margin: 0 0 12px; }
.shop-workflow-form > p[hidden] { display: none; }
.shop-workflow-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: var(--shell-light);
}
.shop-workflow-details dt { color: var(--shell-muted); font-size: 12px; }
.shop-workflow-details dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.delivery-field { display: grid; gap: 5px; margin: 0 0 12px; }
.delivery-field[hidden] { display: none; }
.delivery-procurement { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--shell-line); }
.delivery-procurement summary { cursor: pointer; }
.delivery-procurement[open] summary { margin-bottom: 10px; }
.shop-workflow-form textarea { width: 100%; box-sizing: border-box; }
.shop-workflow-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-workflow-actions input[type="submit"] { margin: 0; }

.catalog-toolbar, .catalog-search, .catalog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.catalog-toolbar { justify-content: space-between; margin-block: 12px 16px; }
.catalog-search { flex: 0 1 480px; min-width: 0; }
.catalog-group { margin-block: 10px; }
.catalog-category > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding-inline: 12px;
    cursor: pointer;
    list-style: none;
}
.catalog-category > summary::-webkit-details-marker { display: none; }
.catalog-category > summary::before {
    content: "";
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(-45deg);
}
.catalog-category[open] > summary::before { transform: rotate(45deg); }
.catalog-category > summary:hover { background: var(--shell-selected); }
.catalog-category > summary span, .catalog-empty { color: var(--shell-muted); }
.catalog-empty { margin: 0; padding: 10px 12px; }
.catalog-actions { padding: 8px 12px; border-top: 1px solid var(--shell-line); }

.support-workspace { container-type: inline-size; }
.support-inbox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container (min-width: 690px) {
    .support-inbox-with-thread { grid-template-columns: minmax(245px, 30%) minmax(0, 1fr); }
}
.support-queue, .support-thread { min-width: 0; }
.support-topic-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--shell-line);
}
.support-topic-filter select {
    min-width: 0;
    width: 100%;
}
.support-tickets, .support-messages { margin: 0; padding: 8px; }
.support-tickets { max-height: 65vh; overflow: auto; }
.support-tickets li, .support-messages li { list-style: none; margin: 0; padding: 0; }
.support-tickets a {
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border-inline-start: 2px solid transparent;
    color: var(--shell-ink);
    overflow-wrap: anywhere;
}
.support-ticket-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px 8px;
}
.support-tickets a:hover, .support-tickets a[aria-current] { background: var(--shell-selected); }
.support-tickets a[aria-current] { border-inline-start-color: var(--strike-accent); }
.support-pages, .support-thread-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-pages { padding: 10px; }
.support-meta, .support-placeholder, .support-tickets small { color: var(--shell-muted); font-size: 12px; }
.support-meta { overflow-wrap: anywhere; }
.support-placeholder, .support-inbox li.support-placeholder { padding: 12px; }
.support-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    max-height: 54vh;
    overflow-y: auto;
    background: var(--shell-canvas);
}
.support-messages li.support-message {
    align-self: start;
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 6px;
    background: var(--shell-light);
}
.support-messages li.support-message-out { align-self: end; background: var(--shell-green-bg); }
.support-message-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.support-message .support-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.support-message-reply[hidden], .support-reply [data-support-clear-reply][hidden] { display: none; }
.support-message-reply { width: 26px; height: 26px; margin-block: -4px; }
@media (hover: hover) and (pointer: fine) {
    .support-message:where(:not(:hover, :focus-within)) .support-message-reply { opacity: 0; }
}
@media (any-pointer: coarse) {
    .support-message .support-message-reply { width: 44px; height: 44px; opacity: 1; }
}
.support-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-quote {
    margin: 6px 0;
    padding: 5px 8px;
    border-inline-start: 2px solid var(--strike-accent);
    border-radius: 3px;
    background: var(--shell-selected);
    color: var(--shell-ink);
    font: inherit;
}
.support-quote :is(a, strong) { font-size: 12px; font-weight: 600; color: var(--strike-accent); }
.support-message:target { outline: 1px solid var(--strike-accent); outline-offset: -1px; }
.support-message-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: .16em;
}
.support-compose { padding: 12px; border-top: 1px solid var(--shell-line); }
.support-reply-box {
    border: 1px solid var(--shell-line);
    border-radius: 10px;
    background: var(--shell-paper);
}
.support-reply-box:focus-within { border-color: var(--shell-field-focus); }
.support-reply-preview:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin: 6px 8px 0;
    padding-inline-start: 8px;
    border-inline-start: 2px solid var(--strike-accent);
    border-radius: 3px;
    background: var(--shell-selected);
}
.support-reply-preview-content { min-width: 0; padding-block: 5px; font-size: 12px; }
.support-reply-preview-heading { color: var(--strike-accent); }
.support-reply-preview-heading strong:not(:empty)::before { content: "· "; }
.support-reply-preview-heading, .support-reply-preview-excerpt {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-reply textarea {
    flex: 1 1 0;
    box-sizing: border-box;
    min-width: 0;
    min-height: 42px;
    max-height: 160px;
    margin: 0;
    padding: 10px 4px;
    resize: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--shell-ink);
    font: inherit;
    font-size: 14px;
    line-height: 22px;
    field-sizing: content;
}
.support-reply-file:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    max-width: calc(100% - 16px);
    margin: 6px 8px 0;
    padding-inline-start: 9px;
    border-radius: 6px;
    background: var(--shell-selected);
    color: var(--shell-ink);
    font-size: 12px;
}
.support-reply-filename { min-width: 0; overflow-wrap: anywhere; }
.support-reply-bar {
    position: relative;
    display: flex;
    align-items: end;
    gap: 2px;
    padding: 4px;
}
.support-reply:not(.is-enhanced) .support-reply-bar { flex-wrap: wrap; }
.support-reply :is(.support-reply-tool, .support-reply-send) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--shell-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.support-reply-tool::-webkit-details-marker { display: none; }
.support-reply-tool .shell-icon { width: 19px; height: 19px; }
.support-reply .support-reply-tool:hover,
.support-reply-menu[open] .support-reply-tool,
.support-file-control:focus-within .support-reply-tool {
    background: var(--shell-selected);
    color: var(--shell-ink);
}
.support-file-control { position: relative; min-width: 0; max-width: 100%; }
.support-file-control input[type="file"] { max-width: 100%; }
.support-reply.is-enhanced .support-file-control input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.support-reply.is-enhanced .support-file-control .support-reply-tool span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.support-file-control:has(input:focus-visible) .support-reply-tool {
    outline: 1px solid var(--shell-field-focus);
    outline-offset: -1px;
}
.support-reply .support-reply-send {
    color: var(--strike-accent);
}
.support-reply .support-reply-send:hover { background: var(--strike-tint); }
.support-reply-send .shell-icon { width: 21px; height: 21px; }
.support-reply-options {
    position: absolute;
    z-index: 3;
    inset-inline-start: 5px;
    bottom: calc(100% + 4px);
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100% - 10px);
    padding: 5px;
    border: 1px solid var(--shell-line);
    border-radius: 8px;
    background: var(--shell-paper);
    box-shadow: 0 5px 16px #0002;
}
.support-reply-options button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--shell-ink);
    font: inherit;
    font-size: 13px;
    text-align: start;
    cursor: pointer;
}
.support-reply-options button:hover { background: var(--shell-selected); }
.support-reply-emojis { display: grid; grid-template-columns: repeat(3, 44px); gap: 3px; }
.support-reply-emojis button { padding: 0; font-size: 20px; text-align: center; }
.support-reply-hint, .support-reply-feedback {
    margin: 4px 0 0;
    color: var(--shell-muted);
    font-size: 11px;
}
.support-reply-feedback { color: var(--strike-accent); }
.support-reply-feedback:empty { margin: 0; }
#support-file-hint:not([hidden]), #support-key-hint:not([hidden]) { display: inline-block; }
#support-key-hint { margin-inline-start: 12px; }
.support-thread-controls { display: flex; align-items: center; gap: 6px; }
.support-thread-actions { position: relative; }
.support-thread-actions > summary { list-style: none; }
.support-thread-actions > summary::-webkit-details-marker { display: none; }
.support-action-options {
    position: absolute;
    z-index: 4;
    top: calc(100% + 4px);
    inset-inline-end: 0;
    width: min(235px, 72vw);
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid var(--shell-line);
    border-radius: 8px;
    background: var(--shell-paper);
    box-shadow: 0 5px 16px #0002;
}
.support-action-options :is(button, summary) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-radius: 5px;
    padding: 9px;
    background: transparent;
    color: var(--shell-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.support-action-options :is(button, summary):hover,
.support-thread-actions[open] > summary { background: var(--shell-selected); }
.support-finish p { margin: 4px 9px; color: var(--shell-muted); font-size: 12px; }
.support-finish button { color: light-dark(#aa322d, #ffaaa3); }
@container (max-width: 689px) {
    .support-inbox-with-thread .support-tickets { max-height: 26vh; }
}
@media (max-width: 480px) {
    .support-template-tool span { display: none; }
    #support-file-hint:not([hidden]), #support-key-hint:not([hidden]) { display: block; margin-inline-start: 0; }
    .support-reply textarea { font-size: 16px; }
}
@media (min-width: 1000px) {
    .catalog-group { position: relative; }
    .catalog-group:has(.catalog-actions) summary { min-height: 52px; padding-inline-end: 285px; }
    .catalog-actions { position: absolute; top: 0; inset-inline-end: 0; min-height: 52px; padding-block: 0; border: 0; }
}
@media (prefers-reduced-motion: no-preference) {
    .catalog-category > summary::before { transition: transform var(--shell-motion); }
}
.shop-order-totals { display: flex; gap: 8px 24px; margin: 0; padding: 8px 12px; background: var(--shell-paper); }
.shop-order-totals dt { color: var(--shell-muted); font-size: 11px; }
.shop-order-totals dd { margin: 2px 0 0; font: 600 14px var(--font-family-primary); }
.shop-search-results { margin-bottom: 12px; }
.shop-search-results li { padding-block: 3px; }
.settings-layout { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); gap: 13px; }
.settings-layout > nav { align-self: start; border: 1px solid var(--shell-line); background: var(--shell-paper); }
.settings-layout > nav a { display: block; padding: 8px 11px; font-size: 12px; }
.settings-layout > nav a:hover { background: var(--shell-selected); }
.settings-layout .fieldset-heading { scroll-margin-top: calc(var(--shell-bar) + 12px); }
.settings-layout fieldset.module {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}
.settings-layout .fieldset-heading, .settings-layout .field-terms { grid-column: 1 / -1; }
.settings-layout .form-row { border-bottom: 0; }
.settings-layout .form-row .flex-container { flex-direction: column; gap: 4px; }
.settings-layout .form-row label { width: auto; min-width: 0; padding: 0; color: var(--shell-muted); font-size: 12px; font-weight: 500; }
.settings-layout .form-row :is(input,textarea) { width: 100%; box-sizing: border-box; font-size: 13px; }
.settings-layout .form-row textarea { min-height: 92px; height: 92px; resize: vertical; }
#content .settings-save {
    min-height: 29px;
    padding: 4px 10px;
    border: 1px solid var(--shell-primary);
    border-radius: var(--shell-radius);
    background: var(--shell-primary);
    color: #fff;
    font: 560 12px var(--font-family-primary);
    cursor: pointer;
}
#content .settings-save:hover { background: #096b52; }

.login #container { background: var(--shell-paper); border-color: var(--shell-line); }
.login #header { border-bottom: 1px solid var(--shell-line); }

.shop-admin a:is(:hover, :focus, :active),
.shop-admin #header a:is(:hover, :focus, :active) {
    text-decoration: none;
}

.shop-admin :is(a[href], button, summary, input[type="submit"], input[type="button"]) {
    -webkit-tap-highlight-color: transparent;
}

.shop-admin :is(a[href], button, summary, input[type="submit"], input[type="button"]):focus:not(:focus-visible) {
    outline: none;
}

.shop-admin :is(a[href], button, summary, input, select, textarea):focus-visible {
    outline: 1px solid var(--shell-field-focus);
    outline-offset: 1px;
}

.shop-admin #nav-sidebar :focus-visible {
    outline-color: var(--shell-focus);
    outline-offset: -2px;
}

.shop-admin :is(input:not([type=checkbox], [type=radio], [type=file], [type=submit], [type=button], [type=reset]),
    select, textarea):focus {
    border-color: var(--shell-field-focus);
    outline: none;
    box-shadow: none;
}

.shop-admin :is(.shop-search-field input, .support-reply textarea):focus { border-color: transparent; }
.shop-admin .shop-search-field:focus-within { border-color: var(--shell-field-focus); }

@media (forced-colors: active) {
    .shop-admin :is(input, select, textarea):focus-visible { outline: 1px solid Highlight; }
}

.shop-menu-group > summary:hover {
    color: var(--shell-rail-ink);
}

.shop-list-filters > summary:hover {
    background: var(--shell-selected);
}

.shop-admin :is(#changelist-form .results tbody a, .shop-queue tbody a:not(.shell-icon-button),
    .shop-search-results li a, .breadcrumbs a):hover {
    color: var(--shell-green);
    background: var(--shell-green-bg);
    border-radius: 2px;
    box-shadow: 0 0 0 2px var(--shell-green-bg);
}

@media (prefers-reduced-motion: no-preference) {
    .shop-admin :is(a[href], button, summary, input, select, textarea, .shop-search-field) {
        transition: color var(--shell-motion), background-color var(--shell-motion),
            border-color var(--shell-motion), box-shadow var(--shell-motion),
            scale var(--shell-motion), filter var(--shell-motion);
    }

    .shop-admin :is(.shop-button, .shell-icon-button, .theme-toggle, .settings-save,
        input[type="submit"], input[type="button"], .object-tools a):active {
        scale: .97;
        filter: brightness(.94);
    }

    .shop-admin :is(.shell-nav-link, .queue-tabs a, summary):active {
        filter: brightness(.9);
    }

    .shop-menu-group > summary::after {
        transition: transform var(--shell-motion);
    }

    @supports (interpolate-size: allow-keywords) {
        .shop-menu-group::details-content {
            height: 0;
            opacity: 0;
            overflow: clip;
            interpolate-size: allow-keywords;
            transition: height 175ms cubic-bezier(.2, .65, .3, 1), opacity var(--shell-motion),
                content-visibility 175ms allow-discrete;
        }

        .shop-menu-group[open]::details-content {
            height: auto;
            opacity: 1;
        }
    }

    :is(.shop-list-filters, .catalog-category)[open]::details-content,
    .shell-theme[open] > .shell-theme-options {
        animation: shop-menu-reveal 135ms ease-out;
    }

    @keyframes shop-menu-reveal { from { opacity: .55; } }
}

@media (prefers-reduced-motion: reduce) {
    .shop-admin :is(a[href], button, summary, input, select, textarea) {
        transition: none;
    }
}

@media (max-width: 767px) {
    :root { --shell-gutter: 14px; }
    #container > .shell-fixed-brand { width: 48px; }
    #container > .shell-fixed-brand > span { display: none; }
    #container > #toggle-nav-sidebar {
        inset-block-start: calc((var(--shell-bar) - 44px) / 2);
        width: 44px;
        height: 44px;
    }
    .shell-top-inner { padding-inline-start: 88px; box-sizing: border-box; }
    #container:has(> #nav-sidebar):not(.shell-rail-closed) > :is(#header.shell-top, nav, #main) {
        margin-inline-start: 0;
    }

    html:has(#container.shell-nav-open) { overflow: hidden; }

    #container > #nav-sidebar {
        z-index: 31;
        width: min(320px, calc(100% - 44px));
        visibility: hidden;
        transform: translateX(-100%);
    }

    #container.shell-nav-open > #nav-sidebar { visibility: visible; transform: translateX(0); }

    #shell-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: block;
        visibility: hidden;
        background: #0006;
        opacity: 0;
        pointer-events: none;
    }

    #container.shell-nav-open > #shell-nav-backdrop { visibility: visible; opacity: 1; pointer-events: auto; }

    #shell-nav-close {
        color: var(--shell-rail-muted);
    }

    #shell-nav-close:hover { background: var(--shell-rail-hover); color: var(--shell-rail-ink); }

    #header .shell-icon-button, #header .theme-toggle, #shell-nav-close, .shell-account .shell-icon-button {
        width: 44px;
        height: 44px;
    }

    .shell-search { flex: 1; }
    .shop-search-field input[type="search"], #toolbar input#searchbar { font-size: 16px; }
    .shell-search kbd { display: none; }
    .shell-nav-link, .shop-menu-group > summary, .queue-tabs a { min-height: 44px; box-sizing: border-box; }
    .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .settings-layout > nav { display: flex; flex-wrap: wrap; }
    .settings-layout fieldset.module { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    #container > #nav-sidebar { transition: transform var(--shell-motion), visibility 0s 150ms; }
    #shell-nav-backdrop { transition: opacity var(--shell-motion), visibility 0s 150ms; }
    #container.shell-nav-open > :is(#nav-sidebar, #shell-nav-backdrop) { transition-delay: 0s; }
}

@media (max-width: 485px) {
}
