/* ─── PROOF Data Browser — Custom Styles ─── */

/* ── 전역 ── */
:root {
    --color-partner: #3b82f6;
    --color-store: #10b981;
    --color-cu: #8b5cf6;
    --color-delivery: #6b7280;
    --color-dutyfree: #f59e0b;
    --color-overseas: #ec4899;
    --color-etc: #9ca3af;
    --color-instock: #10b981;
    --color-soldout: #ef4444;
    --color-aroma: #fce7f3;
    --color-taste: #fef3c7;
    --color-finish: #ede9fe;
}

body > footer {
    text-align: center;
    padding: 2rem 0 1rem;
    opacity: 0.6;
}

body > nav.container-fluid {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

body > nav.container-fluid ul {
    flex-wrap: wrap;
}

.nav-user {
    color: var(--pico-muted-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-logout-form {
    margin: 0;
}

.nav-logout-button {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pico-primary);
    font: inherit;
}

.nav-logout-button:is(:hover, :focus) {
    background: transparent;
    color: var(--pico-primary-hover);
    text-decoration: underline;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.auth-panel {
    max-width: 34rem;
    margin: 7vh auto 0;
}

.auth-panel .eyebrow {
    margin-bottom: 0.25rem;
    color: var(--pico-muted-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-form {
    padding: 1.25rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 1rem;
    background: var(--pico-card-background-color);
}

.auth-callout {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 1rem;
}

.auth-admin {
    max-width: 64rem;
    margin: 2rem auto 0;
}

.auth-admin .eyebrow {
    margin-bottom: 0.25rem;
    color: var(--pico-muted-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.invite-form {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(10rem, 12rem) auto;
    gap: 1rem;
    align-items: end;
}

.invite-form label,
.invite-form button {
    margin-bottom: 0;
}

.invite-list {
    margin-top: 2rem;
}

/* ── 가격 ── */
.price {
    color: var(--pico-primary);
    font-weight: 700;
    font-size: 1.05em;
}

.price-hero {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pico-primary);
    margin: 0.5rem 0;
}

.stars {
    color: #f59e0b;
    font-weight: 600;
}

.muted {
    opacity: 0.65;
}

.status-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}
.status-dot-ok { background: #16a34a; }
.status-dot-warning { background: #d97706; }
.status-dot-stale { background: #dc2626; }
.status-dot-unknown { background: #6b7280; }

/* ── 배지 ── */
.badge {
    display: inline-block;
    padding: 0.15em 0.55em;
    border-radius: 4px;
    font-size: 0.78em;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.badge-partner  { background: var(--color-partner); }
.badge-store    { background: var(--color-store); }
.badge-cu       { background: var(--color-cu); }
.badge-delivery { background: var(--color-delivery); }
.badge-dutyfree { background: var(--color-dutyfree); }
.badge-overseas { background: var(--color-overseas); }
.badge-etc      { background: var(--color-etc); }
.badge-instock  { background: var(--color-instock); }
.badge-soldout  { background: var(--color-soldout); }

/* ── 태그 ── */
.tag {
    display: inline-block;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    font-size: 0.78em;
    background: var(--pico-muted-border-color);
    color: var(--pico-color);
    margin: 0.1em 0.15em;
}
.tag-keyword {
    background: #e0e7ff;
    color: #3730a3;
    text-decoration: none;
}
a.tag-keyword:hover {
    background: #c7d2fe;
    text-decoration: none;
}

/* ── 상품 그리드 ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.product-card {
    padding: 0.8rem;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-card a {
    text-decoration: none;
    color: inherit;
}
.product-thumb {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
}
.placeholder-img {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.product-info {
    padding-top: 0.5rem;
}
.product-info strong {
    display: block;
    font-size: 0.92em;
    line-height: 1.35;
    margin-bottom: 0.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.4rem 0;
}

/* ── 상품 상세 헤더 ── */
.product-header > div:first-child {
    text-align: center;
}
.product-hero-img {
    max-width: 320px;
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
}

/* ── 스펙 카드 ── */
.spec-card .grid {
    text-align: center;
}
.spec-card .grid > div {
    padding: 0.6rem;
}

/* ── 테이스팅 노트 ── */
.tasting-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tasting-card {
    border-left: 4px solid transparent;
}
.tasting-aroma {
    border-left-color: #ec4899;
    background: var(--color-aroma);
}
.tasting-taste {
    border-left-color: #f59e0b;
    background: var(--color-taste);
}
.tasting-finish {
    border-left-color: #8b5cf6;
    background: var(--color-finish);
}
.tasting-card header {
    font-size: 1.1em;
    padding-bottom: 0.3rem;
}
.tasting-card p {
    font-size: 0.92em;
    line-height: 1.6;
    margin: 0;
}

/* ── 에디터 코멘트 ── */
.editor-comment {
    border-left: 3px solid var(--pico-primary);
}

/* ── 이미지 갤러리 ── */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}
.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-img:hover {
    transform: scale(1.03);
}

/* ── 테이블 작은 썸네일 ── */
.thumb-sm {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
}

/* ── 품절 행 ── */
.sold-out-row {
    opacity: 0.55;
}
.sold-out-row td {
    text-decoration: line-through;
}
.sold-out-row td:last-child {
    text-decoration: none;
}

/* ── 필터 폼 ── */
.filter-form .grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}
.filter-form button {
    margin-top: 0;
}

/* ── 페이지네이션 ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}
.pagination a {
    width: auto;
}

/* ── 수집 상태 ── */
.crawler-status-section {
    margin-top: 2rem;
}
.crawler-card {
    height: 100%;
}
.crawler-card h3 {
    margin-bottom: 0.25rem;
}
.crawler-table td,
.crawler-table th {
    vertical-align: middle;
}
.status-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.status-pill-ok {
    background: #dcfce7;
    color: #166534;
}
.status-pill-warning {
    background: #fef3c7;
    color: #92400e;
}
.status-pill-stale {
    background: #fee2e2;
    color: #991b1b;
}
.status-pill-unknown {
    background: #e5e7eb;
    color: #374151;
}
.crawler-log-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.crawler-log-grid p {
    margin-bottom: 0;
}
.crawler-phase-list {
    margin-bottom: 0;
}

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
    .filter-form .grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .product-thumb {
        height: 140px;
    }
    .product-hero-img {
        max-width: 240px;
        max-height: 300px;
    }
    .tasting-grid {
        grid-template-columns: 1fr;
    }
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    table {
        font-size: 0.85em;
    }
    .thumb-sm {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .product-thumb {
        height: 120px;
    }
}

/* ─── 근처보틀 ──────────────────────────────────────── */

/* 검색 드롭다운 */
.search-box {
    position: relative;
}
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--pico-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
}
.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    gap: 0.5rem;
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    background: var(--pico-muted-border-color);
}
.search-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}
.search-actions button {
    padding: 0.25em 0.5em;
    font-size: 0.85em;
    margin: 0;
    width: auto;
}

/* 위시리스트 아이템 */
.wishlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.wishlist-item:last-child {
    border-bottom: none;
}
.wishlist-item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}
.wishlist-item-info a {
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wishlist-remove {
    padding: 0.2em 0.5em !important;
    font-size: 1em;
    margin: 0 !important;
    width: auto !important;
    flex-shrink: 0;
}

/* 매장 카드 (위시리스트 결과) */
.store-card {
    margin-bottom: 1rem;
}
.store-card header {
    padding-bottom: 0.5rem;
}
.store-card table {
    margin: 0;
    font-size: 0.9em;
}

/* 주변 최저가 — 상품 썸네일 */
.product-header-compact {
    margin-bottom: 1.5rem;
}
.thumb-nearby {
    max-width: 120px;
    max-height: 160px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

/* 상품 카드 위시리스트 버튼 */
.product-card {
    position: relative;
}
.btn-wish-card {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    z-index: 2;
    line-height: 1;
}
.btn-wish-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.15);
}
.btn-wish-card.active {
    color: #ef4444;
}

/* 근처보틀 바로가기 카드 */
.grid > article > a {
    text-decoration: none;
    color: inherit;
}
.grid > article > a:hover {
    opacity: 0.85;
}

/* 근처보틀 모바일 반응형 */
@media (max-width: 768px) {
    .search-dropdown {
        max-height: 300px;
    }
    .thumb-nearby {
        max-width: 80px;
        max-height: 100px;
    }
}

/* ── Flash ── */
.flash-stack {
    margin-bottom: 1rem;
}
.flash-message {
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--pico-primary);
}
.flash-success {
    border-left-color: var(--color-instock);
}
.flash-error {
    border-left-color: var(--color-soldout);
}

/* ── Inventory Ops ── */
.ops-header,
.ops-page-header {
    margin-bottom: 1.25rem;
}
.ops-shell-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.ops-shell-nav-label {
    flex: 0 0 auto;
    padding-left: 0.25rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ops-shell-nav .ops-subnav {
    margin: 0;
}
.ops-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
}
.ops-subnav a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    background: var(--pico-background-color);
    font-weight: 700;
    line-height: 1.2;
}
.ops-subnav a.is-active {
    background: var(--pico-primary-background);
    border-color: var(--pico-primary-border);
    color: var(--pico-primary-inverse);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.ops-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}
.ops-page-header > * {
    margin-bottom: 0;
}
.ops-stats article h3 {
    margin-bottom: 0.2rem;
}
.ops-panel {
    height: 100%;
}
.ops-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.ops-bottle-stack {
    display: grid;
    gap: 0.8rem;
}
.ops-session-stack {
    display: grid;
    gap: 0.8rem;
}
.ops-bottle-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}
.ops-bottle-card:hover {
    background: rgba(15, 23, 42, 0.02);
}
.ops-session-card {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 10px;
}
.ops-bottle-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.ops-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
.ops-kpi-list {
    display: grid;
    gap: 0.45rem;
    margin: 0.75rem 0 1rem;
}
.ops-kpi-list-compact {
    margin-bottom: 0;
}
.ops-kpi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.ops-kpi-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ops-coverage-stack {
    display: grid;
    gap: 0.8rem;
}
.ops-coverage-row {
    display: grid;
    gap: 0.35rem;
}
.ops-coverage-row > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}
.ops-analytics-stack {
    display: grid;
    gap: 1rem;
}
.ops-analytics-split {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}
.ops-analytics-pressure {
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.45fr);
}
.ops-analytics-main,
.ops-analytics-side {
    min-width: 0;
}
.ops-analytics-side {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    padding: 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.03);
}
.ops-analytics-side-block {
    display: grid;
    gap: 0.6rem;
}
.ops-analytics-side-title {
    font-size: 0.88rem;
}
.ops-analytics-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}
.ops-analytics-value-grid > article {
    margin-bottom: 0;
}
.ops-chip-list-tight {
    margin-top: 0;
}
.half-star-rating-list {
    display: grid;
    gap: 0.8rem;
}
.half-star-rating-row {
    display: grid;
    grid-template-columns: minmax(3.5rem, 0.35fr) minmax(10rem, 1fr) minmax(4.5rem, auto);
    gap: 0.8rem;
    align-items: center;
    padding: 0.45rem 0;
}
.half-star-rating-title {
    font-weight: 700;
    color: var(--pico-color);
}
.half-star-rating-stars {
    display: inline-flex;
    gap: 0.15rem;
    align-items: center;
}
.half-star-rating-value {
    min-width: 4.5rem;
    color: var(--pico-muted-color);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.half-star {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    line-height: 1;
    color: rgba(148, 163, 184, 0.75);
    font-size: 1.35rem;
}
.half-star::before,
.half-star::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.half-star::before {
    content: "☆";
}
.half-star::after {
    content: "★";
    width: 0;
    overflow: hidden;
    color: #d97706;
    place-items: center start;
}
.half-star.is-full::after {
    width: 100%;
}
.half-star.is-half::after {
    width: 50%;
}
.half-star-target {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    min-width: 0;
    width: 50%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.half-star-target:hover,
.half-star-target:focus {
    background: transparent;
    box-shadow: none;
}
.half-star-target:focus-visible {
    outline: 2px solid var(--pico-primary);
    outline-offset: 3px;
    border-radius: 999px;
}
.half-star-left {
    left: 0;
}
.half-star-right {
    right: 0;
}
.ops-table-wrap {
    overflow-x: auto;
}
.ops-table-wrap table {
    margin-bottom: 0;
}
.ops-table-wrap-category table {
    min-width: 420px;
}
.ops-table-wrap-risk table {
    min-width: 680px;
}
.ops-analytics-panel .ops-table th,
.ops-analytics-panel .ops-table td {
    word-break: keep-all;
}
.ops-analytics-risk-table th:nth-child(2),
.ops-analytics-risk-table td:nth-child(2),
.ops-analytics-risk-table th:nth-child(3),
.ops-analytics-risk-table td:nth-child(3),
.ops-analytics-risk-table th:nth-child(4),
.ops-analytics-risk-table td:nth-child(4) {
    white-space: nowrap;
}
.ops-analytics-callout {
    margin: 0;
    line-height: 1.6;
}
.ops-analytics-coverage .ops-coverage-row > div {
    flex-wrap: wrap;
}
.ops-table td,
.ops-table th {
    vertical-align: middle;
}
.ops-empty-state {
    text-align: center;
    padding: 2rem 1rem;
}
.ops-search-form .grid,
.ops-filter-form .grid {
    grid-template-columns: 2fr 1fr;
}
.ops-selected-product {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}
.ops-selection-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}
.ops-selected-product .product-hero-img {
    max-width: 120px;
    max-height: 150px;
}
.ops-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}
.ops-inline-actions form {
    display: flex;
    align-items: center;
    margin: 0;
}
.ops-inline-actions :is(a[role="button"], button) {
    margin: 0;
}
.ops-quick-actions {
    margin: 0 0 1rem;
}
.ops-inline-actions > * {
    width: auto;
    margin-bottom: 0;
}
.capture-form textarea {
    min-height: 11rem;
}
.capture-inbox {
    display: grid;
    gap: 1rem;
}
.capture-card details {
    margin: 0.75rem 0;
}
.capture-section {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.9rem;
}
.tag-row,
.capture-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.capture-action {
    display: grid;
    gap: 0.25rem;
    min-width: min(100%, 240px);
    padding: 0.7rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    background: #f8fafc;
}
.capture-status-draft { background: #d97706; }
.capture-status-reviewed { background: #16a34a; }
.capture-status-archived { background: #6b7280; }
.ops-compact-form {
    margin: 0.5rem 0;
}
.ops-compact-form button {
    width: auto;
    margin: 0;
}
.ops-search-results .product-card {
    display: flex;
    flex-direction: column;
}
.ops-form .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ops-form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.ops-detail-hero {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 1rem;
    align-items: start;
}
.ops-detail-table th,
.ops-detail-table td {
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.ops-detail-table th {
    width: 110px;
    text-align: left;
}
.ops-flat-list {
    padding-left: 1.2rem;
    margin-bottom: 0;
}
.ops-feedback-list {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
.ops-feedback-row {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}
.ops-feedback-row:last-child {
    border-bottom: none;
}
.tasting-note-stack {
    display: grid;
    gap: 0.9rem;
}
.tasting-note-card {
    overflow: hidden;
}
.tasting-note-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
    line-height: 1.6;
}
.tasting-note-raw {
    white-space: pre-line;
    line-height: 1.75;
}
.tasting-timeline-summary {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.tasting-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
}
.tasting-timeline-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.tasting-timeline-item:hover {
    background: #f8fafc;
}
.tasting-timeline-item.is-current {
    border-color: var(--pico-primary-border);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}
.tasting-timeline-item small {
    color: #64748b;
    line-height: 1.35;
}
.tasting-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.tasting-note-search-panel {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}
.tasting-source-layout,
.tasting-lab-list,
.tasting-external-entry {
    display: grid;
    gap: 0.65rem;
}
.tasting-external-entry {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--pico-muted-border-color);
}
.tasting-source-choice {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: #fff;
}
.tasting-source-choice:hover,
.tasting-source-choice.is-active {
    border-color: rgba(15, 118, 110, 0.35);
    background: #f0fdfa;
}
.tasting-selected-bottle {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem;
    border: 1px solid rgba(15, 118, 110, 0.25);
    border-radius: 12px;
    background: #f0fdfa;
}
.taste-coordinate-bars {
    display: grid;
    gap: 0.5rem;
}
.taste-coordinate-bars > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.75rem;
    align-items: center;
}
.taste-coordinate-bars span {
    font-size: 0.82rem;
    color: #475569;
}
.taste-coordinate-bars progress {
    margin-bottom: 0;
}
.decoder-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}
.decoder-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    padding: 0.9rem;
    background: #fff;
}
.decoder-card header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}
.decoder-card p:last-child {
    margin-bottom: 0;
}
.compass-panel {
    border-color: rgba(15, 118, 110, 0.35);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.96));
}
.compass-next {
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.inventory-status-sealed {
    background: #0f766e;
}
.inventory-status-opened {
    background: #2563eb;
}
.inventory-status-low {
    background: #d97706;
}
.inventory-status-empty {
    background: #6b7280;
}
.inventory-status-retired {
    background: #7c3aed;
}
.experience-status {
    color: #fff;
}
.experience-status-draft {
    background: #475569;
}
.experience-status-planned {
    background: #0f766e;
}
.experience-status-completed {
    background: #2563eb;
}
.experience-status-cancelled {
    background: #b91c1c;
}
.risk-badge {
    color: #fff;
}
.risk-low {
    background: #15803d;
}
.risk-medium {
    background: #b45309;
}
.risk-high {
    background: #b91c1c;
}
.risk-done {
    background: #4b5563;
}

@media (max-width: 1180px) {
    .ops-analytics-pressure {
        grid-template-columns: 1fr;
    }
    .ops-analytics-value-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .ops-analytics-split,
    .ops-analytics-pressure {
        grid-template-columns: 1fr;
    }
    .ops-panel-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}
.ops-note p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .invite-form {
        grid-template-columns: 1fr;
    }
    .ops-shell-nav {
        align-items: flex-start;
        border-radius: 18px;
        flex-direction: column;
    }
    .ops-shell-nav .ops-subnav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .ops-shell-nav .ops-subnav a {
        justify-content: center;
        width: 100%;
    }
    .ops-page-header,
    .ops-panel-header,
    .ops-selected-product,
    .ops-detail-hero {
        display: grid;
        grid-template-columns: 1fr;
    }
    .ops-search-form .grid,
    .ops-filter-form .grid,
    .ops-form .grid {
        grid-template-columns: 1fr;
    }
    .ops-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .taste-coordinate-bars > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .half-star-rating-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .half-star-rating-value {
        text-align: left;
    }
    .ops-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ops-inline-actions > * {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ops-shell-nav .ops-subnav {
        grid-template-columns: 1fr;
    }
}

.experience-cockpit {
    display: grid;
    gap: 1rem;
}

.experience-cockpit-header,
.experience-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.experience-cockpit-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.2fr 0.95fr;
    gap: 1rem;
    align-items: start;
}

.experience-panel {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    display: grid;
    gap: 0.85rem;
}

.experience-inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.experience-inline-form-compact {
    grid-template-columns: 1fr 1fr auto;
}

.experience-selection-summary {
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: #f5f7fb;
    font-size: 0.92rem;
}

.experience-list,
.experience-search-results,
.experience-feedback-stream {
    display: grid;
    gap: 0.65rem;
}

.experience-card {
    width: 100%;
    text-align: left;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem;
    display: grid;
    gap: 0.45rem;
}

.experience-card.is-selected {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.experience-card strong {
    display: block;
}

.experience-card span {
    font-size: 0.9rem;
    color: #475569;
}

.experience-card-toggle {
    all: unset;
    cursor: pointer;
    display: grid;
    gap: 0.45rem;
}

.experience-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.experience-search-result {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    border: 1px solid var(--pico-muted-border-color);
    background: #f8fafc;
    padding: 0.7rem 0.8rem;
}

.experience-feedback-form {
    display: grid;
    gap: 0.75rem;
}

.experience-sentiment-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.experience-feedback-row {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--pico-muted-border-color);
    background: #fff;
}

.experience-feedback-row strong {
    display: block;
}

.experience-feedback-row span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.92rem;
    color: #475569;
}

@media (max-width: 1180px) {
    .experience-cockpit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .experience-inline-form,
    .experience-inline-form-compact {
        grid-template-columns: 1fr;
    }
}

/* ── My Proof personal app shell ── */
.my-proof-hero {
    padding: 1.4rem;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 15%, rgba(20, 184, 166, 0.18), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 46%, #f0fdfa 100%);
}

.my-proof-hero .eyebrow {
    margin-bottom: 0.25rem;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.my-proof-stats,
.my-bottle-grid {
    display: grid;
    gap: 0.85rem;
}

.my-proof-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1rem 0;
}

.my-proof-stats article,
.my-proof-panel,
.my-bottle-card {
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 18px;
    background: #fff;
}

.my-proof-stats article {
    padding: 1rem;
}

.my-proof-stats small {
    display: block;
    color: #64748b;
}

.my-proof-stats strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.3rem;
}

.my-proof-subnav {
    position: relative;
    z-index: 4;
    display: flex;
    gap: 0.35rem;
    margin: 0.9rem 0 1rem;
    padding: 0.35rem;
    overflow-x: auto;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    scrollbar-width: none;
}

.my-proof-subnav::-webkit-scrollbar {
    display: none;
}

.my-proof-subnav a {
    flex: 1 0 auto;
    min-width: max-content;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    color: #334155;
    text-align: center;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
}

.my-proof-subnav a:hover,
.my-proof-subnav a:focus,
.my-proof-subnav a.is-active {
    background: #0f766e;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.my-bottle-row small {
    color: #64748b;
    font-size: 0.9rem;
}

.my-proof-quick-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.9rem;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #ecfeff 100%);
}

.my-proof-quick-actions > div {
    min-width: 0;
    margin-right: auto;
}

.my-proof-quick-actions strong,
.my-proof-quick-actions small {
    display: block;
}

.my-proof-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.my-proof-explore-card {
    display: grid;
    gap: 0.4rem;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.my-proof-explore-card:hover,
.my-proof-explore-card:focus {
    border-color: rgba(15, 118, 110, 0.36);
    background: #f0fdfa;
    text-decoration: none;
}

.my-proof-explore-card small {
    color: #0f766e;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.my-proof-explore-card span {
    color: #64748b;
    font-size: 0.92rem;
}

.my-proof-panel {
    padding: 1rem;
}

.my-proof-panel header,
.my-bottle-card header,
.my-bottle-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.my-bottle-list {
    display: grid;
    gap: 0.55rem;
}

.my-bottle-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
    color: inherit;
    text-decoration: none;
}

.my-bottle-row:last-child {
    border-bottom: 0;
}

.my-bottle-row em {
    color: #0f766e;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.my-bottle-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.my-bottle-card {
    padding: 1rem;
}

.my-bottle-card header small {
    color: #0f766e;
    font-weight: 700;
}

.my-note-source-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 14px;
    background: #f8fafc;
}

.my-note-source-choice legend {
    font-weight: 800;
}

.tasting-result-summary-card {
    border-left: 4px solid var(--pico-primary);
}

.tasting-result-core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.tasting-result-card {
    min-height: 100%;
}

.tasting-result-disclosure summary {
    cursor: pointer;
    font-weight: 700;
}

.tasting-result-disclosure[open] summary {
    margin-bottom: 0.75rem;
}

.tasting-result-details {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .my-proof-stats,
    .my-proof-explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .my-proof-hero {
        padding: 1rem;
        border-radius: 18px;
    }
    .my-proof-subnav {
        position: sticky;
        top: 0.4rem;
        margin-right: -0.2rem;
        margin-left: -0.2rem;
    }
    .my-proof-stats,
    .my-bottle-grid,
    .my-proof-explore-grid {
        grid-template-columns: 1fr;
    }
    .my-proof-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .my-proof-quick-actions > div {
        grid-column: 1 / -1;
    }
}
