body {
    background: #000;
    color: #fff;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 1rem;
}

.header {
    text-align: center;
    padding: 1rem 0;
}

.logo {
    max-width: 120px;
    height: auto;
}

.venue-name {
    font-size: 2rem;
    color: orange;
    margin: 0.5rem 0;
}

.venue-address {
    font-size: 1rem;
    color: #ccc;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: white;
    background: #111;
    border-right: 1px solid #222;
}

.tab:hover {
    background: orange;
    color: black;
}

.content {
    padding: 1rem 0;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem;
    border-bottom: 1px solid #333;
}

.tagline {
    font-size: 1rem;
    color: #ccc;
    margin-top: 0.5rem;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #444;
}

.footer p {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.appstore-badge {
    max-width: 160px;
    height: auto;
}

.brand-heading {
    font-size: 2rem;
    color: orange;
    margin-top: 1rem;
}

.venue-header-address,
.venue-header-phone {
    margin: 0.35rem 0 0;
    color: #ccc;
}

.venue-header-phone a {
    color: #fff;
}

.venue-name {
    font-size: 1.5rem;
    color: white;
    margin: 0.5rem 0;
}

.emphasized-footer {
    background: #111;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
    border-top: 2px solid orange;
}

.emphasized-footer p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: white;
}

.appstore-badge {
    max-width: 160px;
    height: auto;
}

.tab.active {
    background: orange;
    color: black;
    font-weight: bold;
}

.tab-section {
    padding-top: 1rem;
}

.contact-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
}

.contact-section h2 {
    margin-top: 0;
    color: orange;
    text-align: center;
}

.contact-section p {
    text-align: center;
    color: #ccc;
}

.contact-form {
    display: block;
    margin-top: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 10px;
    width: 100%;
    border: 1px solid #444;
    border-radius: 6px;
    background: #0b0b0b;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    display: block;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: orange;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background: #ffb347;
}

.contact-feedback {
    margin: 0.5rem 0 1rem;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    background: #221;
    color: #f2c38b;
}

.contact-feedback.success {
    background: #0e2a1a;
    color: #b5f0c2;
}

.contact-honey {
    position: absolute;
    left: -9999px;
    height: 1px;
    width: 1px;
    opacity: 0;
}

.page-wrap {
    width: 100%;
    margin: 0;
    padding: 1rem 1.5rem 5rem;
    box-sizing: border-box;
}

#standardSections {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#viewModeTabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #000;
    max-width: 1200px;
    margin: 0 auto;
}

body:not(.taplist-mode) #viewModeTabs {
    max-width: 1200px;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 900px) {
    .tools-grid {
        grid-template-columns: 360px 1fr;
        align-items: start;
    }
}

.panel {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.is-hidden {
    display: none;
}

.panel h2 {
    margin-top: 0;
    color: orange;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-row label {
    font-size: 0.9rem;
    color: #ccc;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #0b0b0b;
    color: #fff;
}

.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary {
    background: orange;
    color: #000;
}

.btn-secondary {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

.btn-success {
    background: #1f8f46;
    color: #fff;
    border: 1px solid #2fba62;
}

.btn-danger {
    background: #9f2f2f;
    color: #fff;
    border: 1px solid #c94a4a;
}

.booze-editor-picker { display: flex; gap: 0.5rem; align-items: center; }
.booze-editor-picker input { min-width: 0; flex: 1; }
.booze-editor-picker-popover { position: fixed; z-index: 2000; min-width: 18rem; max-height: 18rem; overflow: auto; padding: 0.75rem; border: 1px solid #555; background: #111; }
.booze-editor-picker-popover > input { width: 100%; box-sizing: border-box; }
.booze-editor-picker-options .btn { display: block; width: 100%; margin-top: 0.35rem; text-align: left; }

.results-wrap {
    overflow-x: auto;
}

.venue-city-btn {
    margin-left: 0.5rem;
}

.venue-city-btn.is-active {
    background: orange;
    color: #000;
    border-color: orange;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 900px;
}

.data-table th,
.data-table td {
    padding: 8px;
    border: 1px solid #333;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #1a1a1a;
    color: #f5b76b;
    cursor: pointer;
    position: sticky;
    top: 0;
}

.copy-cell {
    cursor: pointer;
}

.data-table a {
    color: #fff;
}

.data-table a:hover {
    color: orange;
}

.venue-details-booze-list-table {
    min-width: 0;
}

.venue-details-booze-list-table thead {
    display: none;
}

.venue-details-booze-list-table th,
.venue-details-booze-list-table td {
    text-align: center;
}

.venue-details-booze-list-table tbody td {
    padding: 0.8rem;
}

.booze-list-name,
.booze-list-brewery,
.booze-list-style,
.booze-list-abv {
    line-height: 1.35;
}

.booze-list-name {
    color: #fff;
    font-weight: bold;
}

.booze-list-brewery,
.booze-list-style,
.booze-list-abv {
    color: #ccc;
}

.booze-list-edit-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.section-action-header {
    position: relative;
    flex-direction: column;
}

.section-action-header > [data-edit-only] {
    position: static;
    align-self: flex-end;
    order: 1;
}

.section-action-header > h2,
.section-action-header > div:not([data-edit-only]) {
    order: 2;
}

.section-action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

body.taplist-mode .page-wrap > .header {
    display: none !important;
}

#featureSummaryList {
    display: block;
    line-height: 1.35;
}

#featureSummaryList h4 {
    margin: 0.45rem 0 0.1rem;
    color: #f5b76b;
    font-size: 0.82rem;
}

#featureSummaryList .pill {
    display: inline;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    white-space: normal;
}

#featureSummaryList .pill::before {
    content: "•";
    margin: 0 0.35rem 0 0.1rem;
    color: orange;
}

#featureSummaryList .pill::after {
    content: " ·";
    color: #888;
}

#boozeWebSummary {
    line-height: 1.35;
}

#boozeWebSummary h3 {
    margin: 0.45rem 0 0.1rem;
    color: #f5b76b;
    font-size: 0.82rem;
}

#boozeWebSummary .pill {
    display: inline;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    white-space: normal;
}

#boozeWebSummary .pill::before {
    content: "•";
    margin: 0 0.35rem 0 0.1rem;
    color: orange;
}

#boozeWebSummary .pill::after {
    content: " ·";
    color: #888;
}

@media (min-width: 900px) {
    .venue-details-booze-list-table tbody td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 2rem;
    }

    .venue-details-booze-list-table .booze-list-name,
    .venue-details-booze-list-table .booze-list-brewery,
    .venue-details-booze-list-table .booze-list-style,
    .venue-details-booze-list-table .booze-list-abv {
        grid-column: 1;
    }

    .venue-details-booze-list-table .booze-list-edit-controls {
        grid-column: 2;
        grid-row: 1 / span 4;
        flex-direction: column;
        margin-top: 0;
    }
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #f5b76b;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.pill-active {
    background: orange;
    border-color: orange;
    color: #000;
}

.pill-active:hover {
    color: #000;
}

.pill-small {
    padding: 2px 8px;
    font-size: 0.75rem;
}

button.pill {
    cursor: pointer;
    font-family: inherit;
}

.pill:hover {
    border-color: orange;
}

.pill-clear {
    color: #ccc;
    border-style: dashed;
}

.pill-clear:hover {
    color: #fff;
    border-color: #fff;
}

.account-menu {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1500;
}

.account-menu-row {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem 0;
}

.account-menu-row .account-menu {
    position: relative;
    top: auto;
    right: auto;
}

.account-menu-toggle {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.account-menu-toggle:hover {
    border-color: orange;
    color: orange;
}

.account-menu-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.account-menu-dropdown.is-hidden {
    display: none;
}

.account-menu-dropdown a,
.account-menu-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.account-menu-dropdown a:hover,
.account-menu-link:hover {
    background: #222;
    color: orange;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.link-btn:hover {
    color: orange;
}

.venue-modal-address {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.venue-booze-table td.own-brewery {
    color: #f5b76b;
}

.venue-booze-table td.matching-type {
    background: #2a1f0d;
    color: #f5b76b;
    font-weight: bold;
}

.venue-booze-card-line {
    display: block;
}

.venue-booze-card-meta {
    display: block;
    color: #ccc;
    font-size: 0.82rem;
    margin-top: 2px;
}

.venue-add-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.venue-add-section h3 {
    margin: 0 0 0.5rem;
    color: #f5b76b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.venue-add-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.venue-add-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
}

.venue-lookup-item {
    align-items: center;
}

.venue-lookup-name {
    color: #fff;
    font-weight: bold;
}

.venue-lookup-meta {
    color: #ccc;
    font-size: 0.85rem;
    margin-top: 2px;
}

.venue-add-card-meta {
    display: block;
    color: #ccc;
    font-size: 0.82rem;
    margin-top: 2px;
}

.venue-mobile-summary {
    display: none;
}

.venue-price-input {
    width: 7rem;
    box-sizing: border-box;
    padding: 7px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #0b0b0b;
    color: #fff;
}

.venue-measure-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.venue-measure-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #ddd;
    white-space: nowrap;
}

.venue-price-status {
    display: inline-block;
    margin-left: 0.5rem;
    color: #ccc;
    font-size: 0.85rem;
    white-space: nowrap;
}

.venue-price-status-ok {
    color: #8ee6a4;
}

.venue-price-status-error {
    color: #ff9b9b;
}

.venue-add-item .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.edit-btn {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

.booze-venue-count {
    display: inline-block;
    margin-left: 0.35rem;
    color: #f5b76b;
    font-size: 0.85rem;
    font-weight: normal;
    white-space: nowrap;
}

.booze-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.booze-add-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.mobile-card-edit {
    display: none;
}

.typeahead-suggestions {
    position: absolute;
    border: 1px solid #444;
    background: #0b0b0b;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.typeahead-suggestion {
    padding: 6px 8px;
    cursor: pointer;
}

.typeahead-suggestion:hover {
    background-color: #222;
}

.no-underline {
    text-decoration: none;
    color: inherit;
}

.no-underline:hover,
.no-underline:active {
    color: inherit;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.is-hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    width: min(640px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

#boozeAddModal .modal-content {
    height: 85vh;
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-close {
    padding: 6px 10px;
}

.modal-bottom-spacer {
    display: none;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal-form-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-form-table th {
    text-align: left;
    padding: 8px 12px 8px 0;
    color: #ccc;
    font-weight: normal;
    vertical-align: middle;
    white-space: nowrap;
}

.modal-form-table td {
    padding: 6px 0;
}

.modal-form-table input[type="text"],
.modal-form-table select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #0b0b0b;
    color: #fff;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
}

.radio-inline input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.search-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.search-row .form-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row;
    margin-bottom: 0;
    flex-shrink: 0;
}

.search-row .form-row label {
    margin: 0;
    white-space: nowrap;
}

.search-row .form-row input[type="text"] {
    max-width: 200px;
}

.search-row .form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.search-row .btn {
    white-space: nowrap;
}

.panel > .search-row {
    margin: -1rem -1rem 0 -1rem;
    padding: 1rem;
}

.panel:has(.search-row) {
    border: none;
    background: transparent;
    padding: 0;
}

.panel.panel-bordered-search {
    background: #111;
    border: 1px solid #333;
    padding: 1rem;
}

.panel.panel-bordered-search > .search-row {
    margin: 0;
    padding: 0;
}

.tools-grid .secured-search-panel {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.pill-row-inline {
    margin-left: 1rem;
}

@media (max-width: 720px) {
    .page-wrap {
        padding: 0.75rem;
    }

    .header {
        padding: 0.75rem 0;
    }

    .logo {
        max-width: 88px;
    }

    .brand-heading {
        font-size: 1.45rem;
        line-height: 1.2;
        margin: 0.75rem 0 0;
        overflow-wrap: anywhere;
    }

    .tagline {
        margin: 0.35rem 0 0;
    }

    .panel {
        padding: 0.75rem;
        border-radius: 6px;
    }

    .panel h2 {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .form-actions > div {
        align-items: flex-start !important;
    }

    .btn {
        min-height: 42px;
        padding: 10px 12px;
    }

    .form-actions > .btn,
    .search-row .btn {
        width: 100%;
    }

    .booze-actions {
        justify-content: flex-end;
        align-self: stretch;
        margin-left: 0;
    }

    .booze-actions .btn,
    .booze-add-footer .btn {
        width: auto;
        min-height: 36px;
        padding: 8px 12px;
    }

    .booze-add-footer {
        justify-content: flex-start;
    }

    .pill-row-inline {
        width: 100%;
        margin-left: 0;
        margin-top: 0.35rem;
    }

    .pill {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .results-wrap {
        margin: 0 -0.75rem;
        padding: 0 0.75rem 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        font-size: 0.84rem;
        min-width: 760px;
    }

    .venue-booze-table {
        min-width: 620px !important;
    }

    .panel-bordered-search .data-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    .panel-bordered-search .data-table thead {
        display: none;
    }

    .panel-bordered-search .data-table,
    .panel-bordered-search .data-table tbody,
    .panel-bordered-search .data-table tr,
    .panel-bordered-search .data-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .panel-bordered-search .data-table tr {
        background: #111;
        border: 1px solid #333;
        border-radius: 6px;
        overflow: hidden;
    }

    .panel-bordered-search .data-table tr > td:first-child {
        padding: 10px;
        border: 0;
        background: #151515;
    }

    .panel-bordered-search .data-table tr > td:first-child {
        display: none;
    }

    .panel-bordered-search .data-table tr > td:first-child .btn {
        width: auto;
    }

    .panel-bordered-search .data-table tr > td:nth-child(2),
    .panel-bordered-search .data-table tr > td:not(:first-child):not(.venue-mobile-summary) {
        display: none;
    }

    .panel-bordered-search .data-table .venue-mobile-summary {
        display: block;
        border: 0;
        padding: 8px 10px;
    }

    .venue-mobile-summary-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        color: #fff;
        font-weight: bold;
        margin-bottom: 0.35rem;
        overflow-wrap: anywhere;
    }

    .venue-mobile-summary-title span {
        min-width: 0;
    }

    .venue-mobile-edit-btn {
        flex: 0 0 auto;
        width: auto;
        min-height: 34px;
        padding: 6px 12px;
    }

    .venue-mobile-summary-line {
        display: block;
        padding: 0;
        border-top: 0;
        color: #ddd;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .venue-mobile-summary-line:not(:last-child)::after {
        content: none;
    }

    .venue-mobile-summary-line span {
        color: #f5b76b;
    }

    .venue-mobile-summary-line strong {
        font-weight: normal;
    }

    .venue-mobile-summary-total {
        font-weight: bold;
    }

    .venue-mobile-summary-total strong {
        font-weight: bold;
    }

    .data-table th,
    .data-table td {
        padding: 7px 8px;
    }

    .venue-details-booze-list-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    .venue-details-booze-list-table thead {
        display: none;
    }

    .venue-details-booze-list-table,
    .venue-details-booze-list-table tbody,
    .venue-details-booze-list-table tr,
    .venue-details-booze-list-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .venue-details-booze-list-table tr {
        display: flex;
        flex-direction: column;
        background: #111;
        border: 1px solid #333;
        border-radius: 6px;
        overflow: hidden;
    }

    .venue-details-booze-list-table td {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
        border: 0;
        border-bottom: 1px solid #252525;
        padding: 8px 10px;
        min-height: 38px;
        overflow-wrap: anywhere;
    }

    .venue-details-booze-list-table td:last-child {
        border-bottom: 0;
    }

    .venue-details-booze-list-table td::before {
        content: attr(data-label);
        color: #f5b76b;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
    }

    .venue-details-booze-list-table td[data-label="Name"] {
        background: #1a1a1a;
        font-size: 1rem;
        font-weight: bold;
        order: 1;
    }

    .venue-details-booze-list-table td[data-label="Name"]::before {
        content: none;
    }

    .venue-details-booze-list-table td[data-label="Name"] .mobile-card-edit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 42px;
        padding: 10px 12px;
    }

    #boozeSection .results-wrap {
        overflow: visible;
    }

    #boozeSection .venue-details-booze-list-table tbody,
    #boozeSection .venue-details-booze-list-table tr,
    #boozeSection .venue-details-booze-list-table td {
        visibility: visible;
        opacity: 1;
    }

    #boozeSection .venue-details-booze-list-table td > div {
        display: block;
        width: auto;
    }

    .mobile-booze-name-wrap {
        min-width: 0;
    }

    .mobile-booze-name-wrap a {
        display: inline;
        overflow-wrap: anywhere;
    }

    .booze-venue-count {
        margin-left: 0.25rem;
    }

    .booze-list-table td[data-label="Edit"] {
        display: none;
    }

    .booze-list-table td[data-label="Edit"] .btn {
        width: auto;
        min-height: 42px;
        padding: 10px 12px;
    }

    .booze-list-table td:not([data-label="Name"]):not([data-label="Edit"]) {
        order: 3;
        display: none;
    }

    .booze-list-table tr.is-expanded td:not([data-label="Name"]):not([data-label="Edit"]) {
        display: grid;
    }

    .booze-list-table .booze-list-empty {
        display: block;
        padding: 12px;
    }

    .booze-list-table .booze-list-empty::before {
        content: none;
    }

    .competing-products-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    .competing-products-table thead {
        display: none;
    }

    .competing-products-table,
    .competing-products-table tbody,
    .competing-products-table tr,
    .competing-products-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .competing-products-table tr {
        background: #111;
        border: 1px solid #333;
        border-radius: 6px;
        overflow: hidden;
    }

    .competing-products-table td {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 0.75rem;
        border: 0;
        border-bottom: 1px solid #252525;
        padding: 8px 10px;
        overflow-wrap: anywhere;
    }

    .competing-products-table td:last-child {
        border-bottom: 0;
    }

    .competing-products-table td::before {
        content: attr(data-label);
        color: #f5b76b;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
    }

    .search-row,
    .panel.panel-bordered-search > .search-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .search-row .form-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .search-row .form-row input[type="text"] {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .search-row .form-row > div {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    .venue-lookup-controls .form-row {
        align-items: flex-start;
    }

    .venue-lookup-controls .form-row > div,
    .venue-lookup-input-row,
    .venue-distance-controls {
        align-items: flex-start !important;
    }

    .venue-lookup-controls .btn,
    .venue-distance-controls .btn {
        width: auto;
        min-height: 36px;
        padding: 8px 12px;
    }

    .venue-city-btn {
        margin-left: 0;
    }

    .venue-add-item {
        align-items: stretch;
        flex-direction: column;
    }

    .venue-add-item .btn {
        width: 100%;
    }

    .modal {
        align-items: flex-start;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .modal-content {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 auto;
        padding: 0.75rem 0.75rem calc(1.25rem + env(safe-area-inset-bottom));
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
    }

    #boozeAddModal .modal-content {
        height: 100dvh;
    }

    body.modal-open {
        overflow: hidden;
    }

    .modal-header {
        position: sticky;
        top: -0.75rem;
        z-index: 5;
        align-items: flex-start;
        gap: 0.75rem;
        margin: -0.75rem -0.75rem 1rem;
        padding: calc(0.75rem + env(safe-area-inset-top)) 0.75rem 0.75rem;
        background: #111;
        border-bottom: 1px solid #333;
    }

    .modal-header h2 {
        flex: 1;
        margin-bottom: 0;
        text-align: center;
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .modal-close,
    .modal-cancel-top,
    .modal-save-top {
        flex: 0 0 auto;
        width: auto;
        min-height: 36px;
        padding: 8px 10px;
    }

    #editModal .form-actions {
        display: none;
    }

    #venueModal .results-wrap {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    #venueModal .venue-booze-table {
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0 0.75rem;
    }

    #venueModal .venue-booze-table thead {
        display: none;
    }

    #venueModal .venue-booze-table,
    #venueModal .venue-booze-table tbody,
    #venueModal .venue-booze-table tr,
    #venueModal .venue-booze-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #venueModal .venue-booze-table tr {
        background: #151515;
        border: 1px solid #333;
        border-radius: 6px;
        overflow: hidden;
    }

    #venueModal .venue-booze-table td {
        display: block;
        border: 0;
        padding: 8px 10px;
        overflow-wrap: anywhere;
    }

    #venueModal .venue-booze-table td::before {
        content: none;
    }

    #venueModal .venue-booze-table .venue-booze-card {
        background: #1a1a1a;
    }

    #venueModal .venue-add-section {
        margin-top: 1rem;
    }

    #venueModal .venue-add-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
        background: #151515;
        border-radius: 6px;
        padding: 10px;
    }

    #venueModal .venue-add-card .btn {
        width: auto;
        min-width: 0;
        min-height: 34px;
        padding: 6px 12px;
        justify-self: end;
    }

    .modal-bottom-spacer {
        display: block;
        height: 45vh;
        min-height: 260px;
        padding-top: 4rem;
        text-align: center;
    }

    .modal-bottom-spacer img {
        width: 86px;
        height: auto;
        opacity: 0.8;
    }

    .modal-form-table,
    .modal-form-table tbody,
    .modal-form-table tr,
    .modal-form-table th,
    .modal-form-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .modal-form-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .modal-form-table tr {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        background: #151515;
        border: 1px solid #333;
        border-radius: 6px;
    }

    .modal-form-table th {
        padding: 0 0 0.45rem;
        color: #f5b76b;
        font-size: 0.78rem;
        font-weight: bold;
        text-transform: uppercase;
        white-space: normal;
    }

    .modal-form-table td {
        padding: 0;
    }

    .modal-form-table input[type="text"],
    .modal-form-table select {
        min-height: 42px;
        font-size: 1rem;
    }

    .radio-group {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    /* The venue list uses one detail cell per row; keep it visible on phones. */
    .venue-details-booze-list-table td,
    .venue-details-booze-list-table td:not([data-label="Name"]):not([data-label="Edit"]) {
        display: block !important;
        width: 100%;
    }

    .booze-list-edit-controls {
        flex-direction: column;
        align-items: center;
    }

    .booze-list-edit-controls .venue-measure-options {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .account-menu {
        top: 0.75rem;
        right: 0.75rem;
    }

    .account-menu-toggle {
        padding: 7px 10px;
    }

    .account-menu-dropdown {
        min-width: 148px;
    }

    .brand-heading {
        font-size: 1.3rem;
    }

    .data-table {
        min-width: 700px;
    }
}

.taplist-board {
    display: grid;
    grid-template-rows: auto 1fr;
    height: min(720px, calc(100vh - 190px));
    min-height: 460px;
    margin-top: 1rem;
    background:
        linear-gradient(90deg, rgba(255, 165, 0, 0.1), transparent 22%, transparent 78%, rgba(255, 165, 0, 0.08)),
        #050505;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

.taplist-board:fullscreen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.taplist-board:fullscreen .taplist-controls,
.taplist-board:fullscreen .taplist-settings {
    display: none;
}

.taplist-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.4rem;
    background: #111;
    border-bottom: 4px solid orange;
}

.taplist-topbar-left,
.taplist-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.taplist-topbar-right {
    margin-left: auto;
}

.taplist-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.taplist-logo {
    height: 68px;
    width: auto;
    flex: 0 0 auto;
}

.taplist-venue-name {
    max-width: 72vw;
    font-size: clamp(1.7rem, 3vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
}

.taplist-tagline {
    margin-top: 0.25rem;
    color: orange;
    font-size: clamp(0.82rem, 1vw, 1.15rem);
    font-weight: 800;
    text-transform: uppercase;
}

.taplist-clock {
    min-width: 6.5ch;
    color: #fff;
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.taplist-price {
    order: -1;
    color: #f5b76b;
    font-size: clamp(1.2rem, 1.7vw, 2.4rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.taplist-topbar .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.82rem;
}

.taplist-settings {
    position: static;
    z-index: 20;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 0;
    background: rgba(10, 10, 10, 0.96);
    color: #ddd;
    box-shadow: none;
}

.taplist-settings.is-hidden {
    display: none;
}

.taplist-settings label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.taplist-settings select {
    padding: 4px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font: inherit;
}

.taplist-setting-select {
    justify-content: space-between;
}

.taplist-rows {
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 10px;
    overflow: hidden;
}

.taplist-rows.taplist-compact {
    gap: 8px;
}

.taplist-rows.taplist-dense {
    gap: 6px;
}

.taplist-rows.taplist-min-rows-3 {
    grid-auto-rows: minmax(0, 1fr);
}

.taplist-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    border-left: 10px solid orange;
    background: #101010;
    box-shadow: inset 0 0 0 1px #242424;
}

.taplist-row:nth-child(even) {
    background: #151515;
}

.taplist-row-number {
    color: #f4b84a;
    font-size: clamp(1.2rem, 1.7vw, 2.4rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.taplist-row-main {
    min-width: 0;
}

.taplist-row-name {
    color: #fff;
    font-size: clamp(1.2rem, 1.7vw, 2.4rem);
    font-weight: 900;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
}

.taplist-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.45rem;
    color: #cfcfcf;
    font-size: clamp(0.82rem, 1vw, 1.3rem);
    font-weight: 700;
}

.taplist-row-meta .taplist-row-type {
    font-weight: 900;
    text-transform: uppercase;
}

.taplist-row-category {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
}

.taplist-row-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

.taplist-abv {
    min-width: 3.5ch;
    color: #fff;
    font-size: clamp(1.2rem, 1.7vw, 2.4rem);
    font-weight: 900;
    text-align: right;
}

.taplist-abv span {
    color: #aaa;
    font-size: 0.56em;
    font-weight: 700;
}

.taplist-row-badges {
    display: grid;
    grid-auto-flow: column;
    gap: 0.35rem;
}

.taplist-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.55rem, 1.8vw, 2.25rem);
    height: clamp(1.55rem, 1.8vw, 2.25rem);
    border-radius: 999px;
    font-size: clamp(0.62rem, 0.7vw, 0.82rem);
    font-weight: 900;
}

.taplist-badge-vegan {
    background: #1a2e1a;
    border: 1px solid #4caf50;
    color: #4caf50;
}

.taplist-badge-gf {
    background: #16222e;
    border: 1px solid #4aa3ff;
    color: #4aa3ff;
}

.taplist-badge-af {
    background: #1e1e1e;
    border: 1px solid #bbb;
    color: #bbb;
}

.taplist-category-filter-row {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.35rem;
    border-top: 1px solid #333;
}

.taplist-settings-row {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.taplist-settings-row > strong {
    min-width: 4.5rem;
    color: #f5b76b;
}

.taplist-settings {
    display: block;
}

.taplist-settings-row,
.taplist-category-filter-row {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

.taplist-category-filter-row > strong {
    color: #f5b76b;
}

#tapCategoryFilters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#tapCategoryFilters label {
    display: inline-flex;
}

@media (max-width: 700px) {
    .taplist-topbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .taplist-venue-name {
        font-size: 1.3rem;
        max-width: 100%;
    }

    .taplist-clock {
        display: none;
    }

    .taplist-topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .taplist-settings {
        flex-direction: column;
        align-items: stretch;
    }

    .taplist-rows {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
        overflow-y: auto;
    }

    .taplist-row {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1rem;
    }

    .taplist-row-stats {
        grid-column: 2;
        justify-content: space-between;
    }

    .taplist-row-name {
        font-size: 1.3rem;
        white-space: normal;
        word-break: break-word;
    }

    .taplist-abv {
        font-size: 1.5rem;
    }
}
