/* [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-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-border-style: solid;
      --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-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-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-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-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);
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .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);
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .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-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .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-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;
  align-items: start;
  gap: 1rem;
}

.field-grid > .field + .field {
  margin-top: 0;
}

.field label {
  font-weight: 700;
}

.field input, .field select, .field textarea, .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;
}

.field input, .field select {
  height: 2.75rem;
}

.field textarea {
  resize: vertical;
}

.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: 1;
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--surface-raised);
  border-radius: .35rem;
  width: min(15rem, 100%);
  height: auto;
}

.crop-dialog-backdrop {
  z-index: 100;
  background: #14100eb8;
  place-items: center;
  padding: 1rem;
  display: grid;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.crop-dialog {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: .5rem;
  width: min(100%, 34rem);
  padding: 1rem;
  box-shadow: 0 1rem 3rem #0000004d;
}

.crop-dialog h2 {
  margin: 0 0 .65rem;
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-size: 1.35rem;
}

.crop-controls {
  gap: .5rem;
  margin-bottom: .65rem;
  display: grid;
}

.crop-control-row {
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  display: grid;
}

.crop-control-label {
  color: var(--muted);
  font-size: .78rem;
}

.crop-rotate-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  display: flex;
}

.crop-rotate-tools button {
  border: 1px solid var(--border);
  min-width: 2rem;
  min-height: 2rem;
  color: var(--foreground);
  background: var(--surface);
  border-radius: .35rem;
  place-items: center;
  padding: .3rem .55rem;
  font-size: .78rem;
  line-height: 1;
  display: inline-grid;
}

.crop-rotate-tools output {
  text-align: center;
  min-width: 2.6rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}

.crop-rotate-tools .crop-reset-angle {
  min-width: auto;
  color: var(--muted);
  margin-left: .15rem;
  padding-inline: .5rem;
}

.crop-selection-tools {
  flex-wrap: wrap;
  gap: .35rem;
  display: flex;
}

.crop-square-reset, .crop-aspect-toggle {
  border: 1px solid var(--border);
  width: fit-content;
  min-height: 2rem;
  color: var(--foreground);
  background: var(--surface);
  border-radius: .35rem;
  padding: .35rem .7rem;
  font-size: .78rem;
}

.crop-aspect-toggle[aria-pressed="true"] {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .crop-aspect-toggle[aria-pressed="true"] {
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  }
}

.crop-aspect-toggle {
  place-items: center;
  width: 2rem;
  min-width: 2rem;
  padding: 0;
  display: inline-grid;
}

.crop-viewport {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  -webkit-user-select: none;
  user-select: none;
  background: #211e1c;
  border-radius: .35rem;
  place-items: center;
  width: 100%;
  display: grid;
  position: relative;
  overflow: hidden;
}

.crop-image-stage {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  outline: 1px solid #ffffff47;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.crop-image-stage:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.crop-image-bounds {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.crop-image {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  max-width: none;
  max-height: none;
  position: absolute;
}

.crop-selection {
  z-index: 1;
  cursor: move;
  touch-action: none;
  position: absolute;
  box-shadow: 0 0 0 100vmax #00000085;
}

.crop-grid {
  pointer-events: none;
  background: linear-gradient(to right, #0000 33.1%, #ffffff6b 33.3% 33.6%, #0000 33.8% 66.1%, #ffffff6b 66.3% 66.6%, #0000 66.8%), linear-gradient(#0000 33.1%, #ffffff6b 33.3% 33.6%, #0000 33.8% 66.1%, #ffffff6b 66.3% 66.6%, #0000 66.8%);
  border: 2px solid #ffffffe0;
  position: absolute;
  inset: 0;
}

.crop-handle {
  z-index: 2;
  touch-action: none;
  background: none;
  border: 0;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  position: absolute;
}

.crop-handle:after {
  content: "";
  background: #fff;
  border: 2px solid #2e2723bf;
  border-radius: 999px;
  width: .72rem;
  height: .72rem;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px #00000059;
}

.crop-handle-n {
  cursor: ns-resize;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.crop-handle-ne {
  cursor: nesw-resize;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.crop-handle-e {
  cursor: ew-resize;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.crop-handle-se {
  cursor: nwse-resize;
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);
}

.crop-handle-s {
  cursor: ns-resize;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.crop-handle-sw {
  cursor: nesw-resize;
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

.crop-handle-w {
  cursor: ew-resize;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

.crop-handle-nw {
  cursor: nwse-resize;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.crop-dialog .form-actions {
  justify-content: space-between;
  margin-top: .8rem;
}

@media (max-width: 40rem) {
  .crop-dialog-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .crop-dialog {
    width: 100%;
    min-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    display: grid;
  }

  .crop-dialog h2 {
    text-align: center;
    align-self: start;
    margin: 0;
  }

  .crop-controls {
    align-self: start;
    width: 100%;
    margin: 0;
  }

  .crop-viewport {
    place-self: center;
    width: min(100%, max(14rem, 100dvh - 15rem));
  }

  .crop-dialog .form-actions {
    align-self: end;
  }
}

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

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

.cuisine-combobox, .wine-core-fieldset {
  position: relative;
}

.wine-core-fieldset > .field-help {
  padding-right: 7rem;
}

.cuisine-refresh-button {
  z-index: 1;
  min-height: 2rem;
  padding: .4rem .7rem;
  font-size: .82rem;
  line-height: 1;
  position: absolute;
  top: .65rem;
  right: 1rem;
}

.cuisine-suggestions {
  z-index: 30;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: .4rem;
  max-height: min(24rem, 60vh);
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 .8rem 2rem #231c1629;
}

.cuisine-suggestion-choice {
  width: 100%;
  color: var(--foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 0;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .8rem .9rem;
  text-decoration: none;
  display: flex;
}

.cuisine-suggestion-choice + .cuisine-suggestion-choice {
  border-top: 1px solid var(--border);
}

.cuisine-suggestion-choice.active, .cuisine-suggestion-choice:hover, .cuisine-suggestion-choice:focus-visible {
  background: var(--surface);
  outline-offset: -2px;
}

.cuisine-suggestion-choice > div {
  gap: .15rem;
  min-width: 0;
  display: grid;
}

.cuisine-suggestion-choice span {
  color: var(--muted);
  font-size: .88rem;
}

.cuisine-suggestion-choice .cuisine-suggestion-action {
  color: var(--primary);
  flex: none;
  font-weight: 700;
}

.cuisine-suggestion-imported {
  cursor: default;
  gap: 0;
  padding: 0;
}

.cuisine-suggestion-imported > button {
  min-width: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .8rem .9rem;
  display: flex;
}

.cuisine-suggestion-imported > button > div {
  gap: .15rem;
  min-width: 0;
  display: grid;
}

.cuisine-suggestion-imported > a {
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: .3rem;
  flex: none;
  margin-right: .75rem;
  padding: .45rem .6rem;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.cuisine-no-suggestion {
  color: var(--muted);
  margin: 0;
  padding: 1rem;
}

.cuisine-import-summary {
  border-top: 1px solid var(--border);
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
}

.wine-notes {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  margin: 1.5rem 0 3rem;
  padding: 1.25rem;
}

.wine-notes h2 {
  margin: 0;
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-weight: 500;
}

.wine-notes p {
  white-space: pre-wrap;
  margin: .75rem 0 0;
}

.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: contain;
  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;
}

@media (max-width: 39.999rem) {
  .list-heading {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .wine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

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

  .wine-card h2 {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    overflow: hidden;
  }

  .wine-card-body p, .wine-card-meta {
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: .2rem;
    font-size: .76rem;
    line-height: 1.4;
    overflow: hidden;
  }
}

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

.search-form {
  gap: .75rem;
  display: grid;
}

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

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

.search-filters {
  border-block: 1px solid var(--border);
  background: none;
}

.search-filters > summary {
  min-height: 2.75rem;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  gap: .5rem;
  padding: .6rem 0;
  font-weight: 700;
  list-style-position: inside;
  display: flex;
}

.search-filters > summary span {
  background: var(--surface-raised);
  min-width: 1.4rem;
  height: 1.4rem;
  color: var(--muted);
  border-radius: 99rem;
  place-items: center;
  padding-inline: .35rem;
  font-size: .75rem;
  display: inline-grid;
}

.filter-section {
  border-top: 1px solid var(--border);
  padding: .8rem 0;
}

.filter-section h2 {
  color: var(--muted);
  margin: 0 0 .65rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
}

.filter-section-last {
  padding-bottom: .25rem;
}

.filter-grid {
  gap: .7rem;
  display: grid;
}

.filter-grid-origin, .filter-grid-ranges {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.filter-grid-footer {
  grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr);
  align-items: end;
}

.check-group {
  border: 0;
  flex-wrap: wrap;
  gap: .4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

.check-group legend:not(.visually-hidden) {
  width: 100%;
  color: var(--muted);
  padding: 0 0 .35rem;
  font-size: .85rem;
  font-weight: 700;
}

.check-group label {
  cursor: pointer;
  min-height: 2.25rem;
  display: inline-flex;
  position: relative;
}

.check-group input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.check-group label span {
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  border-radius: 99rem;
  align-items: center;
  padding: .35rem .7rem;
  font-size: .875rem;
  display: inline-flex;
}

.check-group input:checked + span {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .check-group input:checked + span {
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  }
}

.check-group input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.filter-actions {
  border-top: 1px solid var(--border);
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  display: flex;
}

.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: 48rem) {
  .filter-grid-origin, .filter-grid-ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .search-row > div {
    gap: .5rem;
  }

  .search-row button {
    flex: none;
  }

  .filter-grid-footer {
    grid-template-columns: 1fr;
  }

  .filter-section {
    padding-block: .65rem;
  }

  .filter-actions {
    justify-content: space-between;
  }
}

.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;
  background: var(--surface-raised);
  border-radius: .4rem;
  width: min(100%, 24rem);
  height: auto;
}

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

.wine-detail-actions {
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-top: 1.5rem;
  display: flex;
}

.wine-fact-groups {
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.wine-facts {
  gap: 0;
  margin: 0;
  display: grid;
}

.wine-facts-primary {
  grid-template-columns: minmax(4.5rem, .8fr) minmax(0, 1.8fr) minmax(4rem, .65fr);
}

.wine-facts-composition {
  grid-template-columns: minmax(0, 2fr) minmax(5rem, .7fr);
}

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

.wine-facts div + div {
  padding-left: 1rem;
}

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

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

.wine-vintage-family {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  align-items: center;
  gap: 1rem;
  margin: -1rem 0 2.5rem;
  padding: 1rem 1.15rem;
  display: grid;
}

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

.wine-vintage-family h2 {
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-weight: 500;
}

.wine-vintage-family p {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .88rem;
}

.wine-vintage-family nav, .vintage-review-nav {
  flex-wrap: wrap;
  gap: .45rem;
  display: flex;
}

.wine-vintage-family nav a, .vintage-review-nav a {
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: 999px;
  padding: .38rem .65rem;
  font-weight: 700;
  text-decoration: none;
}

.wine-vintage-family nav a[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.vintage-review-page {
  max-width: 62rem;
}

.vintage-review-nav {
  margin: 1.5rem 0 2rem;
}

.vintage-review-list {
  gap: 2rem;
  display: grid;
}

.vintage-review-group {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: .4rem;
  padding: 1.25rem;
  scroll-margin-top: 1.5rem;
}

.vintage-review-group > header {
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.vintage-review-group > header img, .vintage-review-group > header .wine-image-placeholder {
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface-raised);
  border-radius: .35rem;
  width: 5.5rem;
}

.vintage-review-group > header h2 {
  margin: 0;
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-size: 2rem;
  font-weight: 500;
}

.vintage-review-group > header p {
  color: var(--muted);
  margin: .25rem 0 0;
}

.vintage-review-group > header .secondary-link {
  margin-top: .65rem;
  display: inline-block;
}

.vintage-review-group .tasting-section {
  margin-top: 2rem;
}

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

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

.purchase-section, .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;
}

.purchase-list {
  gap: 1rem;
  margin: 0;
  padding: 1.5rem 0 0;
  list-style: none;
  display: grid;
}

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

.purchase-card header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem 1.5rem;
  display: flex;
}

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

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

.purchase-card > p {
  color: var(--muted);
}

.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 {
  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;
}

.record-actions {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .2rem;
  margin-top: 1rem;
  padding-top: .65rem;
  display: flex;
}

.record-action-link, .record-delete-button, .wine-delete-button {
  min-height: 2.5rem;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border: 0;
  border-radius: .35rem;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: .42rem .65rem;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
}

.record-action-link {
  color: var(--primary);
}

.record-delete-button, .wine-delete-button {
  color: var(--danger-foreground);
}

.record-action-link:hover {
  background: var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .record-action-link:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
  }
}

.record-delete-button:hover, .wine-delete-button:hover {
  background: var(--danger-surface);
}

.record-actions .action-error {
  flex-basis: 100%;
  margin: .4rem 0 0;
}

.wine-danger-zone {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  margin-top: clamp(3.5rem, 10vw, 6rem);
  padding-top: 1rem;
  display: flex;
}

.wine-danger-zone .action-error {
  flex-basis: 100%;
  margin: .4rem 0 0;
}

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

.wine-form .tasting-scorecard {
  padding: .85rem 1rem;
}

.tasting-scorecard > summary {
  min-height: 2.25rem;
  padding: .35rem 0;
}

.tasting-scorecard-body {
  gap: .7rem;
  padding-top: .45rem;
  display: grid;
}

.tasting-scorecard-body > fieldset {
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  border-radius: 0;
  padding: 0 0 .7rem;
}

.tasting-scorecard-body > fieldset:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tasting-scorecard-body > fieldset > legend {
  color: var(--muted);
  padding: 0;
  font-size: .9rem;
}

.sensory-grid {
  gap: .55rem .75rem;
  padding-top: .4rem;
  display: grid;
}

.sensory-scale {
  min-width: 0;
  margin: 0;
  padding: .15rem 0 .3rem;
}

.sensory-scale-sweetness, .sensory-scale-qualityLevel {
  grid-column: 1 / -1;
}

.sensory-scale-header {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  min-height: 1.5rem;
  margin-bottom: .3rem;
  display: flex;
}

.sensory-scale-label {
  font-size: .85rem;
  font-weight: 750;
}

.sensory-options {
  border: 1px solid var(--border);
  border-radius: .3rem;
  gap: 0;
  min-width: 0;
  display: grid;
  overflow: hidden;
}

.sensory-options-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sensory-options-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sensory-options-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sensory-options-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

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

.sensory-options span {
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 0;
  place-items: center;
  min-width: 0;
  min-height: 2.5rem;
  padding-inline: .1rem;
  font-size: clamp(.72rem, 2vw, .88rem);
  display: grid;
}

.sensory-options label + label span {
  border-left: 1px solid var(--border);
}

.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: -3px;
}

.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: 1.65rem;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  border-radius: 99rem;
  flex: none;
  padding: .18rem .45rem;
  font-size: .72rem;
  line-height: 1;
}

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

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

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

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

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

@media (max-width: 41.999rem) {
  .wine-form .tasting-scorecard {
    padding: .7rem .8rem;
  }

  .tasting-scorecard-body {
    gap: .5rem;
    padding-top: .3rem;
  }

  .tasting-scorecard-body > fieldset {
    padding-bottom: .55rem;
  }

  .sensory-grid {
    gap: .4rem;
    padding-top: .3rem;
  }

  .sensory-scale {
    padding-block: .1rem .2rem;
  }

  .sensory-scale-header {
    margin-bottom: .25rem;
  }

  .sensory-options span {
    min-height: 2.35rem;
  }
}

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

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

  .wine-details-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(7rem, .65fr) minmax(8rem, 1fr);
  }

  .wine-origin-grid {
    grid-template-columns: repeat(3, 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-rotate-x {
  syntax: "*";
  inherits: false
}

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

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

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

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

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

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

@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
}

/* [project]/src/app/experience.css [app-client] (css) */
.app-nav {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: stretch;
  display: grid;
}

.app-nav-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-sign-out {
  width: 100%;
  height: var(--nav-height);
  cursor: pointer;
  background: none;
  border: 0;
  margin: 0;
  padding: 0 .25rem;
  font-family: inherit;
}

:is(.app-content:has(.cellar-list), .app-content:has(.wine-detail-page)) {
  width: min(100%, 68rem);
}

.cellar-list-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .65rem;
  display: flex;
}

.cellar-list-actions .primary-link {
  height: 2.625rem;
  min-height: 2.625rem;
  margin: 0;
  padding: .55rem .85rem;
}

.wine-view-switch {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .35rem;
  height: 2.75rem;
  padding: .2rem;
  display: inline-flex;
}

.wine-view-switch a {
  height: 100%;
  min-height: 0;
  color: var(--muted);
  border-radius: .25rem;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.wine-view-switch a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--primary);
}

.wine-name-list {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.wine-name-list li {
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.wine-name-list a {
  touch-action: manipulation;
  grid-template-columns: minmax(0, 1.25fr) minmax(12rem, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 3.7rem;
  padding: .7rem .8rem;
  text-decoration: none;
  display: grid;
}

.wine-name-list a:hover {
  background: var(--surface);
}

.wine-name-list span {
  min-width: 0;
  display: grid;
}

.wine-name-list strong, .wine-name-list small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.wine-name-list strong {
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-size: 1.08rem;
}

.wine-name-list small {
  color: var(--muted);
  font-size: .8rem;
}

.wine-name-meta {
  text-align: right;
}

.wine-card-link {
  touch-action: manipulation;
  flex-direction: column;
  height: 100%;
  display: flex;
}

.wine-card-image {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  flex: none;
}

.wine-card {
  border-color: color-mix(in srgb, var(--border) 82%, transparent);
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
  border-radius: .65rem;
  box-shadow: 0 1px 1px #2b241f0a;
}

.wine-card-body {
  flex-direction: column;
  flex: 1;
  min-height: 8.5rem;
  padding: .85rem .9rem .75rem;
  display: flex;
}

.wine-card-main {
  gap: .2rem;
  min-width: 0;
  display: grid;
}

.wine-card-title {
  align-items: flex-start;
  gap: .45rem;
  min-width: 0;
  display: flex;
}

.wine-card h2 {
  min-width: 0;
  color: var(--foreground);
  letter-spacing: .01em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
  font-family: ui-serif, Songti SC, SimSun, serif;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.34;
  display: -webkit-box;
  overflow: hidden;
}

.wine-card-top10 {
  color: #b77a18;
  flex: none;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
}

.wine-card-top10 svg, .wine-card-top10 strong {
  grid-area: 1 / 1;
}

.wine-card-top10:not(.wine-card-top10-rank) svg {
  filter: drop-shadow(0 1px 1px #4b311029);
  stroke-width: 2px;
  width: 1.15rem;
  height: 1.15rem;
}

.wine-card-top10-rank {
  font-variant-numeric: tabular-nums;
  width: 1.65rem;
  height: 1.65rem;
}

.wine-card-top10-rank svg {
  filter: drop-shadow(0 1px 1px #2b241f1f);
  stroke-width: 1.8px;
  width: 1.65rem;
  height: 1.65rem;
}

.wine-card-top10-rank strong {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .56rem;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-.27rem);
}

.wine-card-top10-rank-1 {
  color: #c58a18;
}

.wine-card-top10-rank-2 {
  color: #7d8b96;
}

.wine-card-top10-rank-3 {
  color: #a7653d;
}

.wine-card-classification {
  align-items: center;
  gap: .35rem;
  min-width: 0;
  margin-top: .32rem;
  display: flex;
}

.wine-card-vintage, .wine-card-type {
  white-space: nowrap;
  align-items: center;
  min-height: 1.35rem;
  font-size: .72rem;
  line-height: 1;
  display: inline-flex;
}

.wine-card-vintage {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
}

.wine-card-type {
  background: color-mix(in srgb, var(--secondary) 10%, transparent);
  color: color-mix(in srgb, var(--secondary) 90%, var(--foreground));
  text-overflow: ellipsis;
  border-radius: 99rem;
  padding: .2rem .4rem;
  font-weight: 700;
  overflow: hidden;
}

.wine-card-body .wine-card-origin {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: .22rem;
  font-size: .75rem;
  line-height: 1.4;
  overflow: hidden;
}

.wine-card-activity {
  border-top: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
  min-width: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: .35rem;
  margin-top: auto;
  padding-top: .55rem;
  font-size: .7rem;
  line-height: 1.2;
  display: grid;
}

.wine-card-tasting-count, .wine-card-tasting-date, .wine-card-tasting-score {
  white-space: nowrap;
  min-width: 0;
}

.wine-card-tasting-count {
  text-overflow: ellipsis;
  overflow: hidden;
}

.wine-card-tasting-date {
  text-align: center;
}

.wine-card-tasting-date time {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.wine-card-tasting-score {
  text-align: right;
}

.wine-card-tasting-score strong {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
}

.wine-card-tasting-score strong small {
  margin-left: .08rem;
  font-size: .64rem;
  font-weight: 650;
}

@media (hover: hover) and (pointer: fine) {
  .wine-card:hover {
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    transform: translateY(-2px);
    box-shadow: 0 .4rem 1.1rem #2b241f14;
  }
}

.results-heading > div > h2, .results-heading > div > p {
  margin-block: 0;
}

.cellar-context {
  justify-content: flex-end;
  min-height: 1.5rem;
  margin-bottom: 1rem;
  font-size: .78rem;
}

.cellar-context:has( + .cellar-list) {
  min-height: 1.25rem;
  margin-bottom: .35rem;
}

.search-row > div {
  align-items: center;
}

.search-row input {
  height: 2.75rem;
  min-height: 2.75rem;
}

.search-row button {
  height: 2.625rem;
  min-height: 2.625rem;
  padding-block: .5rem;
}

.menu-details {
  z-index: 10;
  flex: none;
  position: relative;
}

.menu-details > summary {
  border: 1px solid var(--border);
  background: var(--surface);
  height: 2.625rem;
  color: var(--primary);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: .3rem;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: .5rem .7rem;
  font-size: .85rem;
  font-weight: 750;
  line-height: 1;
  list-style: none;
  display: inline-flex;
}

.menu-details > summary::-webkit-details-marker {
  display: none;
}

.menu-details[open] > summary {
  border-color: var(--primary);
}

.menu-badge {
  background: var(--surface-raised);
  min-width: 1.25rem;
  height: 1.25rem;
  color: var(--muted);
  border-radius: 99rem;
  place-items: center;
  padding-inline: .3rem;
  font-size: .72rem;
  display: inline-grid;
}

.sort-menu-options {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .35rem;
  width: 8.5rem;
  padding: .3rem;
  display: grid;
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  box-shadow: 0 .65rem 1.5rem #2b241f24;
}

.sort-menu-options a {
  color: var(--foreground);
  border-radius: .25rem;
  padding: .45rem .55rem;
  font-size: .85rem;
  text-decoration: none;
}

.sort-menu-options a:hover, .sort-menu-options a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--primary);
}

.search-filters {
  background: none;
  border: 0;
}

.filter-menu-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: .4rem;
  width: min(62rem, 100vw - 2.5rem);
  max-height: min(70vh, 34rem);
  padding: .55rem .75rem;
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  overflow: auto;
  box-shadow: 0 .65rem 1.5rem #2b241f24;
}

.search-filter-body {
  grid-template-columns: max-content minmax(14rem, 1fr);
  gap: .35rem 1rem;
  padding: .35rem 0 .2rem;
  display: grid;
}

.search-filters .filter-section {
  border-top: 0;
  min-width: 0;
  padding: 0;
}

.search-filters .filter-section-origin, .search-filters .filter-section-types {
  grid-column: 1 / -1;
}

.search-filters .filter-section-ranges {
  grid-column: 1;
}

.search-filters .filter-section-last {
  grid-area: 2 / 2;
  align-self: end;
}

.search-filters .filter-section h2 {
  margin-bottom: .4rem;
  font-size: .8rem;
}

.search-filters .filter-grid {
  gap: .35rem .55rem;
}

.search-filters .filter-grid-origin {
  grid-template-columns: minmax(6rem, 7rem) minmax(8rem, 10rem) minmax(9rem, 12rem) minmax(10rem, 16rem);
  justify-content: start;
}

.search-filters .filter-grid-ranges {
  grid-template-columns: repeat(4, minmax(6rem, 7rem));
}

.search-filters .filter-grid > .field + .field {
  margin-top: 0;
}

.search-filters .field {
  gap: .2rem;
}

.search-filters .field label, .search-filters .check-group legend:not(.visually-hidden) {
  padding-bottom: .15rem;
  font-size: .78rem;
}

.search-filters .field input, .search-filters .field select {
  height: 2.125rem;
  min-height: 2.125rem;
  padding: .3rem .5rem;
  font-size: .85rem;
}

.search-filters .check-group {
  gap: .3rem;
}

.search-filters .check-group label {
  min-height: 1.9rem;
}

.search-filters .check-group label span {
  min-height: 1.9rem;
  padding: .2rem .5rem;
  font-size: .78rem;
  line-height: 1.2;
}

.search-filters .filter-actions {
  padding: .4rem 0;
}

.search-filters .filter-actions .secondary-button, .search-filters .filter-actions .secondary-link {
  min-height: 2.35rem;
  padding: .4rem .7rem;
  font-size: .85rem;
}

.cellar-context:has( + .wine-detail-page) {
  margin-bottom: 1rem;
}

.back-button {
  min-height: 2.4rem;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border: 0;
  border-radius: .3rem;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .8rem;
  padding: .35rem .55rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.back-button:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.wine-detail-navigation {
  justify-content: flex-start;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  display: flex;
}

.wine-detail-navigation .back-button {
  margin: 0;
}

.wine-browse-nav {
  align-items: center;
  gap: .35rem;
  min-width: 0;
  display: flex;
}

.wine-browse-nav-top {
  margin-left: 0;
}

.wine-browse-nav a {
  min-height: 2.4rem;
  color: var(--muted);
  touch-action: manipulation;
  background: none;
  border: 0;
  border-radius: .3rem;
  justify-content: center;
  align-items: center;
  gap: .2rem;
  padding: .35rem .42rem;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.wine-browse-nav a:hover {
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  color: var(--foreground);
}

.wine-browse-nav-bottom .wine-browse-next {
  margin-left: auto;
}

.wine-browse-nav-bottom {
  width: 100%;
  padding: .5rem 0 max(.2rem, env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  margin-top: .75rem;
}

.wine-detail-hero {
  grid-template-columns: 9.25rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.wine-detail-hero > img, .wine-image-placeholder.detail {
  width: 9.25rem;
}

.wine-detail-summary {
  min-width: 0;
}

.wine-detail h1 {
  font-size: clamp(1.55rem, 5vw, 2.65rem);
}

.wine-detail .eyebrow {
  margin-bottom: .3rem;
}

.wine-detail-producer {
  margin-top: .35rem;
  font-size: 1rem;
}

.wine-detail-actions {
  gap: .35rem .7rem;
  margin-top: .7rem;
}

.wine-detail-actions .secondary-link {
  min-height: 2.25rem;
  padding: .35rem .55rem;
  font-size: .84rem;
}

.wine-fact-groups {
  border-top: 1px solid var(--border);
  gap: .35rem;
  margin: .7rem 0 0;
  padding-top: .6rem;
  display: grid;
}

.wine-detail .wine-facts {
  flex-wrap: wrap;
  gap: .25rem .8rem;
  display: flex;
}

.wine-detail .wine-facts div {
  border: 0;
  align-items: baseline;
  gap: .3rem;
  min-width: 0;
  padding: 0;
  display: inline-flex;
}

.wine-detail .wine-facts div + div {
  padding-left: 0;
}

.wine-facts dt {
  flex: none;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.35;
}

.wine-facts dd {
  margin: 0;
  font-size: .84rem;
  line-height: 1.35;
}

.wine-vintage-family {
  background: none;
  border-width: 1px 0;
  border-radius: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .65rem;
  margin: .7rem 0 1rem;
  padding: .5rem 0;
  display: flex;
}

.wine-vintage-family > div {
  align-items: baseline;
  gap: .45rem;
  display: flex;
}

.wine-vintage-family h2 {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 750;
}

.wine-vintage-family p {
  margin: 0;
  font-size: .75rem;
}

.wine-vintage-family nav a {
  padding: .18rem .48rem;
  font-size: .78rem;
}

.wine-vintage-family > .secondary-link {
  min-height: 2rem;
  margin-left: auto;
  padding: .25rem .45rem;
  font-size: .78rem;
}

.wine-notes {
  background: none;
  border-width: 1px 0;
  border-radius: 0;
  align-items: baseline;
  gap: .6rem;
  min-width: 0;
  margin: .55rem 0 .75rem;
  padding: .4rem 0;
  display: flex;
}

.wine-notes h2 {
  flex: none;
  margin: 0;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 650;
}

.wine-notes p {
  min-width: 0;
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
}

.purchase-section, .tasting-section {
  margin-top: .9rem;
}

.section-heading {
  align-items: center;
  padding-bottom: .35rem;
}

.section-heading .eyebrow {
  display: none;
}

.section-heading h2 {
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 750;
}

.section-heading .primary-link {
  min-height: 2.1rem;
  padding: .28rem .5rem;
  font-size: .78rem;
}

.purchase-list, .tasting-timeline {
  gap: .7rem;
  padding-top: .45rem;
}

.tasting-card {
  padding: .75rem .85rem;
}

.purchase-card {
  padding: .55rem .7rem;
}

.purchase-card header {
  gap: .25rem .75rem;
}

.purchase-card header time {
  font-size: .9rem;
}

.purchase-card header strong {
  font-size: 1rem;
}

.purchase-card > p {
  margin: .15rem 0;
  font-size: .82rem;
}

.purchase-card .record-actions {
  border-top: 0;
  margin-top: .2rem;
  padding-top: .1rem;
}

.purchase-card .record-action-link, .purchase-card .record-delete-button {
  min-height: 2rem;
  padding: .25rem .4rem;
  font-size: .78rem;
}

.tasting-card header time {
  font-size: 1rem;
}

.tasting-card header strong {
  font-size: 1.45rem;
}

.tasting-body {
  overflow-wrap: anywhere;
  max-width: none;
  margin-block: .65rem;
}

.sensory-summary {
  padding: .4rem 0;
}

.record-actions {
  margin-top: .4rem;
  padding-top: .25rem;
}

.wine-danger-zone {
  margin-top: 1.5rem;
  padding-top: .5rem;
}

@media (min-width: 40rem) {
  .wine-detail-hero {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .wine-detail-hero > img, .wine-image-placeholder.detail {
    width: 16rem;
  }
}

@media (min-width: 64rem) {
  .app-nav {
    flex-direction: column;
    align-items: stretch;
    display: flex;
  }

  .app-sign-out {
    height: auto;
    min-height: 3.25rem;
    margin-top: auto;
    padding: .75rem .9rem;
  }

  body:has(.cellar-list) .app-main {
    padding-block: 2rem;
  }

  body:has(.wine-detail-page) .app-main {
    padding-block: 2rem;
  }
}

@media (max-width: 48rem) {
  .search-filter-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-filters .filter-section-origin, .search-filters .filter-section-ranges, .search-filters .filter-section-types, .search-filters .filter-section-last {
    grid-area: auto / 1;
  }

  .search-filters .filter-grid-origin, .search-filters .filter-grid-ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 39.999rem) {
  .cellar-list-actions {
    justify-content: space-between;
    width: 100%;
  }

  .wine-name-list a {
    grid-template-columns: minmax(0, 1fr);
    gap: .15rem;
    min-height: 3.35rem;
    padding: .6rem .35rem;
  }

  .wine-name-meta {
    text-align: left;
  }

  .wine-name-meta small:last-child {
    display: none;
  }

  .wine-card {
    border-radius: .5rem;
  }

  .wine-card-body {
    min-height: 7.5rem;
    padding: .62rem .65rem .58rem;
  }

  .wine-card h2 {
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.34;
  }

  .wine-card-title {
    gap: .3rem;
  }

  .wine-card-top10 {
    width: 1.35rem;
    height: 1.35rem;
  }

  .wine-card-top10:not(.wine-card-top10-rank) svg {
    width: 1rem;
    height: 1rem;
  }

  .wine-card-top10-rank, .wine-card-top10-rank svg {
    width: 1.45rem;
    height: 1.45rem;
  }

  .wine-card-top10-rank strong {
    font-size: .49rem;
    transform: translateY(-.24rem);
  }

  .wine-card-classification {
    gap: .25rem;
    margin-top: .25rem;
  }

  .wine-card-vintage, .wine-card-type {
    min-height: 1.2rem;
    font-size: .65rem;
  }

  .wine-card-type {
    padding: .16rem .32rem;
  }

  .wine-card-body .wine-card-origin {
    margin-top: .16rem;
    font-size: .67rem;
  }

  .wine-card-activity {
    gap: .2rem;
    padding-top: .42rem;
    font-size: .63rem;
  }

  .wine-card-tasting-score strong {
    font-size: .72rem;
  }

  .wine-card-tasting-score strong small {
    font-size: .58rem;
  }

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

  .wine-detail-hero > img, .wine-image-placeholder.detail {
    width: 8.5rem;
  }

  .wine-detail h1 {
    font-size: clamp(1.35rem, 6.2vw, 1.9rem);
  }

  .wine-detail-actions {
    gap: .2rem;
  }

  .wine-detail-actions .secondary-link {
    padding-inline: .35rem;
    font-size: .77rem;
  }

  .wine-facts-primary {
    grid-template-columns: minmax(3.8rem, .75fr) minmax(0, 1.7fr) minmax(3.5rem, .6fr);
  }

  .wine-facts-composition {
    grid-template-columns: minmax(0, 1.7fr) minmax(4.5rem, .7fr);
  }

  .wine-detail .wine-facts div + div {
    padding-left: 0;
  }

  .purchase-card {
    padding: .5rem .6rem;
  }

  .tasting-card {
    padding: .7rem;
  }
}

/*# sourceMappingURL=src_app_21c7dhq._.css.map*/