.aswl-section {
    margin: 1.5rem 0;
}

.aswl-section h2,
.aswl-section h3 {
    margin-top: 0;
}

.aswl-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.aswl-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.aswl-field-wide,
.aswl-actions {
    grid-column: 1 / -1;
}

.aswl-field label {
    font-weight: 600;
}

.aswl-field input,
.aswl-field select,
.aswl-field textarea,
.aswl-search input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.aswl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.aswl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
}

.aswl-button-secondary {
    background: transparent;
}

.aswl-button-small {
    min-height: 2.1rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
}

.aswl-notice,
.aswl-empty {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid currentColor;
    background: rgba(127, 127, 127, 0.08);
}

.aswl-notice-warning {
    border: 1px solid #dba617;
    border-left-width: 4px;
    background: #fff8e5;
}

.aswl-quick-whisky {
    margin: 1.25rem 0;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
}

.aswl-quick-whisky summary {
    padding: 0.85rem 1rem;
    cursor: pointer;
}

.aswl-panel-body {
    padding: 0 1rem 1rem;
}

.aswl-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.aswl-count {
    white-space: nowrap;
    font-weight: 600;
}

.aswl-search {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin: 1.25rem 0;
}

.aswl-search input {
    flex: 1 1 auto;
}

.aswl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.aswl-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
}

.aswl-facts {
    margin: 0;
}

.aswl-facts > div {
    display: grid;
    grid-template-columns: minmax(95px, 0.8fr) 1.2fr;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-top: 1px solid #ececec;
}

.aswl-facts dt {
    font-weight: 600;
}

.aswl-facts dd {
    margin: 0;
}

.aswl-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.9rem;
}

.aswl-audit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    background: rgba(127, 127, 127, 0.08);
}

.aswl-table-wrap {
    overflow-x: auto;
}

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

.aswl-table th,
.aswl-table td {
    padding: 0.65rem;
    border-top: 1px solid #d7d7d7;
    text-align: left;
    vertical-align: top;
}

@media (max-width: 700px) {
    .aswl-form {
        grid-template-columns: 1fr;
    }

    .aswl-heading-row,
    .aswl-search,
    .aswl-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .aswl-count {
        white-space: normal;
    }
}

.aswl-editor-panel {
    margin: 1.25rem 0 1.75rem;
    padding: 1rem;
    border: 1px solid #b9b9b9;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.05);
}

.aswl-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border: 1px solid #b7b7b7;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
}

.aswl-status-open {
    border-color: #b97800;
}

.aswl-status-empty,
.aswl-status-sold,
.aswl-status-gifted,
.aswl-record-status-archived {
    opacity: 0.7;
}

.aswl-record-status-active {
    border-color: #4f7d4f;
}

.aswl-row-archived {
    opacity: 0.65;
}

.aswl-bottle-table td:last-child {
    white-space: nowrap;
}

.aswl-note-list {
    display: grid;
    gap: 1rem;
}

.aswl-note-card {
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
}

.aswl-note-card-archived {
    opacity: 0.65;
}

.aswl-note-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.aswl-note-card h4 {
    margin: 0 0 0.35rem;
}

.aswl-note-meta,
.aswl-note-visibility-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.aswl-note-visibility-row {
    margin: 0.9rem 0;
}

.aswl-note-details {
    margin-top: 0.75rem;
}

.aswl-note-details summary {
    cursor: pointer;
    font-weight: 600;
}

.aswl-note-section {
    margin-top: 1rem;
}

.aswl-note-section h5 {
    margin: 0 0 0.3rem;
}

.aswl-note-section p {
    margin: 0;
}

.aswl-note-id {
    margin-top: 1rem;
    font-size: 0.9rem;
}



.aswl-catalogue-notes {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #d4d4d4;
}

.aswl-club-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    min-width: 150px;
}

.aswl-club-score strong {
    font-size: 1.2rem;
}

.aswl-help-text {
    margin: 0.5rem 0 1.25rem;
    font-size: 0.92rem;
    opacity: 0.8;
}

.aswl-catalogue-note-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.aswl-catalogue-note-columns > section > h4 {
    margin-top: 0;
}

.aswl-catalogue-note-card > .aswl-note-card-header h5 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

@media (max-width: 700px) {
    .aswl-note-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .aswl-catalogue-note-columns {
        grid-template-columns: 1fr;
    }

    .aswl-club-score {
        align-items: flex-start;
    }
}

.aswl-status-public {
    font-weight: 700;
}

.aswl-publication-control {
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px solid #b9b9b9;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.05);
}

.aswl-publication-control .aswl-help-text {
    margin-bottom: 0;
}

.aswl-public-detail > h2 {
    margin-bottom: 1rem;
}

.aswl-public-facts {
    max-width: 900px;
}

.aswl-public-description,
.aswl-public-notes {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #d4d4d4;
}

.aswl-public-note-card .aswl-note-section:first-of-type {
    margin-top: 0.75rem;
}

.aswl-event-past-heading {
    margin-top: 2rem;
}

.aswl-event-card h4,
.aswl-event-whisky-card h4 {
    margin: 0 0 0.45rem;
}

.aswl-event-editor h4 {
    margin-bottom: 0.25rem;
}

.aswl-event-whisky-rows {
    display: grid;
    gap: 0.65rem;
}

.aswl-event-whisky-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.aswl-event-whisky-row label {
    font-weight: 700;
    text-align: right;
}

.aswl-event-whisky-row select {
    box-sizing: border-box;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.aswl-event-description {
    margin: 1.25rem 0 1.75rem;
    padding: 1rem;
    border-left: 4px solid currentColor;
    background: rgba(127, 127, 127, 0.06);
}

.aswl-event-programme {
    display: grid;
    gap: 0.9rem;
}

.aswl-event-whisky-card {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
}

.aswl-event-whisky-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 700;
}

.aswl-event-score {
    margin: 0.35rem 0 0;
}

.aswl-event-whisky-action {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

@media (max-width: 700px) {
    .aswl-event-whisky-card {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        align-items: start;
    }

    .aswl-event-whisky-action {
        grid-column: 1 / -1;
        align-items: stretch;
    }
}


/* 0.6.0: blind tasting and revealed result ranking */
.aswl-blind-notice {
    margin: 1.25rem 0;
}

.aswl-admin-identity {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    opacity: 0.72;
}

.aswl-readonly-field {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: rgba(127, 127, 127, 0.08);
    font-weight: 600;
}

.aswl-event-results {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #d4d4d4;
}

.aswl-ranking-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding-left: 2rem;
}

.aswl-ranking-list li {
    padding: 0.8rem 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
}

.aswl-ranking-list li::marker {
    font-weight: 700;
}

.aswl-ranking-name,
.aswl-ranking-score {
    display: block;
}

.aswl-ranking-score {
    margin-top: 0.2rem;
    font-size: 0.92rem;
    opacity: 0.82;
}

/* 0.7.0 / 0.13.0: member-owned CSV exports */
.aswl-export-panel {
    margin: 2rem 0 0;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.025);
}

.aswl-export-panel summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
}

.aswl-export-panel-body {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: center;
    padding: 0 1rem 1rem;
}

.aswl-export-panel-body p {
    margin: 0;
}

.aswl-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.aswl-export-actions form {
    margin: 0;
}

@media (max-width: 700px) {
    .aswl-export-panel-body {
        align-items: stretch;
        flex-direction: column;
    }

    .aswl-export-actions,
    .aswl-export-actions form,
    .aswl-export-actions .aswl-button {
        width: 100%;
    }
}


/* 0.8.0: administrator duplicate merging */
.aswl-maintenance-panel {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid #c9a1a1;
    border-radius: 6px;
    background: rgba(150, 0, 0, 0.035);
}

.aswl-maintenance-panel h3 {
    margin-top: 0;
}

.aswl-merge-warning {
    padding: 0.9rem 1rem;
    border-left: 4px solid #9d2b2b;
    background: rgba(150, 0, 0, 0.055);
}

.aswl-merge-warning p {
    margin-top: 0;
}

.aswl-merge-warning ul {
    margin-bottom: 0;
}

.aswl-checkbox-field label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-weight: 600;
}

.aswl-checkbox-field input[type="checkbox"] {
    margin-top: 0.25rem;
}

.aswl-button-danger {
    border-color: #8c1f1f;
    background: #8c1f1f;
    color: #fff;
}

.aswl-button-danger:hover,
.aswl-button-danger:focus {
    border-color: #651515;
    background: #651515;
    color: #fff;
}


.aswl-collection-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.aswl-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.04);
}

.aswl-summary-item span {
    font-size: 0.88rem;
    opacity: 0.8;
}

.aswl-summary-item strong {
    font-size: 1.2rem;
}

.aswl-collection-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(150px, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
}

.aswl-collection-filters input,
.aswl-collection-filters select {
    box-sizing: border-box;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.aswl-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .aswl-collection-filters {
        grid-template-columns: 1fr 1fr;
    }

    .aswl-filter-search,
    .aswl-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .aswl-collection-filters {
        grid-template-columns: 1fr;
    }

    .aswl-filter-search,
    .aswl-filter-actions {
        grid-column: auto;
    }

    .aswl-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* 0.12.0 / 0.14.0: private member dashboard */
.aswl-dashboard-intro {
    margin-bottom: 1.25rem;
}

.aswl-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.aswl-dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.04);
}

.aswl-dashboard-stat span {
    font-size: 0.88rem;
    opacity: 0.82;
}

.aswl-dashboard-stat strong {
    font-size: 1.35rem;
}

.aswl-dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.aswl-dashboard-panel {
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.025);
}

.aswl-dashboard-panel h3,
.aswl-dashboard-panel p {
    margin-top: 0;
}

.aswl-dashboard-list {
    display: grid;
    gap: 0.65rem;
}

.aswl-dashboard-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-top: 1px solid #e2e2e2;
}

.aswl-dashboard-list-item:first-child {
    border-top: 0;
}

.aswl-dashboard-list-item h4,
.aswl-dashboard-list-item p {
    margin: 0;
}

.aswl-dashboard-list-item p {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.aswl-dashboard-events {
    margin-top: 1.25rem;
}

.aswl-dashboard-event-card h4 {
    margin: 0 0 0.75rem;
}

@media (max-width: 700px) {
    .aswl-dashboard-columns {
        grid-template-columns: 1fr;
    }

    .aswl-dashboard-list-item {
        align-items: stretch;
        flex-direction: column;
    }
}

/* 0.13.0 / 0.14.0: shared member navigation */
.aswl-member-navigation {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin: 1rem 0 1.75rem;
    padding: 0.7rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.035);
}

.aswl-member-navigation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
}

.aswl-member-navigation-public {
    flex: 0 0 auto;
}

.aswl-member-navigation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
}

.aswl-member-navigation-link:hover,
.aswl-member-navigation-link:focus {
    background: rgba(127, 127, 127, 0.1);
    text-decoration: underline;
}

.aswl-member-navigation-link.is-current {
    border-color: rgba(127, 127, 127, 0.28);
    background: rgba(127, 127, 127, 0.14);
    box-shadow: inset 0 -2px 0 currentColor;
    text-decoration: none;
}

.aswl-member-navigation-link-public {
    border-color: currentColor;
}

@media (max-width: 800px) {
    .aswl-member-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .aswl-member-navigation-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .aswl-member-navigation-link {
        width: 100%;
        box-sizing: border-box;
        padding: 0.55rem 0.65rem;
    }

    .aswl-member-navigation-public,
    .aswl-member-navigation-link-public {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .aswl-member-navigation-links {
        grid-template-columns: 1fr;
    }
}

/* 0.15.0: privacy-safe club overview */
.aswl-club-overview-intro {
    margin-bottom: 1rem;
}

.aswl-privacy-note {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid currentColor;
    border-radius: 4px;
    background: rgba(127, 127, 127, 0.06);
    font-size: 0.94rem;
    line-height: 1.55;
}

.aswl-club-overview-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
    margin-top: 1.25rem;
}

.aswl-club-ranking-list {
    display: grid;
    gap: 0;
}

.aswl-club-ranking-item {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 0;
    border-top: 1px solid #e2e2e2;
}

.aswl-club-ranking-item:first-child {
    border-top: 0;
}

.aswl-club-ranking-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

.aswl-club-ranking-content h4,
.aswl-club-ranking-content p {
    margin: 0;
}

.aswl-club-ranking-content p {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.82;
}

@media (max-width: 800px) {
    .aswl-club-overview-columns {
        grid-template-columns: 1fr;
    }
}

/* 0.16.0: private personal taste profile */
.aswl-taste-profile {
    margin: 1.25rem 0;
}

.aswl-taste-profile-summary {
    margin-bottom: 1.35rem;
}

.aswl-taste-profile-ranking-heading {
    margin-top: 0.25rem;
}

.aswl-taste-profile-ranking-heading h4,
.aswl-taste-profile-ranking-heading p {
    margin-top: 0;
}

.aswl-personal-ranking-club {
    margin-top: 0.2rem !important;
}

/* 0.17.0: whisky images and public website integrations */
.aswl-whisky-card-image-wrap,
.aswl-whisky-image-link,
.aswl-public-detail-image,
.aswl-editor-current-image,
.aswl-image-preview {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.06);
}

.aswl-whisky-card-image-wrap,
.aswl-whisky-image-link {
    margin: -1rem -1rem 1rem;
    border-radius: 6px 6px 0 0;
    text-decoration: none;
}

.aswl-whisky-card-image,
.aswl-whisky-detail-image,
.aswl-image-preview-item,
.aswl-public-note-thumb {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.aswl-whisky-card-image {
    aspect-ratio: 4 / 3;
    padding: 0.75rem;
    box-sizing: border-box;
}

.aswl-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1rem;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(127, 127, 127, 0.055), rgba(127, 127, 127, 0.13));
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.72;
}

.aswl-editor-current-image {
    max-width: 360px;
    margin: 1rem 0 1.5rem;
    padding: 0.75rem;
}

.aswl-editor-current-image .aswl-whisky-detail-image {
    max-height: 420px;
}

.aswl-image-control {
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.035);
}

.aswl-image-control > label:first-child {
    font-size: 1.05rem;
}

.aswl-image-preview {
    width: min(100%, 340px);
    min-height: 180px;
    margin: 0.35rem 0 0.75rem;
    padding: 0.75rem;
    box-sizing: border-box;
}

.aswl-image-preview-item {
    max-height: 340px;
}

.aswl-image-control input[type="file"] {
    width: 100%;
    padding: 0.6rem;
    box-sizing: border-box;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: #fff;
}

.aswl-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.55rem !important;
    align-items: flex-start;
    font-weight: 500 !important;
}

.aswl-checkbox-label input {
    width: auto !important;
    margin-top: 0.2rem;
}

.aswl-public-detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    gap: 1.5rem;
    align-items: start;
    margin: 1rem 0 1.5rem;
}

.aswl-public-detail-image {
    padding: 1rem;
}

.aswl-public-detail-image .aswl-image-placeholder {
    min-height: 320px;
}

.aswl-public-detail-image .aswl-whisky-detail-image {
    max-height: 520px;
}

.aswl-card-meta,
.aswl-public-score-compact {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.92rem;
    opacity: 0.82;
}

.aswl-member-entry {
    display: flex;
    align-items: center;
}

.aswl-member-entry-button {
    min-width: 12rem;
}

.aswl-public-widget {
    margin: 0;
}

.aswl-public-note-card-header {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.aswl-public-note-card-header h3,
.aswl-public-note-card-header p {
    margin-top: 0;
}

.aswl-public-note-thumb {
    width: 76px;
    height: 76px;
    padding: 0.25rem;
    box-sizing: border-box;
    border-radius: 5px;
    background: rgba(127, 127, 127, 0.06);
}

.aswl-public-note-card-header .aswl-image-placeholder {
    width: 76px;
    min-height: 76px;
    padding: 0.3rem;
    border-radius: 5px;
    font-size: 0.72rem;
}

.aswl-public-note-excerpt {
    line-height: 1.55;
}

.aswl-public-archive-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.035);
}

.aswl-public-summary-stat {
    display: flex;
    flex-direction: column;
    min-width: 9rem;
}

.aswl-public-summary-stat strong {
    font-size: 1.5rem;
    line-height: 1.1;
}

.aswl-public-summary-stat span {
    font-size: 0.9rem;
    opacity: 0.82;
}

.aswl-public-archive-summary .aswl-button {
    margin-left: auto;
}

@media (max-width: 700px) {
    .aswl-public-detail-layout {
        grid-template-columns: 1fr;
    }

    .aswl-public-detail-image {
        max-width: 360px;
    }

    .aswl-public-archive-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .aswl-public-archive-summary .aswl-button {
        width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }
}

/* 0.18.0: structured distilleries and maps */
.aswl-distillery-map-wrap {
    margin: 1rem 0 1.5rem;
}

.aswl-distillery-map {
    width: 100%;
    min-height: 420px;
    border: 1px solid #d4d4d4;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(127, 127, 127, 0.06);
}

.aswl-single-distillery-map .aswl-distillery-map {
    min-height: 340px;
}

.aswl-map-attribution-note {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    opacity: 0.72;
}

.aswl-map-empty {
    margin: 1rem 0 1.5rem;
}

.aswl-map-popup {
    min-width: 170px;
    line-height: 1.45;
}

.aswl-map-popup strong,
.aswl-map-popup a {
    display: block;
}

.aswl-map-popup a {
    margin-top: 0.45rem;
    font-weight: 600;
}

.aswl-distillery-grid .aswl-card h3 {
    margin-bottom: 0.5rem;
}

.aswl-status-pending {
    background: #fff3cd;
    color: #684f00;
}

.aswl-inline-details {
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.025);
}

.aswl-inline-details > summary {
    cursor: pointer;
    padding: 0.8rem 1rem;
}

.aswl-nested-fields {
    padding: 0 1rem 1rem;
}

.aswl-distillery-proposal {
    margin-top: 1.5rem;
}

.aswl-distillery-detail .aswl-distillery-whiskies {
    margin-top: 1.5rem;
}

.aswl-distillery-card .aswl-card-footer > span {
    max-width: 55%;
}

@media (max-width: 700px) {
    .aswl-distillery-map {
        min-height: 330px;
    }

    .aswl-single-distillery-map .aswl-distillery-map {
        min-height: 300px;
    }
}


/* 0.18.1: distillery links and whisky-detail integration */
.aswl-heading-actions,
.aswl-subheading-row,
.aswl-public-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.aswl-heading-actions {
    justify-content: flex-end;
}

.aswl-subheading-row {
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.aswl-subheading-row h3 {
    margin: 0;
}

.aswl-distillery-links {
    line-height: 1.5;
}

.aswl-distillery-link {
    font-weight: 600;
}

.aswl-distillery-pending-label,
.aswl-distillery-links-fallback {
    opacity: 0.75;
}

.aswl-row-subtitle {
    margin-top: 0.2rem;
    font-size: 0.86rem;
    line-height: 1.35;
    opacity: 0.82;
}

.aswl-whisky-distillery-panel {
    margin: 1.35rem 0;
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 7px;
    background: rgba(127, 127, 127, 0.025);
}

.aswl-distillery-reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.aswl-distillery-reference-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 0.8rem;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
}

.aswl-distillery-reference-image {
    min-height: 92px;
}

.aswl-distillery-reference-thumb {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.aswl-distillery-reference-image .aswl-image-placeholder {
    min-height: 92px;
    padding: 0.35rem;
    font-size: 0.72rem;
}

.aswl-distillery-reference-content h4,
.aswl-distillery-reference-content p {
    margin-top: 0;
}

.aswl-distillery-reference-content p:last-child {
    margin-bottom: 0;
}

.aswl-public-summary-actions {
    margin-left: auto;
    justify-content: flex-end;
}

.aswl-public-archive-summary .aswl-public-summary-actions .aswl-button {
    margin-left: 0;
}

@media (max-width: 700px) {
    .aswl-heading-actions,
    .aswl-subheading-row,
    .aswl-public-summary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .aswl-heading-actions .aswl-button,
    .aswl-subheading-row .aswl-button,
    .aswl-public-summary-actions .aswl-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .aswl-public-summary-actions {
        width: 100%;
        margin-left: 0;
    }

    .aswl-distillery-reference-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .aswl-distillery-reference-thumb {
        width: 72px;
        height: 72px;
    }
}


/* 0.19.0: catalogue filters and quality-oriented browsing */
.aswl-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: end;
    margin: 1.25rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 7px;
    background: rgba(127, 127, 127, 0.035);
}

.aswl-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.aswl-filter-field label {
    font-weight: 600;
    font-size: 0.92rem;
}

.aswl-filter-field input,
.aswl-filter-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.7rem;
    padding: 0.62rem 0.7rem;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.aswl-filter-search {
    grid-column: span 2;
}

.aswl-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

@media (max-width: 980px) {
    .aswl-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .aswl-filter-form {
        grid-template-columns: 1fr;
    }

    .aswl-filter-search {
        grid-column: auto;
    }

    .aswl-filter-actions,
    .aswl-filter-actions .aswl-button {
        width: 100%;
    }
}


/* 0.19.1: unified distillery and origin presentation */
.aswl-distillery-location,
.aswl-whisky-explicit-origin {
    font-weight: 400;
    opacity: 0.82;
}

.aswl-whisky-origin-line {
    overflow-wrap: anywhere;
}

/* 0.19.2: Angels Share 20/80 tasting-score breakdown */
.aswl-score-breakdown {
    margin: 0.75rem 0;
    padding: 0.65rem 0.8rem;
    border-left: 3px solid currentColor;
    background: rgba(127, 127, 127, 0.06);
}


/* 0.20.0: public whisky hub and cohesive public navigation */
.aswl-public-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.65rem;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: rgba(127, 127, 127, 0.035);
}

.aswl-public-navigation-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    padding: 0.55rem 0.85rem;
    box-sizing: border-box;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.aswl-public-navigation-link:hover,
.aswl-public-navigation-link:focus-visible,
.aswl-public-navigation-link.is-current {
    background: rgba(127, 127, 127, 0.13);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.aswl-public-hub {
    display: grid;
    gap: 1.5rem;
}

.aswl-public-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(127, 127, 127, 0.03), rgba(127, 127, 127, 0.1));
}

.aswl-public-hub-hero h2 {
    margin: 0.2rem 0 0.7rem;
    font-size: clamp(1.7rem, 4vw, 2.65rem);
    line-height: 1.12;
}

.aswl-public-hub-hero p:last-child {
    margin-bottom: 0;
    max-width: 65ch;
    line-height: 1.6;
}

.aswl-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.72;
}

.aswl-public-hub-actions {
    display: grid;
    gap: 0.65rem;
}

.aswl-public-hub-actions .aswl-button,
.aswl-public-hub-actions .aswl-member-entry,
.aswl-public-hub-actions .aswl-member-entry-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.aswl-public-hub-block {
    padding-top: 0.35rem;
}

.aswl-public-section-heading,
.aswl-public-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.aswl-public-section-heading h3 {
    margin: 0.15rem 0 0;
}

.aswl-public-detail-actions {
    margin-bottom: 1rem;
}

.aswl-public-map-block .aswl-distillery-map-wrap {
    margin-top: 0;
}

.aswl-related-whiskies {
    margin-top: 1.6rem;
    padding-top: 1.35rem;
    border-top: 1px solid #d8d8d8;
}

.aswl-related-whisky-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.aswl-related-whisky-card h4 {
    margin-top: 0;
}

.aswl-public-card,
.aswl-distillery-card,
.aswl-public-note-card,
.aswl-related-whisky-card {
    height: 100%;
    box-sizing: border-box;
}

.aswl-public-card .aswl-card-footer,
.aswl-distillery-card .aswl-card-footer,
.aswl-public-note-card .aswl-card-footer,
.aswl-related-whisky-card .aswl-card-footer {
    margin-top: auto;
}

@media (max-width: 760px) {
    .aswl-public-hub-hero {
        grid-template-columns: 1fr;
    }

    .aswl-public-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aswl-public-navigation-link {
        justify-content: center;
        text-align: center;
    }

    .aswl-public-section-heading,
    .aswl-public-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .aswl-public-detail-actions .aswl-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 440px) {
    .aswl-public-navigation {
        grid-template-columns: 1fr;
    }
}

/* 0.21.0: clearer bottle workflow and explicit destructive actions. */
.aswl-workflow-step {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin: 1.25rem 0 0.8rem;
}

.aswl-workflow-step h3,
.aswl-workflow-step p {
    margin: 0;
}

.aswl-workflow-step p {
    margin-top: 0.25rem;
}

.aswl-step-number {
    display: inline-flex;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f3f3f3;
    border: 1px solid #d7d7d7;
    font-weight: 700;
}

.aswl-danger-zone {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #b42318;
    border-radius: 4px;
    background: #fff7f6;
}

.aswl-danger-zone h4 {
    margin-top: 0;
    color: #8a1c13;
}

.aswl-button.aswl-button-danger {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.aswl-button.aswl-button-danger:hover,
.aswl-button.aswl-button-danger:focus {
    border-color: #8a1c13;
    background: #8a1c13;
    color: #fff;
}

/* 0.21.1: shared catalogue archive and safe deletion */
.aswl-status-archived {
    border-color: #777;
    background: #f1f1f1;
    color: #555;
}

.aswl-maintenance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.aswl-maintenance-card {
    padding: 1rem;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    background: #fff;
}

.aswl-maintenance-card h4 {
    margin-top: 0;
}

.aswl-dependency-list {
    margin: 0.75rem 0 1rem 1.25rem;
}

.aswl-catalogue-management .aswl-danger-zone {
    margin-top: 0;
}

@media (max-width: 760px) {
    .aswl-maintenance-grid {
        grid-template-columns: 1fr;
    }
}
