/** Hide ligature text while the icon font loads. */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url('/cdn/v/17e1f272b2f4/fonts/material-symbols-outlined.woff2') format('woff2');
}

@layer cdn {

    * {
        box-sizing: border-box;
    }

    /** Keep !important on [hidden] to override component display rules. */
    [hidden] {
        display: none !important;
    }

    body {
        font-family: "Segoe UI", system-ui, sans-serif;
        color: var(--color-text);
        background: var(--color-bg);
        margin: 0;
    }

    label {
        display: block;
        margin: .75rem 0 .25rem;
        font-size: .9rem;
        color: var( --color-text-muted);
    }

    input[type=text],
    input[type=email],
    input[type=password],
    input[type=search],
    input[type=tel],
    input[type=number],
    input[type=date],
    input[type=time],
    textarea,
    select {
        width: 100%;
        padding: .6rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        font-family: inherit;
        font-size: 1rem;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    /** Use a background indicator to control the select arrow's inset. */
    select {
        -webkit-appearance: none;
        appearance: none;
        padding-right: 2rem;
        background-color: var(--color-surface);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right .7rem center;
        background-size: .85rem;
    }

    input:hover:not(:focus),
    textarea:hover:not(:focus) {
        border: 1px solid var(--color-border-dark);
        box-shadow: 0 0 0 3px var(--color-hover-ring);
    }

    textarea {
        font-size: .95rem;
        min-height: 2.75rem;
        max-height: 10rem;
        resize: vertical;
    }

    input:focus,
    textarea:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px var(--color-focus-ring);
    }

    input[type=radio],
    input[type=checkbox] {
        width: auto;
        accent-color: var(--color-primary);
    }

    .address-fields,
    .address-parts {
        display: grid;
        gap: var(--stack-gap);
    }

    .address-fields .field-row {
        grid-template-columns: 2fr 1fr;
    }

    .address-fields .field,
    .address-parts .field {
        margin: 0;
    }

    /** Keep both selector classes to override .linklike. */
    .address-fields .address-by-hand,
    .address-fields .address-by-search {
        width: auto;
        justify-self: start;
        margin: 0;
        padding: 0;
        font-size: .9rem;
        text-align: left;
    }

    /** Keep suggestions fixed to the viewport to avoid clipping by scrolling containers. */
    .suggest {
        position: fixed;
        z-index: 10;
        margin: 0;
        padding: 0;
        list-style: none;
        background: var(--color-surface);
        border: 1px solid var(--color-primary);
        border-radius: .5rem;
        overflow-y: auto;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12);
    }

    .suggest-row {
        display: flex;
        align-items: center;
        min-height: 2.8rem;
        padding: .55rem .7rem;
        cursor: pointer;
        border-bottom: 1px solid var(--color-border);
    }

    .suggest-row:last-child {
        border-bottom: 0;
    }

    .suggest-row:hover,
    .suggest-row:active {
        background: var(--color-primary-wash);
    }

    .suggest-none {
        padding: .55rem .7rem;
        color: var(--color-text-muted);
        font-size: .9rem;
    }

    .busy-overlay {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--color-surface) 65%, transparent);
    }

    .busy-overlay[hidden] {
        display: none;
    }

    .modal-body:has(>.busy-overlay) {
        position: relative;
    }

    .spinner {
        width: 1.75rem;
        height: 1.75rem;
        border: 3px solid var(--color-border);
        border-top-color: var(--color-primary);
        border-radius: 50%;
        animation: spin .7s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /** Set placeholder=" " on these inputs for :placeholder-shown to match empty values. */
    .field {
        position: relative;
        margin: 0;
    }

    .field input {
        width: 100%;
        padding: 1.2rem .75rem .4rem;
    }

    .field label {
        position: absolute;
        left: .78rem;
        top: .85rem;
        margin: 0;
        font-size: 1rem;
        color: var(--color-text-muted);
        pointer-events: none;
        transition: top .12s ease, font-size .12s ease, color .12s ease;
    }

    .field input:focus+label,
    .field input:not(:placeholder-shown)+label,
    .field input:-webkit-autofill+label {
        top: .32rem;
        font-size: .9rem;
        color: var(--color-primary);
    }

    .field-pw input {
        padding-right: 2.6rem;
    }

    .field-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
        align-items: start;
    }

    .password-eye {
        position: absolute;
        top: 50%;
        right: .3rem;
        transform: translateY(-50%);
        padding: .35rem;
        background: transparent;
        color: var(--color-text-muted);
        font-size: 1.2rem;
    }

    .password-eye:hover:not(:disabled) {
        background: transparent;
        color: var(--color-text);
    }

    .field-hint {
        margin: .3rem 0 0;
        font-size: .9rem;
        color: var(--color-text-muted);
    }

    .btn-block {
        width: 100%;
        padding: .8rem;
        font-weight: 600;
        margin-top: 1rem;
    }

    .linklike {
        width: 100%;
        margin-top: .5rem;
        background: transparent;
        color: var(--color-link);
        font-size: .9rem;
    }

    .linklike:hover:not(:disabled) {
        background: transparent;
        color: var(--color-link-hover);
        text-decoration: underline;
    }

    .section-label {
        display: block;
        margin: 1rem 0 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: var( --color-text-muted);
    }

    .muted {
        color: var(--color-text-muted);
    }

    button {
        margin: 0;
        padding: .5rem 1rem;
        border: 0;
        border-radius: var(--radius);
        background: var(--color-primary);
        color: var(--color-on-primary);
        font-family: inherit;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        /** Keep button dimensions stable during interaction. */
        transition: background .15s ease, box-shadow .15s ease;
    }

    button:hover:not(:disabled) {
        background: var(--color-primary-dark);
    }

    button:active:not(:disabled) {
        background: var(--color-primary-active);
    }

    button:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px var(--color-focus-ring);
    }

    button.secondary {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        color: var(--color-text);
    }

    button.secondary:hover:not(:disabled) {
        background: var(--color-bg);
        border-color: var(--color-border-dark);
    }

    button.secondary:active:not(:disabled) {
        background: var(--color-border-light);
    }

    button.secondary:disabled {
        background: var(--color-surface);
        border-color: var(--color-border-light);
        color: var(--color-disabled);
    }

    button.danger {
        background: var(--color-error-text);
    }

    button.danger:hover:not(:disabled),
    button.danger:active:not(:disabled) {
        background: var(--color-error-text-hover);
    }

    button.secondary.danger {
        background: var(--color-surface);
        border-color: var(--color-error-text);
        color: var(--color-error-text);
    }

    button.secondary.danger:hover:not(:disabled),
    button.secondary.danger:active:not(:disabled) {
        background: var(--color-error-bg);
    }

    button:disabled {
        background: var(--color-disabled);
        cursor: default;
    }

    .icon {
        width: 1em;
        height: 1em;
        display: inline-block;
        flex: none;
        vertical-align: -.150em;
    }

    .material-icon {
        font-family: 'Material Symbols Outlined';
        font-weight: normal;
        font-style: normal;
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        display: inline-block;
        white-space: nowrap;
        word-wrap: normal;
        direction: ltr;
        font-feature-settings: 'liga';
        -webkit-font-smoothing: antialiased;
        /** Prevent selection of icon ligature text. */
        -webkit-user-select: none;
        user-select: none;
    }

    .msg {
        margin-top: 1rem;
        padding: .6rem;
        border-radius: var(--radius);
        font-size: .9rem;
    }

    .msg.error {
        background: var(--color-error-bg);
        color: var(--color-error-text);
    }

    .msg.ok {
        background: var(--color-success-bg);
        color: var(--color-success-text);
    }

    /** Use a popover for toast stacking above modal dialogs. */
    .toast-stack {
        position: fixed;
        inset: auto auto 1rem 1rem;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        max-width: min(360px, 92vw);
        pointer-events: none;
    }

    .toast-stack.toast-stack-fixed {
        z-index: 9999;
    }

    .toast {
        pointer-events: none;
        padding: .6rem .8rem;
        border-radius: var(--radius);
        border: 1px solid currentColor;
        box-shadow: var(--shadow);
        font-size: .9rem;
        line-height: 1.35;
        opacity: 0;
        transform: translateY(.4rem);
        transition: opacity .2s ease, transform .2s ease;
    }

    .toast.show {
        opacity: 1;
        transform: none;
    }

    .toast-success {
        background: var(--color-success-bg);
        color: var(--color-success-text);
    }

    .modal-warning {
        background: var(--color-warn-bg);
        color: var(--color-warn-text);
        border-radius: var(--radius);
        padding: .625rem .75rem;
        margin-bottom: 1rem;
    }

    .toast-warning {
        background: var(--color-warn-bg);
        color: var(--color-warn-text);
    }

    .toast-error {
        background: var(--color-error-bg);
        color: var(--color-error-text);
    }

    .toast-note {
        background: var(--color-info-bg);
        color: var(--color-info-text);
    }

    .modal {
        border: 0;
        border-radius: var(--radius-lg);
        padding: 0;
        width: min(600px, 94vw);
        max-height: 80vh;
        box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    }

    .modal-slim {
        width: min(400px, 94vw);
    }

    .confirm-name {
        font-weight: 700;
        font-size: 1.1rem;
    }

    .modal[open] {
        display: flex;
        flex-direction: column;
    }

    /** Preserve the open state of covered dialogs for stack restoration. */
    .modal[open].modal-covered {
        display: none;
    }

    /** Lock document scrolling while a dialog is open, as showModal() leaves scrolling enabled. */
    body:has(.modal[open]) {
        overflow: hidden;
    }

    .modal::backdrop {
        background: rgba(0, 0, 0, .5);
    }

    .modal-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    .modal-head h3 {
        margin: 0;
        font-size: 1.5rem;
    }

    /** Centre the close icon independently of font metrics. */
    .modal-x {
        width: 2.25rem;
        height: 2.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        padding: 0;
        background: transparent;
        color: var(--color-text-muted);
        font-size: 0;
        position: relative;
    }

    .modal-x::before,
    .modal-x::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 1.25rem;
        height: 2px;
        border-radius: 1px;
        background: currentColor;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .modal-x::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .modal-x:hover:not(:disabled) {
        background: transparent;
        color: var(--color-text);
    }

    .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 1.2rem;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .modal.modal-wide {
        width: min(760px, 94vw);
    }

    .modal-foot {
        flex: none;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem;
        padding: .85rem 1.25rem;
        border-top: 1px solid var(--color-border-light);
    }

    .modal-section {
        padding-bottom: var(--stack-gap);
        border-bottom: 1px solid var(--color-border-light);
    }

    /** Trim the final visible section even when hidden sections or messages follow. */
    .modal-section:nth-last-child(1 of .modal-section:not([hidden])) {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .modal-foot>.foot-left,
    .modal-foot>.foot-right {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .modal-foot>.foot-right {
        margin-left: auto;
    }

    .modal-body,
    .modal-body>form,
    .modal-section,
    .stack {
        display: grid;
        align-content: start;
        gap: var(--stack-gap);
    }

    /** Hide empty grid items to remove unused tracks and gaps. */
    .modal-body> :empty,
    .modal-body>form> :empty,
    .modal-section> :empty,
    .stack> :empty {
        display: none;
    }

    .modal-body> :empty:where(input, textarea, select, button, img, svg, canvas, iframe, hr, br),
    .modal-body>form> :empty:where(input, textarea, select, button, img, svg, canvas, iframe, hr, br),
    .modal-section> :empty:where(input, textarea, select, button, img, svg, canvas, iframe, hr, br),
    .stack> :empty:where(input, textarea, select, button, img, svg, canvas, iframe, hr, br) {
        display: revert;
    }

    /** Require child elements before hiding a container, as text nodes do not match :has(> *). */
    .modal-body> :has(> *):not(:has(> :not([hidden]))),
    .modal-body>form> :has(> *):not(:has(> :not([hidden]))),
    .modal-section> :has(> *):not(:has(> :not([hidden]))),
    .stack> :has(> *):not(:has(> :not([hidden]))) {
        display: none;
    }

    .modal-body> :has(> *):not(:has(> :not([hidden]))):where(input, textarea, select, button, img, svg, canvas, iframe, hr, br),
    .modal-body>form> :has(> *):not(:has(> :not([hidden]))):where(input, textarea, select, button, img, svg, canvas, iframe, hr, br),
    .modal-section> :has(> *):not(:has(> :not([hidden]))):where(input, textarea, select, button, img, svg, canvas, iframe, hr, br),
    .stack> :has(> *):not(:has(> :not([hidden]))):where(input, textarea, select, button, img, svg, canvas, iframe, hr, br) {
        display: revert;
    }

    .modal-body>*,
    .modal-body>form>*,
    .modal-section>*,
    .stack>* {
        margin: 0;
    }

    .modal-body>button,
    .modal-body>form>button,
    .modal-section>button,
    .stack>button {
        justify-self: start;
    }

    .form-field>label {
        margin: 0 0 .25rem;
    }

    .form-field>.field-hint {
        margin: .25rem 0 0;
    }

    .table-toolbar {
        display: flex;
        gap: 1rem;
        margin-bottom: .5rem;
    }

    .table-toolbar .table-filter {
        max-width: 220px;
    }

    .table-filter.on {
        border-color: var(--color-primary);
        color: var(--color-primary-dark);
    }

    /** Set the filter row offset from the measured header height. */
    .table-filter-row th {
        position: sticky;
        z-index: 1;
        padding: 0 .3rem .4rem;
        background: var(--color-surface);
        vertical-align: top;
    }

    .table-filter-row .table-filter {
        width: 100%;
        max-width: none;
    }

    .table-span {
        display: flex;
        align-items: center;
        gap: .25rem;
    }

    .table-span-label {
        color: var(--color-text-muted);
        font-size: .85rem;
    }

    .table-span input + .table-span-label {
        margin-left: .5rem;
    }

    /** Keep the filter width stable when selected labels change. */
    .table-checks-open {
        width: 220px;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
    }

    .table-checks-list {
        position: fixed;
        /** Reset popover insets and margins before applying viewport coordinates. */
        inset: auto;
        margin: 0;
        padding: .25rem;
        overflow-y: auto;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        background: var(--color-surface);
        color: var(--color-text);
    }

    .table-check {
        display: flex;
        align-items: center;
        gap: .5rem;
        margin: 0;
        padding: .4rem .6rem;
        border-radius: var(--radius);
        white-space: nowrap;
        cursor: pointer;
    }

    .table-check:hover {
        background: var(--color-bg);
    }

    .table-scroll {
        overflow-x: auto;
    }

    table.data-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--color-surface);
    }

    table.data-table th,
    table.data-table td {
        text-align: left;
        padding: .5rem .6rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    table.data-table th {
        font-size: .9rem;
        color: var(--color-text-muted);
    }

    table.data-table th.sortable {
        cursor: pointer;
        user-select: none;
        text-decoration: underline;
        text-underline-offset: .25em;
    }

    table.data-table th.sortable:hover {
        color: var(--color-text);
    }

    table.data-table th.sorted {
        color: var(--color-primary-dark);
    }

    /** Reserve the arrow's width, so a column keeps its width when the sort changes. */
    table.data-table th .sort-arrow {
        display: inline-block;
        width: 1em;
        margin-left: .25rem;
        vertical-align: -0.1em;
    }

    table.data-table tbody tr:nth-child(even) td {
        background: var(--color-bg);
    }

    .choice-grid {
        display: grid;
        grid-template-columns: repeat(var(--choice-cols, 2), 1fr);
        gap: .5rem;
    }

    .choice {
        display: flex;
        position: relative;
        align-items: center;
        gap: .5rem;
        margin: 0;
        padding: .6rem .7rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        cursor: pointer;
        font-size: .9rem;
        transition: border-color .12s ease, background .12s ease;
    }

    .choice:hover:not(:has(input:checked, input:disabled)) {
        border-color: var(--color-primary);
        background: var(--color-primary-wash);
    }

    .choice:hover:not(:has(input:disabled)) .choice-mark {
        color: var(--color-primary);
    }

    /** Keep each choice card as the input's containing block to preserve scroll positioning. */
    .choice input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .choice-mark {
        flex: none;
        display: flex;
        font-family: 'Material Symbols Outlined';
        font-size: 1.375rem;
        line-height: 1;
        color: var(--color-border-dark);
        font-feature-settings: 'liga';
        -webkit-font-smoothing: antialiased;
        transition: color .12s ease;
    }

    /** Place radio indicator rules after checkbox rules to resolve equal specificity. */
    .choice-mark::before {
        content: 'check_box_outline_blank';
    }

    .choice:has(input:checked) .choice-mark::before {
        content: 'check_box';
    }

    .choice:has(input[type=radio]) .choice-mark::before {
        content: 'circle';
    }

    .choice:has(input[type=radio]:checked) .choice-mark::before {
        content: 'check_circle';
    }

    .choice-label {
        flex: 1;
    }

    .choice-note {
        color: var(--color-text-muted);
        font-variant-numeric: tabular-nums;
    }

    .choice:has(input:checked) {
        border-color: var(--color-primary);
        background: var(--color-primary-tint);
    }

    .choice:has(input:checked) .choice-mark {
        color: var(--color-primary);
        font-variation-settings: 'FILL' 1;
    }

    .choice:has(input:focus-visible) {
        box-shadow: 0 0 0 3px var(--color-focus-ring);
    }

    .choice:has(input:disabled) {
        cursor: not-allowed;
        opacity: .6;
    }

    .denomination-grid {
        display: grid;
        grid-template-columns: 4.5rem 6rem 1fr;
        gap: .4rem .6rem;
        align-items: center;
    }

    .denomination-row {
        display: contents;
    }

    .denomination-label {
        font-weight: 700;
    }

    .denomination-count {
        width: 100%;
        min-width: 0;
        text-align: right;
    }

    .denomination-subtotal {
        text-align: right;
    }

    .grid-head {
        font-size: .8rem;
        letter-spacing: .04em;
        text-transform: uppercase;
        text-align: right;
    }

    .grid-head:first-child {
        text-align: left;
    }

    .bill {
        display: grid;
        gap: .5rem;
    }

    .bill-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        font-size: 1rem;
        color: var(--color-text-muted);
        font-variant-numeric: tabular-nums;
    }

    .bill-total {
        margin-top: .2rem;
        padding-top: .5rem;
        border-top: 1px dashed var(--color-border);
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--color-text);
    }

    .bill-refunded,
    .bill-paid {
        color: var(--color-text);
    }

    .bill-due {
        font-weight: 800;
        color: var(--color-text);
    }

    table.data-table td:has(> .action) {
        text-align: right;
    }

    table.data-table:has(td > .action) th:last-child {
        text-align: right;
    }

    .action {
        display: inline-block;
        width: auto;
        margin: 0;
        padding: .5rem 1.5rem;
        border: 1px solid var(--color-primary);
        border-radius: var(--radius);
        background: var(--color-primary-tint);
        color: var(--color-primary-dark);
        font-family: inherit;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }

    .action:hover:not(:disabled) {
        background: var(--color-primary-tint-2);
        color: var(--color-primary-dark);
        text-decoration: none;
    }

    .action:active:not(:disabled) {
        background: var(--color-primary-tint-3);
    }

    .action:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px var(--color-focus-ring);
    }

    .table-empty {
        padding: 1rem .6rem;
        color: var(--color-text-muted);
        font-size: .9rem;
        background: var(--color-surface);
    }

    .table-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: .6rem;
    }

    .table-footer>.foot-left {
        display: flex;
        align-items: center;
        gap: .6rem;
        min-width: 0;
    }

    .table-reset,
    .table-refresh {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.25rem;
        line-height: 1;
        flex: none;
    }

    .table-refresh {
        padding: 0;
        width: 2.25rem;
        line-height: 1;
        font-size: 1.25rem;
    }

    .table-count {
        font-size: .9rem;
        color: var(--color-text-muted);
    }

    .table-controls {
        display: flex;
        align-items: stretch;
        gap: .25rem;
    }

    .table-controls button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.25rem;
        padding: 0;
        width: 2.5rem;
        line-height: 1;
        font-size: 1.5rem;
    }

    .table-controls .pg-page {
        width: 44px;
        min-height: 2.25rem;
        text-align: center;
        padding: .3rem;
    }

    .editor-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-weight: 700;
        font-size: .95rem;
        margin: 1rem 0 .5rem;
    }

    .editor-count {
        color: var(--color-text-muted);
        font-size: .9rem;
        font-weight: 600;
    }

    .editor-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: .35rem 0;
    }

    .editor-row+.editor-row {
        border-top: 1px solid var(--color-border-light);
    }

    .editor-name {
        flex: 1;
    }

    .editor-row-price {
        color: var(--color-text-muted);
        font-weight: 700;
        font-size: .9rem;
        font-variant-numeric: tabular-nums;
    }

    .editor-step {
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .editor-step b {
        min-width: 1.1rem;
        text-align: center;
    }

    .editor-less,
    .editor-more {
        width: 30px;
        height: 30px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--color-primary);
        font-size: 1.25rem;
    }

    .editor-less:hover:not(:disabled),
    .editor-more:hover:not(:disabled) {
        background: var(--color-primary-dark);
    }

    .editor-less:disabled,
    .editor-more:disabled {
        opacity: .4;
        cursor: default;
    }

    .editor-remove {
        width: 26px;
        height: 26px;
        padding: 0;
        background: transparent;
        color: var(--color-error-text);
        font-size: 1.2rem;
        line-height: 1;
    }

    .editor-remove:hover {
        background: var(--color-border-light);
    }

    .editor-empty {
        margin: .35rem 0;
    }

    .editor-category,
    .accordion {
        border: 1px solid var(--color-border-light);
        border-radius: var(--radius);
    }

    .accordion {
        background: var(--color-bg);
    }

    .editor-category>summary,
    .accordion>summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        padding: .75rem;
        cursor: pointer;
        font-weight: 600;
        list-style: none;
        transition: background .12s ease;
    }

    .editor-category>summary:hover,
    .accordion>summary:hover {
        background: var(--color-border-light);
    }

    .editor-category[open]>summary,
    .accordion[open]>summary {
        border-bottom: 1px solid var(--color-border-light);
    }

    .editor-group {
        border-bottom: 1px solid var(--color-border-light);
    }

    .editor-group:last-child {
        border-bottom: 0;
    }

    .editor-group>summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        padding: .6rem .75rem;
        cursor: pointer;
        font-weight: 600;
        font-size: .9rem;
        list-style: none;
        transition: background .12s ease;
    }

    .editor-group>summary:hover {
        background: var(--color-border-light);
    }

    .editor-category>summary::-webkit-details-marker,
    .accordion>summary::-webkit-details-marker,
    .editor-group>summary::-webkit-details-marker {
        display: none;
    }

    .editor-chevron,
    .accordion-chevron {
        color: var(--color-text-muted);
        transform: rotate(90deg);
        transition: transform .2s ease;
    }

    .editor-category[open]>summary .editor-chevron,
    .accordion[open]>summary .accordion-chevron,
    .editor-group[open]>summary .editor-chevron {
        transform: rotate(-90deg);
    }

    .editor-group-items {
        display: flex;
        padding: .5rem;
        gap: .4rem;
        flex-direction: column;
    }

    .editor-add {
        display: flex;
        align-items: center;
        gap: .6rem;
        width: 100%;
        padding: .5rem .7rem;
        background: var(--color-surface);
        color: var(--color-text);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        text-align: left;
        transition: background .12s ease, border-color .12s ease, transform .06s ease;
    }

    /** Include every content glyph in the icon font subset. */
    .editor-add::before {
        content: 'add';
        font-family: 'Material Symbols Outlined';
        font-feature-settings: 'liga';
        font-size: 1rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 999px;
        background: var(--color-primary);
        color: var(--color-on-primary);
        flex: none;
    }

    .editor-add>span:first-child {
        flex: 1;
    }

    .editor-add:hover:not(:disabled) {
        border-color: var(--color-primary);
        background: var(--color-primary-wash);
    }

    .editor-add:active:not(:disabled) {
        transform: translateY(1px);
    }

    .editor-add:disabled,
    .editor-add:disabled:hover {
        background: var(--color-disabled);
        opacity: .4;
        cursor: default;
    }

    .editor-add-price {
        color: var(--color-text-muted);
        font-weight: 700;
        font-size: .9rem;
        font-variant-numeric: tabular-nums;
    }

}
