/* =========================================
   Tasting journal / flavour-wheel / community-review styles — extracted from main.css.
   Loaded on the profile, tasting-form, whisky-picker and whisky-detail pages (loadTastingCss).
   ========================================= */

/* ── Tasting-wheel note legend (8 categories + colour + description + flavours) ── */
.wheel-legend {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.wheel-legend__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.wheel-legend__heading { display: flex; flex-direction: column; gap: 0.2rem; }
.wheel-legend__title { font-size: 0.95rem; color: var(--cream); }
.wheel-legend__hint { font-size: 0.82rem; color: var(--text-dim); }
summary.wheel-legend__head { cursor: pointer; list-style: none; }
summary.wheel-legend__head::-webkit-details-marker { display: none; }
summary.wheel-legend__head::marker { content: ""; }
summary.wheel-legend__head:hover .wheel-legend__title { color: var(--amber-light); }
.wheel-legend__chevron { color: var(--text-dim); flex-shrink: 0; margin-top: 0.15rem; transition: transform 0.2s ease; }
details.wheel-legend[open] > summary .wheel-legend__chevron { transform: rotate(180deg); }

.wheel-legend__toggle {
  flex-shrink: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--amber);
  background: transparent;
  border: 1px solid rgba(200, 135, 42, 0.45);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.wheel-legend__toggle:hover { background: rgba(200, 135, 42, 0.1); border-color: var(--amber); }

.wheel-legend__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.wheel-legend__item { display: flex; align-items: flex-start; gap: 0.6rem; }
.wheel-legend__swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-top: 0.2rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}
.wheel-legend__body { display: flex; flex-direction: column; gap: 0.15rem; }
.wheel-legend__name { font-size: 0.9rem; font-weight: 600; color: var(--cream); }
.wheel-legend__desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.45; }

.wheel-legend__flavours {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.wheel-legend__chip {
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

/* ⓘ hint icon on tasting-wheel slider labels */
.tw-label-hint {
  font-size: 0.7rem;
  opacity: 0.45;
  margin-left: 0.2em;
  cursor: help;
  vertical-align: middle;
}
.tw-slider-label:hover .tw-label-hint { opacity: 0.85; }

@media (max-width: 640px) {
  .wheel-picker__options { grid-template-columns: 1fr; }
}

/* ── Tasting list ──────────────────────────────────────── */
/* ── Tasting-history controls (filter / sort / view toggle) ── */
/* Two rows: row 1 = full-width search, row 2 = filters + "Sortuj po" + view */
.th-controls {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
}
.th-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
/* .th-search / .th-select base rules are shared with admin tables → kept in main.css. */
/* "Sortuj po" label + its select, kept together */
.th-sort-group {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 1 1 170px;
}
.th-sort-label {
  white-space: nowrap;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.th-sort-group .th-select { flex: 1 1 auto; }
.th-view-toggle {
  display: inline-flex;
  margin-left: auto;   /* push the view switch to the right end of row 2 */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.th-view-btn {
  height: 34px;
  padding: 0 .85rem;
  background: var(--bg-card);
  border: none;
  color: var(--text-dim);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.th-view-btn + .th-view-btn { border-left: 1px solid var(--border); }
.th-view-btn--active { background: var(--amber); color: var(--btn-text); }
.th-empty {
  padding: 1.5rem 0;
  color: var(--text-dim);
  text-align: center;
  font-size: .9rem;
}

/* ── Tasting-history condensed table view ── */
/* [hidden] must win over .tasting-list's display:flex (class specificity). */
.tasting-list[hidden], .tasting-table-wrap[hidden] { display: none; }
.tasting-table-wrap { overflow-x: auto; }
.tasting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.tasting-table thead th {
  background: var(--bg-card);
  color: var(--text-dim);
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
/* First column (name) stays left-aligned — center is right for numeric/short headers */
.tasting-table thead th:first-child { text-align: left; }
.tasting-table th.th-num, .tasting-table td.th-num { text-align: center; }
/* Sortable headers */
.tasting-table th.tt-sortable {
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}
.tasting-table th.tt-sortable:hover {
  color: var(--cream);
  background: rgba(251, 191, 36, .10);
}
.tasting-table th.tt-sortable.tt-sort-active {
  color: var(--amber);
}
.tasting-table th.tt-sortable .tt-sort-arrow {
  display: inline-block;
  margin-left: .25rem;
  font-size: .6rem;
  vertical-align: middle;
  opacity: .6;
}
.tasting-table tbody td {
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}
.tasting-table tbody tr:hover td { background: var(--bg-card-hover); }
.tasting-table .tt-name a { color: var(--cream); font-weight: 600; text-decoration: none; }
.tasting-table .tt-name a:hover { color: var(--amber); }
/* Cask cell — inline barrel icons (shared with the catalogue) */
.tt-cask { white-space: nowrap; }
.tt-cask .icon { vertical-align: middle; margin-right: 1px; }
.tt-region { color: var(--text-dim); white-space: nowrap; }
.tt-price { white-space: nowrap; }
.tt-shops {
  display: inline-block;
  margin-left: .35rem;
  padding: 0 .35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .68rem;
  color: var(--text-dim);
}
.tt-date { color: var(--text-dim); white-space: nowrap; }
/* tt-actions is now a <div> inside a plain <td>, so the <td> keeps
   display:table-cell and vertical-align:middle works correctly.
   The div itself handles the flex layout of the two icon buttons. */
.tt-actions {
  display: flex;
  gap: .3rem;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}
.tt-nas { font-size: .72rem; color: var(--text-dim); font-style: italic; }
.tt-actions form { display: contents; }  /* form wrapper transparent in flex layout */

/* Compact square icon buttons in the table — override btn-ghost / btn-danger sizing
   so both buttons are identical height regardless of their base class padding. */
.tt-actions .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  border-radius: 5px;
  font-size: .78rem;
}

.tasting-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.tasting-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto auto;
  align-items: center;
  gap: .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  transition: border-color .15s;
}
.tasting-card:hover { border-color: var(--amber); }

/* Mobile: 2 cards per row, compact layout */
@media (max-width: 600px) {
  .tasting-list {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .tasting-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: .3rem;
    padding: .5rem .6rem;
    text-align: center;
  }
  /* Thumb: centered, smaller */
  .tasting-card-thumb {
    width: 44px; height: 44px;
    margin: 0 auto;
  }
  /* Info */
  .tasting-card-info    { align-items: center; }
  .tasting-whisky-name  { font-size: .82rem; white-space: normal; line-height: 1.2; }
  .tasting-distillery   { font-size: .7rem; }
  .tasting-date         { font-size: .68rem; }
  /* Score + radar side by side */
  .tasting-card-score   { justify-content: center; }
  .score-big            { font-size: 1.15rem; }
  .tasting-card-mini-radar { margin: 0 auto; }
  /* Actions: icon-only, no text */
  .tasting-card-actions { justify-content: center; gap: .5rem; }
  .btn-icon-label       { display: none; }

  /* Condensed table: hide the date column, give actions more breathing room */
  .tasting-table .tt-col-date { display: none; }
  .tasting-table thead th,
  .tasting-table tbody td { padding: .45rem .4rem; }
  .tt-actions { gap: .2rem; }
  .tt-actions .btn-icon { width: 26px; height: 26px; }
}

.tasting-card-thumb {
  display: block;
  width: 56px; height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card-hover);
  flex-shrink: 0;
}
.tasting-card-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.tasting-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-card-hover);
}

.tasting-card-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.tasting-whisky-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tasting-whisky-name:hover { color: var(--amber-light); }
.tasting-distillery {
  font-size: .8rem;
  color: var(--text-dim);
}
.tasting-date {
  font-size: .78rem;
  color: var(--text-dim);
}

.tasting-card-score {
  display: flex;
  align-items: baseline;
  gap: .15rem;
}
.score-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-light);
}
.score-max {
  font-size: .8rem;
  color: var(--text-dim);
}

/* Mini radar */
.tasting-card-mini-radar { flex-shrink: 0; }
.mini-radar-svg { width: 72px; height: 72px; display: block; }

/* ── Radar in history — even larger on desktop ─────────────────────────── */
@media (min-width: 601px) {
  .tasting-card-mini-radar .mini-radar-svg {
    width: 80px;
    height: 80px;
  }
}
.mini-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}
.mini-polygon {
  fill: rgba(212,180,131,.25);
  stroke: var(--amber);
  stroke-width: 1.5;
}

.tasting-card-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.badge-published {
  font-size: .72rem;
  padding: .15rem .45rem;
  border-radius: 20px;
  background: rgba(143,188,106,.2);
  color: #8fbc6a;
  border: 1px solid #8fbc6a;
}

/* ── Tasting form ───────────────────────────────────────── */
.tasting-form-page { max-width: 860px; margin: 0 auto; }

/* .back-link moved to main.css — it's shared with the /gry games pages. */

.tasting-form-whisky-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tasting-form-thumb {
  width: 56px; height: 56px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.tasting-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.tasting-form-whisky-name {
  font-weight: 600;
  color: var(--amber-light);
  text-decoration: none;
}
.tasting-form-whisky-name:hover { text-decoration: underline; }
.tasting-form-distillery { color: var(--text-dim); font-size: .88rem; }

.tasting-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tf-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.tf-row--top { align-items: flex-start; }

.tf-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1 1 200px;
}
.tf-field label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}
.tf-hint {
  font-size: .76rem;
  color: var(--text-dim);
  font-weight: 400;
}
.tf-hint--premium {
  padding: .1rem .4rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,180,131,.25), rgba(184,144,42,.25));
  border: 1px solid rgba(212,180,131,.4);
  color: #d4b483;
}
.tf-field input[type="date"] {
  padding: .45rem .6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);   /* match the site font (not the UA default) */
  font-size: .9rem;
  width: 100%;
}
.tf-field textarea {
  padding: .6rem .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);   /* match the site font (textarea UA default is monospace) */
  font-size: .88rem;
  resize: vertical;
  width: 100%;
}
.tf-field textarea:disabled { opacity: .45; cursor: not-allowed; }

.tf-field--score { flex: 1 1 340px; }

/* Overall score slider */
.score-slider {
  width: 100%;
  accent-color: var(--amber);
  cursor: pointer;
  height: 6px;
}
.score-display {
  margin-left: .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber-light);
  min-width: 2.5rem;
  display: inline-block;
  text-align: right;
}
.score-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: .2rem;
}
.score-ticks span {
  font-size: .68rem;
  color: var(--text-dim);
  width: 1.5rem;
  text-align: center;
}

/* tf-section card */
.tf-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.tf-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.tf-section-hint {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-dim);
}

/* Notes layout 2-column */
.tf-notes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .tf-notes-layout { grid-template-columns: 1fr; }
}

.tf-publish-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  font-size: .85rem;
  cursor: pointer;
}
.tf-publish-toggle input { accent-color: var(--amber); }

.tf-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Wheel on/off toggle (plan 37) ─────────────────────── */
.tf-wheel-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .9rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.tf-wheel-toggle legend {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0 .4rem;
}
.tf-radio {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  cursor: pointer;
}
.tf-radio input { accent-color: var(--amber); }

/* ── Public review section (premium / "Wspierający") ───── */
.tf-review textarea { width: 100%; }
.tf-review--locked { opacity: .7; border-style: dashed; }

/* ── Publish toggle button + status ────────────────────── */
.tf-publish {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.btn-publish {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  background: rgba(212,145,46,.12);
  color: var(--amber);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-publish:hover { background: var(--amber); color: #fff; }
.btn-publish--undo {
  border-color: var(--border);
  background: transparent;
  color: var(--text-dim);
  font-weight: 500;
}
.btn-publish--undo:hover { background: var(--border); color: var(--text); }
.tf-publish-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: #8fbc6a;
}
.tf-publish-link { color: var(--amber); }

/* ── Community reviews on whisky detail page (plan 37) ──── */
.community-reviews { margin-top: 2.5rem; }
.community-reviews > h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.reviews-list { display: grid; gap: 1rem; }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.review-card--own { border-color: var(--amber); }
.review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.review-author { display: flex; align-items: center; gap: .65rem; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-avatar--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,145,46,.18);
  color: var(--amber);
  font-weight: 600;
  font-size: 1.1rem;
}
.review-author-meta { display: flex; flex-direction: column; gap: .15rem; }
.review-author-name {
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.review-own-badge {
  font-size: .68rem;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 20px;
  background: rgba(212,145,46,.18);
  color: var(--amber);
}
/* Reviewer headline badges — compact, static chips (no shimmer at list scale). */
.review-badges { display: inline-flex; flex-wrap: wrap; gap: .25rem; margin-top: .1rem; }
.author-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .08rem .4rem;
  border-radius: 20px;
  line-height: 1.5;
  cursor: help;
  white-space: nowrap;
}
.author-badge--gold  { background: rgba(212,145,46,.18); color: var(--amber); }
.author-badge--green { background: linear-gradient(150deg, #0a3d28 0%, #14684a 60%, #0a3d28 100%); color: #fff; }

/* Anonymous review gate — login teaser in place of the list. */
.community-reviews--gated .reviews-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  background: var(--surface-2, rgba(127,127,127,.04));
}
.reviews-gate-icon { color: var(--text-dim); }
.reviews-gate-text { margin: 0; color: var(--text-dim); font-size: .92rem; }
.reviews-gate-cta {
  display: inline-block;
  padding: .4rem 1.1rem;
  border-radius: 8px;
  background: var(--amber);
  color: #1a1005;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.reviews-gate-cta:hover { background: var(--amber-light); }
.review-date { font-size: .76rem; color: var(--text-dim); }
.review-score { flex-shrink: 0; text-align: right; line-height: 1; }
.review-score-num { font-size: 1.5rem; font-weight: 700; color: var(--amber); }
.review-score-max { font-size: .8rem; color: var(--text-dim); }
.review-radar { margin: .6rem 0; }
.review-text { margin: .6rem 0 0; white-space: pre-line; line-height: 1.55; }
.review-head-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.review-like-form { margin: 0; }
.review-like-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.review-like-btn .icon { fill: none; transition: fill .15s; }
.review-like-btn:hover:not(:disabled) { color: var(--text); border-color: var(--text-dim); }
.review-like-btn.is-liked { color: var(--amber); border-color: var(--amber); }
.review-like-btn.is-liked .icon { fill: var(--amber); }
.review-like-btn:disabled { opacity: .5; cursor: default; }
.review-like-count { line-height: 1; }
@media (max-width: 520px) {
  .review-head { flex-wrap: wrap; }
}

/* ── Tasting Wheel — slider panel ──────────────────────── */
.tw-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .tw-layout { grid-template-columns: 1fr; }
  .tw-chart-container { display: none; }
}

.tw-sliders {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.tw-slider-row {
  display: grid;
  grid-template-columns: 110px 1fr 2rem;
  align-items: center;
  gap: .5rem;
}
.tw-slider-label {
  font-size: .83rem;
  font-weight: 600;
  white-space: nowrap;
}
/* "Rozwiń opisy" — reveal per-category descriptions inline (mobile-friendly,
   since the hover hint can't be seen on touch). */
.tw-desc-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .15rem;
  padding: .25rem .55rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
}
.tw-desc-toggle:hover { border-color: var(--amber); color: var(--amber-light); }
.tw-desc-toggle__chevron { transition: transform .2s ease; }
.tw-desc-toggle--open .tw-desc-toggle__chevron { transform: rotate(180deg); }
.tw-slider-desc {
  grid-column: 1 / -1;
  margin: 0 0 .25rem;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--text-dim);
  display: none;
}
.tw-sliders--described .tw-slider-desc { display: block; }
.tw-slider {
  width: 100%;
  accent-color: var(--amber);
  cursor: pointer;
  height: 5px;
}
.tw-val {
  font-size: .82rem;
  font-weight: 700;
  color: var(--amber-light);
  text-align: right;
}

/* ── Tasting Wheel — SVG radar ─────────────────────────── */
.tw-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tw-radar-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}
.tw-grid-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3,3;
}
.tw-grid-label {
  font-size: 10px;
  fill: var(--text-dim);
  dominant-baseline: auto;
}
.tw-axis {
  stroke-width: 1.5;
  opacity: .6;
}
.tw-cat-label {
  font-size: 13px;
  font-weight: 700;
}
.tw-polygon {
  fill: rgba(212,180,131,.18);
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linejoin: round;
}
.tw-dot {
  opacity: .9;
}

/* ═══════════════════════════════════════════════════════════════
   WHISKY PICKER
   ═══════════════════════════════════════════════════════════════ */

.picker-page { max-width: 860px; margin: 0 auto; }

.picker-header { margin-bottom: 1.8rem; }
.picker-title  { font-size: 1.4rem; font-weight: 700; margin: 0 0 .35rem; }
.picker-subtitle { color: var(--text-dim); font-size: .92rem; margin: 0; }

.picker-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
}
.picker-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* Search bar */
.picker-search-bar {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
}
#picker-q {
  width: 100%;
  padding: .65rem .9rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline-offset: 2px;
}
#picker-q:focus { border-color: var(--amber); }
.picker-search-hint {
  font-size: .78rem;
  color: var(--text-dim);
}
.picker-searching { color: var(--text-dim); font-size: .88rem; padding: .5rem 0; }

/* Results table */
.picker-results { min-height: 2rem; }

.picker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.picker-table thead th {
  padding: .4rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.picker-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.picker-table tbody tr:last-child { border-bottom: none; }
.picker-table tbody tr:hover { background: var(--bg-card-hover); }

.picker-col-thumb {
  width: 52px;
  padding: .4rem .4rem .4rem 0;
}
.picker-col-thumb img,
.picker-col-thumb .picker-thumb-placeholder {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.picker-thumb-placeholder { background: var(--bg-card-hover); }

.picker-col-name {
  padding: .4rem .5rem;
  max-width: 320px;
}
.picker-col-name strong { display: block; }
.picker-distillery {
  font-size: .78rem;
  color: var(--text-dim);
  display: block;
  margin-top: .1rem;
}
.picker-user-badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .05rem .35rem;
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 600;
  background: rgba(90,171,158,.2);
  color: #5aab9e;
  border: 1px solid rgba(90,171,158,.4);
  vertical-align: middle;
}

.picker-col-type,
.picker-col-age,
.picker-col-abv {
  padding: .4rem .5rem;
  white-space: nowrap;
  color: var(--text-dim);
  font-size: .82rem;
}
.picker-col-action {
  padding: .4rem .4rem .4rem .5rem;
  text-align: right;
  white-space: nowrap;
}

.picker-empty {
  padding: .8rem 0;
  color: var(--text-dim);
  font-size: .9rem;
}
.picker-empty p { margin: 0 0 .4rem; }
.picker-empty-hint { font-size: .82rem; }

/* Manual section */
.picker-manual-section { border-top: none; }
.picker-manual-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  border: none;
  color: var(--amber-light);
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color .15s;
}
.picker-manual-toggle:hover { color: var(--amber); }

/* Coming-soon state — not a button, no interaction */
.picker-manual-toggle--soon {
  cursor: default;
  color: var(--text-dim);
  opacity: 0.6;
  pointer-events: none;
}
.picker-manual-toggle--soon:hover { color: var(--text-dim); }
.picker-manual-toggle--soon .picker-manual-icon {
  opacity: 0.5;
}
.picker-manual-soon-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(212,145,46,0.12);
  border: 1px solid rgba(212,145,46,0.3);
  padding: 0.15em 0.55em;
  border-radius: 20px;
  margin-left: 0.2rem;
}

.picker-manual-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(212,180,131,.2);
  border: 1px solid rgba(212,180,131,.4);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background .15s;
}
.picker-manual-toggle:hover .picker-manual-icon { background: rgba(212,180,131,.35); }

.picker-manual-form {
  margin-top: 1.2rem;
}
.picker-manual-desc {
  font-size: .82rem;
  color: var(--text-dim);
  margin: 0 0 1.1rem;
  padding: .5rem .75rem;
  border-left: 3px solid var(--amber);
  background: rgba(212,180,131,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Manual form grid */
.picker-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.2rem;
  margin-bottom: 1.2rem;
}
.pf-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.pf-field--wide { grid-column: 1 / -1; }
.pf-field label {
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.pf-required { color: #e74c3c; }
.pf-field input,
.pf-field select {
  padding: .45rem .65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  width: 100%;
}
.pf-field input:focus,
.pf-field select:focus { border-color: var(--amber); outline: none; }
.pf-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

@media (max-width: 540px) {
  .picker-form-grid { grid-template-columns: 1fr; }
  .pf-field--wide { grid-column: 1; }
  .picker-col-type,
  .picker-col-abv { display: none; }
}
