/* Dvale components. Plain CSS on top of tokens.css; no framework.
   Classes are prefixed dv-. Modifiers use --, parts use __.
   .is-hover / .is-focus / .is-active force a state for documentation previews only. */

/* ---------- Base ---------- */
.dv {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}
.dv *, .dv *::before, .dv *::after { box-sizing: border-box; }
.dv-ico { display: inline-block; flex: none; vertical-align: middle; }
.dv-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dv-figure { font-variant-numeric: tabular-nums; }

/* Icon chip: a tinted square holding one icon. */
.dv-ichip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--surface-tint); color: var(--accent);
}
.dv-ichip--young { background: var(--readiness-young-tint); color: var(--readiness-young); }
.dv-ichip--ready { background: var(--readiness-ready-tint); color: var(--readiness-ready); }
.dv-ichip--closing { background: var(--readiness-closing-tint); color: var(--readiness-closing); }
.dv-ichip--past { background: var(--readiness-past-tint); color: var(--readiness-past); }
.dv-ichip--unknown { background: var(--readiness-unknown-tint); color: var(--readiness-unknown); }

/* Shared focus ring. */
.dv-btn:focus-visible, .dv-btn.is-focus,
.dv-nav__item:focus-visible, .dv-nav__item.is-focus,
.dv-link:focus-visible, .dv-link.is-focus,
.dv-iconbtn:focus-visible, .dv-iconbtn.is-focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.dv-nav__item:focus-visible, .dv-nav__item.is-focus { outline-offset: -2px; }

/* ---------- Button ---------- */
.dv-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-control); min-width: var(--size-touch);
  padding: 12px 20px;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600;
  text-align: center; text-decoration: none; white-space: normal;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.dv-btn .dv-ico { width: 20px; height: 20px; }
.dv-btn--block { display: flex; width: 100%; }
.dv-btn--icon { padding: 0; width: var(--size-control); }

.dv-btn--primary { background: var(--accent); color: var(--on-accent); }
.dv-btn--primary:hover, .dv-btn--primary.is-hover,
.dv-btn--primary:active, .dv-btn--primary.is-active { background: var(--accent-hover); }

.dv-btn--secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.dv-btn--secondary:hover, .dv-btn--secondary.is-hover,
.dv-btn--secondary:active, .dv-btn--secondary.is-active { background: var(--surface-tint); }

.dv-btn--quiet { background: transparent; color: var(--accent); }
.dv-btn--quiet:hover, .dv-btn--quiet.is-hover,
.dv-btn--quiet:active, .dv-btn--quiet.is-active { background: var(--surface-tint); }

.dv-btn--destructive { background: var(--danger); color: var(--on-danger); }
.dv-btn--destructive:hover, .dv-btn--destructive.is-hover,
.dv-btn--destructive:active, .dv-btn--destructive.is-active { background: var(--danger-hover); }

.dv-btn:disabled, .dv-btn[aria-disabled="true"] {
  background: var(--surface-frozen); color: var(--ink-subtle); border-color: var(--line);
  cursor: not-allowed;
}

/* Small icon-only button, e.g. dismiss. Visible 32px, touch target 44px. */
.dv-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-muted); cursor: pointer;
}
.dv-iconbtn::after { content: ""; position: absolute; inset: -6px; }
.dv-iconbtn:hover, .dv-iconbtn.is-hover { background: var(--surface-tint); color: var(--ink); }
.dv-iconbtn .dv-ico { width: 18px; height: 18px; }

/* Inline text link. */
.dv-link {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px; border-radius: 2px;
}
.dv-link:hover, .dv-link.is-hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

/* ---------- Readiness badge ---------- */
.dv-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 3px 8px 3px 6px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600;
  white-space: nowrap;
}
.dv-badge .dv-ico { width: 16px; height: 16px; }
.dv-badge--lg { padding: 5px 10px 5px 8px; font-size: 14px; line-height: 20px; gap: 6px; }
.dv-badge--lg .dv-ico { width: 18px; height: 18px; }
.dv-badge--young { background: var(--readiness-young-tint); color: var(--readiness-young); }
.dv-badge--ready { background: var(--readiness-ready-tint); color: var(--readiness-ready); }
.dv-badge--closing { background: var(--readiness-closing-tint); color: var(--readiness-closing); }
.dv-badge--past { background: var(--readiness-past-tint); color: var(--readiness-past); }
.dv-badge--unknown { background: var(--readiness-unknown-tint); color: var(--readiness-unknown); }
.dv-badge--frozen { background: transparent; color: var(--ink-muted); padding-left: 0; padding-right: 0; }

/* Neutral meta tag: icon + word, no fill. Public, private, frozen, shared, excluded. */
.dv-tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); white-space: nowrap;
}
.dv-tag .dv-ico { width: 16px; height: 16px; }

/* ---------- Navigation: bottom nav (mobile) and side rail (desktop) ---------- */
.dv-nav {
  display: flex; align-items: stretch;
  min-height: var(--size-nav);
  padding: 0 var(--space-2) env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.dv-nav__brand { display: none; }
.dv-nav__list { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; }
.dv-nav__list > li { flex: 1; display: flex; }
.dv-nav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--size-nav); padding: 6px 4px;
  border-radius: var(--radius-md);
  color: var(--ink-muted); text-decoration: none;
  font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duration-fast) var(--ease-out);
}
.dv-nav__pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 30px; border-radius: var(--radius-md);
  transition: background-color var(--duration-fast) var(--ease-out);
}
.dv-nav__pill .dv-ico { width: 22px; height: 22px; }
.dv-nav__label { display: inline-flex; align-items: center; gap: 3px; }
.dv-nav__label .dv-ico { width: 12px; height: 12px; }
.dv-nav__item:hover .dv-nav__pill, .dv-nav__item.is-hover .dv-nav__pill { background: var(--surface-tint); }
.dv-nav__item:hover, .dv-nav__item.is-hover { color: var(--ink); }
.dv-nav__item[aria-current="page"] { color: var(--accent); font-weight: 700; }
.dv-nav__item[aria-current="page"] .dv-nav__pill { background: var(--surface-tint); }

.dv-nav--rail {
  flex-direction: column; align-items: stretch;
  width: var(--size-rail); min-height: 100%;
  padding: var(--space-5) var(--space-2);
  border-top: 0; border-right: 1px solid var(--line);
}
.dv-nav--rail .dv-nav__brand {
  display: block; margin: 0 0 var(--space-5); text-align: center;
  font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.dv-nav--rail .dv-nav__list { flex-direction: column; flex: 0 0 auto; gap: var(--space-2); }
.dv-nav--rail .dv-nav__item { min-height: 72px; }
@media (min-width: 840px) {
  .dv-nav:not(.dv-nav--bottom) {
    flex-direction: column; align-items: stretch;
    width: var(--size-rail); min-height: 100vh;
    padding: var(--space-5) var(--space-2);
    border-top: 0; border-right: 1px solid var(--line);
  }
  .dv-nav:not(.dv-nav--bottom) .dv-nav__brand {
    display: block; margin: 0 0 var(--space-5); text-align: center;
    font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
  }
  .dv-nav:not(.dv-nav--bottom) .dv-nav__list { flex-direction: column; flex: 0 0 auto; gap: var(--space-2); }
  .dv-nav:not(.dv-nav--bottom) .dv-nav__item { min-height: 72px; }
}

/* ---------- Card base ---------- */
.dv-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-4);
}
.dv-card--tint { background: var(--surface-tint); border-color: transparent; }
.dv-card--frozen { background: var(--surface-frozen); }

/* ---------- Collection status card ---------- */
.dv-ccard { display: flex; flex-direction: column; gap: var(--space-3); }
.dv-ccard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.dv-ccard__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
.dv-ccard__link { color: inherit; text-decoration: none; border-radius: 2px; }
.dv-ccard__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.dv-ccard:hover, .dv-ccard.is-hover { border-color: var(--line-control); }
.dv-ccard__link:focus-visible { outline: none; }
.dv-ccard:has(.dv-ccard__link:focus-visible), .dv-ccard.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.dv-ccard__chev { color: var(--ink-muted); margin-top: 2px; }
.dv-ccard__tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.dv-ccard__count { margin: 0; display: flex; align-items: baseline; gap: var(--space-2); color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.dv-ccard__count .dv-figure { font-size: 22px; line-height: 28px; font-weight: 700; color: var(--ink); }
.dv-ccard__quota { display: flex; flex-direction: column; gap: 6px; }
.dv-ccard__row { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dv-ccard__row strong { font-weight: 600; color: var(--ink); }
.dv-ccard__note { display: flex; align-items: center; gap: var(--space-1); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--warning); }
.dv-ccard__note .dv-ico { width: 16px; height: 16px; }

.dv-meter { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.dv-meter__fill { height: 100%; border-radius: var(--radius-pill); background: var(--accent); transition: width var(--duration-base) var(--ease-in-out); }
.dv-meter--near .dv-meter__fill { background: var(--warning); }
.dv-meter--full .dv-meter__fill { background: var(--warning); }

.dv-ccard--frozen { background: var(--surface-frozen); }
.dv-ccard--frozen .dv-ccard__title,
.dv-ccard--frozen .dv-ccard__count .dv-figure,
.dv-ccard--frozen .dv-ccard__row strong { color: var(--ink-muted); }
.dv-ccard--frozen .dv-meter__fill { background: var(--ink-subtle); }
.dv-ccard__frozen-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Alert card ---------- */
.dv-alert { display: flex; gap: var(--space-3); align-items: flex-start; }
.dv-alert__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dv-alert__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.dv-alert__text { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dv-alert__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.dv-alert__actions .dv-btn { min-height: 40px; padding: 8px 14px; }
.dv-alert__actions .dv-btn::after { content: ""; position: absolute; inset: -2px 0; }
.dv-alert__dismiss { margin: -4px -6px 0 0; }

/* ---------- Invitation card ---------- */
.dv-invite { display: flex; flex-direction: column; gap: var(--space-3); }
.dv-invite__head { display: flex; gap: var(--space-3); align-items: flex-start; }
.dv-invite__ichip { background: var(--surface); color: var(--accent); }
.dv-invite__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.dv-invite__meta { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dv-invite__consequence { margin: 0; display: flex; gap: var(--space-2); align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--ink); }
.dv-invite__consequence .dv-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--ink-muted); }
.dv-invite__actions { display: flex; gap: var(--space-2); }
.dv-invite__actions .dv-btn { flex: 1; }

/* ========== Set 2: forms, lists, feedback, public ========== */

/* ---------- Fields: text, select, search, score ---------- */
.dv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dv-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.dv-field__opt { font-weight: 500; color: var(--ink-muted); }
.dv-field__hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dv-field__error { margin: 0; display: flex; gap: var(--space-1); align-items: flex-start; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--error); }
.dv-field__error .dv-ico { width: 16px; height: 16px; margin-top: 1px; }

.dv-input {
  width: 100%; min-height: var(--size-control); margin: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.dv-input::placeholder { color: var(--ink-subtle); opacity: 1; }
.dv-input:hover, .dv-input.is-hover { border-color: var(--ink-muted); }
.dv-input:focus-visible, .dv-input.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
.dv-input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.dv-input:disabled { background: var(--surface-frozen); color: var(--ink-subtle); border-color: var(--line); cursor: not-allowed; }
.dv-input[readonly] { background: var(--surface-frozen); color: var(--ink-muted); border-color: var(--line); }

.dv-select { position: relative; display: block; }
.dv-select .dv-input { padding-right: 44px; cursor: pointer; }
.dv-select__chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-muted); pointer-events: none; }

.dv-search { position: relative; display: block; }
.dv-search .dv-input { padding-left: 44px; padding-right: 48px; }
.dv-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.dv-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-muted); pointer-events: none; }
.dv-search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

.dv-affix { position: relative; display: flex; align-items: center; }
.dv-affix .dv-input { padding-right: 64px; font-variant-numeric: tabular-nums; }
.dv-affix__suffix { position: absolute; right: 14px; font-size: 16px; line-height: 24px; color: var(--ink-muted); pointer-events: none; }
.dv-score { max-width: 168px; }

.dv-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.dv-fieldset > legend { padding: 0; margin: 0 0 var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.dv-window { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.dv-window__part { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dv-window__label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.dv-pair { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-2); }
@media (min-width: 560px) { .dv-window { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Chips: options, filters, values ---------- */
.dv-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dv-chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 40px; padding: 8px 14px;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.dv-chip::after { content: ""; position: absolute; inset: -3px 0; }
.dv-chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dv-chip .dv-ico { width: 16px; height: 16px; }
.dv-chip__check { display: none; }
.dv-chip:hover, .dv-chip.is-hover { border-color: var(--ink-muted); }
.dv-chip[aria-pressed="true"], .dv-chip:has(input:checked), .dv-chip.is-selected {
  background: var(--surface-tint); border-color: var(--accent); color: var(--accent);
}
.dv-chip[aria-pressed="true"] .dv-chip__check, .dv-chip:has(input:checked) .dv-chip__check, .dv-chip.is-selected .dv-chip__check { display: inline-block; }
.dv-chip:focus-visible, .dv-chip:has(input:focus-visible), .dv-chip.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.dv-chip:disabled, .dv-chip:has(input:disabled) { background: var(--surface-frozen); color: var(--ink-subtle); border-color: var(--line); cursor: not-allowed; }
.dv-chip__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent);
  font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
}
.dv-chip--value { cursor: default; padding: 4px 4px 4px 12px; background: var(--surface-tint); border-color: transparent; }
.dv-chip--value::after { display: none; }
.dv-chip--value:hover { border-color: transparent; }
.dv-chip__remove {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-muted); cursor: pointer;
}
.dv-chip__remove::after { content: ""; position: absolute; inset: -7px; }
.dv-chip__remove:hover { background: var(--surface); color: var(--ink); }
.dv-chip__remove:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }

/* ---------- Sort ---------- */
.dv-sort { position: relative; display: inline-flex; flex: none; }
.dv-sort select {
  min-height: 40px; margin: 0; padding: 8px 36px 8px 38px;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.dv-sort select:hover, .dv-sort.is-hover select { border-color: var(--ink-muted); }
.dv-sort select:focus-visible, .dv-sort.is-focus select { outline: 2px solid var(--focus); outline-offset: 2px; }
.dv-sort__icon, .dv-sort__chev { position: absolute; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-muted); pointer-events: none; }
.dv-sort__icon { left: 12px; }
.dv-sort__chev { right: 10px; }

/* ---------- Filter bar ---------- */
.dv-filterbar { display: flex; flex-direction: column; gap: var(--space-3); }
.dv-filterbar__row { display: flex; align-items: center; gap: var(--space-2); overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; }
.dv-filterbar__row::-webkit-scrollbar { display: none; }
.dv-filterbar__sep { flex: none; width: 1px; height: 24px; background: var(--line); }
.dv-filterbar__summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Switch ---------- */
.dv-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--size-touch); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); cursor: pointer; }
.dv-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.dv-switch__track { position: relative; flex: none; width: 48px; height: 28px; border: 1.5px solid var(--line-control); border-radius: var(--radius-pill); background: var(--surface); transition: background-color var(--duration-fast) var(--ease-out); }
.dv-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: var(--radius-pill); background: var(--ink-muted); transition: transform var(--duration-fast) var(--ease-out); }
.dv-switch:has(input:checked) .dv-switch__track, .dv-switch.is-on .dv-switch__track { background: var(--accent); border-color: var(--accent); }
.dv-switch:has(input:checked) .dv-switch__track::after, .dv-switch.is-on .dv-switch__track::after { transform: translateX(20px); background: var(--on-accent); }
.dv-switch:has(input:focus-visible) .dv-switch__track, .dv-switch.is-focus .dv-switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Sheet (filter sheet) ---------- */
.dv-sheet {
  display: flex; flex-direction: column; width: 100%; max-height: min(88vh, 760px);
  border: 0; padding: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sheet);
}
dialog.dv-sheet { max-width: 100%; margin: auto 0 0; }
dialog.dv-sheet::backdrop, dialog.dv-modal::backdrop { background: var(--scrim); }
.dv-sheet__grab { width: 36px; height: 4px; margin: 8px auto 0; border-radius: var(--radius-pill); background: var(--line-control); }
.dv-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3) var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.dv-sheet__title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.dv-sheet__body { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-5); }
.dv-sheet__foot { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.dv-sheet__foot .dv-btn--primary { flex: 1; }
.dv-sheet__private { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 500; color: var(--ink-muted); }
.dv-sheet__private .dv-ico { width: 14px; height: 14px; }
.dv-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-2); color: var(--ink-muted); }
@media (min-width: 840px) {
  dialog.dv-sheet { margin: 0 0 0 auto; width: 420px; height: 100vh; max-height: 100vh; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  dialog.dv-sheet .dv-sheet__grab { display: none; }
}

/* ---------- Wine list item ---------- */
.dv-list { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.dv-list > li + li { border-top: 1px solid var(--line); }
.dv-wine { position: relative; display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); transition: background-color var(--duration-fast) var(--ease-out); }
.dv-wine:hover, .dv-wine.is-hover { background: var(--bg); }
.dv-wine__thumb { flex: none; width: 44px; height: 56px; border-radius: var(--radius-sm); background: var(--surface-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dv-wine__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dv-wine__thumb .dv-ico { width: 22px; height: 22px; }
.dv-wine__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dv-wine__name { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.dv-wine__link { color: inherit; text-decoration: none; }
.dv-wine__link::after { content: ""; position: absolute; inset: 0; }
.dv-wine__link:focus-visible { outline: none; }
.dv-wine:has(.dv-wine__link:focus-visible), .dv-wine.is-focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.dv-wine__meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dv-wine__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin-top: 6px; }
.dv-wine__select { position: relative; z-index: 1; flex: none; align-self: center; display: flex; padding: 11px; margin: -11px 0 -11px -11px; cursor: pointer; }
.dv-wine--frozen { background: var(--surface-frozen); }
.dv-wine--frozen .dv-wine__name, .dv-wine--drunk .dv-wine__name { color: var(--ink-muted); }
.dv-wine--frozen .dv-wine__thumb, .dv-wine--drunk .dv-wine__thumb { background: var(--surface-frozen); color: var(--ink-muted); }
.dv-wine--frozen:hover { background: var(--surface-frozen); }

/* Checkbox */
.dv-check {
  -webkit-appearance: none; appearance: none; display: grid; place-content: center;
  width: 22px; height: 22px; margin: 0; flex: none;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.dv-check::before { content: ""; width: 12px; height: 12px; background: var(--on-accent); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); }
.dv-check:checked { background: var(--accent); border-color: var(--accent); }
.dv-check:checked::before { transform: scale(1); }
.dv-check:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dv-check:disabled { background: var(--surface-frozen); border-color: var(--line); cursor: not-allowed; }

/* ---------- Action row ---------- */
.dv-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.dv-actions .dv-btn { flex-direction: column; gap: 4px; min-height: 68px; padding: 10px 8px; }
.dv-actions .dv-btn .dv-ico { width: 22px; height: 22px; }
.dv-actions__done, .dv-actions__frozen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; font-weight: 600; }
.dv-actions__done { background: var(--success-tint); color: var(--success); }
.dv-actions__done .dv-link { color: inherit; }
.dv-actions__frozen { background: var(--surface-frozen); color: var(--ink-muted); }
.dv-actions__done .dv-ico, .dv-actions__frozen .dv-ico { width: 20px; height: 20px; }

/* ---------- Toast ---------- */
.dv-toast-region { position: fixed; z-index: 50; left: var(--space-4); right: var(--space-4); bottom: calc(var(--size-nav) + env(safe-area-inset-bottom) + var(--space-3)); display: flex; justify-content: center; pointer-events: none; }
@media (min-width: 840px) { .dv-toast-region { left: calc(var(--size-rail) + var(--space-6)); right: var(--space-6); bottom: var(--space-6); } }
.dv-toast {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; max-width: 560px; min-height: 56px;
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  border-radius: var(--radius-md); background: var(--inverse); color: var(--on-inverse); box-shadow: var(--shadow-modal);
  font-size: 14px; line-height: 20px; font-weight: 600; pointer-events: auto;
}
.dv-toast > .dv-ico { width: 20px; height: 20px; color: var(--inverse-accent); }
.dv-toast__msg { flex: 1; min-width: 0; margin: 0; padding: var(--space-2) 0; }
.dv-toast__action {
  position: relative; flex: none; min-height: var(--size-control); padding: 12px 14px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--inverse-accent);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer;
}
.dv-toast__action:hover, .dv-toast__action.is-hover { text-decoration-thickness: 2.5px; }
.dv-toast__action:focus-visible, .dv-toast__action.is-focus { outline: 2px solid var(--inverse-accent); outline-offset: -4px; }

/* ---------- Modal (confirmation) ---------- */
.dv-modal {
  width: min(100% - 32px, 480px); max-width: 480px; padding: var(--space-5);
  border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-modal);
}
dialog.dv-modal { margin: auto; }
.dv-modal__title { margin: 0 0 var(--space-2); font-size: 22px; line-height: 28px; font-weight: 700; }
.dv-modal__text { margin: 0; font-size: 16px; line-height: 24px; }
.dv-modal__text + .dv-modal__text { margin-top: var(--space-2); }
.dv-modal__list { margin: var(--space-3) 0 0; padding-left: 20px; font-size: 16px; line-height: 24px; }
.dv-modal__list li + li { margin-top: var(--space-1); }
.dv-modal__actions { display: flex; flex-direction: column-reverse; gap: var(--space-2); margin-top: var(--space-5); }
@media (min-width: 480px) { .dv-modal__actions { flex-direction: row; justify-content: flex-end; } }

/* ---------- Banner (non-blocking nudge) ---------- */
.dv-banner { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-2) var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-tint); color: var(--ink); }
.dv-banner > .dv-ico { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.dv-banner__body { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; }
.dv-banner__title { margin: 0; font-weight: 700; }
.dv-banner__text { margin: 0; }
.dv-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-1); }
.dv-banner .dv-link { color: var(--ink); }
.dv-banner .dv-iconbtn { margin-top: -4px; }
.dv-banner--warning { background: var(--warning-tint); }
.dv-banner--warning > .dv-ico { color: var(--warning); }
.dv-banner--success { background: var(--success-tint); }
.dv-banner--success > .dv-ico { color: var(--success); }
.dv-banner--error { background: var(--error-tint); }
.dv-banner--error > .dv-ico { color: var(--error); }

/* ---------- Empty state ---------- */
.dv-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: 420px; margin: 0 auto; padding: var(--space-6) var(--space-4); text-align: center; }
.dv-empty__art { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-lg); background: var(--surface-tint); color: var(--accent); }
.dv-empty__art .dv-ico { width: 32px; height: 32px; }
.dv-empty__title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.dv-empty__text { margin: 0; color: var(--ink-muted); }
.dv-empty__steps { counter-reset: dv-step; display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin: var(--space-2) 0 0; padding: 0; list-style: none; text-align: left; }
.dv-empty__steps li { counter-increment: dv-step; display: flex; align-items: flex-start; gap: var(--space-3); font-size: 14px; line-height: 20px; }
.dv-empty__steps li::before { content: counter(dv-step); flex: none; width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--surface-tint); color: var(--accent); font-size: 13px; line-height: 24px; font-weight: 700; text-align: center; }
.dv-empty__actions { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin-top: var(--space-2); }
.dv-empty__note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Locked Insight ---------- */
.dv-locked { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) var(--space-4); border-radius: var(--radius-md); background: var(--surface-tint); }
.dv-locked__title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; }
.dv-locked__text { margin: 0; }
.dv-locked__figure { margin: 0; padding: var(--space-3) var(--space-3) var(--space-2); border-radius: var(--radius-md); background: var(--surface); }
.dv-locked__chart { display: flex; align-items: flex-end; gap: 6px; height: 112px; }
.dv-locked__bar { flex: 1; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--line-control); }
.dv-locked__bar--now { background: var(--accent); }
.dv-locked__years { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.dv-locked__caption { margin-top: 6px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.dv-locked__teaser { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }

/* ---------- Word explainer ---------- */
.dv-term {
  margin: 0; padding: 0; border: 0; border-radius: 2px; background: none;
  font: inherit; color: inherit; cursor: help;
  text-decoration: underline dotted; text-decoration-color: var(--ink-muted); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.dv-term:hover, .dv-term.is-hover { color: var(--accent); text-decoration-color: var(--accent); }
.dv-term:focus-visible, .dv-term.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.dv-explainer {
  width: min(100% - 32px, 360px); padding: var(--space-4);
  border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-modal);
}
[popover].dv-explainer { inset: auto 0 calc(var(--space-4) + env(safe-area-inset-bottom)); margin: 0 auto; }
.dv-explainer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.dv-explainer__term { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.dv-explainer__kind { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dv-explainer__text { margin: var(--space-2) 0 0; font-size: 16px; line-height: 24px; }

/* ---------- Public page header ---------- */
.dv-public { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4) var(--space-4) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); }
.dv-public__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.dv-public__brand { display: inline-flex; align-items: baseline; gap: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.dv-public__mark { font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.dv-public__login { font-size: 14px; line-height: 20px; }
.dv-public__title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dv-public__meta { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.dv-public__signup { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Not found ---------- */
.dv-404 { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: 480px; margin: 0 auto; padding: var(--space-6) var(--space-4); }
.dv-404__mark { margin: 0 0 var(--space-5); font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.dv-404__title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; }
.dv-404__text { margin: 0; color: var(--ink-muted); }
.dv-404__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }

/* ---------- Scan label button ---------- */
.dv-scan {
  position: relative; display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 76px;
  padding: var(--space-3) var(--space-4); margin: 0;
  border: 1.5px solid var(--accent); border-radius: var(--radius-md); background: var(--surface-tint); color: var(--ink);
  font-family: var(--font-sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.dv-scan:hover, .dv-scan.is-hover, .dv-scan:active, .dv-scan.is-active { background: var(--surface); }
.dv-scan:focus-visible, .dv-scan.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.dv-scan__icon { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); }
.dv-scan__icon .dv-ico { width: 24px; height: 24px; }
.dv-scan__label { display: block; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--accent); }
.dv-scan__hint { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.dv-scan[aria-busy="true"] { cursor: progress; }
.dv-scan[aria-busy="true"] .dv-scan__icon { animation: dv-pulse 1.2s var(--ease-in-out) infinite; }
.dv-scan:disabled { border-color: var(--line); background: var(--surface-frozen); cursor: not-allowed; }
.dv-scan:disabled .dv-scan__icon { background: var(--line); color: var(--ink-muted); }
.dv-scan:disabled .dv-scan__label { color: var(--ink-muted); }
@keyframes dv-pulse { 50% { opacity: 0.55; } }

/* ========== Set 3: layout, readiness overview, attribute list, wine header ========== */

/* ---------- App shell ---------- */
.dv-app { min-height: 100vh; background: var(--bg); padding-bottom: calc(var(--size-nav) + env(safe-area-inset-bottom)); }
.dv-app > .dv-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; }
@media (min-width: 840px) {
  .dv-app { display: flex; padding-bottom: 0; }
  .dv-app > .dv-nav { position: sticky; top: 0; height: 100vh; flex: none; }
  .dv-app > .dv-main { flex: 1; min-width: 0; }
}
/* Public pages: no navigation, header across the top, content in the same column. */
.dv-app.dv-app--public { display: block; padding-bottom: 0; }
.dv-app--public > .dv-public > * { width: 100%; max-width: var(--size-content); margin-left: auto; margin-right: auto; }
.dv-main {
  display: flex; flex-direction: column; gap: var(--space-5);
  width: 100%; max-width: calc(var(--size-content) + 2 * var(--space-4)); margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-6);
}
@media (min-width: 840px) {
  .dv-main { max-width: calc(var(--size-content) + 2 * var(--space-6)); padding: var(--space-6); }
  .dv-main--wide { max-width: calc(var(--size-content-wide) + 2 * var(--space-6)); }
}
.dv-pagehead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }
.dv-pagehead__title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; }
.dv-section { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.dv-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.dv-section__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.dv-section__aside { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.dv-section__aside .dv-ico { width: 14px; height: 14px; }
.dv-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.dv-cols > * { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
@media (min-width: 1100px) { .dv-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dv-cols--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Back link and top bar on detail screens */
.dv-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: calc(-1 * var(--space-2)); }
.dv-back {
  display: inline-flex; align-items: center; gap: 2px; min-height: var(--size-touch); padding-right: var(--space-2);
  border-radius: var(--radius-sm); color: var(--accent); text-decoration: none;
  font-size: 14px; line-height: 20px; font-weight: 600;
}
.dv-back .dv-ico { width: 20px; height: 20px; }
.dv-back:hover, .dv-back.is-hover { text-decoration: underline; text-underline-offset: 3px; }
.dv-back:focus-visible, .dv-back.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.dv-btnrow { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Readiness overview ---------- */
.dv-ready { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.dv-ready > li + li { border-top: 1px solid var(--line); }
.dv-ready__row {
  display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  color: var(--ink); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out);
}
.dv-ready__row:hover, .dv-ready__row.is-hover { background: var(--bg); }
.dv-ready__row:focus-visible, .dv-ready__row.is-focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.dv-ready__label { flex: 1; min-width: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.dv-ready__sub { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.dv-ready__count { font-size: 17px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dv-ready__chev { width: 18px; height: 18px; color: var(--ink-muted); }
.dv-ready__row--zero .dv-ready__count { color: var(--ink-muted); font-weight: 600; }

/* ---------- Attribute list ---------- */
.dv-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.dv-group__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-4) var(--space-1); }
.dv-group__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.dv-attrs { margin: 0; padding: 0 0 var(--space-1); }
.dv-attrs__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-3); padding: var(--space-3) var(--space-4); }
.dv-attrs__row + .dv-attrs__row { border-top: 1px solid var(--line); }
.dv-attrs__row dt { font-size: 14px; line-height: 22px; font-weight: 500; color: var(--ink-muted); }
.dv-attrs__row dd { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.dv-attrs__row dd.is-empty { color: var(--ink-subtle); }
.dv-attrs__row--stack { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.dv-attrs--compact .dv-attrs__row { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.dv-attrs .dv-chips { gap: var(--space-1); }
.dv-attrs .dv-chip--value { min-height: 28px; padding: 3px 10px; font-size: 13px; line-height: 18px; }
.dv-group--frozen { background: var(--surface-frozen); }
.dv-group--frozen .dv-attrs__row dd { color: var(--ink-muted); }

/* ---------- Wine header ---------- */
.dv-winehead { display: flex; align-items: flex-start; gap: var(--space-4); }
.dv-winehead__img { flex: none; display: flex; align-items: center; justify-content: center; width: 88px; height: 116px; border-radius: var(--radius-md); background: var(--surface-tint); color: var(--accent); overflow: hidden; }
.dv-winehead__img img { width: 100%; height: 100%; object-fit: cover; }
.dv-winehead__img .dv-ico { width: 36px; height: 36px; }
.dv-winehead__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.dv-winehead__title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dv-winehead__meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dv-winehead__tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-2); }
.dv-winehead--compact { gap: var(--space-3); }
.dv-winehead--compact .dv-winehead__img { width: 56px; height: 72px; }
.dv-winehead--compact .dv-winehead__img .dv-ico { width: 26px; height: 26px; }
.dv-winehead--compact .dv-winehead__title { font-size: 22px; line-height: 28px; }
.dv-winehead--frozen .dv-winehead__img { background: var(--surface-frozen); color: var(--ink-muted); }

/* Drinking window summary */
.dv-windowsum { display: flex; flex-direction: column; gap: var(--space-2); }
.dv-windowsum__dates { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: 16px; line-height: 24px; font-weight: 600; }
.dv-windowsum__text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.dv-windowsum__text .dv-link { font-size: 14px; }
.dv-actions__frozen .dv-link { color: inherit; }
.dv-actions__frozen { flex-wrap: nowrap; align-items: flex-start; }
.dv-actions__frozen > span { flex: 1; min-width: 0; }
.dv-group--frozen .dv-chip--value { background: var(--surface); color: var(--ink-muted); }
.dv-windowsum__score { font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dv-windowsum__scale { font-weight: 500; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .dv-btn, .dv-nav__item, .dv-nav__pill, .dv-meter__fill, .dv-input, .dv-chip, .dv-switch__track,
  .dv-switch__track::after, .dv-wine, .dv-scan, .dv-ready__row { transition-duration: 0ms; }
  .dv-scan[aria-busy="true"] .dv-scan__icon { animation: none; }
}
