@layer reset,base,layout,components;
@layer reset {
  * {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  button,
  a,
  input,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  img {
    max-width: 100%;
    display: block;
  }
  a {
    color: inherit;
  }
  button {
    color: inherit;
  }
  button:disabled {
    opacity: 0.5;
    cursor: wait;
  }
  svg {
    flex-shrink: 0;
  }
}
@layer base {
  :root {
    color-scheme: light;
    /* Vinology web exports: 3561 HEX, 179 RGB and 2209 RGB. */
    --brand-green: #89b74b;
    --brand-coral: #e15f55;
    --brand-blue: #658fa0;
    --paper: #fcf3ea;
    --white: #fffdf9;
    --ink: #262622;
    --muted: #62625b;
    --line: #d9d5c8;
    --strong-line: #969387;
    --accent: var(--brand-green);
    --accent-ink: #1e2914;
    --accent-text: #3b571c;
    --accent-light: #eaf1df;
    --olive: #3b571c;
    --olive-light: var(--accent-light);
    --coral-text: #94372f;
    --coral-light: #fbe9e5;
    --blue-text: #355866;
    --blue-light: #e7eff2;
    --surface-alt: #f0ede4;
    --hero: #eeefdf;
    --focus: #355866;
    --serif: Georgia, "Times New Roman", serif;
  }
  html {
    background: var(--paper);
    scroll-behavior: smooth;
  }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
  }
  h1,
  h2,
  h3,
  .brand {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
  }
  h1 {
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -1px;
  }
  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 20px;
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
  button {
    border: 0;
  }
  input,
  textarea,
  select {
    width: 100%;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--strong-line);
    border-radius: 7px;
    padding: 12px;
    min-height: 46px;
  }
  textarea {
    resize: vertical;
    min-height: 95px;
  }
  label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
  }
  small,
  .small {
    font-size: 12px;
  }
  summary {
    cursor: pointer;
    padding: 14px 0;
    min-height: 44px;
    font-weight: 600;
  }
  details {
    border-top: 1px solid var(--line);
  }
  a {
    text-underline-offset: 3px;
  }
  .muted {
    color: var(--muted);
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
  }
  .serif {
    font-family: var(--serif);
  }
  .skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 20;
    background: var(--white);
    padding: 12px;
  }
  .skip:focus {
    top: 16px;
  }
}
@layer layout {
  .shell {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    min-height: 100svh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100svh;
    background: var(--white);
    border-right: 1px solid var(--line);
    padding: 36px 22px;
    display: flex;
    flex-direction: column;
  }
  .brand-link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 8px 35px;
  }
  .brand {
    font-size: 24px;
    white-space: nowrap;
  }
  .brand-sub {
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 7px;
  }
  .nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .nav button {
    display: flex;
    align-items: center;
    gap: 14px;
    background: none;
    text-align: left;
    border-radius: 6px;
    padding: 13px 16px;
    min-height: 48px;
    font-size: 14px;
    color: var(--muted);
  }
  .nav button.active {
    background: var(--accent-light);
    color: var(--accent-text);
    font-weight: 600;
  }
  .nav button[data-page="scan"] {
    background: var(--accent);
    color: var(--accent-ink);
    margin: 9px 0;
  }
  .sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .sidebar-note {
    padding: 20px 12px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.6;
  }
  .main-wrap {
    min-width: 0;
  }
  .topbar {
    height: 88px;
    padding: 0 44px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .topbar .search-wrap {
    max-width: 490px;
    flex: 1;
  }
  .topbar-right {
    display: flex;
    gap: 14px;
    margin-left: auto;
    align-items: center;
  }
  .mobile-brand {
    display: none;
  }
  .avatar {
    height: 44px;
    width: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    background: var(--accent-light);
    color: var(--accent-text);
    font-size: 17px;
  }
  .content {
    max-width: 1360px;
    margin: auto;
    padding: 35px 44px 50px;
  }
  .page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
  }
  .page-heading p {
    margin-top: 9px;
  }
  .grid {
    display: grid;
    gap: 23px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(285px, 1fr);
  }
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 24px 0 35px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }
  .stat {
    padding: 20px 23px;
    border-right: 1px solid var(--line);
  }
  .stat:last-child {
    border: 0;
  }
  .stat strong {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 29px;
    display: block;
    margin-bottom: 4px;
  }
  .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 30px 0 16px;
  }
  .section-head:first-child {
    margin-top: 0;
  }
  .section-head .link {
    font-size: 12px;
  }
  .home-lower {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
  }
  .bottomnav {
    display: none;
  }
  .stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .row {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .grow {
    flex: 1;
    min-width: 0;
  }
  .field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .field {
    margin-bottom: 16px;
  }
  .gap-top {
    margin-top: 20px;
  }
  .spaced {
    margin: 20px 0;
  }
  .inline-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 13px;
  }
  .full {
    width: 100%;
  }
  .auth-layout {
    max-width: 1080px;
    min-height: 100svh;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 70px;
    padding: 50px;
  }
  .auth-copy h1 {
    font-size: 50px;
    margin: 35px 0 20px;
  }
  .auth-copy p {
    max-width: 390px;
  }
  .auth-copy img {
    margin-top: 32px;
    border-radius: 10px;
    width: 420px;
  }
  .auth-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 12px;
  }
  .loading {
    padding: 70px;
    text-align: center;
  }
  .loading p {
    margin-top: 20px;
  }
}
@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    min-height: 46px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .btn.secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .btn.olive {
    background: var(--olive);
    color: var(--white);
  }
  .btn.ghost {
    background: transparent;
    color: var(--accent-text);
    border: 1px solid var(--line);
  }
  .btn.danger {
    background: var(--brand-coral);
    color: #241814;
  }
  .btn.small {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 12px;
  }
  .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
    background: transparent;
  }
  .icon-btn:hover {
    background: var(--accent-light);
  }
  .link {
    background: none;
    color: var(--accent-text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0;
  }
  .search-wrap {
    position: relative;
  }
  .search-wrap svg {
    position: absolute;
    left: 13px;
    top: 14px;
    color: var(--muted);
  }
  .search-wrap input {
    padding-left: 41px;
    background: transparent;
    min-height: 47px;
  }
  .search-wrap input::placeholder {
    color: var(--muted);
  }
  .sample-banner {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    background: var(--blue-light);
    color: var(--blue-text);
    font-size: 11px;
    padding: 8px 15px;
    text-align: center;
  }
  .sample-banner button {
    background: transparent;
    text-decoration: underline;
    font-weight: 600;
    font-size: inherit;
  }
  .status {
    font-size: 11px;
    color: var(--olive);
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .status::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background: currentColor;
  }
  .status.pending {
    color: var(--coral-text);
  }
  .pill {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 5px 9px;
    border-radius: 4px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
    background: var(--surface-alt);
    color: var(--muted);
  }
  .pill.ready {
    background: var(--olive-light);
    color: var(--olive);
  }
  .pill.soon {
    background: var(--coral-light);
    color: var(--coral-text);
  }
  .pill.hold {
    background: var(--blue-light);
    color: var(--blue-text);
  }
  .pill.sample {
    background: var(--accent-light);
    color: var(--accent-text);
  }
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--hero);
    border-radius: 9px;
    overflow: hidden;
    min-height: 265px;
  }
  .hero-copy {
    padding: 30px 0 27px 28px;
    z-index: 1;
  }
  .hero .eyebrow {
    color: var(--muted);
  }
  .hero h2 {
    font-size: 31px;
    margin: 12px 0;
  }
  .hero p {
    font-size: 13px;
    color: var(--muted);
    max-width: 250px;
    margin-bottom: 21px;
  }
  .hero img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    min-width: 0;
  }
  .scan-card {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 9px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .scan-symbol {
    height: 51px;
    width: 51px;
    background: var(--accent-light);
    color: var(--accent-text);
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin-bottom: 16px;
  }
  .scan-card p {
    margin: 10px 0 21px;
    color: var(--muted);
    font-size: 13px;
  }
  .scan-card .small {
    margin-top: 10px;
    text-align: center;
  }
  .wine-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 19px;
    display: flex;
    gap: 18px;
    min-width: 0;
    cursor: pointer;
  }
  .wine-card:hover {
    border-color: var(--accent-text);
  }
  .label-image {
    width: 67px;
    height: 99px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    flex-shrink: 0;
  }
  .wine-card h3 {
    font-size: 19px;
    margin: 6px 0 5px;
  }
  .wine-card .meta {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
  }
  .wine-card .bottom {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }
  .wine-card .producer {
    font-size: 11px;
    color: var(--muted);
  }
  .bottle-count {
    font-size: 11px;
    color: var(--muted);
  }
  .wine-list {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }
  .wine-row {
    display: grid;
    grid-template-columns: 1fr 130px 120px 85px 90px 34px;
    gap: 13px;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    cursor: pointer;
  }
  .wine-row:first-child {
    border: 0;
  }
  .wine-row:hover {
    background: var(--paper);
  }
  .wine-row .label-image {
    width: 45px;
    height: 64px;
  }
  .wine-row.head {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--surface-alt);
    cursor: default;
    padding: 13px 20px;
  }
  .wine-row .title {
    font-family: var(--serif);
    font-size: 18px;
  }
  .wine-row .producer {
    color: var(--muted);
    font-size: 11px;
  }
  .table-cell {
    font-size: 12px;
  }
  .tasting-row {
    padding: 17px 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 15px;
    align-items: start;
  }
  .tasting-row:first-child {
    border: 0;
  }
  .rating {
    color: var(--accent-text);
    font-size: 12px;
    white-space: nowrap;
  }
  .tasting-row h3 {
    font-size: 18px;
    margin: 2px 0 6px;
  }
  .tasting-row p {
    font-size: 12px;
    color: var(--muted);
  }
  .tasting-row .label-image {
    width: 49px;
    height: 74px;
  }
  .panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 23px;
  }
  .panel > p {
    margin-top: 10px;
  }
  .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .chip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 9px 13px;
    min-height: 44px;
    font-size: 12px;
    color: var(--muted);
  }
  .chip.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
  }
  .filter-inputs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
  .filter-inputs select {
    font-size: 12px;
  }
  .empty {
    padding: 38px 22px;
    text-align: center;
    border: 1px dashed var(--strong-line);
    border-radius: 9px;
  }
  .empty h3 {
    margin: 12px 0 10px;
  }
  .empty p {
    max-width: 380px;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 13px;
  }
  .empty svg {
    color: var(--accent-text);
  }
  .notice {
    padding: 12px 15px;
    background: var(--blue-light);
    border-left: 3px solid var(--brand-blue);
    font-size: 12px;
    color: var(--blue-text);
    border-radius: 0 5px 5px 0;
  }
  .notice.error {
    background: var(--coral-light);
    border-color: var(--brand-coral);
    color: var(--coral-text);
  }
  .notice.success {
    background: var(--olive-light);
    color: var(--olive);
    border-color: var(--olive);
  }
  .upload-zone {
    display: grid;
    place-items: center;
    min-height: 230px;
    border: 1px dashed var(--strong-line);
    background: var(--surface-alt);
    border-radius: 9px;
    padding: 28px;
    text-align: center;
  }
  .upload-zone h2 {
    margin: 17px 0 11px;
  }
  .upload-zone p {
    color: var(--muted);
    font-size: 13px;
    max-width: 320px;
    margin: 0 auto 23px;
  }
  .scan-layout {
    max-width: 900px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
  }
  .review-label {
    width: 105px;
    height: 150px;
    object-fit: cover;
    border-radius: 3px;
    margin: auto;
  }
  .review-head {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
  }
  .review-head .review-label {
    margin: 0;
    width: 83px;
    height: 118px;
  }
  .review-head h2 {
    margin: 8px 0;
  }
  .segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 7px;
    margin: 18px 0;
    overflow: hidden;
  }
  .segmented button {
    padding: 13px 8px;
    min-height: 47px;
    background: var(--white);
    font-size: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .segmented button.active {
    background: var(--accent-light);
    color: var(--accent-text);
    font-weight: 600;
  }
  .checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 400;
    font-size: 13px;
    min-height: 44px;
  }
  .checkbox input {
    width: 19px;
    min-height: 19px;
    height: 19px;
    accent-color: var(--accent-text);
  }
  .checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
  }
  .checklist li {
    border-top: 1px solid var(--line);
    padding: 12px 0;
    display: flex;
    gap: 12px;
    align-items: start;
    font-size: 13px;
  }
  .checklist li svg {
    color: var(--olive);
    margin-top: 2px;
  }
  .checklist .todo {
    color: var(--muted);
  }
  .provenance {
    font-size: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .source-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
    margin-left: 8px;
  }
  .price-number {
    font-size: 28px;
    font-family: var(--serif);
  }
  .profile-header {
    display: flex;
    gap: 24px;
    align-items: center;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line);
  }
  .profile-header .label-image {
    width: 107px;
    height: 156px;
  }
  .profile-header h2 {
    font-size: 29px;
    margin: 8px 0;
  }
  .profile-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 22px 0;
  }
  .profile-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
  }
  .profile-facts dt {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .profile-facts dd {
    margin: 0;
    font-size: 13px;
  }
  .profile-price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--blue-light);
    border-radius: 6px;
    padding: 19px;
    margin: 22px 0;
  }
  .history-row {
    font-size: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }
  .history-row strong {
    font-weight: 600;
  }
  .dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  dialog {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 25px;
    width: min(680px, calc(100vw - 28px));
    max-height: 90svh;
    margin: auto;
    box-shadow: 0 15px 90px #34292230;
  }
  dialog::backdrop {
    background: #30282272;
    backdrop-filter: blur(2px);
  }
  #toast {
    position: fixed;
    z-index: 30;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #262622;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 25px #0002;
    padding: 14px 20px;
    max-width: 90vw;
    display: none;
    font-size: 13px;
  }
  #toast.visible {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  #toast button {
    background: transparent;
    color: var(--brand-green);
    font-weight: 600;
    min-height: 44px;
  }
  .map-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin: 10px 0;
  }
  .import-row {
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }
  .progress {
    height: 7px;
    background: var(--line);
    border-radius: 10px;
    margin: 12px 0;
    overflow: hidden;
  }
  .progress > i {
    display: block;
    background: var(--olive);
    height: 100%;
  }
  .wish-count {
    margin-left: auto;
    background: var(--accent-light);
    color: var(--accent-text);
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
    font-size: 10px;
  }
  .journal-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 23px;
    margin-bottom: 18px;
  }
  .journal-card blockquote {
    margin: 18px 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
  }
  .divider {
    text-align: center;
    position: relative;
    margin: 22px 0;
    color: var(--muted);
    font-size: 12px;
  }
  .day-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 24px 0 12px;
  }
  .feature-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 18px;
  }
  .footer-note {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin-top: 35px;
  }
  .list-btn {
    width: 100%;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 17px 0;
    text-align: left;
    background: none;
    border-bottom: 1px solid var(--line);
  }
  .list-btn svg {
    color: var(--accent-text);
  }
  .list-btn strong {
    font-size: 13px;
  }
  .list-btn p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
  }
  .google-g {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #4285f4;
  }
  .metric-bar {
    background: var(--line);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0;
  }
  .metric-bar > i {
    display: block;
    background: var(--accent);
    height: 100%;
  }
  .helper {
    font-size: 12px;
    color: var(--muted);
    margin-top: 7px;
  }
  .auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 23px;
    border-bottom: 1px solid var(--line);
  }
  .auth-tabs button {
    min-height: 46px;
    background: none;
    color: var(--muted);
    font-size: 13px;
  }
  .auth-tabs button.active {
    color: var(--accent-text);
    border-bottom: 2px solid var(--accent-text);
  }
}
@media (min-width: 1450px) {
  .content {
    padding-top: 43px;
  }
  .hero {
    min-height: 295px;
  }
  .hero-copy {
    padding: 38px 0 32px 35px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .wine-card {
    padding: 22px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 14px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-link {
    padding-bottom: 28px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .three-col {
    grid-template-columns: 1fr 1fr;
  }
  .three-col .wine-card:last-child {
    display: none;
  }
  .wine-row {
    grid-template-columns: 1fr 115px 90px 70px 30px;
  }
  .wine-row .location-cell {
    display: none;
  }
  .home-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .hero-copy {
    padding: 25px 0 23px 23px;
  }
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero h2 {
    font-size: 28px;
  }
  .stat {
    padding: 17px;
  }
  .home-lower {
    gap: 22px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 72px;
    padding: 0 22px;
    gap: 14px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-brand .brand {
    font-size: 24px;
  }
  .topbar > .search-wrap {
    display: none;
  }
  .topbar-right > .btn,
  .topbar-right > .status {
    display: none;
  }
  .content {
    padding: 26px 22px 100px;
  }
  .bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 6px 12px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: var(--white);
    border-top: 1px solid var(--line);
    z-index: 10;
  }
  .bottomnav button {
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 53px;
    color: var(--muted);
    font-size: 10px;
  }
  .bottomnav button.active {
    color: var(--accent-text);
    font-weight: 600;
  }
  .bottomnav button[data-page="scan"] {
    color: var(--accent-ink);
    position: relative;
    padding-top: 26px;
  }
  .bottomnav button[data-page="scan"] svg {
    position: absolute;
    top: -22px;
    background: var(--accent);
    width: 53px;
    height: 53px;
    padding: 14px;
    border-radius: 50%;
    border: 4px solid var(--paper);
  }
  .bottomnav button[data-page="scan"] span {
    color: var(--accent-text);
    padding-top: 5px;
  }
  .home-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .home-lower {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .hero {
    min-height: 240px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .scan-card {
    padding: 21px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat {
    padding: 16px;
  }
  .sample-banner {
    font-size: 10px;
  }
  #toast {
    bottom: 103px;
  }
  .auth-layout {
    gap: 35px;
    padding: 35px;
  }
  .auth-copy h1 {
    font-size: 39px;
  }
  .scan-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 25px 19px 110px;
  }
  .topbar {
    padding: 0 19px;
  }
  .page-heading {
    margin-bottom: 21px;
    align-items: start;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading .eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .page-heading .btn {
    padding: 11px 14px;
  }
  .page-heading .desktop-only {
    display: none;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .hero {
    min-height: 222px;
    grid-template-columns: 1.2fr 1fr;
  }
  .hero-copy {
    padding: 25px 0 23px 24px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero p {
    font-size: 12px;
    max-width: 200px;
  }
  .scan-card {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 19px;
  }
  .scan-card .scan-symbol {
    margin: 0;
    flex-shrink: 0;
  }
  .scan-card h2 {
    font-size: 23px;
  }
  .scan-card p {
    margin: 5px 0 12px;
    font-size: 12px;
  }
  .scan-card .small {
    display: none;
  }
  .scan-card .btn {
    min-height: 43px;
    padding: 9px 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin: 21px 0 28px;
  }
  .stat {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(3) {
    border-bottom: 0;
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat .small {
    font-size: 11px;
  }
  .three-col,
  .two-col,
  .home-lower {
    grid-template-columns: 1fr;
  }
  .three-col .wine-card:last-child {
    display: flex;
  }
  .home-lower {
    gap: 25px;
  }
  .section-head {
    margin-top: 25px;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .section-head .link {
    font-size: 11px;
  }
  .wine-card {
    padding: 18px;
    gap: 18px;
  }
  .wine-card .label-image {
    width: 63px;
    height: 91px;
  }
  .wine-card h3 {
    font-size: 21px;
  }
  .wine-card .producer {
    font-size: 12px;
  }
  .wine-card .meta {
    font-size: 11px;
  }
  .wine-row.head {
    display: none;
  }
  .wine-row {
    grid-template-columns: 1fr 85px 22px;
    padding: 17px 14px;
    gap: 7px;
  }
  .wine-row .price-cell,
  .wine-row .style-cell {
    display: none;
  }
  .wine-row .readiness-cell {
    font-size: 9px;
  }
  .wine-row .readiness-cell .pill {
    white-space: normal;
    line-height: 1.5;
    text-align: center;
  }
  .wine-row .title {
    font-size: 18px;
  }
  .wine-row .label-image {
    width: 43px;
    height: 63px;
  }
  .filter-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .filter-inputs select {
    min-height: 44px;
  }
  .filter-inputs label {
    font-size: 11px;
  }
  .scan-layout {
    grid-template-columns: 1fr;
  }
  .scan-layout > .panel:first-child {
    padding: 21px;
  }
  .scan-layout > .panel:last-child {
    padding: 21px;
  }
  .upload-zone {
    min-height: 250px;
  }
  .inline-fields {
    grid-template-columns: 1fr 1fr;
  }
  .inline-fields > .field:last-child {
    grid-column: 1/-1;
  }
  .panel {
    padding: 20px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 28px 22px;
  }
  .auth-copy h1 {
    font-size: 39px;
    margin: 24px 0 13px;
  }
  .auth-copy img {
    display: none;
  }
  .auth-card {
    padding: 23px;
  }
  .auth-copy .muted {
    font-size: 13px;
  }
  .profile-header {
    gap: 20px;
  }
  .profile-header h2 {
    font-size: 26px;
  }
  .profile-header .label-image {
    width: 79px;
    height: 117px;
  }
  .profile-facts {
    grid-template-columns: 1fr 1fr;
  }
  .profile-price {
    gap: 12px;
    padding: 17px;
  }
  .price-number {
    font-size: 26px;
  }
  dialog {
    padding: 21px;
    width: calc(100vw - 18px);
    max-height: 93svh;
    border-radius: 11px;
  }
  .dialog-head {
    margin-bottom: 18px;
  }
  .journal-card {
    padding: 19px;
  }
  .journal-card blockquote {
    font-size: 18px;
  }
  .row-between.wrap {
    flex-wrap: wrap;
  }
  .hide-mobile {
    display: none;
  }
  .footer-note {
    margin-top: 24px;
  }
  .field-grid {
    gap: 13px;
  }
  .map-row {
    gap: 14px;
  }
  .review-head {
    gap: 17px;
  }
  .review-head .review-label {
    width: 74px;
    height: 105px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1f2320;
  --white: #282e28;
  --ink: #f7f0e7;
  --muted: #b8bfb2;
  --line: #4c5648;
  --strong-line: #7d8976;
  --accent-text: #aad078;
  --accent-light: #35442a;
  --olive: #aad078;
  --coral-text: #f39d91;
  --coral-light: #4a302c;
  --blue-text: #b0cdd6;
  --blue-light: #2e4047;
  --surface-alt: #30372e;
  --hero: #30382b;
  --focus: #b0cdd6;
}
html[data-theme="dark"] .btn.olive {
  color: var(--accent-ink);
}
