/* Brand text on light surfaces */
:root { --wl-orange-text: #B5521F; }

/* Apple fluid-interface visuals for wine list, cards, filters, detail.
   Complements .cursor/skills/apple-design — materials, type, press, grouping. */

.wl-toolbar-title {
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.wl-filter-launch,
.wl-dd-btn,
.wl-more-btn {
    min-height: 2.75rem;
    border-radius: 0.7rem;
    border-color: rgba(26, 26, 26, 0.1);
    background: #fff;
    transition: transform 100ms ease-out, background 100ms ease-out, border-color 100ms ease-out;
}
.wl-filter-launch:active,
.wl-dd-btn:active,
.wl-more-btn:active,
.wl-more-preset:active,
.wl-view-btn:active {
    transform: scale(0.97);
}

.wl-filter-launch {
    padding: 0.35rem 0.85rem;
    font-weight: 700;
}
.wl-filter-launch.is-active {
    background: #FFF4EC;
    border-color: transparent;
    color: var(--wl-orange-text);
}

.wl-view-toggle {
    border: 0;
    border-radius: 0.65rem;
    background: rgba(118, 118, 128, 0.12);
    padding: 0.15rem;
    overflow: visible;
}
.wl-view-btn {
    width: 2.5rem;
    min-height: 2.15rem;
    border-radius: 0.5rem;
    color: var(--wl-muted);
    transition: transform 100ms ease-out, background 100ms ease-out, color 100ms ease-out, box-shadow 100ms ease-out;
}
.wl-view-btn + .wl-view-btn {
    border-left: 0;
}
.wl-view-btn:hover {
    background: transparent;
    color: var(--wl-text);
}
.wl-view-btn.is-active,
html.wl-view-list .wl-view-btn[data-view="list"],
html:not(.wl-view-list) .wl-view-btn[data-view="grid"] {
    background: #fff;
    color: var(--wl-orange-text);
    box-shadow: 0 1px 3px rgba(26, 26, 26, 0.12), 0 0 0 0.5px rgba(26, 26, 26, 0.04);
}
.wl-view-btn.is-active:hover,
html.wl-view-list .wl-view-btn[data-view="list"]:hover,
html:not(.wl-view-list) .wl-view-btn[data-view="grid"]:hover {
    background: #fff;
    color: var(--wl-orange-text);
}

.wl-chip {
    border-radius: 999px;
    background: #F4F3F0;
    box-shadow: none;
    padding: 0.28rem 0.7rem;
}

.wl-dd-panel,
.wl-more-panel {
    border-radius: 0.85rem;
    border-color: rgba(26, 26, 26, 0.08);
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.14);
}

.wl-dd-option {
    min-height: 2.5rem;
    border-radius: 0.55rem;
    padding: 0.45rem 0.5rem;
}
.wl-dd-option:active {
    background: #EFEDE8;
}

.wl-more-preset {
    border-radius: 999px;
    min-height: 2rem;
    padding: 0.28rem 0.7rem;
}

.wl-btn-primary,
.wl-btn-secondary {
    min-height: 2.75rem;
    border-radius: 0.7rem;
    font-weight: 700;
    transition: transform 100ms ease-out, background 100ms ease-out;
}
.wl-btn-primary {
    background: var(--wl-orange, #ED702D);
    color: #fff;
}
.wl-btn-secondary {
    background: #F4F3F0;
    color: var(--wl-text, #1A1A1A);
}
input.wl-btn-primary,
button.wl-btn-primary,
a.wl-btn-primary,
input.wl-btn-secondary,
button.wl-btn-secondary,
a.wl-btn-secondary,
label.wl-btn-secondary {
    -moz-appearance: none;
         appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
}
.wl-btn-primary:active,
.wl-btn-secondary:active {
    transform: scale(0.97);
}

/* —— Cards —— */
.wl-card {
    border: 0;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
    padding: 0.9rem 1rem 0.85rem;
    overflow: hidden;
    isolation: isolate;
    transition: box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1), transform 100ms ease-out;
}
.wl-card:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(26, 26, 26, 0.04), 0 14px 36px rgba(26, 26, 26, 0.08);
}
.wl-card.wine-card-urgency-overdue,
.wl-card.wine-card-urgency-soon {
    border: 0;
}
.wl-card.wine-card-urgency-overdue {
    background: #FFF8F3;
    box-shadow:
        inset 0 0 0 2px var(--wl-orange),
        0 1px 2px rgba(26, 26, 26, 0.04),
        0 10px 28px rgba(255, 102, 0, 0.12);
}
.wl-card.wine-card-urgency-soon {
    box-shadow:
        inset 0 0 0 1.5px #C48A6A,
        0 1px 2px rgba(26, 26, 26, 0.04),
        0 10px 28px rgba(26, 26, 26, 0.05);
}
.wl-card.wine-card-urgency-overdue:hover {
    transform: none;
    box-shadow:
        inset 0 0 0 2px var(--wl-orange),
        0 2px 4px rgba(26, 26, 26, 0.04),
        0 14px 36px rgba(255, 102, 0, 0.14);
}
.wl-card.wine-card-urgency-soon:hover {
    transform: none;
    box-shadow:
        inset 0 0 0 1.5px #C48A6A,
        0 2px 4px rgba(26, 26, 26, 0.04),
        0 14px 36px rgba(26, 26, 26, 0.08);
}
.wl-card-body {
    -webkit-tap-highlight-color: transparent;
    border-radius: 0.4rem;
}
.wl-card-body:active {
    opacity: 0.86;
}

.wl-card-winery,
.wl-card-head .wl-card-winery {
    letter-spacing: 0.04em;
    font-weight: 650;
}
.wl-card-title,
.wl-card-head .wl-card-title {
    letter-spacing: -0.022em;
    line-height: 1.18;
    font-weight: 750;
}

.wl-badge {
    border-radius: 999px;
    letter-spacing: -0.01em;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border: 0;
    text-transform: none;
}
.wl-badge-overdue {
    background: #FFF1E8;
    color: var(--wl-orange-text);
}
.wl-badge-soon {
    background: #F6EEE9;
    color: #8A5A4A;
}
.wl-badge-review {
    background: #EEEAE4;
    color: #5C5348;
}
.wl-badge-draft {
    background: #FFF4EC;
    color: var(--wl-orange-text);
}

.wl-drink-summary {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--wl-muted, #6B6B6B);
}
.wl-drink-summary.is-overdue {
    color: var(--wl-orange-text);
}
.wl-drink-summary.is-soon {
    color: #8A5A4A;
}
.wl-drink-summary.is-none {
    color: var(--wl-muted, #6B6B6B);
}
.wl-row .wl-drink-summary {
    display: block;
    margin-top: 0.2rem;
}

.wl-review-queue {
    margin: 0 0 1.35rem;
    padding: 1rem 1.05rem 0.85rem;
    border-radius: 1.15rem;
    background: rgba(247, 246, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.wl-review-queue-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.wl-review-queue-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.022em;
    color: var(--wl-text);
}
.wl-review-queue-hint {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 550;
    color: var(--wl-muted);
}
.wl-review-count {
    flex-shrink: 0;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #1A1A1A;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wl-review-queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.wl-review-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.9rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 100ms ease-out, background 100ms ease-out;
}
.wl-review-item:active {
    transform: scale(0.985);
    background: #F7F6F3;
}
.wl-review-item-thumb {
    flex-shrink: 0;
    width: 2.1rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wl-review-item-bottle {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}
.wl-review-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 0.08rem;
}
.wl-review-item-winery {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wl-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wl-review-item-name {
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: -0.018em;
    color: var(--wl-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wl-review-item-action {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--wl-orange-text, #B5521F);
}

.wl-card-bottles {
    border: 0;
    border-radius: 0.7rem;
    background: #F4F3F0;
    min-width: 2.7rem;
    padding: 0.28rem 0.4rem;
}
.wl-card-bottles-label {
    letter-spacing: -0.01em;
    text-transform: none;
    font-size: 0.625rem;
    font-weight: 650;
}
.wl-card-bottles-value {
    letter-spacing: -0.02em;
}

.wl-card-edit {
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: #F4F3F0;
    transition: transform 100ms ease-out, background 100ms ease-out, color 100ms ease-out;
}
.wl-card-edit:hover {
    background: var(--wl-orange);
    color: #fff;
}
.wl-card-edit:active {
    transform: scale(0.94);
}

.wl-card-chips .inline-flex,
.wl-card-chips span.inline-flex,
.wl-card .rounded-none,
.wl-detail .rounded-none {
    border-radius: 999px !important;
}

.wl-card-vintages {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 0;
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-card-vintages .border-t,
.wl-card-vintages .border-\[\#2F2F2F\] {
    border-color: transparent !important;
    padding-top: 0.15rem;
}
.wl-card .text-\[\#EDEDED\],
.wl-card .text-\[\#CFCFCF\],
.wl-card .text-\[\#A0A0A0\] {
    color: var(--wl-text, #1A1A1A) !important;
}
.wl-card .text-\[\#8B8B8B\] {
    color: var(--wl-muted, #6B6B6B) !important;
}
.wl-card .bg-\[\#2A2A2A\],
.wl-card .bg-\[\#242424\] {
    background: #F4F3F0 !important;
    border-color: transparent !important;
    color: var(--wl-text) !important;
}
.wl-card .bg-\[\#3A3A3A\] {
    background: #E8E5DE !important;
}
.wl-card .h-1\.5 {
    border-radius: 99px;
}

/* —— List rows as one grouped surface —— */
.wl-wine-list {
    gap: 0;
    background: #fff;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
}
.wl-row {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 -0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-row:last-child {
    box-shadow: none;
}
.wl-row.is-overdue,
.wl-row.is-soon {
    margin: 0.35rem 0.4rem;
    border-radius: 0.85rem;
    border-left: 0;
}
.wl-row.is-overdue {
    background: #FFF8F3;
    box-shadow: inset 0 0 0 2px var(--wl-orange);
}
.wl-row.is-soon {
    box-shadow: inset 0 0 0 1.5px #C48A6A;
}
.wl-row-link {
    min-height: 4.25rem;
    padding: 0.7rem 0.9rem;
}
.wl-row-link:active {
    background: #EFEDE8;
}
.wl-row-title {
    letter-spacing: -0.018em;
    font-weight: 750;
    line-height: 1.2;
}
.wl-row-winery {
    letter-spacing: 0.04em;
}
.wl-row-edit {
    width: 2.85rem;
    border-left: 0;
    color: var(--wl-muted);
}
.wl-row-edit:hover {
    background: #F4F3F0;
    color: var(--wl-text);
}
.wl-row-edit:active {
    transform: scale(0.94);
}

/* —— Detail —— */
.wl-back-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.wl-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.2rem 0 0.35rem;
    padding: 0.25rem 0;
    min-height: 2.75rem;
    color: var(--wl-orange-text) !important;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 100ms ease-out, opacity 100ms ease-out;
}
.wl-back:active,
.wl-back.is-pressed {
    transform: scale(0.97);
    opacity: 0.72;
}
.wl-share {
    -webkit-tap-highlight-color: transparent;
    transition: transform 100ms ease-out;
}
.wl-share:active,
.wl-share.is-pressed {
    transform: scale(0.94);
}

.wl-page--detail .wl-detail {
    max-width: none;
    margin: 0;
    padding: 0;
}
.wl-detail-panel {
    border: 0;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
    overflow: hidden;
    padding: 1rem 1rem 0.25rem;
}
.wl-detail-title {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
html.wl-is-native-app .wl-detail-title,
html.wl-is-native-app .wl-form-title {
    font-size: 2.125rem;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.wl-detail-label {
    letter-spacing: 0.04em;
    font-weight: 650;
    color: var(--wl-muted);
}
.wl-detail-winery {
    margin-bottom: 0.35rem;
}
.wl-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.75rem;
    gap: 0.7rem 0.9rem;
    align-items: start;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 0;
    box-shadow: inset 0 -0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-detail-media {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-self: start;
}
.wl-detail-media img {
    max-height: 9.25rem;
    width: 100%;
    max-width: 6.75rem;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 1rem;
}
.wl-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.wl-detail-hero,
.wl-detail-section,
.wl-breadcrumb {
    border-color: rgba(26, 26, 26, 0.08);
}
.wl-detail .inline-flex.rounded-none,
.wl-detail .wl-chip {
    border-radius: 999px !important;
}
.wl-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.85rem;
}
.wl-detail-actions .wl-btn-primary,
.wl-detail-actions .wl-btn-secondary {
    min-height: 2.75rem;
    width: 100%;
}

.wl-detail .wl-disclose,
.wl-detail-section.wl-disclose {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-detail .wl-disclose > summary,
.wl-detail-section.wl-disclose > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.85rem 0;
    cursor: pointer;
    list-style: none;
    color: var(--wl-text, #1A1A1A);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
}
.wl-detail .wl-disclose > summary::-webkit-details-marker {
    display: none;
}
.wl-detail .wl-disclose > summary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    flex-shrink: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.wl-detail .wl-disclose[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 0.25rem;
}
.wl-detail .wl-disclose > summary:active,
.wl-detail .wl-disclose > summary.is-pressed {
    opacity: 0.65;
}
.wl-disclose-body {
    padding-bottom: 1rem;
}

.wl-detail-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: 0;
}
.wl-detail-price .wl-currency {
    font-size: 0.9375rem;
    font-weight: 650;
    color: var(--wl-muted);
    letter-spacing: 0.02em;
}
.wl-detail-price .wl-amount {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--wl-text);
    font-variant-numeric: tabular-nums;
}
.wl-detail-attrs-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.wl-vintage-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.wl-vintage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wl-muted);
}
.wl-vintage-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.35rem 0;
}
.wl-vintage-year-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    flex-shrink: 0;
    min-width: 2.75rem;
}
.wl-vintage-year {
    font-size: 0.9375rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--wl-text);
}
.wl-vintage-list > .wl-vintage-row + .wl-vintage-row,
.wl-vintage-more .wl-vintage-list > .wl-vintage-row + .wl-vintage-row {
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.06);
}
.wl-vintage-status {
    font-size: 0.625rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    text-transform: none;
}
.wl-vintage-status.is-overdue { color: var(--wl-orange-text); }
.wl-vintage-status.is-soon { color: #8A5A4A; }
.wl-vintage-bar {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    min-width: 0;
}
.wl-vintage-seg {
    height: 0.35rem;
    border-radius: 99px;
    background: #E8E5DE;
}
.wl-vintage-seg.is-overdue { background: var(--wl-orange); }
.wl-vintage-seg.is-soon { background: #C48A6A; }
.wl-vintage-seg.is-ok { background: #8E98A0; }
.wl-vintage-count {
    flex-shrink: 0;
    min-width: 1.85rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #F4F3F0;
    color: var(--wl-text);
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.wl-vintage-more > summary {
    cursor: pointer;
    padding: 0.45rem 0;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--wl-muted);
    list-style: none;
}
.wl-vintage-more > summary::-webkit-details-marker { display: none; }
.wl-vintage-drunk {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-vintage-drunk-disclose > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--wl-muted);
    min-height: 2.5rem;
    -webkit-tap-highlight-color: transparent;
}
.wl-vintage-drunk-disclose > summary::-webkit-details-marker { display: none; }
.wl-vintage-drunk-disclose > summary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    flex-shrink: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.wl-vintage-drunk-disclose[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 0.25rem;
}
.wl-vintage-drunk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    background: #F4F3F0;
    font-size: 0.875rem;
}
.wl-vintage-drunk-meta {
    font-size: 0.75rem;
    color: var(--wl-muted);
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
}

.wl-detail-kicker {
    display: block;
    width: 100%;
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    color: var(--wl-muted);
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 650;
}
.wl-detail-nav-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
}
.wl-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.wl-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}
.wl-detail-rating-value {
    font-size: 0.875rem;
    color: var(--wl-muted);
    margin-left: 0.15rem;
}
.wl-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem 1rem;
    width: 100%;
    margin-top: 0.4rem;
}
.wl-detail-chips,
.wl-detail-chips.wl-card-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.65rem;
}
.wl-detail-chips .wl-card-attr {
    width: auto;
    max-width: 100%;
}
.wl-detail-chips .wl-card-attr > div {
    padding-top: 0 !important;
    margin: 0 !important;
}
.wl-detail-chips .text-xs.font-semibold.wl-muted {
    display: none;
}
.wl-detail-photo {
    width: 100%;
    max-width: 6.75rem;
    max-height: 8.75rem;
    -o-object-fit: contain;
       object-fit: contain;
}
.wl-detail-panel.wine-card-urgency-overdue {
    box-shadow:
        inset 0 0 0 2px var(--wl-orange),
        0 1px 2px rgba(26, 26, 26, 0.04),
        0 10px 28px rgba(255, 102, 0, 0.1);
}
.wl-detail-panel.wine-card-urgency-soon {
    box-shadow:
        inset 0 0 0 1.5px #C48A6A,
        0 1px 2px rgba(26, 26, 26, 0.04),
        0 10px 28px rgba(26, 26, 26, 0.05);
}

.wl-comments .wl-comment {
    padding: 0.75rem 0;
    box-shadow: inset 0 -0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-comments .wl-comment:last-child {
    box-shadow: none;
}
.wl-comments .wl-comment p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--wl-text);
}
.wl-comment-meta {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--wl-muted);
}
.wl-comment-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}
.wl-comment-actions button {
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
    border: 0;
    border-radius: 0.5rem;
    background: #F4F3F0;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--wl-text);
    transition: transform 100ms ease-out, opacity 100ms ease-out;
}
.wl-comment-actions button.is-danger {
    color: #B42318;
}
.wl-comment-actions button:active {
    transform: scale(0.96);
    opacity: 0.7;
}

.wl-log .wl-timeline-line {
    background: rgba(26, 26, 26, 0.1) !important;
}
.wl-timeline-icon-stored {
    background: #E8F0EA;
    color: #2F6B45;
}
.wl-timeline-icon-drunk {
    background: #F6EEE9;
    color: #8A5A4A;
}
.wl-timeline-icon-printed {
    background: #EEF0F4;
    color: #4A5568;
}
.wl-timeline-icon-default {
    background: #F4F3F0;
    color: var(--wl-muted);
}
.wl-detail-body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--wl-text);
    white-space: pre-line;
}

html.wl-is-native-app.wl-route-detail .wl-content {
    padding-top: 0.35rem;
}
html.wl-is-native-app.wl-route-detail .wl-page--detail {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}
html.wl-is-native-app.wl-route-detail .wl-detail-nav {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: 0 -0.85rem;
    padding: 0.15rem 0.85rem 0.35rem;
    background: rgba(244, 243, 240, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    box-shadow: inset 0 -0.5px 0 rgba(26, 26, 26, 0.06);
}
html.wl-is-native-app.wl-route-detail .wl-back-row {
    margin: 0;
    align-items: center;
}
html.wl-is-native-app.wl-route-detail .wl-detail-nav-meta .wl-card-bottles {
    min-width: 2.5rem;
}
html.wl-is-native-app.wl-route-detail .wl-detail-edit {
    flex-shrink: 0;
}
html.wl-is-native-app.wl-route-detail .wl-back {
    margin: 0;
}
html.wl-is-native-app.wl-route-detail .wl-detail-panel {
    margin-top: 0.35rem;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
    overflow: hidden;
}
html.wl-is-native-app.wl-route-detail .wl-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.75rem;
    grid-template-rows: auto auto;
    gap: 0.65rem 0.85rem;
    align-items: start;
    padding: 1rem 1rem 1.1rem;
    margin-bottom: 0;
    box-shadow: none;
}
html.wl-is-native-app.wl-route-detail .wl-detail-media {
    order: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    justify-content: flex-end;
    align-self: start;
}
html.wl-is-native-app.wl-route-detail .wl-detail-media img {
    max-height: 8.75rem;
    width: 100%;
    max-width: 6.75rem;
    -o-object-fit: contain;
       object-fit: contain;
}
html.wl-is-native-app.wl-route-detail .wl-detail-hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
}
html.wl-is-native-app.wl-route-detail .wl-detail-title {
    font-size: 1.65rem;
}
html.wl-is-native-app.wl-route-detail .wl-detail-price .wl-amount {
    font-size: 1.35rem;
}
html.wl-is-native-app.wl-route-detail .wl-detail-chips {
    margin-top: 0.55rem;
}
html.wl-is-native-app.wl-route-detail .wl-detail-actions {
    margin-top: 0.75rem;
}
html.wl-is-native-app.wl-route-detail .wl-detail-actions .wl-btn-primary {
    width: 100%;
}
html.wl-is-native-app.wl-route-detail .wl-detail .wl-disclose,
html.wl-is-native-app.wl-route-detail .wl-detail-section.wl-disclose {
    margin: 0;
    padding: 0 1rem;
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.08);
}
html.wl-is-native-app.wl-route-detail .wl-detail .wl-disclose > summary,
html.wl-is-native-app.wl-route-detail .wl-detail-section.wl-disclose > summary {
    min-height: 3rem;
    padding: 0.9rem 0;
}
html.wl-is-native-app.wl-route-detail .wl-disclose-body {
    padding-bottom: 1.1rem;
}

.wl-detail .text-\[\#EDEDED\],
.wl-detail .text-\[\#CFCFCF\] {
    color: var(--wl-text, #1A1A1A) !important;
}
.wl-detail .text-\[\#A0A0A0\],
.wl-detail .text-\[\#8B8B8B\] {
    color: var(--wl-muted, #6B6B6B) !important;
}
.wl-detail .bg-\[\#2A2A2A\],
.wl-detail .bg-\[\#242424\] {
    background: #F4F3F0 !important;
    border-color: transparent !important;
    color: var(--wl-text, #1A1A1A) !important;
}
.wl-detail .bg-\[\#3A3A3A\] {
    background: #E8E5DE !important;
}
.wl-detail .border-\[\#2F2F2F\],
.wl-detail .border-\[\#3A3A3A\] {
    border-color: transparent !important;
}
.wl-detail .h-1\.5 {
    border-radius: 99px;
}
.wl-detail details.group > summary {
    min-height: 2.75rem;
    padding: 0.65rem 0;
    color: var(--wl-text, #1A1A1A) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    text-transform: none !important;
    -webkit-tap-highlight-color: transparent;
}
.wl-detail details.group > summary:active {
    opacity: 0.65;
}

.wl-drink-sticky-inner {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0.55rem 0.65rem 0.6rem;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.15rem;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.12);
}
.wl-drink-sticky-btn,
.wl-drink-sticky button {
    width: 100%;
    min-height: 3.05rem;
    border-radius: 0.85rem;
    font-weight: 750;
    font-size: 1.0625rem;
    letter-spacing: -0.015em;
    transition: transform 100ms ease-out;
}
.wl-drink-sticky button:active {
    transform: scale(0.97);
}
.wl-drink-sticky button:disabled {
    opacity: 0.72;
}

/* —— Add / Edit form —— */
.wl-form-title {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--wl-text, #1A1A1A);
}
.wl-form-kicker {
    margin: 0 0 1.1rem;
    color: var(--wl-muted);
    font-size: 0.9375rem;
}
.wl-form-card {
    background: #fff;
    border: 0;
    border-radius: 1.15rem;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
    overflow: visible;
}
.wl-form-photo {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.wl-form-photo-img {
    width: auto;
    max-width: 7.5rem;
    max-height: 11rem;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 0.7rem;
    background: #F7F6F3;
}
.wl-form-photo-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.wl-form-discard {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.85rem;
}
.wl-form-transfer {
    margin-top: 1.5rem;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 1.1rem;
    background: #FFF8F3;
    box-shadow: inset 0 0 0 1.5px rgba(181, 82, 31, 0.35);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.wl-form-transfer-kicker {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wl-orange-text, #B5521F);
}
.wl-form-transfer-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--wl-text, #1A1A1A);
}
.wl-form-transfer-copy {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--wl-muted, #6B6B6B);
}
.wl-form-transfer-warn {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.7rem;
    background: #FFF1E8;
    color: #9A3412;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.4;
}
.wl-form-transfer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}
.wl-form-transfer-row .wl-input {
    flex: 1;
    min-width: 12rem;
    margin: 0;
}
.wl-form-foot {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.08), 0 -8px 24px rgba(26, 26, 26, 0.06);
}

/* Dezimal-Stepper: Plus/Minus statt native Spinner */
.wl-stepper {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
}
.wl-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border: 0;
    border-radius: 0.7rem;
    background: #F4F3F0;
    color: var(--wl-text, #1A1A1A);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease-out, background 0.1s ease-out;
}
.wl-stepper-btn:active {
    transform: scale(0.94);
    background: #E8E5DE;
}
.wl-stepper-input {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 0.7rem;
    background: #F4F3F0;
    color: var(--wl-text, #1A1A1A);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    text-align: center;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
            appearance: textfield;
}
.wl-stepper-input::-webkit-outer-spin-button,
.wl-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wl-stepper-input:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--wl-orange, #ED702D);
}

@media (min-width: 640px) {
    .wl-detail-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }
}
@media (min-width: 768px) {
    .wl-detail-panel {
        padding: 1.35rem 1.35rem 0.45rem;
    }
    .wl-detail-top {
        grid-template-columns: minmax(0, 1fr) 11rem;
        gap: 1.25rem 1.75rem;
        padding-bottom: 1.25rem;
    }
    .wl-detail-media img,
    .wl-detail-photo {
        max-width: 11rem;
        max-height: 15rem;
    }
    .wl-detail-title {
        font-size: 2rem;
    }
    .wl-detail-actions .wl-btn-primary,
    .wl-detail-actions .wl-btn-secondary {
        width: auto;
        min-width: 11.5rem;
    }
}
@media (min-width: 1024px) {
    .wl-detail-panel {
        padding: 1.6rem 1.6rem 0.55rem;
    }
    .wl-detail-top {
        grid-template-columns: minmax(0, 1fr) 13.5rem;
        gap: 1.5rem 2.25rem;
    }
    .wl-detail-media img,
    .wl-detail-photo {
        max-width: 13.5rem;
        max-height: 18rem;
    }
    .wl-detail-title {
        font-size: 2.125rem;
    }
}

@media (max-width: 639px) {
    .wl-detail-panel {
        background: #fff;
        box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
        padding: 1rem 1rem 0.25rem;
    }
}

@media (hover: none) {
    .wl-card:hover {
        box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
    }
    .wl-card.wine-card-urgency-overdue:hover {
        box-shadow:
            inset 0 0 0 2px var(--wl-orange),
            0 1px 2px rgba(26, 26, 26, 0.04),
            0 10px 28px rgba(255, 102, 0, 0.12);
    }
    .wl-card.wine-card-urgency-soon:hover {
        box-shadow:
            inset 0 0 0 1.5px #C48A6A,
            0 1px 2px rgba(26, 26, 26, 0.04),
            0 10px 28px rgba(26, 26, 26, 0.05);
    }
}

.wl-search-input,
#wl-search.wl-search-input {
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(118, 118, 128, 0.12);
    box-shadow: none;
    padding-left: 2.45rem;
    padding-right: 0.95rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: background 120ms ease-out;
}
.wl-search-input:focus,
#wl-search.wl-search-input:focus {
    border-color: transparent;
    box-shadow: none;
    background: rgba(118, 118, 128, 0.18);
}
.wl-search-icon {
    left: 0.85rem;
    color: rgba(60, 60, 67, 0.55);
}
.wl-search-wrap.has-value .wl-search-input {
    padding-right: 2.35rem;
}
.wl-search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    z-index: 2;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(118, 118, 128, 0.36);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 100ms ease-out, background 100ms ease-out;
}
.wl-search-clear[hidden] {
    display: none !important;
}
.wl-search-clear:active {
    transform: translateY(-50%) scale(0.92);
}

.wl-search-dropdown {
    display: block;
    top: calc(100% + 0.45rem);
    padding: 0.3rem 0;
    border: 0;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 32px rgba(26, 26, 26, 0.12), 0 0 0 0.5px rgba(26, 26, 26, 0.06);
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: 50% 0;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.2s;
}
.wl-search-dropdown.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.wl-search-dropdown[hidden] {
    display: none !important;
}

.wl-search-item {
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    border-bottom: 0;
    box-shadow: inset 0 -0.5px 0 rgba(26, 26, 26, 0.08);
    transition: background 100ms ease-out;
}
.wl-search-item:has(+ .wl-search-footer) {
    box-shadow: none;
}
.wl-search-item:hover,
.wl-search-item.is-active {
    background: rgba(118, 118, 128, 0.08);
}
.wl-search-item.is-active {
    box-shadow: inset 3px 0 0 var(--wl-orange), inset 0 -0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-search-item:active {
    background: rgba(118, 118, 128, 0.14);
}

.wl-search-thumb {
    border: 0;
    border-radius: 0.5rem;
    background: #F4F3F0;
    box-shadow: inset 0 0 0 0.5px rgba(26, 26, 26, 0.06);
}
.wl-search-winery {
    letter-spacing: 0.02em;
    font-weight: 600;
}
.wl-search-name {
    letter-spacing: -0.015em;
}
.wl-search-status {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--wl-orange-text, #B5521F);
    background: #FFF4EC;
}
.wl-search-stock {
    padding: 0.18rem 0.5rem;
    font-size: 0.65rem;
}
.wl-search-mark {
    background: rgba(255, 102, 0, 0.16);
    border-radius: 0.2rem;
}
.wl-search-empty {
    padding: 1.25rem 1rem 0.75rem;
    letter-spacing: -0.01em;
}
.wl-search-footer {
    border-top: 0;
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.08);
    background: transparent;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 100ms ease-out;
}
.wl-search-footer:hover,
.wl-search-footer:active {
    background: rgba(118, 118, 128, 0.08);
}

.wl-card.is-pressed {
    transform: scale(0.985);
}
.wl-row.is-pressed .wl-row-link {
    background: #EFEDE8;
}
.wl-filter-launch.is-pressed,
.wl-view-btn.is-pressed,
.wl-btn-primary.is-pressed,
.wl-btn-secondary.is-pressed,
.wl-mehr-list a.is-pressed,
.wl-dock-tab.is-pressed,
.wl-search-clear.is-pressed {
    transform: scale(0.97);
}
.wl-search-clear.is-pressed {
    transform: translateY(-50%) scale(0.92);
}

/* —— Login / guest auth —— */
body.wl-guest {
    min-height: 100dvh;
    background: #F4F3F0;
    color: var(--wl-text, #1A1A1A);
}
.wl-auth {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.75rem 1.15rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
    background: #F4F3F0;
}
.wl-auth-brand {
    margin-bottom: 1rem;
}
.wl-auth-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem !important;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent;
    transition: transform 100ms ease-out, opacity 100ms ease-out;
}
.wl-auth-logo:active {
    transform: scale(0.94);
    opacity: 0.75;
}
.wl-auth-logo .wl-logo__mark {
    width: 1em;
    height: 1em;
    filter: drop-shadow(0 1px 2px rgba(26, 26, 26, 0.08));
}
.wl-auth-logo .wl-app-icon,
.wl-app-icon {
    display: block;
    width: 5rem;
    height: 5rem;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 22.5%;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08), 0 10px 28px rgba(26, 26, 26, 0.08);
}
.wl-auth-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border: 0;
    border-radius: 1.15rem;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
    padding: 1.5rem 1.35rem 1.35rem;
}
.wl-auth-title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--wl-text, #1A1A1A);
}
html.wl-is-native-app .wl-auth-title {
    font-size: 2.125rem;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.wl-auth-kicker {
    margin: 0 0 1.25rem;
    color: var(--wl-muted, #6B6B6B);
    font-size: 0.9375rem;
    line-height: 1.4;
}
.wl-auth-oidc,
.wl-auth-submit {
    width: 100%;
    min-height: 2.75rem;
}
.wl-auth-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0 1.05rem;
    color: var(--wl-muted, #6B6B6B);
    font-size: 0.8125rem;
    font-weight: 600;
}
.wl-auth-or::before,
.wl-auth-or::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: rgba(26, 26, 26, 0.1);
}
.wl-auth label:not(.wl-auth-remember) {
    color: var(--wl-muted, #6B6B6B);
    font-size: 0.8125rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}
.wl-auth input[type="email"],
.wl-auth input[type="password"],
.wl-auth input[type="text"] {
    min-height: 2.75rem;
    width: 100%;
    padding: 0 0.85rem;
    background: #F4F3F0 !important;
    border: 0 !important;
    border-radius: 0.7rem !important;
    box-shadow: none !important;
    color: var(--wl-text, #1A1A1A);
    font-size: 16px;
    letter-spacing: -0.01em;
}
.wl-auth input[type="email"]:focus,
.wl-auth input[type="password"]:focus,
.wl-auth input[type="text"]:focus {
    outline: none;
    background: #EBE9E4 !important;
    box-shadow: none !important;
}
html.wl-is-native-app .wl-auth input[type="email"]:focus,
html.wl-is-native-app .wl-auth input[type="password"]:focus,
html.wl-is-native-app .wl-auth input[type="text"]:focus {
    scroll-margin-bottom: calc(1.25rem + var(--wl-keyboard, 0px));
}
html.wl-is-native-app.wl-keyboard-open .wl-auth {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 0.85rem;
    padding-bottom: calc(0.85rem + var(--wl-keyboard, 0px));
}
.wl-auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 2.75rem;
    margin: 0.45rem 0 0.95rem;
    color: var(--wl-text, #1A1A1A);
    font-size: 0.9375rem;
    -webkit-tap-highlight-color: transparent;
}
.wl-auth-remember input[type="checkbox"] {
    -moz-appearance: none;
         appearance: none;
    -webkit-appearance: none;
    width: 51px;
    height: 31px;
    margin: 0;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    background: #E5E5EA;
    position: relative;
    cursor: pointer;
    transition: background 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.wl-auth-remember input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.wl-auth-remember input[type="checkbox"]:checked {
    background: var(--wl-orange, #ED702D);
}
.wl-auth-remember input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}
.wl-auth-remember input[type="checkbox"]:active::after {
    width: 30px;
}
.wl-auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 1rem;
}
.wl-auth-link {
    color: var(--wl-orange-text, #B5521F);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 100ms ease-out;
}
.wl-auth-link:active {
    opacity: 0.65;
}
.wl-auth .text-red-600 {
    color: var(--wl-orange-text) !important;
}
.wl-auth .text-green-600 {
    color: var(--wl-text, #1A1A1A) !important;
}

html.wl-is-native-app .wl-toolbar-title {
    font-size: 2.125rem;
    letter-spacing: -0.035em;
    line-height: 1.05;
    font-weight: 800;
}
html.wl-is-native-app .wl-card {
    border: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
}
html.wl-is-native-app .wl-card.is-pressed {
    transform: translateZ(0) scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
    .wl-auth-remember input[type="checkbox"],
    .wl-auth-remember input[type="checkbox"]::after {
        transition: none;
    }
    .wl-back:active,
    .wl-back.is-pressed,
    .wl-share:active,
    .wl-share.is-pressed,
    .wl-drink-sticky button:active,
    .wl-filter-launch:active,
    .wl-dd-btn:active,
    .wl-more-btn:active,
    .wl-view-btn:active,
    .wl-btn-primary:active,
    .wl-btn-secondary:active,
    .wl-auth-logo:active,
    .wl-auth button[type="submit"]:active,
    .wl-card-edit:active,
    .wl-row-edit:active,
    .wl-card.is-pressed,
    .wl-filter-launch.is-pressed,
    .wl-view-btn.is-pressed,
    .wl-btn-primary.is-pressed,
    .wl-btn-secondary.is-pressed,
    .wl-auth-submit.is-pressed,
    .wl-mehr-list a.is-pressed,
    .wl-dock-tab.is-pressed,
    .wl-search-clear:active,
    .wl-search-clear.is-pressed {
        transform: none;
    }
    .wl-search-clear:active,
    .wl-search-clear.is-pressed {
        transform: translateY(-50%);
    }
    .wl-search-dropdown {
        transform: none;
        transition: opacity 0.15s ease;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .wl-view-toggle {
        background: #E8E5DE;
    }
    .wl-sheet-foot,
    .wl-search-dropdown,
    .wl-form-foot,
    .wl-drink-sticky #sticky-drink-cta {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    .wl-card,
    .wl-wine-list,
    .wl-detail-panel,
    .wl-form-card,
    .wl-auth-card {
        box-shadow: none;
        outline: 1px solid #1A1A1A;
    }
    .wl-card.wine-card-urgency-overdue,
    .wl-row.is-overdue {
        outline-color: var(--wl-orange-text);
        box-shadow: none;
    }
    .wl-card.wine-card-urgency-soon,
    .wl-row.is-soon {
        outline-color: #C48A6A;
        box-shadow: none;
    }
    .wl-filter-launch,
    .wl-dd-btn,
    .wl-more-btn {
        border-color: #1A1A1A;
    }
}

/* —— Print / store bottles sheet —— */
body.wl-print-open {
    overflow: hidden;
}
body.wl-print-open .wl-mobile-dock {
    opacity: 0;
    pointer-events: none;
}
.wl-print-sheet {
    pointer-events: none;
    z-index: 80;
    overflow: hidden;
}
.wl-print-sheet.is-open {
    visibility: visible !important;
    pointer-events: auto;
}
.wl-print-scrim {
    background: rgba(26, 26, 26, 0.4);
    opacity: 0;
    transition: opacity 220ms ease;
}
.wl-print-sheet.is-open .wl-print-scrim {
    opacity: 1;
}
.wl-print-frame {
    display: flex;
    min-height: 100%;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.wl-print-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    max-height: min(92dvh, 100%);
    margin: 0;
    overflow: hidden;
    background: #fff;
    color: var(--wl-text, #1A1A1A);
    text-align: left;
    border-radius: 1.15rem 1.15rem 0 0;
    box-shadow: 0 -8px 40px rgba(26, 26, 26, 0.18);
    opacity: 0;
    transform: translateY(18px);
    transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1), opacity 200ms ease;
}
.wl-print-sheet.is-open .wl-print-card {
    opacity: 1;
    transform: none;
}
.wl-print-grabber {
    display: block;
    width: 2.25rem;
    height: 0.28rem;
    margin: 0.45rem auto 0.05rem;
    border-radius: 99px;
    background: #D8D4CC;
    flex-shrink: 0;
}
.wl-print-head {
    flex-shrink: 0;
    padding: 0.2rem 1.15rem 0.55rem;
}
.wl-print-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--wl-text, #1A1A1A);
}
.wl-print-sub {
    display: none;
}
.wl-print-close {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #F4F3F0;
    color: var(--wl-text, #1A1A1A);
    cursor: pointer;
    transition: transform 100ms ease-out, background 100ms ease-out;
}
.wl-print-close:active {
    transform: scale(0.94);
    background: #E8E5DE;
}
@media (max-width: 1023px) {
    .wl-print-head .flex {
        align-items: center;
    }
}
.wl-print-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.wl-print-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.15rem 0.45rem;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.wl-print-sheet .text-\[\#EDEDED\],
.wl-print-sheet .text-\[\#F2F2F2\],
.wl-print-sheet .text-\[\#CFCFCF\] {
    color: var(--wl-text, #1A1A1A) !important;
}
.wl-print-sheet .text-\[\#A0A0A0\],
.wl-print-sheet .text-\[\#8B8B8B\],
.wl-print-sheet .text-\[\#D8B4AA\] {
    color: var(--wl-muted, #6B6B6B) !important;
}
.wl-print-sheet .border-\[\#2F2F2F\],
.wl-print-sheet .border-\[\#3A3A3A\] {
    border-color: rgba(26, 26, 26, 0.08) !important;
}
.wl-print-sheet .bg-\[\#242424\],
.wl-print-sheet .bg-\[\#2A2A2A\] {
    background: #F4F3F0 !important;
    color: var(--wl-text, #1A1A1A) !important;
}
.wl-print-sheet .pb-5 {
    padding-bottom: 0.75rem !important;
}
.wl-print-sheet .pt-5 {
    padding-top: 0.8rem !important;
}
.wl-print-sheet .mb-3,
.wl-print-sheet .mb-4 {
    margin-bottom: 0.55rem !important;
}
.wl-print-sheet .mb-4 > p.text-xs,
.wl-print-sheet .mt-4 > p.text-xs {
    display: none;
}
.wl-print-sheet label.block.text-xs {
    font-size: 0.8125rem !important;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 0.45rem !important;
    font-weight: 700;
}
.wl-print-sheet #optimizedArticleName {
    font-size: 1.25rem !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.wl-print-sheet .year-quick-select-btn,
.wl-print-sheet .quick-select-btn,
.wl-print-sheet [data-action="decrement-optimized"],
.wl-print-sheet [data-action="increment-optimized"] {
    background: #F4F3F0 !important;
    border: 0 !important;
    border-radius: 0.85rem !important;
    color: var(--wl-text, #1A1A1A) !important;
    box-shadow: none !important;
    min-height: 3.25rem;
    padding: 0.5rem 0.35rem !important;
    transition: transform 100ms ease-out, background 100ms ease-out, box-shadow 140ms ease-out;
}
.wl-print-sheet .year-quick-select-btn:active,
.wl-print-sheet .quick-select-btn:active,
.wl-print-sheet [data-action="decrement-optimized"]:active,
.wl-print-sheet [data-action="increment-optimized"]:active {
    transform: scale(0.97);
}
.wl-print-sheet .year-quick-select-btn.is-selected,
.wl-print-sheet .quick-select-btn.is-selected {
    background: #FFF4EC !important;
    color: var(--wl-orange-text, #B5521F) !important;
    box-shadow: inset 0 0 0 1.5px var(--wl-orange, #ED702D) !important;
}
.wl-print-sheet .year-quick-select-btn .text-base {
    font-size: 1.1875rem !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.wl-print-sheet .quick-select-btn .text-lg {
    font-size: 1.5rem !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.wl-print-sheet .year-quick-select-btn .text-xs,
.wl-print-sheet .quick-select-btn .text-xs {
    color: var(--wl-muted, #6B6B6B) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.01em;
}
.wl-print-sheet .year-quick-select-btn.is-selected .text-xs,
.wl-print-sheet .quick-select-btn.is-selected .text-xs {
    color: var(--wl-orange-text, #B5521F) !important;
}
.wl-print-sheet select:not(.hidden),
.wl-print-sheet input[type="number"],
.wl-print-sheet input[type="text"] {
    background: #F4F3F0 !important;
    color: var(--wl-text, #1A1A1A) !important;
    border: 0 !important;
    border-radius: 0.85rem !important;
    min-height: 3.05rem;
    font-size: 17px !important;
    box-shadow: none !important;
}
.wl-print-sheet #showMoreYearOptions,
.wl-print-sheet #showManualAmount {
    color: var(--wl-orange-text, #B5521F) !important;
    background: none;
    border: 0;
    min-height: 2.75rem;
    font-size: 1rem !important;
}
.wl-print-error {
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: #FFF4EC;
    color: #9A3412;
}
.wl-print-error #optimizedErrorMessage,
.wl-print-error .text-\[\#F2C6B6\],
.wl-print-error .text-\[\#D8B4AA\] {
    color: #9A3412 !important;
}
.wl-print-foot {
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.85rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 0.5px solid rgba(26, 26, 26, 0.08);
    background: #fff;
}
.wl-print-btn-ghost,
.wl-print-btn-primary {
    min-height: 3.05rem;
    border: 0;
    border-radius: 0.85rem;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 100ms ease-out, background 100ms ease-out, opacity 100ms ease-out;
}
.wl-print-btn-ghost {
    background: #F4F3F0;
    color: var(--wl-text, #1A1A1A);
}
.wl-print-btn-primary {
    background: #E8E5DE;
    color: #8A8A8A;
    cursor: not-allowed;
}
.wl-print-btn-primary.is-ready {
    background: var(--wl-orange, #ED702D);
    color: #fff;
    cursor: pointer;
}
.wl-print-btn-ghost:active,
.wl-print-btn-primary.is-ready:active {
    transform: scale(0.97);
}
.wl-print-sheet #optimizedComment + p {
    font-size: 0.875rem !important;
    line-height: 1.4;
    margin-top: 0.45rem !important;
}
.wl-print-sheet [data-action="decrement-optimized"],
.wl-print-sheet [data-action="increment-optimized"] {
    width: 3.05rem !important;
    height: 3.05rem !important;
    min-height: 3.05rem;
}
@media (min-width: 1024px) {
    .wl-print-frame {
        align-items: center;
        padding: 1.5rem;
    }
    .wl-print-card {
        max-width: 28rem;
        max-height: 90vh;
        border-radius: 1.15rem;
        box-shadow: 0 18px 50px rgba(26, 26, 26, 0.18);
    }
    .wl-print-grabber { display: none; }
    .wl-print-head { padding: 1.15rem 1.15rem 0.75rem; }
    .wl-print-sub {
        display: block;
        margin: 0.28rem 0 0;
        font-size: 0.875rem;
        color: var(--wl-muted, #6B6B6B);
        letter-spacing: -0.01em;
    }
    .wl-print-body { padding: 0 1.15rem 0.5rem; }
    .wl-print-foot {
        padding: 0.85rem 1.15rem 1rem;
    }
    .wl-print-sheet .year-quick-select-btn,
    .wl-print-sheet .quick-select-btn {
        min-height: 3.1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .wl-print-scrim,
    .wl-print-card {
        transition: opacity 160ms ease;
        transform: none;
    }
    .wl-print-close:active,
    .wl-print-btn-ghost:active,
    .wl-print-btn-primary.is-ready:active,
    .wl-print-sheet .year-quick-select-btn:active,
    .wl-print-sheet .quick-select-btn:active {
        transform: none;
    }
}

/* Search bar sits on the title — no empty strip between them. */
.wl-content {
    padding-top: 0.55rem;
}
.wl-toolbar {
    margin-top: 0;
}
@media (max-width: 1023px) {
    .wl-content {
        padding-top: 0.2rem;
    }
    .wl-toolbar {
        margin-bottom: 0.55rem;
    }
}
html.wl-is-native-app .wl-content {
    padding-top: 0.15rem;
}
html.wl-is-native-app .wl-toolbar-title {
    margin-top: 0;
}

/* Existing-wine hit when a barcode is already in the cellar. */
.wl-ean-hit {
    margin-top: 0.7rem;
}
.wl-ean-hit.hidden {
    display: none !important;
}
.wl-ean-hit-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    background: #F4F3F0;
    border: 1px solid rgba(26, 26, 26, 0.06);
}
.wl-ean-hit-photo {
    width: 4.25rem;
    height: 5.65rem;
    flex-shrink: 0;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: center bottom;
       object-position: center bottom;
    border-radius: 0.4rem;
    background: #fff;
}
.wl-ean-hit-copy {
    min-width: 0;
}
.wl-ean-hit-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--wl-orange-text, #B5521F);
}
.wl-ean-hit-name {
    margin: 0.18rem 0 0;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--wl-text, #1A1A1A);
}
.wl-ean-hit-meta {
    margin: 0.18rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wl-muted, #6B6B6B);
}
.wl-ean-hit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
}
.wl-ean-hit-actions[hidden] {
    display: none !important;
}
.wl-ean-hit-actions a[hidden],
.wl-ean-hit-actions button[hidden] {
    display: none !important;
}
.wl-ean-hit-actions a,
.wl-ean-hit-actions button {
    flex: 1;
    min-height: 3.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--wl-text, #1A1A1A);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 100ms ease-out;
}
.wl-ean-hit-actions a:active,
.wl-ean-hit-actions button:active {
    transform: scale(0.97);
}
.wl-ean-hit-actions .wl-ean-hit-primary {
    background: var(--wl-orange, #ED702D);
    border-color: var(--wl-orange, #ED702D);
    color: #fff;
}
.wl-ean-hit-confirm {
    margin-top: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: #FFF4EC;
}
.wl-ean-hit-confirm[hidden] {
    display: none !important;
}
.wl-ean-hit-confirm-copy {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--wl-text, #1A1A1A);
}
.wl-ean-hit-done {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wl-muted, #6B6B6B);
}
.wl-ean-hit-done[hidden] {
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .wl-ean-hit-actions a,
    .wl-ean-hit-actions button {
        transition: none;
    }
    .wl-ean-hit-actions a:active,
    .wl-ean-hit-actions button:active {
        transform: none;
    }
}

/* —— Missing bottle / unknown label —— */
.wl-page--miss .wl-miss {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.35rem 1.2rem 1.45rem;
}
.wl-miss-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    color: var(--wl-orange-text, #B5521F);
    background: #FFF4EC;
}
.wl-miss .wl-detail-title {
    margin: 0.15rem 0 0.55rem;
    max-width: 16ch;
}
.wl-miss-lead {
    margin: 0 0 1.15rem;
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--wl-muted, #6B6B6B);
}
.wl-miss-code {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    margin: 0 0 1.35rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    background: #F7F6F3;
}
.wl-miss-code-label {
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--wl-muted, #6B6B6B);
}
.wl-miss-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--wl-text, #1A1A1A);
    word-break: break-all;
}
.wl-miss-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}
.wl-miss-actions .wl-btn-primary,
.wl-miss-actions .wl-btn-secondary {
    width: 100%;
}
@media (min-width: 640px) {
    .wl-miss-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .wl-miss-actions .wl-btn-primary,
    .wl-miss-actions .wl-btn-secondary {
        width: auto;
        min-width: 10.5rem;
    }
}

.wl-page--bottle .wl-detail-facts {
    grid-column: 1;
    min-width: 0;
}
.wl-page--bottle .wl-detail-media {
    grid-row: 1 / span 2;
}
.wl-bottle-id {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--wl-muted, #6B6B6B);
}
.wl-drink-sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 70;
    /* Über der Mobile-Dock-Navigation (Dock ≈ 3.5rem + Padding). */
    bottom: calc(4.15rem + env(safe-area-inset-bottom, 0px));
    padding: 0 0.85rem 0.35rem;
    background: transparent;
    pointer-events: none;
}
.wl-drink-sticky-inner,
.wl-drink-sticky .wl-btn-primary {
    pointer-events: auto;
}
@media (max-width: 1023px) {
    .wl-page--bottle .wl-detail-top,
    html.wl-is-native-app.wl-route-detail .wl-page--bottle .wl-detail-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }
    .wl-page--bottle .wl-detail-media,
    html.wl-is-native-app.wl-route-detail .wl-page--bottle .wl-detail-media {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }
    .wl-page--bottle .wl-detail-hero,
    html.wl-is-native-app.wl-route-detail .wl-page--bottle .wl-detail-hero {
        grid-column: 1;
        grid-row: 2;
    }
    .wl-page--bottle .wl-detail-facts,
    html.wl-is-native-app.wl-route-detail .wl-page--bottle .wl-detail-facts {
        grid-column: 1;
        grid-row: 3;
    }
    .wl-page--bottle .wl-detail-media img,
    .wl-page--bottle .wl-detail-photo,
    html.wl-is-native-app.wl-route-detail .wl-page--bottle .wl-detail-media img {
        width: auto;
        max-width: 100%;
        max-height: 9rem;
    }
    .wl-page--bottle .wl-detail-title,
    html.wl-is-native-app.wl-route-detail .wl-page--bottle .wl-detail-title {
        font-size: 1.7rem;
    }
    .wl-page--bottle .wl-bottle-drink {
        display: none !important;
    }
    .wl-page--bottle .wl-drink-sticky {
        display: block;
    }
    .wl-page--bottle .wl-detail.pb-24 {
        padding-bottom: calc(9.75rem + env(safe-area-inset-bottom, 0px));
    }
}
@media (min-width: 1024px) {
    .wl-drink-sticky {
        display: none !important;
    }
}
.wl-bottle-id span {
    text-transform: none;
    letter-spacing: 0;
}
.wl-bottle-id-toggle {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    -webkit-text-decoration: underline dotted;
            text-decoration: underline dotted;
    text-underline-offset: 2px;
    word-break: break-all;
    cursor: pointer;
}
.wl-bottle-id-toggle.is-open {
    text-decoration: none;
}
.wl-bottle-id-toggle[data-copied="1"]::after {
    content: "· kopiert";
    display: inline-block;
    margin-left: 0.3em;
    white-space: nowrap;
}

.wl-bottle-note {
    display: block;
    margin: 0.65rem 0 0;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    background: #FFF4EC;
}
.wl-bottle-note-wrap {
    margin: 0;
}
.wl-bottle-notes {
    margin-top: 0.85rem;
    padding: 0.7rem 0.85rem 0.35rem;
    border-radius: 0.85rem;
    background: #FFF4EC;
}
.wl-bottle-notes-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.55rem 0;
    box-sizing: border-box;
    color: var(--wl-text, #1A1A1A);
    text-decoration: none;
}
.wl-bottle-notes-row + .wl-bottle-notes-row {
    border-top: 1px solid rgba(181, 82, 31, 0.14);
}
.wl-bottle-notes-year {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wl-muted, #6B6B6B);
    font-variant-numeric: tabular-nums;
}
.wl-bottle-notes-text {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}
.wl-bottle-note-wrap > summary {
    list-style: none;
    cursor: pointer;
}
.wl-bottle-note-wrap > summary::-webkit-details-marker {
    display: none;
}
.wl-bottle-note-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}
.wl-bottle-note-wrap .wl-bottle-note-kicker,
.wl-bottle-note-wrap .wl-bottle-note-text {
    display: block;
}
.wl-bottle-note-edit {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wl-orange-text, #B5521F);
}
.wl-bottle-note-wrap[open] .wl-bottle-note-edit {
    visibility: hidden;
}
.wl-bottle-note-add {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wl-orange-text, #B5521F);
}
.wl-bottle-note-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.wl-bottle-note-form .wl-input {
    flex: 1;
    min-width: 0;
}
.wl-bottle-note-form .wl-btn-secondary {
    flex-shrink: 0;
}
.wl-bottle-note-kicker {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wl-orange-text, #B5521F);
}
.wl-bottle-note-text {
    margin: 0.15rem 0 0;
    font-size: 0.9375rem;
    font-weight: 750;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--wl-text, #1A1A1A);
}
.wl-bottle-note-sticky {
    margin: 0;
    padding: 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 750;
    line-height: 1.3;
    color: var(--wl-text, #1A1A1A);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* —— Settings: navigation is path, lists are work —— */
.wl-settings-aside {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.15rem 0 0;
}
.wl-settings-chips {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 0.85rem;
    margin-bottom: 0.35rem;
    scrollbar-width: none;
}
@media (min-width: 1024px) {
    .wl-settings-chips { display: none; }
}
.wl-settings-chips::-webkit-scrollbar { display: none; }
.wl-settings-chips .wl-settings-nav-link {
    flex: none;
    min-height: 2.15rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
}
.wl-settings-nav-group + .wl-settings-nav-group {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 0;
    box-shadow: inset 0 0.5px 0 rgba(26, 26, 26, 0.08);
}
.wl-settings-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wl-muted, #6B6B6B);
    padding: 0 0.75rem 0.4rem;
}
.wl-settings-nav-link {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.7rem;
    font-weight: 650;
    transition: transform 100ms ease-out, background 100ms ease-out, color 100ms ease-out;
}
.wl-settings-nav-link:hover {
    background: #F4F3F0;
}
.wl-settings-nav-link.is-active {
    background: #FFF4EC;
    color: var(--wl-orange-text, #B5521F);
}
.wl-settings-nav-link:active {
    transform: scale(0.98);
}
.wl-settings-card {
    border: 0;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
    padding: 1.05rem 1.1rem;
    transition: transform 100ms ease-out, box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.wl-settings-card:hover {
    border-color: transparent;
    box-shadow: 0 2px 4px rgba(26, 26, 26, 0.04), 0 14px 36px rgba(26, 26, 26, 0.08);
}
.wl-settings-card:active {
    transform: scale(0.98);
}
.wl-settings-card-title {
    letter-spacing: -0.02em;
    font-weight: 750;
}
.wl-settings-list,
.wl-settings-panel,
.wl-settings-section {
    border: 0;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 10px 28px rgba(26, 26, 26, 0.05);
}
.wl-settings-list { overflow: hidden; }
.wl-settings-lane + .wl-settings-lane {
    margin-top: 1.15rem;
}
.wl-settings-lane--solo {
    margin-top: 0;
}
.wl-settings-lane-head {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 0 0.35rem 0.15rem;
}
.wl-settings-lane-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--wl-muted, #6B6B6B);
}
.wl-settings-lane-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--wl-muted, #6B6B6B);
    opacity: 0.85;
}
.wl-settings-lane-hint {
    margin: 0 0 0.55rem 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wl-orange-text, #B5521F);
}
.wl-settings-lane--unused .wl-settings-lane-title,
.wl-settings-lane--unused .wl-settings-lane-count {
    color: var(--wl-orange-text, #B5521F);
}
.wl-settings-lane--unused .wl-settings-list {
    outline: 1px solid rgba(237, 112, 45, 0.22);
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.03), 0 8px 22px rgba(237, 112, 45, 0.08);
}
.wl-settings-list-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.95rem 1.05rem;
    border-bottom-color: rgba(26, 26, 26, 0.06);
}
a.wl-settings-list-row {
    text-decoration: none;
    color: inherit;
}
a.wl-settings-list-row:hover .wl-settings-list-title {
    color: var(--wl-orange-text, #B5521F);
}
a.wl-settings-list-row:active {
    background: #F7F6F3;
}
.wl-settings-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.85rem;
}
.wl-settings-search {
    position: relative;
    flex: 1;
    min-width: 0;
}
.wl-settings-search .wl-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wl-muted);
    pointer-events: none;
}
.wl-settings-search .wl-search-input {
    width: 100%;
    padding-left: 2.4rem;
}
.wl-settings-search .wl-search-clear {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
}
.wl-settings-add {
    flex: none;
}
.wl-settings-danger {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}
.wl-settings-list-title {
    letter-spacing: -0.015em;
    font-weight: 750;
}
.wl-settings-list-row:last-child {
    border-bottom: 0;
}
.wl-settings-list-meta {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wl-muted, #6B6B6B);
}
.wl-settings-panel {
    padding: 1.15rem 1.15rem 1.2rem;
}
.wl-settings-section {
    padding: 1.25rem 1.15rem;
}
.wl-settings-panel input[type="text"],
.wl-settings-panel input[type="email"],
.wl-settings-panel input[type="password"],
.wl-settings-panel input[type="number"],
.wl-settings-panel input[type="search"],
.wl-settings-panel select,
.wl-settings-panel textarea,
.wl-settings-section input[type="text"],
.wl-settings-section input[type="email"],
.wl-settings-section input[type="password"],
.wl-settings-section input[type="number"],
.wl-settings-section select,
.wl-settings-section textarea,
.wl-page .wl-input,
.wl-admin .wl-input {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 0.7rem;
    background: #F4F3F0;
    box-shadow: none;
    color: var(--wl-text, #1A1A1A);
    padding: 0.55rem 0.85rem;
    font-size: 0.9375rem;
}
.wl-settings-panel textarea,
.wl-settings-section textarea {
    min-height: 6rem;
}
.wl-settings-panel input:focus,
.wl-settings-panel select:focus,
.wl-settings-panel textarea:focus,
.wl-settings-section input:focus,
.wl-settings-section select:focus,
.wl-settings-section textarea:focus,
.wl-page .wl-input:focus,
.wl-admin .wl-input:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--wl-orange, #ED702D);
}
.wl-admin input[type="checkbox"],
.wl-settings-panel input[type="checkbox"],
.wl-settings-section input[type="checkbox"] {
    accent-color: var(--wl-orange, #ED702D);
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}
.wl-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: #F7F6F3;
    transition: transform 100ms ease-out, background 100ms ease-out;
}
.wl-choice:hover { background: #F4F3F0; }
.wl-choice:active { transform: scale(0.99); }
.wl-choice.is-locked {
    opacity: 0.72;
}
.wl-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #F4F3F0;
    color: var(--wl-text, #1A1A1A);
    padding: 0.18rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 650;
}
.wl-tag.is-ok { background: #E8F5EC; color: #1F5C38; }
.wl-tag.is-off { background: #FDECEC; color: #8B1E1E; }
.wl-btn-danger {
    min-height: 2.75rem;
    border: 0;
    border-radius: 0.7rem;
    background: #B42318;
    color: #fff;
    font-weight: 700;
    padding: 0 1.1rem;
    cursor: pointer;
    transition: transform 100ms ease-out, background 100ms ease-out;
}
.wl-btn-danger:hover { background: #912018; color: #fff; }
.wl-btn-danger:active { transform: scale(0.97); }
.wl-btn-quiet-danger {
    min-height: 2.75rem;
    border: 0;
    background: transparent;
    color: #B42318;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0 0.7rem;
    cursor: pointer;
    transition: transform 100ms ease-out, background 100ms ease-out;
}
.wl-btn-quiet-danger:hover { background: #FDECEC; }
.wl-btn-quiet-danger:active { transform: scale(0.97); }
.wl-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    -o-object-fit: cover;
       object-fit: cover;
    background: #FFF4EC;
    color: var(--wl-orange-text, #B5521F);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: none;
}

@media (prefers-reduced-motion: reduce) {
    .wl-settings-nav-link:active,
    .wl-settings-card:active,
    .wl-choice:active,
    .wl-btn-danger:active,
    .wl-btn-quiet-danger:active {
        transform: none;
    }
}
@media (prefers-contrast: more) {
    .wl-settings-card,
    .wl-settings-list,
    .wl-settings-panel,
    .wl-settings-section {
        box-shadow: none;
        outline: 1px solid #1A1A1A;
    }
}


/* Aktive Nav: Text dunkler (Kontrast), Symbol bleibt Marken-Orange */
.wl-nav-link.is-active svg,
.wl-nav-link.is-active .wl-icon {
    color: var(--wl-orange, #ED702D);
}
.wl-settings-nav-link.is-active svg {
    color: var(--wl-orange, #ED702D);
}

