.beer-page-shell {
    width: 92%;
    max-width: 1280px;
    margin-top: 24px;
    margin-bottom: 56px;
    --beer-surface: #fffdf8;
    --beer-text: #2b2520;
    --beer-muted: #6b6158;
    --beer-primary: #355c7d;
    --beer-accent: #d8a657;
    --beer-line: #e7dccb;
    --beer-shadow-soft: 0 10px 24px rgba(77, 54, 27, 0.08);
    --filter-primary: var(--beer-primary);
    --filter-text: var(--beer-text);
    --filter-muted: var(--beer-muted);
    --filter-line: #c5d5e2;
    --filter-bg: rgba(248, 252, 255, 0.94);
    --filter-chip-bg: rgba(240, 248, 255, 0.9);
    --filter-chip-border: rgba(53, 92, 125, 0.3);
    --filter-focus: rgba(53, 92, 125, 0.18);
    --filter-hover-bg: rgba(226, 239, 251, 0.62);
}

.beer-control-panel,
.beer-table-section {
    background: var(--beer-surface);
    border: 1px solid var(--beer-line);
    border-radius: 14px;
    box-shadow: var(--beer-shadow-soft);
}

.beer-control-panel {
    margin-bottom: 24px;
    padding: 18px 20px 14px;
    background-image:
        radial-gradient(circle at 85% 25%, rgba(216, 166, 87, 0.18), transparent 45%),
        linear-gradient(160deg, #fffcf6 0%, #f8efe2 100%);
}

.beer-control-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.beer-title-wrap {
    flex: 1 1 auto;
    min-width: 280px;
}

.beer-hero-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--beer-primary);
    font-weight: 600;
}

.beer-hero-title {
    margin: 0;
    color: var(--beer-text);
    font-size: 30px;
    line-height: 1.2;
    font-family: "STKaiti", "KaiTi", "Songti SC", "Noto Serif SC", serif;
}

.beer-hero-subtitle {
    max-width: 640px;
    margin: 8px 0 0;
    color: var(--beer-muted);
    font-size: 13px;
    line-height: 1.45;
}

.beer-stat-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    gap: 8px;
    width: min(780px, 70%);
}

.beer-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border-radius: 9px;
    border: 1px solid #e8ddcb;
    padding: 7px 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 243, 230, 0.78));
}

.beer-stat-label {
    margin: 0;
    color: var(--beer-muted);
    font-size: 12px;
}

.beer-stat-value {
    margin: 0;
    color: var(--beer-primary);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
}

.beer-filter-body {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e1d3bc;
}

.beer-filter-inline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: center;
}

.beer-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.beer-filter-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 12px;
    color: var(--beer-muted);
    letter-spacing: 0.02em;
    width: 34px;
    flex: 0 0 34px;
}

.beer-filter-select {
    width: auto;
    height: 36px;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid #d4c5af;
    background-color: #fff;
    color: var(--beer-text);
    margin-top: 0;
    -webkit-appearance: menulist;
    appearance: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.beer-filter-select:focus {
    outline: none;
    border-color: var(--beer-primary);
    box-shadow: 0 0 0 2px rgba(53, 92, 125, 0.14);
}

.beer-filter-meta {
    border-top: 1px dashed #ddceb7;
    margin-top: 8px;
    padding-top: 8px;
}

.beer-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.beer-filter-tag {
    border: 1px solid rgba(53, 92, 125, 0.28);
    color: var(--beer-primary);
    background: rgba(245, 249, 255, 0.9);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
}

.beer-filter-tag button {
    border: 0;
    background: transparent;
    color: inherit;
    margin-left: 6px;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
}

.beer-filter-empty {
    font-size: 12px;
    color: var(--beer-muted);
}

.beer-clear-btn {
    border: 1px solid var(--beer-line);
    background-color: #fff;
    color: var(--beer-text);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    height: 36px;
    line-height: 1;
}

.beer-clear-btn:hover,
.beer-clear-btn:focus {
    background-color: #eef4fb;
    border-color: #9fb2c7;
    outline: none;
}

.beer-style-map-panel {
    width: min(100%, 820px);
    background: var(--beer-surface);
    border: 1px solid var(--beer-line);
    border-radius: 14px;
    box-shadow: var(--beer-shadow-soft);
    margin: 0 auto 24px;
    padding: 14px 16px 12px;
}

.beer-style-map-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.beer-style-map-title {
    margin: 0;
    font-size: 20px;
    color: var(--beer-text);
}

.beer-style-map-summary {
    margin: 0;
    color: var(--beer-muted);
    font-size: 13px;
}

.beer-style-map-body {
    width: 100%;
    margin: 0;
    padding: 0;
}

.beer-style-chart {
    width: 100%;
    height: 280px;
}

.beer-style-chart.is-hidden {
    display: none;
}

.beer-style-chart-empty {
    width: 100%;
    margin: 0;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beer-muted);
    font-size: 13px;
    text-align: center;
}

.beer-style-chart-empty[hidden] {
    display: none !important;
}

.beer-style-hover-legend {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.beer-style-hover-chip {
    border: 1px solid rgba(53, 92, 125, 0.35);
    background: rgba(244, 249, 255, 0.92);
    color: #2d4a66;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    line-height: 1.4;
    cursor: default;
}

.beer-style-hover-chip.is-active {
    background: rgba(53, 92, 125, 0.14);
    border-color: rgba(53, 92, 125, 0.72);
    color: #1d3952;
}

.beer-style-hover-detail {
    margin: 8px 0 0;
    min-height: 22px;
    color: var(--beer-muted);
    font-size: 12px;
    text-align: center;
}

.beer-table-section {
    padding: 18px 18px 16px;
}

.beer-table-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.beer-table-title {
    margin: 0;
    font-size: 20px;
    color: var(--beer-text);
}

.beer-visible-count {
    margin: 0;
    color: var(--beer-muted);
    font-size: 13px;
}

.beer-table-wrap {
    border: 1px solid var(--beer-line);
    border-radius: 10px;
    overflow: auto;
    background: #fff;
}

#beerTable {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

#beerTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #eef4fa 0%, #dce8f3 100%);
    color: #27435d;
    border-bottom-width: 1px !important;
    border-color: #d2dfec !important;
}

#beerTable td,
#beerTable th {
    vertical-align: middle;
    font-size: 13px;
}

#beerTable tbody td {
    border-color: #ecdfcb;
}

#beerTable tbody tr:hover {
    background-color: rgba(63, 122, 171, 0.08);
}

.beer-col-brand {
    font-weight: 600;
    min-width: 120px;
}

.beer-col-product {
    min-width: 150px;
}

.beer-col-flavor {
    min-width: 260px;
}

.beer-col-num {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.beer-search-mark {
    background-color: #ffe0a9;
    color: #603100;
    padding: 0 1px;
    border-radius: 2px;
}

.beer-empty-state {
    border: 1px dashed #d8c3a0;
    border-radius: 10px;
    background: #fff8ef;
    margin-top: 14px;
    padding: 16px;
    text-align: center;
}

.beer-empty-title {
    margin: 0;
    color: var(--beer-text);
    font-size: 16px;
    font-weight: 600;
}

.beer-empty-subtitle {
    margin: 8px 0 14px;
    color: var(--beer-muted);
    font-size: 13px;
}

.beer-empty-reset {
    border: 1px solid var(--beer-primary);
    background: var(--beer-primary);
    color: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
}

.beer-empty-reset:hover,
.beer-empty-reset:focus {
    background: #27435d;
    border-color: #27435d;
    outline: none;
}

.beer-page-shell .dataTables_wrapper {
    padding: 12px;
}

.beer-page-shell .dataTables_wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.beer-page-shell .dataTables_wrapper .row:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.beer-page-shell .dataTables_length,
.beer-page-shell .dataTables_filter {
    margin-bottom: 0;
}

.beer-page-shell .dataTables_length label,
.beer-page-shell .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--beer-muted);
    font-weight: 400;
    white-space: nowrap;
}

.beer-page-shell .dataTables_length select,
.beer-page-shell .dataTables_filter input {
    border: 1px solid #d4c5af;
    border-radius: 8px;
    padding: 5px 8px;
    height: 34px;
    background-color: #fff;
}

.beer-page-shell .dataTables_length select {
    margin-top: 0;
    vertical-align: middle;
    min-width: 78px;
    color: var(--beer-text);
    -webkit-appearance: menulist;
    appearance: auto;
}

.beer-page-shell .dataTables_filter input:focus,
.beer-page-shell .dataTables_length select:focus {
    outline: none;
    border-color: var(--beer-primary);
    box-shadow: 0 0 0 2px rgba(53, 92, 125, 0.12);
}

.beer-page-shell .dataTables_info {
    color: var(--beer-muted);
    font-size: 12px;
}

.beer-page-shell .pagination > li > a,
.beer-page-shell .pagination > li > span {
    color: var(--beer-text);
    border-color: #d2dfec;
    min-width: 34px;
    text-align: center;
}

.beer-page-shell .pagination > .active > a,
.beer-page-shell .pagination > .active > a:focus,
.beer-page-shell .pagination > .active > a:hover,
.beer-page-shell .pagination > .active > span,
.beer-page-shell .pagination > .active > span:focus,
.beer-page-shell .pagination > .active > span:hover {
    background-color: var(--beer-primary);
    border-color: var(--beer-primary);
}

@media (max-width: 991px) {
    .beer-control-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .beer-stat-strip {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .beer-filter-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .beer-clear-btn {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .beer-table-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .beer-style-map-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .beer-style-map-panel {
        width: 100%;
    }

    .beer-style-chart,
    .beer-style-chart-empty {
        min-height: 250px;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .beer-page-shell {
        width: 94%;
        margin-top: 16px;
    }

    .beer-control-panel {
        padding: 14px 14px 12px;
    }

    .beer-hero-title {
        font-size: 25px;
    }

    .beer-hero-subtitle {
        font-size: 12px;
    }

    .beer-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .beer-filter-inline {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .beer-filter-meta {
        margin-top: 6px;
        padding-top: 6px;
    }

    .beer-filter-item {
        gap: 6px;
    }

    .beer-filter-label {
        width: 34px;
        flex: 0 0 34px;
    }

    .beer-clear-btn,
    .beer-empty-reset {
        min-height: 38px;
    }

    .beer-style-map-panel {
        padding: 13px 12px 12px;
    }

    .beer-style-map-title {
        font-size: 18px;
    }

    .beer-style-map-summary {
        font-size: 12px;
    }

    .beer-style-chart,
    .beer-style-chart-empty {
        min-height: 210px;
        height: 210px;
    }

    .beer-page-shell .dataTables_wrapper {
        padding: 8px;
    }

    .beer-page-shell .dataTables_wrapper .row:first-child {
        flex-direction: column;
        align-items: stretch;
    }

    .beer-page-shell .dataTables_filter {
        width: 100%;
    }

    .beer-page-shell .dataTables_filter label {
        display: flex;
        width: 100%;
    }

    .beer-page-shell .dataTables_filter input {
        flex: 1;
        margin-left: 8px;
        width: auto;
    }

    #beerTable td,
    #beerTable th {
        font-size: 12px;
    }
}
