.homebar-page,
.homebar-modal {
    --homebar-surface: var(--alliance-light-bg, #ffffff);
    --homebar-surface-alt: var(--alliance-medium-bg, #ededed);
    --homebar-strong: var(--alliance-light-color, #000000);
    --homebar-muted: var(--alliance-header-color, #777777);
    --homebar-border: var(--alliance-medium-border-color, #939598);
    --homebar-accent: var(--alliance-link-color, #337ab7);
    --homebar-accent-bg: var(--alliance-dark-bg, #A2BFD8);
    --homebar-accent-soft: color-mix(in srgb, var(--homebar-accent-bg) 34%, var(--homebar-surface) 66%);
    --homebar-accent-color: var(--alliance-dark-color, #000000);
    --homebar-favorite: var(--alliance-favorite-color, #b7791f);
    --homebar-featured: #8a6414;
    --homebar-warning: #b7791f;
    --homebar-danger: #9f2f2f;
    --homebar-hover-bg: var(--alliance-medium-bg, #ededed);
    --homebar-hover-color: var(--alliance-medium-color, var(--homebar-strong));
    --homebar-selected-bg: var(--alliance-selectedrow-bg, var(--alliance-dark-bg, #A2BFD8));
    --homebar-selected-color: var(--alliance-selectedrow-color, var(--alliance-dark-color, #000000));
}

.homebar-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    color: var(--homebar-strong);
}

.homebar-page .btn-Dark:disabled,
.homebar-page .btn-Dark.disabled,
.homebar-modal .btn-Dark:disabled,
.homebar-modal .btn-Dark.disabled {
    color: var(--alliance-input-disabled-color, #6c757d);
    background-color: var(--alliance-input-disabled-bg, #e5e5e5);
    border-color: var(--alliance-input-border-color, #adb5bd);
    opacity: 1;
    filter: none;
    box-shadow: none;
}

.homebar-eyebrow {
    margin: 0 0 8px;
    color: var(--homebar-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.homebar-public {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 32px;
    align-items: stretch;
    min-height: 64vh;
}

.homebar-public__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0;
}

.homebar-public h1,
.homebar-app h1 {
    margin: 0;
    color: var(--homebar-strong);
    font-weight: 700;
    letter-spacing: 0;
}

.homebar-public h1 {
    max-width: 720px;
    font-size: clamp(2.35rem, 4vw, 4.2rem);
    line-height: 1.02;
}

.homebar-lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--homebar-strong);
    font-size: 1.15rem;
    line-height: 1.55;
}

.homebar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.homebar-public__panel {
    align-self: center;
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--homebar-border);
    border-radius: 8px;
    background: var(--homebar-surface-alt);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.18);
}

.homebar-signal {
    padding: 14px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface);
}

.homebar-signal span {
    display: block;
    color: var(--homebar-muted);
    font-size: 0.82rem;
}

.homebar-signal strong {
    display: block;
    margin-top: 4px;
    color: var(--homebar-strong);
    font-size: 0.96rem;
    line-height: 1.35;
}

.homebar-app__header {
    margin-bottom: 14px;
}

.homebar-app__identity {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.homebar-app__eyebrow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.homebar-app__eyebrow-row .homebar-eyebrow {
    margin: 0;
}

.homebar-app__eyebrow-row .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.homebar-current-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 14px;
    margin: 0;
    min-width: 0;
}

.homebar-current-bar__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.homebar-current-bar__tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--homebar-muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.homebar-current-bar__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0;
    border: 0;
    color: var(--homebar-strong);
    background: transparent;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
}

.homebar-current-bar__button:hover,
.homebar-current-bar__button:focus {
    color: var(--homebar-accent);
    text-decoration: underline;
}

.homebar-current-bar__name {
    min-width: 0;
    color: var(--homebar-strong);
    font-size: 1.05rem;
    font-weight: 700;
}

.homebar-current-bar__role {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid var(--homebar-border);
    border-radius: 999px;
    color: var(--homebar-muted);
    background: var(--homebar-surface-alt);
    font-size: 0.78rem;
    font-weight: 700;
}

.homebar-current-bar__owner {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid var(--homebar-border);
    border-radius: 999px;
    color: var(--homebar-muted);
    background: var(--homebar-surface-alt);
    font-size: 0.78rem;
    font-weight: 700;
}

.homebar-selector-list {
    display: grid;
    gap: 8px;
}

.homebar-selector-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--homebar-border);
    border-radius: 8px;
    color: var(--homebar-strong);
    background: var(--homebar-surface);
    text-align: left;
    text-decoration: none;
}

.homebar-selector-item:hover,
.homebar-selector-item:focus {
    color: var(--homebar-strong);
    background: var(--homebar-hover-bg);
    text-decoration: none;
}

.homebar-selector-item.is-selected {
    border-color: var(--homebar-accent-bg);
    background: var(--homebar-selected-bg);
    color: var(--homebar-selected-color);
}

.homebar-selector-item__main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.homebar-selector-item__name {
    font-weight: 700;
}

.homebar-selector-item__role,
.homebar-selector-item__owner {
    color: var(--homebar-muted);
    font-size: 0.86rem;
}

.homebar-selector-item.is-selected .homebar-selector-item__role,
.homebar-selector-item.is-selected .homebar-selector-item__owner {
    color: inherit;
}

.homebar-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.homebar-modal-header-actions .btn-close {
    margin: 0;
}

.homebar-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--homebar-muted);
    background: var(--homebar-surface);
    border: 1px solid var(--homebar-border);
    border-radius: 999px;
    line-height: 1;
}

.homebar-icon-button:hover,
.homebar-icon-button:focus-visible {
    color: var(--homebar-strong);
    border-color: var(--homebar-accent);
}

.homebar-icon-button.is-active {
    color: var(--homebar-selected-color);
    background: var(--homebar-selected-bg);
    border-color: transparent;
}

.homebar-bar-settings-toggle span {
    font-size: 1rem;
    transform: translateY(-1px);
}

.homebar-bar-settings {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--homebar-border);
}

.homebar-bar-settings h3 {
    margin: 0 0 10px;
    color: var(--homebar-strong);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
}

.homebar-bar-setting-toggle {
    margin: 0;
}

.homebar-bar-setting-field {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-bar-setting-field .form-control {
    max-width: 140px;
    color: var(--alliance-input-color, var(--homebar-strong));
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    border-color: var(--alliance-input-border-color, var(--homebar-border));
}

.homebar-bar-settings__message {
    min-height: 1.25rem;
    margin-top: 8px;
    font-size: 0.88rem;
}

.homebar-refresh-requests {
    min-width: 32px;
    padding-inline: 8px;
}

.homebar-refresh-requests[hidden] {
    display: none !important;
}

.homebar-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.homebar-tab {
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface);
    color: var(--homebar-strong);
    min-height: 38px;
    padding: 7px 11px;
    white-space: nowrap;
    font-weight: 600;
}

.homebar-tab.is-active {
    border-color: var(--homebar-accent-bg);
    background: var(--homebar-accent-bg);
    color: var(--homebar-accent-color);
}

.homebar-subtabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: -2px 0 12px;
}

.homebar-subtabs[hidden] {
    display: none !important;
}

.homebar-subtab {
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: transparent;
    color: var(--homebar-strong);
    min-height: 34px;
    padding: 5px 10px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.homebar-subtab.is-active {
    border-color: var(--homebar-accent-bg);
    background: color-mix(in srgb, var(--homebar-accent-bg) 18%, var(--homebar-surface) 82%);
    color: var(--homebar-strong);
}

.homebar-inventory-detail-tabs {
    flex-wrap: wrap;
    gap: 0;
    margin: 14px 0 0;
    overflow: visible;
    border-bottom-color: var(--homebar-border);
}

.homebar-inventory-detail-tabs .nav-link {
    min-height: 34px;
    padding: 6px 12px;
    border-color: var(--homebar-border);
    border-radius: 6px 6px 0 0;
    color: var(--homebar-strong);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.homebar-inventory-detail-tabs .nav-item + .nav-item .nav-link {
    margin-left: -1px;
}

.homebar-inventory-detail-tabs .nav-link:hover,
.homebar-inventory-detail-tabs .nav-link:focus {
    border-color: var(--homebar-border);
    background: var(--homebar-hover-bg);
    background: color-mix(in srgb, var(--homebar-hover-bg) 78%, var(--homebar-accent-bg) 22%);
    color: var(--homebar-hover-color);
}

.homebar-inventory-detail-tabs .nav-link.active {
    border-color: var(--homebar-accent-bg);
    border-bottom-color: var(--homebar-surface);
    background: color-mix(in srgb, var(--homebar-accent-bg) 18%, var(--homebar-surface) 82%);
    color: var(--homebar-strong);
    font-weight: 700;
}

.homebar-inventory-detail-tab-panel {
    padding: 16px;
    border: 1px solid var(--homebar-border);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: var(--homebar-surface);
}

.homebar-inventory-detail-tab-panel > .homebar-section:first-child {
    margin-top: 0;
}

.homebar-searchbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px);
    gap: 10px;
    margin-bottom: 12px;
}

.homebar-filter-control {
    min-width: 0;
}

.homebar-filter-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--alliance-input-border-color, var(--homebar-border));
    border-radius: 6px;
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    color: var(--alliance-input-color, var(--homebar-strong));
    text-align: left;
    white-space: nowrap;
}

.homebar-filter-button:focus {
    border-color: var(--alliance-focus-border-color, var(--homebar-accent));
    box-shadow: 0 0 0 0.15rem rgba(var(--alliance-focus-shadow-rgb, 13, 110, 253), 0.25);
    outline: 0;
}

.homebar-filter-modal .modal-dialog {
    max-width: 430px;
}

.homebar-filter-modal .modal-body {
    max-height: 70vh;
    overflow: auto;
}

.homebar-filter-options {
    display: grid;
    gap: 6px;
}

.homebar-filter-group {
    display: grid;
    gap: 3px;
    padding-top: 6px;
    border-top: 1px solid var(--homebar-border);
}

.homebar-filter-group-title {
    padding: 4px 8px 2px;
    color: var(--homebar-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.homebar-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--homebar-strong);
    text-align: left;
    font-size: 0.92rem;
}

.homebar-filter-option:hover,
.homebar-filter-option:focus {
    background: var(--homebar-hover-bg);
    background: color-mix(in srgb, var(--homebar-hover-bg) 78%, var(--homebar-accent-bg) 22%);
    color: var(--homebar-hover-color);
    outline: 0;
}

.homebar-filter-option.is-active {
    background: var(--homebar-accent-bg);
    color: var(--homebar-accent-color);
}

.homebar-alert {
    margin-bottom: 12px;
}

.homebar-shell {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 14px;
    min-height: 620px;
}

.homebar-shell.is-menu-workspace {
    grid-template-columns: minmax(0, 1fr);
}

.homebar-shell.is-menu-workspace .homebar-detail {
    display: none;
}

.homebar-shell.is-menu-workspace .homebar-list {
    max-height: none;
}

.homebar-list-panel,
.homebar-detail {
    border: 1px solid var(--homebar-border);
    border-radius: 8px;
    background: var(--homebar-surface);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.18);
}

.homebar-list-panel {
    overflow: hidden;
}

.homebar-list {
    max-height: 72vh;
    overflow: auto;
}

.homebar-list-group-heading {
    padding: 9px 14px;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface-alt);
    color: var(--homebar-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.homebar-inventory-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 10px 14px;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface-alt);
}

.homebar-drink-button,
.homebar-menu-item,
.homebar-request-item {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface);
    color: var(--homebar-strong);
    text-align: left;
}

.homebar-drink-button:hover,
.homebar-drink-button:focus,
.homebar-menu-item[data-menu-id]:hover,
.homebar-request-item:hover,
.homebar-request-item:focus-within {
    background: var(--homebar-hover-bg);
    background: color-mix(in srgb, var(--homebar-hover-bg) 78%, var(--homebar-accent-bg) 22%);
    color: var(--homebar-hover-color);
}

.homebar-drink-button.is-selected,
.homebar-inventory-row.is-selected {
    background: color-mix(in srgb, var(--homebar-accent-bg) 8%, var(--homebar-surface) 92%);
    color: var(--homebar-strong);
    box-shadow: inset 4px 0 0 var(--homebar-accent);
}

.homebar-request-item.is-selected {
    background: color-mix(in srgb, var(--homebar-accent-bg) 8%, var(--homebar-surface) 92%);
    color: var(--homebar-strong);
    box-shadow: inset 4px 0 0 var(--homebar-accent);
}

.homebar-drink-button:hover .homebar-drink-ref,
.homebar-drink-button:hover .homebar-drink-sub,
.homebar-drink-button:hover .homebar-drink-ingredients,
.homebar-drink-button:hover .homebar-version-match,
.homebar-request-item:hover .homebar-drink-ref,
.homebar-request-item:hover .homebar-drink-sub,
.homebar-request-item:hover .homebar-drink-ingredients,
.homebar-drink-button:focus .homebar-drink-ref,
.homebar-drink-button:focus .homebar-drink-sub,
.homebar-drink-button:focus .homebar-drink-ingredients,
.homebar-drink-button:focus .homebar-version-match,
.homebar-request-item:focus-within .homebar-drink-ref,
.homebar-request-item:focus-within .homebar-drink-sub,
.homebar-request-item:focus-within .homebar-drink-ingredients {
    color: var(--homebar-hover-color);
}

.homebar-menu-item[data-menu-id]:hover .homebar-drink-ref,
.homebar-menu-item[data-menu-id]:hover .homebar-drink-sub,
.homebar-menu-item[data-menu-id]:hover .homebar-drink-ingredients,
.homebar-menu-item[data-menu-id]:hover .homebar-version-match {
    color: var(--homebar-hover-color);
}

.homebar-drink-button.is-selected .homebar-drink-ref,
.homebar-drink-button.is-selected .homebar-drink-sub,
.homebar-drink-button.is-selected .homebar-drink-ingredients,
.homebar-inventory-row.is-selected .homebar-drink-ref,
.homebar-inventory-row.is-selected .homebar-drink-sub,
.homebar-inventory-row.is-selected .homebar-drink-ingredients {
    color: var(--homebar-muted);
}

.homebar-request-item.is-selected .homebar-drink-ref,
.homebar-request-item.is-selected .homebar-drink-sub,
.homebar-request-item.is-selected .homebar-drink-ingredients {
    color: var(--homebar-muted);
}

.homebar-menu-item[data-menu-id],
.homebar-request-item {
    cursor: pointer;
}

.homebar-inventory-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface);
}

.homebar-inventory-row .homebar-drink-button {
    border-bottom: 0;
    background: transparent;
}

.homebar-inventory-row.is-selected .homebar-drink-button {
    color: inherit;
}

.homebar-inventory-row-actions {
    display: flex;
    align-items: center;
    padding: 0 10px 0 2px;
}

.homebar-inventory-quick-action {
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--homebar-border) 78%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--homebar-muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.homebar-inventory-quick-action:hover,
.homebar-inventory-quick-action:focus {
    border-color: var(--homebar-accent-bg);
    background: color-mix(in srgb, var(--homebar-accent-bg) 8%, transparent);
    color: var(--homebar-strong);
}

.homebar-request-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.homebar-request-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface-alt);
}

.homebar-request-toolbar .btn {
    border: 1px solid var(--homebar-border);
    background: var(--homebar-surface);
    color: var(--homebar-strong);
    font-weight: 700;
}

.homebar-request-toolbar .btn:hover,
.homebar-request-toolbar .btn:focus {
    border-color: var(--homebar-accent);
    background: color-mix(in srgb, var(--homebar-accent-bg) 18%, var(--homebar-surface) 82%);
    color: var(--homebar-strong);
}

.homebar-request-main {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.homebar-request-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.homebar-request-status {
    min-width: 112px;
    color: var(--alliance-input-color, var(--homebar-strong));
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    border-color: var(--alliance-input-border-color, var(--homebar-border));
}

.homebar-request-action {
    white-space: nowrap;
}

.homebar-request-action--quiet {
    border: 1px solid var(--homebar-border);
    background: transparent;
    color: var(--homebar-muted);
    font-weight: 700;
}

.homebar-request-action--quiet:hover,
.homebar-request-action--quiet:focus {
    border-color: var(--homebar-accent-bg);
    background: color-mix(in srgb, var(--homebar-accent-bg) 10%, transparent);
    color: var(--homebar-strong);
}

.homebar-menu-detail-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) max-content;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface-alt);
}

.homebar-menu-detail-header [data-menu-back] {
    padding-inline: 6px;
}

.homebar-menu-detail-header--no-meta {
    grid-template-columns: auto minmax(0, 1fr);
}

.homebar-menu-detail-name {
    justify-self: center;
    min-width: 0;
    color: var(--homebar-strong);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.homebar-menu-detail-meta {
    display: inline-flex;
    gap: 0 4px;
    align-items: center;
    justify-self: end;
    padding-inline-end: 2px;
    color: var(--homebar-muted);
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.homebar-menu-detail-meta-part,
.homebar-menu-detail-meta-separator {
    white-space: nowrap;
}

.homebar-menu-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface);
}

.homebar-menu-detail-actions-left,
.homebar-menu-detail-actions-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.homebar-menu-detail-actions-right {
    justify-content: flex-end;
    margin-left: auto;
}

.homebar-menu-readiness {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface);
}

.homebar-menu-readiness-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid var(--homebar-border);
    border-radius: 999px;
    background: var(--homebar-surface-alt);
    color: var(--homebar-strong);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.homebar-menu-readiness-pill--success {
    border-color: color-mix(in srgb, #27835b 42%, var(--homebar-border));
    background: color-mix(in srgb, #27835b 14%, var(--homebar-surface) 86%);
}

.homebar-menu-readiness-pill--warning {
    border-color: color-mix(in srgb, var(--homebar-warning) 42%, var(--homebar-border));
    background: color-mix(in srgb, var(--homebar-warning) 14%, var(--homebar-surface) 86%);
}

.homebar-menu-readiness-pill--danger {
    border-color: color-mix(in srgb, #9b1c1c 42%, var(--homebar-border));
    background: color-mix(in srgb, #9b1c1c 12%, var(--homebar-surface) 88%);
}

#hbMenus {
    container-name: homebar-menu-list;
    container-type: inline-size;
}

@container homebar-menu-list (max-width: 28rem) {
    .homebar-menu-detail-meta {
        display: grid;
        justify-items: end;
        row-gap: 1px;
        padding-inline-end: 0;
        white-space: normal;
    }

    .homebar-menu-detail-meta-separator {
        display: none;
    }
}

.homebar-menu-detail-note {
    padding: 9px 14px;
    border-bottom: 1px solid var(--homebar-border);
    background: var(--homebar-surface);
    color: var(--homebar-muted);
    font-size: 0.88rem;
}

.homebar-menu-edit-form {
    display: grid;
    gap: 12px;
}

.homebar-menu-edit-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
}

.homebar-menu-edit-form label {
    display: grid;
    gap: 5px;
    width: 100%;
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-menu-edit-form .form-control,
.homebar-menu-edit-form .form-select {
    width: 100%;
    color: var(--alliance-input-color, var(--homebar-strong));
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    border-color: var(--alliance-input-border-color, var(--homebar-border));
}

.homebar-menu-date-field {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-menu-date-field > label {
    display: block;
    margin: 0;
    width: auto;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.homebar-menu-date-input {
    flex-wrap: nowrap;
    gap: 2px;
}

.homebar-menu-edit-form .homebar-menu-date-input .form-control {
    width: 1%;
    min-width: 0;
    border-top-right-radius: var(--bs-border-radius-sm);
    border-bottom-right-radius: var(--bs-border-radius-sm);
}

.homebar-menu-date-clear {
    width: 32px;
    padding-right: 0;
    padding-left: 0;
    border-radius: var(--bs-border-radius-sm);
    font-weight: 800;
    line-height: 1;
}

.homebar-menu-date-clear[hidden] {
    display: none;
}

.homebar-menu-edit-form textarea.form-control {
    min-height: 88px;
    resize: vertical;
}

.homebar-menu-item-featured {
    margin: 0;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.homebar-menu-item-featured .form-check-input {
    margin: 0;
}

.homebar-menu-item-featured .form-check-label {
    display: inline;
    width: auto;
    color: var(--homebar-strong);
    font-size: 0.9rem;
}

.homebar-menu-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.homebar-menu-edit-message {
    min-height: 1.25rem;
    margin: 0;
}

.homebar-menu-drink {
    align-items: center;
}

.homebar-menu-drink-heading {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.homebar-menu-drink-heading .homebar-drink-title {
    flex: 1 1 auto;
}

.homebar-menu-drink-heading .homebar-drink-ref {
    margin-left: auto;
    text-align: right;
}

.homebar-menu-drink-body {
    display: grid;
    grid-template-areas:
        "details actions"
        "badges badges";
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 6px 12px;
    align-items: start;
    margin-top: 5px;
}

.homebar-menu-drink-details {
    grid-area: details;
    min-width: 0;
}

.homebar-menu-drink-details .homebar-shared-note:first-child,
.homebar-menu-drink-details .homebar-drink-ingredients:first-child,
.homebar-menu-drink-details .homebar-version-match:first-child,
.homebar-menu-drink-details .homebar-unavailable-note:first-child {
    margin-top: 0;
}

.homebar-menu-drink-actions {
    display: inline-flex;
    grid-area: actions;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    max-width: 100%;
}

.homebar-menu-drink-badges {
    grid-area: badges;
}

.homebar-menu-drink-add-controls {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.homebar-menu-drink-add-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.homebar-menu-drink-add-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
    gap: 8px;
}

.homebar-menu-drink-add-count {
    color: var(--homebar-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.homebar-menu-drink-add-list {
    display: grid;
    gap: 8px;
}

.homebar-menu-drink-add-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--homebar-border);
    border-radius: 8px;
    background: var(--homebar-surface);
}

.homebar-menu-drink-add-result__main {
    min-width: 0;
}

.homebar-menu-drink-add-result__action {
    display: flex;
    justify-content: flex-end;
}

.homebar-drink-name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
}

.homebar-drink-title {
    display: inline-flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 5px;
    align-items: baseline;
    min-width: 0;
}

.homebar-drink-title__text {
    min-width: 0;
}

.homebar-favorite-star {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: 5px;
    color: var(--homebar-favorite);
    font-size: 1em;
    line-height: 1;
    vertical-align: 0.05em;
}

.homebar-drink-ref {
    flex: 0 0 auto;
    color: var(--homebar-muted);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.homebar-drink-sub,
.homebar-drink-ingredients {
    display: block;
    margin-top: 4px;
    color: var(--homebar-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.homebar-version-match {
    display: block;
    margin-top: 5px;
    color: var(--homebar-accent);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.homebar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.homebar-badges:empty {
    display: none;
}

.homebar-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--homebar-surface-alt);
    color: var(--homebar-strong);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.homebar-badge--version {
    border: 1px solid var(--homebar-border);
    background: transparent;
}

.homebar-badge--override {
    min-height: 19px;
    padding: 1px 6px;
    border: 1px solid color-mix(in srgb, var(--homebar-border) 45%, var(--homebar-surface) 55%);
    background: transparent;
    color: color-mix(in srgb, var(--homebar-muted) 58%, var(--homebar-surface) 42%);
    font-size: 0.68rem;
    font-weight: 600;
}

.homebar-badge--preview {
    border: 1px solid var(--homebar-border);
    background: var(--homebar-surface-alt);
}

.homebar-badge--featured {
    border: 1px solid color-mix(in srgb, var(--homebar-featured) 58%, var(--homebar-border));
    background: color-mix(in srgb, var(--homebar-featured) 20%, var(--homebar-surface) 80%);
    color: var(--homebar-strong);
    font-weight: 800;
}

.homebar-badge--mismatch {
    border: 1px solid color-mix(in srgb, var(--homebar-warning) 42%, var(--homebar-border));
    background: color-mix(in srgb, var(--homebar-warning) 14%, var(--homebar-surface) 86%);
    color: var(--homebar-strong);
}

.homebar-ingredient-menu-hidden {
    margin-left: 6px;
}

.homebar-badge--inline {
    margin-left: 6px;
    vertical-align: 0.08em;
}

.homebar-badge--danger {
    background: #fdecec;
    color: #9b1c1c;
}

.homebar-badge--warning {
    background: #fff4d6;
    color: #7a5200;
}

.homebar-ingredient-status-pill {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.homebar-ingredient-status-pill:hover,
.homebar-ingredient-status-pill:focus {
    box-shadow: inset 0 0 0 1px currentColor;
}

.homebar-ingredient-status-pill:disabled {
    cursor: wait;
    opacity: 0.7;
}

.homebar-detail {
    min-width: 0;
    padding: 22px;
    overflow: auto;
}

.homebar-empty {
    display: grid;
    place-content: center;
    min-height: 420px;
    color: var(--homebar-muted);
    text-align: center;
}

.homebar-empty h2 {
    color: var(--homebar-strong);
}

.homebar-recipe-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.homebar-recipe-actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.homebar-recipe-header h2 {
    margin: 0;
    color: var(--homebar-strong);
    font-size: 1.8rem;
}

.homebar-recipe-header h2 .homebar-favorite-star {
    font-size: 1em;
    vertical-align: 0.16em;
}

.homebar-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.homebar-section {
    margin-top: 20px;
}

.homebar-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.homebar-section h3 {
    margin: 0 0 8px;
    color: var(--homebar-strong);
    font-size: 1.05rem;
}

.homebar-section-heading h3 {
    margin-bottom: 0;
}

.homebar-section-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.homebar-section-note {
    margin: 8px 0 0;
}

.homebar-version-switcher {
    margin-top: 14px;
}

.homebar-version-heading {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--homebar-border);
}

.homebar-version-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.homebar-version-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface);
    color: var(--homebar-strong);
    font-size: 0.86rem;
    font-weight: 600;
}

.homebar-version-button:hover,
.homebar-version-button:focus {
    background: var(--homebar-hover-bg);
    background: color-mix(in srgb, var(--homebar-hover-bg) 78%, var(--homebar-accent-bg) 22%);
    color: var(--homebar-hover-color);
}

.homebar-version-button.is-active {
    border-color: var(--homebar-accent-bg);
    background: var(--homebar-accent-bg);
    color: var(--homebar-accent-color);
}

.homebar-version-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.homebar-version-button__badge {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--homebar-accent-soft);
    color: var(--homebar-strong);
    font-size: 0.72rem;
    line-height: 1.35;
}

.homebar-version-button__badge--muted {
    background: var(--homebar-surface-alt);
    color: var(--homebar-muted);
}

.homebar-version-button__badge--status {
    background: transparent;
    color: var(--homebar-muted);
    border: 1px solid var(--homebar-border);
    font-size: 0.68rem;
    font-weight: 700;
}

.homebar-version-button.is-active .homebar-version-button__badge {
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
}

.homebar-version-button.is-active .homebar-version-button__badge--status {
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
    opacity: 0.78;
}

.homebar-version-help {
    margin: 8px 0 0;
    color: var(--homebar-muted);
    font-size: 0.86rem;
}

.homebar-version-help--request {
    max-width: 680px;
}

.homebar-version-maintenance {
    display: grid;
    gap: 18px;
}

.homebar-version-maintenance-section {
    display: grid;
    gap: 10px;
}

.homebar-version-maintenance-section h3 {
    margin: 0;
    color: var(--homebar-strong);
    font-size: 1.02rem;
}

.homebar-version-request-grid,
.homebar-version-create {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.homebar-version-request-grid label,
.homebar-version-create label,
.homebar-version-edit-row__fields label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-version-request-grid .homebar-inventory-add-message,
.homebar-version-create .homebar-inventory-add-message {
    grid-column: 1 / -1;
    margin: 0;
}

.homebar-version-edit-list {
    display: grid;
    gap: 10px;
}

.homebar-version-edit-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--homebar-border);
    border-radius: 8px;
    background: var(--homebar-surface);
}

.homebar-version-edit-row__header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
}

.homebar-version-edit-row__fields {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.55fr) max-content max-content;
    gap: 10px;
    align-items: end;
}

.homebar-version-manage-actions {
    grid-column: 1 / -1;
}

.homebar-version-delete-zone {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--homebar-border);
}

.homebar-version-delete-zone strong {
    color: var(--homebar-strong);
    font-size: 0.92rem;
}

.homebar-version-delete-zone p {
    margin: 2px 0 0;
    color: var(--homebar-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.homebar-version-delete-action {
    flex: 0 0 auto;
    color: var(--homebar-danger);
}

.homebar-version-sort-list {
    display: grid;
    gap: 8px;
}

.homebar-version-sort-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--homebar-border);
}

.homebar-version-sort-row:last-child {
    border-bottom: 0;
}

.homebar-version-sort-row.is-dragging {
    opacity: 0.55;
}

.homebar-version-sort-drag {
    color: var(--homebar-muted);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    cursor: grab;
}

.homebar-version-sort-main {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.homebar-version-sort-main strong {
    min-width: 0;
}

.homebar-version-sort-status {
    color: var(--homebar-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.homebar-version-sort-actions {
    display: inline-flex;
    gap: 6px;
}

.homebar-version-sort-button {
    width: 28px;
    height: 28px;
    font-size: 0.86rem;
}

.homebar-version-start-options {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 8px 12px;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
}

.homebar-version-start-options legend {
    flex: 0 0 100%;
    margin: 0;
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-radio-option {
    display: inline-flex !important;
    flex: 0 0 auto;
    grid-template-columns: none !important;
    width: auto !important;
    gap: 7px !important;
    align-items: center;
    color: var(--homebar-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.homebar-radio-option input {
    margin: 0;
}

.homebar-ingredients {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.homebar-ingredient {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--homebar-border);
}

.homebar-measure {
    color: var(--homebar-strong);
    font-weight: 700;
    white-space: nowrap;
}

.homebar-ingredient-name {
    min-width: 0;
}

.homebar-ingredient-status {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.homebar-ingredient-status-actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
}

.homebar-ingredient-status-action {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: transparent;
    color: var(--homebar-strong);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.homebar-ingredient-status-action:hover,
.homebar-ingredient-status-action:focus {
    background: var(--homebar-hover-bg);
    color: var(--homebar-hover-color);
}

.homebar-ingredient-status-action:disabled {
    opacity: 0.65;
}

.homebar-ingredients--editable {
    gap: 6px;
}

.homebar-ingredient--editable {
    grid-template-columns: 28px minmax(58px, max-content) minmax(0, 1fr) max-content auto;
}

.homebar-ingredient--editable.is-dragging {
    opacity: 0.55;
}

.homebar-ingredient--editable.is-drag-over {
    outline: 1px solid var(--homebar-accent);
    background: var(--homebar-hover-bg);
}

.homebar-ingredient-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 30px;
    padding: 0;
    color: color-mix(in srgb, var(--homebar-muted) 72%, transparent);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: grab;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 0;
}

.homebar-ingredient-drag:hover,
.homebar-ingredient-drag:focus-visible {
    color: var(--homebar-muted);
    background: var(--homebar-hover-bg);
}

.homebar-ingredient-drag:active {
    cursor: grabbing;
}

.homebar-recipe-ingredient-add {
    flex: 0 0 auto;
    color: var(--homebar-strong);
    background: var(--homebar-surface-alt);
    border-color: transparent;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    padding-bottom: 2px;
}

.homebar-recipe-ingredient-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
}

.homebar-recipe-ingredient-action {
    width: 28px;
    height: 28px;
    color: var(--homebar-strong);
    background: var(--homebar-surface-alt);
    border-color: transparent;
    font-size: 0.82rem;
    line-height: 1;
    padding-bottom: 2px;
}

.homebar-recipe-ingredient-add:hover,
.homebar-recipe-ingredient-add:focus-visible,
.homebar-recipe-ingredient-action:hover,
.homebar-recipe-ingredient-action:focus-visible {
    color: var(--homebar-hover-color);
    background: var(--homebar-hover-bg);
    border-color: transparent;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--homebar-muted) 18%, transparent);
}

.homebar-recipe-ingredient-action:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.homebar-recipe-ingredient-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.55fr);
    gap: 12px;
}

.homebar-recipe-ingredient-current {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.homebar-recipe-ingredient-current span {
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-recipe-ingredient-current strong {
    color: var(--homebar-strong);
    font-size: 0.95rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.homebar-inventory-detail-grid {
    display: grid;
    gap: 6px;
}

.homebar-inventory-detail-grid p {
    margin: 0;
}

.homebar-inventory-overview-actions {
    align-items: center;
}

.homebar-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    margin: 0;
    color: var(--homebar-strong);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.homebar-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.homebar-switch__track {
    position: relative;
    width: 34px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid var(--homebar-border);
    border-radius: 999px;
    background: var(--homebar-surface-alt);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.homebar-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--homebar-muted);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.homebar-switch input:checked + .homebar-switch__track {
    border-color: var(--homebar-accent-bg);
    background: var(--homebar-accent-bg);
}

.homebar-switch input:checked + .homebar-switch__track .homebar-switch__thumb {
    transform: translateX(16px);
    background: var(--homebar-accent-color);
}

.homebar-switch input:focus-visible + .homebar-switch__track {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--homebar-accent-bg) 38%, transparent);
}

.homebar-switch input:disabled ~ span {
    opacity: 0.6;
}

.homebar-inventory-readouts {
    display: grid;
    gap: 7px;
}

.homebar-inventory-readout {
    display: grid;
    grid-template-columns: minmax(86px, max-content) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.homebar-inventory-readout__label {
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-inventory-readout__value {
    min-width: 0;
    color: var(--homebar-strong);
}

.homebar-inventory-readout__note {
    color: var(--homebar-muted);
    font-size: 0.8rem;
}

.homebar-inventory-readout__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.homebar-inventory-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.homebar-inventory-use-map {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 10px;
}

.homebar-inventory-use-map__label {
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-inventory-use-map__pill {
    cursor: help;
}

.homebar-inventory-status-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.homebar-status-button {
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface);
    color: var(--homebar-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.homebar-status-button:hover,
.homebar-status-button:focus {
    background: var(--homebar-hover-bg);
    background: color-mix(in srgb, var(--homebar-hover-bg) 78%, var(--homebar-accent-bg) 22%);
    color: var(--homebar-hover-color);
}

.homebar-status-button.is-active {
    border-color: var(--homebar-accent-bg);
    background: var(--homebar-accent-bg);
    color: var(--homebar-accent-color);
}

.homebar-inventory-cost-form,
.homebar-inventory-edit-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--homebar-border);
}

.homebar-inventory-cost-fields,
.homebar-inventory-edit-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.homebar-inventory-cost-fields label,
.homebar-inventory-edit-fields label,
.homebar-inventory-use-edit label {
    display: grid;
    gap: 4px;
    color: var(--homebar-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.homebar-inventory-cost-fields .form-control,
.homebar-inventory-cost-fields .form-select,
.homebar-inventory-edit-fields .form-control,
.homebar-inventory-edit-fields .form-select,
.homebar-inventory-use-edit .form-select,
.homebar-inventory-restock-form .form-control,
.homebar-inventory-restock-form .form-select {
    color: var(--alliance-input-color, var(--homebar-strong));
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    border-color: var(--alliance-input-border-color, var(--homebar-border));
}

.homebar-checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: end;
}

.homebar-checkbox-field input {
    width: 16px;
    height: 16px;
}

.homebar-inventory-edit-fields .homebar-checkbox-field {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    min-height: 31px;
}

.homebar-inventory-tracking-fields {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.45fr);
}

.homebar-inventory-threshold-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

.homebar-inventory-threshold-switch {
    min-height: 26px;
}

.homebar-inventory-threshold-help {
    font-size: 0.8rem;
}

.homebar-inventory-threshold-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.45fr);
    gap: 10px;
}

.homebar-inventory-threshold-fields[hidden] {
    display: none;
}

.homebar-inventory-cost-actions,
.homebar-inventory-edit-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.homebar-inventory-restock-form {
    display: grid;
    gap: 14px;
}

.homebar-inventory-restock-summary {
    margin: 0;
    color: var(--homebar-muted);
}

.homebar-inventory-restock-result {
    min-height: 1.1rem;
    margin: -4px 0 0;
    color: var(--homebar-muted);
    font-size: 0.82rem;
}

.homebar-inventory-restock-result[hidden] {
    display: none;
}

.homebar-inventory-restock-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.45fr);
    gap: 10px;
}

.homebar-inventory-restock-fields label,
.homebar-inventory-restock-note label {
    display: grid;
    gap: 4px;
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-inventory-restock-message {
    min-height: 1.25rem;
    margin: 0;
}

.homebar-inventory-add-picker {
    display: grid;
    gap: 10px;
}

.homebar-inventory-add-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.homebar-inventory-add-results {
    display: grid;
    gap: 5px;
    max-height: 300px;
    overflow: auto;
    padding: 4px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface);
}

.homebar-inventory-add-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--homebar-strong);
    font: inherit;
    text-align: left;
}

.homebar-inventory-add-result:hover,
.homebar-inventory-add-result:focus,
.homebar-inventory-add-result.is-selected {
    border-color: var(--homebar-accent-bg);
    background: color-mix(in srgb, var(--homebar-accent-bg) 10%, var(--homebar-surface) 90%);
    color: var(--homebar-strong);
}

.homebar-inventory-add-result:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.homebar-inventory-add-result__main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.homebar-inventory-add-result__main strong,
.homebar-inventory-add-result__main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homebar-inventory-add-result__main span,
.homebar-inventory-add-selected small {
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.homebar-inventory-add-create {
    justify-self: start;
}

.homebar-inventory-add-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--homebar-border);
}

.homebar-inventory-add-empty {
    margin-top: 16px;
    padding: 12px;
    border: 1px dashed var(--homebar-border);
    border-radius: 6px;
    color: var(--homebar-muted);
    font-weight: 700;
}

.homebar-inventory-add-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface-alt);
}

.homebar-inventory-add-selected span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.homebar-inventory-add-stock {
    display: grid;
    gap: 10px;
}

.homebar-inventory-add-stock h3 {
    margin: 0;
    color: var(--homebar-strong);
    font-size: 1rem;
}

.homebar-inventory-add-stock > label,
.homebar-inventory-add-create-grid label,
.homebar-inventory-add-tracking-fields label {
    display: grid;
    gap: 5px;
    color: var(--homebar-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-inventory-add-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.homebar-inventory-add-tracking {
    display: grid;
    gap: 10px;
}

.homebar-inventory-add-tracking .homebar-checkbox-field {
    align-self: start;
}

.homebar-inventory-add-tracking-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.45fr);
    gap: 10px;
}

.homebar-inventory-add-message {
    min-height: 1.25rem;
    margin: 0;
}

.homebar-badge--mine {
    border: 1px solid color-mix(in srgb, var(--homebar-accent-bg) 55%, var(--homebar-border) 45%);
    background: color-mix(in srgb, var(--homebar-accent-bg) 10%, var(--homebar-surface) 90%);
    color: var(--homebar-accent);
}

.homebar-ad-hoc-form {
    display: grid;
    gap: 14px;
}

.homebar-ad-hoc-form label,
.homebar-ad-hoc-field {
    display: grid;
    gap: 5px;
}

.homebar-ad-hoc-form label,
.homebar-ad-hoc-field > span {
    color: var(--homebar-strong);
    font-weight: 700;
}

.homebar-ad-hoc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.55fr) minmax(90px, 0.45fr);
    gap: 10px;
}

.homebar-ad-hoc-pour-controls {
    grid-template-columns: minmax(0, 1.25fr) minmax(90px, 0.45fr) minmax(76px, 0.34fr);
}

.homebar-ad-hoc-form--pour {
    --homebar-ad-hoc-pour-dropdown-height: min(232px, 42vh);
}

.homebar-ad-hoc-rows {
    display: grid;
    gap: 10px;
}

.homebar-ad-hoc-add-row {
    --homebar-ad-hoc-dropdown-height: min(232px, 42vh);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.28fr) minmax(90px, 0.22fr) auto;
    gap: 10px;
    align-items: end;
}

.homebar-ad-hoc-add {
    min-height: 38px;
    white-space: nowrap;
}

.homebar-ad-hoc-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(90px, 0.8fr) auto;
    gap: 10px;
    align-items: start;
}

.homebar-ad-hoc-row .homebar-ad-hoc-field {
    grid-column: 1 / -1;
}

.homebar-ad-hoc-picker {
    display: grid;
    gap: 6px;
}

.homebar-ad-hoc-combobox {
    position: relative;
}

.homebar-ad-hoc-add-row .homebar-ad-hoc-combobox {
    position: static;
}

.homebar-ad-hoc-search-wrap {
    position: relative;
}

.homebar-ad-hoc-search-input {
    padding-right: 34px;
}

.homebar-ad-hoc-search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--homebar-accent);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}

.homebar-ad-hoc-search-clear:hover,
.homebar-ad-hoc-search-clear:focus {
    background: var(--homebar-hover-bg);
    color: var(--homebar-hover-color);
}

.homebar-ad-hoc-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: color-mix(in srgb, var(--homebar-accent-bg) 12%, var(--homebar-surface) 88%);
    color: var(--homebar-strong);
}

.homebar-ad-hoc-selected span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.homebar-ad-hoc-selected strong,
.homebar-ad-hoc-result span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homebar-ad-hoc-change {
    border: 0;
    background: transparent;
    color: var(--homebar-accent);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.homebar-ad-hoc-results {
    display: grid;
    gap: 4px;
    max-height: 220px;
    overflow: auto;
    padding: 4px 4px 8px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface);
}

.homebar-ad-hoc-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 20;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.homebar-ad-hoc-add-row .homebar-ad-hoc-dropdown {
    max-height: var(--homebar-ad-hoc-dropdown-height);
}

.homebar-ad-hoc-pour-picker-field .homebar-ad-hoc-dropdown {
    max-height: var(--homebar-ad-hoc-pour-dropdown-height);
}

.homebar-ad-hoc-result {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--homebar-strong);
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.homebar-ad-hoc-result:hover,
.homebar-ad-hoc-result:focus {
    border-color: var(--homebar-accent-bg);
    background: color-mix(in srgb, var(--homebar-hover-bg) 78%, var(--homebar-accent-bg) 22%);
    color: var(--homebar-strong);
}

.homebar-ad-hoc-no-results {
    padding: 8px;
    border: 1px dashed var(--homebar-border);
    border-radius: 6px;
    color: var(--homebar-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.homebar-ad-hoc-no-results.homebar-ad-hoc-dropdown {
    background: var(--homebar-surface);
}

.homebar-ad-hoc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.homebar-ad-hoc-filter {
    padding: 5px 9px;
    border: 1px solid var(--homebar-border);
    border-radius: 999px;
    background: var(--homebar-surface);
    color: var(--homebar-strong);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
}

.homebar-ad-hoc-filter:hover,
.homebar-ad-hoc-filter:focus,
.homebar-ad-hoc-filter.is-active {
    border-color: var(--homebar-accent-bg);
    background: var(--homebar-accent-bg);
    color: var(--homebar-accent-color);
}

.homebar-ad-hoc-remove {
    min-height: 31px;
    white-space: nowrap;
}

.homebar-ad-hoc-list {
    padding-top: 2px;
}

.homebar-ad-hoc-list .homebar-ingredient {
    grid-template-columns: minmax(82px, auto) minmax(0, 1fr) auto;
}

.homebar-ad-hoc-empty {
    padding: 10px 0;
    border-top: 1px solid var(--homebar-border);
    border-bottom: 1px solid var(--homebar-border);
    color: var(--homebar-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.homebar-affected-drinks {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.homebar-affected-drink-button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--homebar-accent);
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.homebar-affected-drink-button:hover,
.homebar-affected-drink-button:focus {
    color: var(--homebar-accent);
    text-decoration: underline;
}

.homebar-list-ingredient {
    display: inline;
}

.homebar-stock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    vertical-align: 0.08em;
}

.homebar-stock-icon--danger {
    background: #fdecec;
    color: #9b1c1c;
}

.homebar-stock-icon--warning {
    background: #fff4d6;
    color: #7a5200;
}

.homebar-list-ingredient-separator {
    white-space: pre-wrap;
}

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

.homebar-share-page {
    max-width: 860px;
}

.homebar-share-header {
    margin-bottom: 18px;
}

.homebar-share-header h1 {
    margin: 0;
    color: var(--homebar-strong);
    font-size: 2.2rem;
    font-weight: 700;
}

.homebar-menu-date {
    margin: 8px 0 0;
    color: var(--homebar-muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.homebar-shared-menu {
    display: grid;
    gap: 24px;
}

.homebar-shared-preview-note {
    padding: 10px 12px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface-alt);
    color: var(--homebar-strong);
    font-size: 0.92rem;
    line-height: 1.4;
}

.homebar-shared-category h2 {
    margin: 0 0 10px;
    color: var(--homebar-strong);
    font-size: 1.35rem;
    font-weight: 700;
}

.homebar-shared-category {
    display: grid;
    gap: 10px;
}

.homebar-shared-drink {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--bs-card-border-color, var(--homebar-border));
    border-radius: 8px;
    background: var(--bs-card-bg, var(--homebar-surface));
    color: var(--bs-card-color, var(--homebar-strong));
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.12);
}

.homebar-shared-drink.is-featured {
    border-color: color-mix(in srgb, var(--homebar-featured) 38%, var(--homebar-border));
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--homebar-featured) 70%, var(--homebar-surface)), 3px 3px 3px rgba(0, 0, 0, 0.12);
}

.homebar-shared-drink.is-selected {
    border-color: var(--homebar-accent);
    box-shadow: inset 4px 0 0 var(--homebar-accent), 3px 3px 3px rgba(0, 0, 0, 0.12);
}

.homebar-shared-drink.is-unavailable {
    border-style: dashed;
}

.homebar-menu-tab-shared {
    padding: 16px 14px 18px;
}

.homebar-menu-tab-shared .homebar-shared-drink {
    grid-template-columns: minmax(0, 1fr);
}

.homebar-menu-tab-shared .homebar-menu-drink {
    grid-template-columns: minmax(0, 1fr);
}

.homebar-shared-drink__main-button {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.homebar-shared-drink__main-button:hover,
.homebar-shared-drink__main-button:focus {
    color: inherit;
}

.homebar-shared-note {
    display: block;
    margin: 5px 0 0;
    color: var(--homebar-muted);
    font-style: italic;
}

.homebar-unavailable-note {
    margin: 6px 0 0;
    color: var(--homebar-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.homebar-shared-drink__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 2px;
}

.homebar-shared-recipe-detail {
    color: var(--homebar-strong);
}

.homebar-shared-recipe-detail .homebar-recipe-header {
    margin-bottom: 0;
}

.homebar-modal {
    --bs-modal-color: var(--homebar-strong);
    --bs-modal-bg: var(--homebar-surface);
    --bs-modal-border-color: var(--homebar-border);
    --bs-modal-header-border-color: var(--homebar-border);
    --bs-modal-footer-border-color: var(--homebar-border);
}

.homebar-modal .modal-content {
    background: var(--homebar-surface);
    color: var(--homebar-strong);
    border-color: var(--homebar-border);
}

#adHocMakeModal .modal-body {
    overflow: visible;
}

.homebar-recipe-preview-modal .modal-body {
    padding: 22px;
}

.homebar-recipe-meta--popup {
    margin-top: 0;
    margin-bottom: 16px;
}

.homebar-modal .modal-header,
.homebar-modal .modal-footer {
    border-color: var(--homebar-border);
    background: var(--homebar-surface-alt);
}

.homebar-modal .modal-title,
.homebar-modal .form-label,
.homebar-modal .form-check-label {
    color: var(--homebar-strong);
}

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

.homebar-share-options {
    display: grid;
    gap: 12px;
}

.homebar-share-current {
    margin-bottom: 16px;
}

.homebar-share-empty {
    padding: 10px 0;
    color: var(--homebar-muted);
    font-size: 0.95rem;
}

.homebar-shared-request-status {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--homebar-border);
    border-radius: 6px;
    background: var(--homebar-surface-alt);
    color: var(--homebar-strong);
    font-weight: 700;
}

.homebar-shared-request-status.is-requested {
    border-color: #d99a00;
    background: #fff4d6;
    color: #7a5200;
}

.homebar-shared-request-status.is-making {
    border-color: var(--homebar-accent-bg);
    background: color-mix(in srgb, var(--homebar-accent-bg) 12%, var(--homebar-surface) 88%);
    color: var(--homebar-strong);
}

.homebar-shared-request-status.is-done {
    border-color: #8fca9a;
    background: #e7f6ec;
    color: #166534;
}

.homebar-shared-request-status.is-canceled {
    border-color: #c7cdd4;
    background: #f1f3f5;
    color: #495057;
}

.homebar-shared-request-status.is-signaled {
    animation: homebar-status-signal 1.15s ease-out;
}

@keyframes homebar-status-signal {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 35%, transparent);
    }

    100% {
        box-shadow: 0 0 0 12px transparent;
    }
}

.homebar-share-result {
    margin-top: 16px;
}

.homebar-share-current .input-group,
.homebar-share-result .input-group {
    gap: 8px;
}

.homebar-share-current .input-group > .form-control,
.homebar-share-result .input-group > .form-control,
.homebar-share-current .input-group > .btn,
.homebar-share-result .input-group > .btn {
    border-radius: 0.375rem !important;
}

.homebar-modal .form-check-input {
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    border-color: var(--alliance-input-border-color, var(--homebar-border));
}

.homebar-modal .form-check-input:checked {
    background-color: var(--homebar-accent-bg);
    border-color: var(--homebar-accent-bg);
}

.homebar-modal .btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    background-image: none;
    color: var(--homebar-strong);
    filter: none;
    opacity: 0.8;
}

.homebar-modal .btn-close::before {
    content: "\00d7";
    font-size: 1.5rem;
    line-height: 1;
}

.homebar-modal .btn-close:hover,
.homebar-modal .btn-close:focus {
    opacity: 1;
}

.homebar-modal .form-control,
.homebar-modal .form-select {
    color: var(--alliance-input-color, var(--homebar-strong));
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    border-color: var(--alliance-input-border-color, var(--homebar-border));
}

.homebar-modal .form-control:focus,
.homebar-modal .form-select:focus {
    color: var(--alliance-input-color, var(--homebar-strong));
    background-color: var(--alliance-input-bg, var(--homebar-surface));
    border-color: var(--alliance-focus-border-color, var(--homebar-accent));
    box-shadow: 0 0 0 0.15rem rgba(var(--alliance-focus-shadow-rgb, 13, 110, 253), 0.25);
}

@media (max-width: 820px) {
    .homebar-page {
        padding: 12px 6px 28px;
    }

    .homebar-public {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .homebar-public__content {
        padding: 18px 0 0;
    }

    .homebar-searchbar {
        grid-template-columns: 1fr;
    }

    .homebar-inventory-cost-fields,
    .homebar-inventory-edit-fields,
    .homebar-inventory-add-create-grid,
    .homebar-inventory-add-tracking-fields {
        grid-template-columns: 1fr;
    }

    .homebar-inventory-tracking-fields,
    .homebar-inventory-add-tracking-fields,
    .homebar-inventory-threshold-fields {
        grid-template-columns: minmax(0, 1fr) minmax(82px, 0.45fr);
    }

    .homebar-inventory-readout {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .homebar-inventory-readout__actions {
        justify-content: flex-start;
    }

    .homebar-inventory-add-result {
        grid-template-columns: 1fr;
    }

    .homebar-inventory-add-result .homebar-badges {
        margin-top: 0;
    }

    .homebar-inventory-row-actions {
        justify-content: flex-end;
        padding: 0 8px 0 2px;
    }

    .homebar-ingredient {
        grid-template-columns: minmax(50px, max-content) minmax(0, 1fr) max-content;
        gap: 6px;
        align-items: center;
    }

    .homebar-ingredient-status {
        justify-content: flex-end;
        gap: 4px;
    }

    .homebar-ingredient-status-actions {
        justify-content: flex-end;
        gap: 4px;
    }

    .homebar-ingredient-status-action {
        min-height: 22px;
        padding: 2px 6px;
        border-radius: 999px;
        font-size: 0.68rem;
    }

    .homebar-ingredient-status-pill {
        min-height: 20px;
        padding: 1px 6px;
        font-size: 0.68rem;
    }

    .homebar-ingredient--editable {
        grid-template-columns: 24px minmax(56px, 72px) minmax(0, 1fr) max-content max-content;
        gap: 4px;
    }

    .homebar-ingredient--editable .homebar-ingredient-drag,
    .homebar-ingredient--editable .homebar-measure,
    .homebar-ingredient--editable .homebar-ingredient-name,
    .homebar-ingredient--editable .homebar-ingredient-status {
        grid-row: 1;
    }

    .homebar-ingredient--editable .homebar-ingredient-status {
        grid-column: 4;
        justify-content: flex-end;
    }

    .homebar-recipe-ingredient-actions {
        grid-row: 1;
        grid-column: 5;
        justify-content: flex-end;
        gap: 3px;
    }

    .homebar-recipe-ingredient-action {
        width: 28px;
        height: 28px;
    }

    .homebar-recipe-ingredient-form-grid {
        grid-template-columns: 1fr;
    }

    .homebar-version-request-grid,
    .homebar-version-create,
    .homebar-version-edit-row__fields {
        grid-template-columns: 1fr;
    }

    .homebar-version-edit-row__fields .btn,
    .homebar-version-create > .btn {
        justify-self: start;
    }

    .homebar-version-delete-zone {
        align-items: flex-start;
        flex-direction: column;
    }

    .homebar-request-item {
        grid-template-columns: 1fr;
    }

    .homebar-request-actions {
        justify-content: flex-end;
        padding-top: 2px;
    }

    .homebar-request-action {
        flex: 0 0 auto;
    }

    .homebar-ad-hoc-grid,
    .homebar-ad-hoc-add-row,
    .homebar-ad-hoc-row {
        grid-template-columns: 1fr;
    }

    .homebar-ad-hoc-add-row .homebar-ad-hoc-combobox {
        position: relative;
    }

    .homebar-ad-hoc-remove {
        width: 100%;
    }

    .homebar-app__eyebrow-row {
        gap: 8px;
    }

    .homebar-app__eyebrow-row .btn {
        padding-inline: 9px;
    }

    .homebar-current-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .homebar-current-bar__main.has-extra-pills .homebar-current-bar__button,
    .homebar-current-bar__main.has-extra-pills .homebar-current-bar__name {
        flex: 0 0 100%;
    }

    .homebar-current-bar__tools {
        padding-top: 4px;
    }

    .homebar-filter-modal .modal-dialog {
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .homebar-filter-modal .modal-content {
        max-height: 88vh;
        border-radius: 14px 14px 0 0;
    }

    .homebar-filter-modal .modal-body {
        max-height: calc(88vh - 58px);
        overflow: auto;
    }

    .homebar-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .homebar-list {
        max-height: none;
    }

    .homebar-detail {
        display: none;
        min-height: 75vh;
    }

    .homebar-detail.has-drink {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        border: 0;
        border-radius: 0;
        padding: 10px;
    }

    .homebar-inventory-detail-tab-panel {
        padding: 12px;
    }

    .homebar-recipe-header {
        display: block;
    }

    .homebar-recipe-actions {
        margin-top: 12px;
        justify-content: flex-start;
    }

    .homebar-inventory-detail-actions {
        margin-top: 12px;
    }

    .homebar-menu-detail-header {
        grid-template-columns: auto minmax(0, 1fr) max-content;
        gap: 6px;
    }

    .homebar-menu-detail-header--no-meta {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .homebar-menu-detail-meta {
        display: grid;
        justify-items: end;
        row-gap: 1px;
        padding-inline-end: 0;
        font-size: 0.82rem;
        white-space: normal;
    }

    .homebar-menu-detail-meta-separator {
        display: none;
    }

    .homebar-menu-detail-actions {
        justify-content: space-between;
    }

    .homebar-menu-drink-body {
        grid-template-areas:
            "details details"
            "badges actions";
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: center;
    }

    .homebar-menu-drink-actions {
        align-self: center;
    }

    .homebar-menu-drink-badges {
        margin-top: 0;
    }

    .homebar-menu-drink-add-search,
    .homebar-menu-drink-add-result {
        grid-template-columns: 1fr;
    }

    .homebar-menu-drink-add-result__action {
        justify-content: flex-end;
    }

    .homebar-shared-drink {
        grid-template-columns: 1fr;
    }

    .homebar-mobile-back {
        display: inline-flex;
        margin-bottom: 14px;
    }
}

@media (min-width: 821px) and (max-width: 1120px) {
    .homebar-ingredient--editable {
        grid-template-columns: 28px minmax(64px, 82px) minmax(0, 1fr) max-content max-content;
        gap: 6px;
    }

    .homebar-ingredient--editable .homebar-ingredient-drag,
    .homebar-ingredient--editable .homebar-measure,
    .homebar-ingredient--editable .homebar-ingredient-name,
    .homebar-ingredient--editable .homebar-ingredient-status {
        grid-row: 1;
    }

    .homebar-ingredient--editable .homebar-ingredient-status {
        grid-column: 4;
        justify-content: flex-end;
    }

    .homebar-recipe-ingredient-actions {
        grid-row: 1;
        grid-column: 5;
        justify-content: flex-end;
    }
}

@media (min-width: 821px) {
    .homebar-mobile-back {
        display: none;
    }
}
