/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-700: #bf000f;
    --color-rose-900: #8b0836;
    --color-rose-950: #4d0218;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-600: #57534d;
    --color-stone-900: #1c1917;
    --color-white: #fff;
    --spacing: .25rem;
    --container-sm: 24rem;
    --container-xl: 36rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-7xl: 4.5rem;
    --text-7xl--line-height: 1;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --tracking-tight: -.025em;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-body);
    --default-mono-font-family: var(--font-mono);
  }

  @supports (color: lab(0% 0 0)) {
    :root, :host {
      --color-red-700: lab(40.4273% 67.2623 53.7441);
      --color-rose-900: lab(29.7104% 51.514 12.6253);
      --color-rose-950: lab(14.2323% 34.0086 9.80922);
      --color-stone-50: lab(98.2686% -.0991821 .364304);
      --color-stone-100: lab(96.5286% -.0991821 .364268);
      --color-stone-200: lab(91.055% .663072 .865579);
      --color-stone-300: lab(84.7909% .928015 1.59738);
      --color-stone-600: lab(35.5168% 1.08604 4.07829);
      --color-stone-900: lab(9.03835% 1.15298 1.92955);
    }
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .static {
    position: static;
  }

  .isolate {
    isolation: isolate;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }

  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }

  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }

  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }

  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .block {
    display: block;
  }

  .grid {
    display: grid;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .min-h-11 {
    min-height: calc(var(--spacing) * 11);
  }

  .min-h-screen {
    min-height: 100vh;
  }

  .w-full {
    width: 100%;
  }

  .max-w-sm {
    max-width: var(--container-sm);
  }

  .max-w-xl {
    max-width: var(--container-xl);
  }

  .place-items-center {
    place-items: center;
  }

  .items-center {
    align-items: center;
  }

  .justify-center {
    justify-content: center;
  }

  :where(.space-y-5 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)));
  }

  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }

  .rounded-xl {
    border-radius: var(--radius-xl);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .border-stone-200 {
    border-color: var(--color-stone-200);
  }

  .border-stone-300 {
    border-color: var(--color-stone-300);
  }

  .bg-rose-950 {
    background-color: var(--color-rose-950);
  }

  .bg-stone-50 {
    background-color: var(--color-stone-50);
  }

  .bg-stone-100 {
    background-color: var(--color-stone-100);
  }

  .bg-white {
    background-color: var(--color-white);
  }

  .p-7 {
    padding: calc(var(--spacing) * 7);
  }

  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }

  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }

  .px-8 {
    padding-inline: calc(var(--spacing) * 8);
  }

  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }

  .py-12 {
    padding-block: calc(var(--spacing) * 12);
  }

  .text-center {
    text-align: center;
  }

  .font-serif {
    font-family: var(--font-serif);
  }

  .text-4xl {
    font-size: var(--text-4xl);
    line-height: var(--tw-leading, var(--text-4xl--line-height));
  }

  .text-7xl {
    font-size: var(--text-7xl);
    line-height: var(--tw-leading, var(--text-7xl--line-height));
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }

  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .leading-6 {
    --tw-leading: calc(var(--spacing) * 6);
    line-height: calc(var(--spacing) * 6);
  }

  .leading-8 {
    --tw-leading: calc(var(--spacing) * 8);
    line-height: calc(var(--spacing) * 8);
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .tracking-\[0\.18em\] {
    --tw-tracking: .18em;
    letter-spacing: .18em;
  }

  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }

  .text-red-700 {
    color: var(--color-red-700);
  }

  .text-rose-900 {
    color: var(--color-rose-900);
  }

  .text-stone-600 {
    color: var(--color-stone-600);
  }

  .text-stone-900 {
    color: var(--color-stone-900);
  }

  .text-white {
    color: var(--color-white);
  }

  .uppercase {
    text-transform: uppercase;
  }

  .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }

  @media (hover: hover) {
    .hover\:bg-rose-900:hover {
      background-color: var(--color-rose-900);
    }
  }

  .focus\:border-rose-900:focus {
    border-color: var(--color-rose-900);
  }

  .focus\:ring-2:focus {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .focus\:ring-rose-900\/15:focus {
    --tw-ring-color: #8b083626;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .focus\:ring-rose-900\/15:focus {
      --tw-ring-color: color-mix(in oklab, var(--color-rose-900) 15%, transparent);
    }
  }

  .focus\:ring-rose-900\/25:focus {
    --tw-ring-color: #8b083640;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .focus\:ring-rose-900\/25:focus {
      --tw-ring-color: color-mix(in oklab, var(--color-rose-900) 25%, transparent);
    }
  }

  .focus\:outline-none:focus {
    --tw-outline-style: none;
    outline-style: none;
  }

  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }

  .disabled\:opacity-60:disabled {
    opacity: .6;
  }
}

:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --background: #f7f3ea;
  --surface: #fffdf8;
  --surface-raised: #f1eadf;
  --foreground: #2b241f;
  --muted: #675f56;
  --border: #d8cec0;
  --primary: #74213a;
  --primary-hover: #61182f;
  --primary-contrast: #fffaf5;
  --secondary: #687261;
  --focus: #8c334e;
  --danger-foreground: #8f1d2c;
  --danger-surface: #f9e8e7;
  --danger-border: #a83742;
  --nav-height: 4.75rem;
  --rail-width: 12.5rem;
  --motion-fast: .18s;
}

.offline-page {
  width: min(42rem, 100% - 2rem);
  margin: 0 auto;
  padding: 12vh 0 4rem;
}

.offline-page ul {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
}

.offline-page li {
  margin-block: .65rem;
}

.pwa-update {
  z-index: 80;
  right: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  border: 1px solid var(--color-border, #d7cdbf);
  background: var(--color-paper, #f6f1e8);
  color: var(--color-ink, #29231f);
  border-radius: .75rem;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  display: flex;
  position: fixed;
  box-shadow: 0 .5rem 1.5rem #29231f1f;
}

.sync-status {
  background: var(--surface, #f7f2e8);
  border-bottom: 1px solid;
  align-items: center;
}

@supports (color: color-mix(in lab, red, red)) {
  .sync-status {
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  }
}

.sync-status {
  min-height: 2rem;
  padding: .25rem max(1rem, env(safe-area-inset-right));
  justify-content: flex-end;
  gap: .75rem;
  font-size: .8125rem;
  display: flex;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;
    --background: #171412;
    --surface: #201c19;
    --surface-raised: #2a241f;
    --foreground: #f4ede3;
    --muted: #c8bdb0;
    --border: #51473e;
    --primary: #d78ba1;
    --primary-hover: #e3a1b4;
    --primary-contrast: #211016;
    --secondary: #aebca5;
    --focus: #efa9bd;
    --danger-foreground: #ffb3b8;
    --danger-surface: #381f23;
    --danger-border: #d16b74;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  background: var(--background);
  min-width: 0;
  color: var(--foreground);
  font-family: var(--font-body, ui-sans-serif), "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  z-index: 100;
  border: 1px solid var(--primary);
  background: var(--surface);
  min-height: 2.75rem;
  color: var(--primary);
  transition: transform var(--motion-fast) ease-out;
  border-radius: .25rem;
  padding: .55rem 1rem;
  font-weight: 700;
  position: fixed;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  background: var(--background);
  min-height: 100dvh;
}

.app-main {
  min-width: 0;
  min-height: 100dvh;
  padding-block: clamp(2rem, 8vw, 5rem)
    calc(var(--nav-height) + env(safe-area-inset-bottom) + 2rem);
  padding-inline: max(1.25rem, env(safe-area-inset-left))
    max(1.25rem, env(safe-area-inset-right));
}

.app-content {
  width: min(100%, 55rem);
  margin-inline: auto;
}

.cellar-context {
  color: var(--muted);
  letter-spacing: .04em;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: clamp(4rem, 12vw, 8rem);
  font-size: .875rem;
  display: flex;
}

.page-intro {
  max-width: 45rem;
}

.eyebrow {
  color: var(--secondary);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
  font-size: .8125rem;
  font-weight: 700;
}

.page-intro h1, .empty-state h1 {
  letter-spacing: -.045em;
  text-wrap: balance;
  max-width: 13ch;
  margin: 0;
  font-family: ui-serif, Songti SC, SimSun, Noto Serif CJK SC, serif;
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.page-lede, .empty-state > p:last-child {
  max-width: 36rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.8;
}

.primary-link {
  border: 1px solid var(--primary);
  background: var(--primary);
  min-height: 2.75rem;
  color: var(--primary-contrast);
  transition: background-color var(--motion-fast) ease-out,
    border-color var(--motion-fast) ease-out;
  border-radius: .25rem;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin-top: 2rem;
  padding: .7rem 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.primary-link:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.app-nav {
  z-index: 40;
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 0 max(.5rem, env(safe-area-inset-right))
    env(safe-area-inset-bottom) max(.5rem, env(safe-area-inset-left));
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.app-wordmark {
  display: none;
}

.app-nav-list {
  height: var(--nav-height);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.app-nav-list li {
  min-width: 0;
}

.app-nav-link {
  min-width: 0;
  height: 100%;
  min-height: 2.75rem;
  color: var(--muted);
  touch-action: manipulation;
  transition: color var(--motion-fast) ease-out,
    background-color var(--motion-fast) ease-out;
  border-radius: .2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .15rem;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  display: flex;
  position: relative;
}

.app-nav-link svg {
  width: 1.35rem;
  height: 1.35rem;
}

.app-nav-link:hover {
  background: var(--surface-raised);
  color: var(--foreground);
}

.app-nav-link[aria-current="page"] {
  color: var(--primary);
  font-weight: 800;
}

.app-nav-indicator {
  background: none;
  border-radius: 0 0 .15rem .15rem;
  width: 1.75rem;
  height: .2rem;
  position: absolute;
  top: 0;
}

.app-nav-indicator[data-active-indicator] {
  background: currentColor;
}

.app-shell-message {
  place-items: center;
  padding: 2rem;
  display: grid;
}

.empty-state {
  width: min(100%, 38rem);
}

.wine-page > h1, .cellar-list h1, .wine-detail h1 {
  letter-spacing: -.04em;
  margin: 0;
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.wine-form {
  gap: 1.25rem;
  max-width: 46rem;
  margin-top: 2.5rem;
  display: grid;
}

.wine-form fieldset, .wine-form details, .duplicate-panel, .recovery-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  margin: 0;
  padding: 1.25rem;
}

.wine-form legend, .wine-form summary {
  color: var(--foreground);
  font-size: 1.05rem;
  font-weight: 750;
}

.wine-form summary {
  cursor: pointer;
  touch-action: manipulation;
  min-height: 2.75rem;
  padding: .55rem 0;
}

.details-body {
  padding-top: 1rem;
}

.field, .field-grid {
  gap: .45rem;
  display: grid;
}

.field + .field, .field-grid + .field, .field + .field-grid, .field-grid + .field-grid {
  margin-top: 1rem;
}

.field-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.field label {
  font-weight: 700;
}

.field input, .field select, .upload-input {
  border: 1px solid var(--border);
  background: var(--background);
  width: 100%;
  min-height: 2.75rem;
  color: var(--foreground);
  font: inherit;
  border-radius: .3rem;
  padding: .65rem .75rem;
  font-size: 1rem;
}

.upload-input {
  width: 100%;
  margin-top: .75rem;
  display: block;
}

.field-help {
  color: var(--muted);
  margin: .3rem 0 0;
  font-size: .875rem;
}

.form-error {
  border: 1px solid var(--danger-border);
  background: var(--danger-surface);
  color: var(--danger-foreground);
  border-radius: .3rem;
  padding: .85rem 1rem;
  font-weight: 650;
}

.form-actions {
  flex-wrap: wrap;
  gap: .75rem;
  display: flex;
}

.enrichment-button {
  align-self: flex-start;
  margin-top: .55rem;
}

.candidate-review {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .3rem;
  padding: 1rem;
}

.candidate-review h2 {
  font-family: var(--font-display);
  margin: 0;
}

.candidate-review > ul {
  gap: .65rem;
  margin: .75rem 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.candidate-review li {
  border-top: 1px solid var(--border);
  padding-top: .65rem;
}

.candidate-review label {
  cursor: pointer;
  align-items: flex-start;
  gap: .65rem;
  min-height: 2.75rem;
  display: flex;
}

.candidate-review input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .1rem;
}

.candidate-sources {
  color: var(--muted);
  margin-left: 1.9rem;
  font-size: .875rem;
}

.candidate-sources a {
  color: var(--primary);
  margin-right: .6rem;
  text-decoration: underline;
}

.primary-button, .secondary-button, .quiet-button, .upload-picker, .secondary-link {
  border: 1px solid var(--primary);
  min-height: 2.75rem;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: .3rem;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  font-weight: 750;
  display: inline-flex;
}

.primary-button {
  background: var(--primary);
  color: var(--primary-contrast);
}

.secondary-button, .quiet-button, .secondary-link, .upload-picker {
  color: var(--primary);
  background: none;
  text-decoration: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.visually-hidden {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.upload-preview {
  justify-items: start;
  gap: .75rem;
  margin-top: 1rem;
  display: grid;
}

.upload-preview img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--surface-raised);
  border-radius: .35rem;
  width: min(15rem, 100%);
  height: auto;
}

.duplicate-panel h2 {
  margin-top: 0;
}

.duplicate-panel ul {
  padding-left: 1.25rem;
}

.list-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
}

.list-heading .primary-link {
  margin-top: 0;
}

.wine-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  display: grid;
}

.wine-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  min-width: 0;
  overflow: hidden;
}

.wine-card-link {
  min-height: 2.75rem;
  text-decoration: none;
  display: block;
}

.wine-card-image, .wine-image-placeholder {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-raised);
  width: 100%;
  height: auto;
  color: var(--secondary);
  letter-spacing: .08em;
  place-items: center;
  font-family: ui-serif, serif;
  display: grid;
}

.wine-card-body {
  padding: 1rem;
}

.wine-card h2, .wine-card p {
  margin: 0;
}

.wine-card h2 {
  font-family: ui-serif, serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.search-page, .review-page {
  gap: 2rem;
  display: grid;
}

.search-form {
  gap: 1rem;
  margin-top: 1rem;
  display: grid;
}

.search-row > div {
  gap: .75rem;
  display: flex;
}

.search-row input {
  flex: 1;
  min-width: 0;
}

.search-filters {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  padding: 1rem;
}

.search-filters summary {
  cursor: pointer;
  min-height: 2.75rem;
  padding: .55rem 0;
  font-weight: 750;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
  padding-block: 1rem;
  display: grid;
}

.check-group {
  border: 1px solid var(--border);
  border-radius: .3rem;
  min-width: 0;
  margin: 0;
  padding: .75rem;
}

.check-group legend {
  padding-inline: .25rem;
  font-weight: 700;
}

.check-group label {
  cursor: pointer;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  display: flex;
}

.check-group input {
  block-size: 1.2rem;
  inline-size: 1.2rem;
  accent-color: var(--primary);
}

.filter-chips {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.filter-chips .filter-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 99rem;
  padding: .35rem .65rem;
  font-size: .875rem;
  text-decoration: none;
}

.filter-chips a {
  min-height: 2.75rem;
  color: var(--primary);
  align-items: center;
  padding: .55rem;
  display: inline-flex;
}

.results-heading {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  display: flex;
}

.results-heading h2 {
  font-family: ui-serif, serif;
  font-size: 1.75rem;
}

.results-heading p, .wine-card-meta, .muted-copy {
  color: var(--muted);
}

.pagination {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.pagination a {
  min-height: 2.75rem;
  color: var(--primary);
  align-items: center;
  padding: .5rem .75rem;
  display: inline-flex;
}

.summary-cards {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  display: grid;
}

.summary-cards article, .summary-list, .trend-section {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  padding: 1.25rem;
}

.summary-cards p {
  color: var(--muted);
  margin: 0;
}

.summary-cards strong {
  font-variant-numeric: tabular-nums;
  margin-top: .25rem;
  font-family: ui-serif, serif;
  font-size: 2rem;
  display: block;
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  display: grid;
}

.summary-list h2, .trend-section h2 {
  margin-top: 0;
  font-family: ui-serif, serif;
}

.summary-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  border-top: 1px solid var(--border);
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  display: flex;
}

.trend-bars {
  gap: .65rem;
  display: grid;
}

.trend-bars > div {
  font-variant-numeric: tabular-nums;
  grid-template-columns: 5rem 1fr 2rem;
  align-items: center;
  gap: .75rem;
  display: grid;
}

.trend-bars i {
  background: var(--primary);
  border-radius: 99rem;
  min-height: .75rem;
  display: block;
}

@media (max-width: 34rem) {
  .search-row > div {
    flex-direction: column;
  }

  .search-row button {
    width: 100%;
  }
}

.wine-card-body p, .wine-card-meta {
  color: var(--muted);
  margin-top: .3rem;
}

.wine-detail-hero {
  align-items: center;
  gap: 2rem;
  display: grid;
}

.wine-detail-hero > img, .wine-image-placeholder.detail {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  object-fit: contain;
  border-radius: .4rem;
  width: min(100%, 24rem);
  height: auto;
}

.wine-detail-producer {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  font-size: 1.125rem;
}

.wine-facts {
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0;
  margin: 3rem 0;
  display: grid;
}

.wine-facts div {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.wine-facts dt {
  color: var(--muted);
  font-size: .875rem;
}

.wine-facts dd {
  margin: .25rem 0 0;
}

.tasting-placeholder {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
}

.tasting-placeholder h2, .tasting-placeholder p {
  margin: 0;
}

.tasting-section {
  margin-top: clamp(3rem, 10vw, 6rem);
}

.section-heading {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-bottom: 1rem;
  display: flex;
}

.section-heading h2 {
  margin: 0;
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-size: clamp(1.8rem, 6vw, 2.75rem);
  font-weight: 500;
}

.primary-link.compact {
  margin: 0;
}

.tasting-empty {
  color: var(--muted);
  padding: 2rem 0;
}

.tasting-timeline {
  gap: 1.25rem;
  margin: 0;
  padding: 1.5rem 0 0;
  list-style: none;
  display: grid;
}

.tasting-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  padding: 1.25rem;
}

.tasting-card header {
  justify-content: space-between;
  gap: 1rem;
  display: flex;
}

.tasting-card header time {
  font-size: 1.125rem;
  font-weight: 750;
}

.tasting-card header p, .tasting-context, .sensory-summary, .drink-again {
  color: var(--muted);
  margin: .2rem 0 0;
  font-size: .875rem;
}

.tasting-card header strong {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
}

.tasting-card header small {
  font-size: .75rem;
}

.tasting-body {
  white-space: pre-wrap;
  max-width: 70ch;
}

.sensory-summary {
  border-block: 1px solid var(--border);
  padding: .65rem 0;
}

.tasting-form textarea {
  resize: vertical;
  width: 100%;
}

.sensory-grid {
  gap: 1rem;
  padding-top: 1rem;
  display: grid;
}

.sensory-scale {
  border: 1px solid var(--border);
  border-radius: .3rem;
  margin: 0;
  padding: 1rem;
}

.sensory-options {
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  display: grid;
}

.sensory-options label {
  cursor: pointer;
  min-width: 0;
}

.sensory-options input {
  opacity: 0;
  position: absolute;
}

.sensory-options span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .25rem;
  place-items: center;
  min-height: 2.75rem;
  display: grid;
}

.sensory-options input:checked + span {
  border-color: var(--primary);
  background: var(--surface-raised);
  color: var(--primary);
  font-weight: 800;
}

.sensory-options input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.scale-anchors {
  color: var(--muted);
  justify-content: space-between;
  font-size: .75rem;
  display: flex;
}

.clear-button {
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 2.75rem;
  color: var(--foreground);
  cursor: pointer;
  border-radius: .25rem;
  padding: .45rem .75rem;
}

.clear-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.score-row {
  gap: .75rem;
  display: flex;
}

.score-row input {
  flex: 1;
  min-width: 0;
}

.checkbox-field {
  cursor: pointer;
  align-items: center;
  gap: .75rem;
  min-height: 2.75rem;
  display: flex;
}

.checkbox-field input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
}

.field-error {
  color: var(--danger-foreground);
  margin: .35rem 0 0;
}

@media (min-width: 42rem) {
  .sensory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tasting-placeholder p {
  color: var(--muted);
  margin-top: .5rem;
}

@media (min-width: 40rem) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wine-detail-hero {
    grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 48rem) {
  .app-main {
    padding-inline: max(2.5rem, env(safe-area-inset-left))
      max(2.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 64rem) {
  .app-nav {
    width: var(--rail-width);
    border-top: 0;
    border-right: 1px solid var(--border);
    min-height: 100dvh;
    padding: 2.25rem 1.25rem;
    top: 0;
    right: auto;
  }

  .app-wordmark {
    color: var(--primary);
    letter-spacing: -.03em;
    margin: 0 0 3rem .75rem;
    font-family: ui-serif, Georgia, Times New Roman, serif;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
  }

  .app-nav-list {
    flex-direction: column;
    gap: .5rem;
    height: auto;
    display: flex;
  }

  .app-nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: .8rem;
    min-height: 3.25rem;
    padding: .75rem .9rem;
    font-size: .9375rem;
  }

  .app-nav-indicator {
    border-radius: 0 .15rem .15rem 0;
    width: .22rem;
    height: 1.75rem;
    top: 50%;
    left: -1.25rem;
    transform: translateY(-50%);
  }

  .app-main {
    margin-left: var(--rail-width);
    padding-block: clamp(3rem, 7vw, 6rem);
    padding-inline: max(clamp(3rem, 7vw, 7rem), env(safe-area-inset-left))
      max(clamp(3rem, 7vw, 7rem), env(safe-area-inset-right));
  }

  .cellar-context {
    margin-bottom: clamp(5rem, 10vh, 8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-leading {
  syntax: "*";
  inherits: false
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-tracking {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/