.ct-collection .ct-feed { margin-top:28px; }
.ct-collection .ct-feed h2 { margin-bottom:12px; }
.ct-collection-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0 26px; }
.ct-collection-summary div,.ct-collection-card { border:1px solid var(--line); border-radius:16px; background:var(--cream); }
.ct-collection-summary div { display:flex; flex-direction:column-reverse; gap:5px; padding:14px; }
.ct-collection-summary dd { font-family:var(--hand); font-size:30px; font-weight:700; line-height:1; margin:0; }
.ct-collection-summary dt { color:var(--muted); overflow-wrap:anywhere; }
.ct-collection-grid { display:grid; gap:7px; }
.ct-collection-card { display:grid; gap:8px; min-width:0; padding:18px; scroll-margin-top:110px; overflow-wrap:anywhere; }
.ct-collection-card.selected { border-color:var(--ink); box-shadow:2px 2px 0 var(--lime); }
.ct-collection-card h3,.ct-collection-card p { margin:0; }
.ct-collection-card-top,.ct-collection-card-actions,.ct-collection-undo { display:flex; align-items:center; gap:8px 14px; flex-wrap:wrap; }
.ct-collection-stamp {
  display:inline-flex; border:1px dashed var(--muted); color:var(--ink); border-radius:8px 6px;
  padding:3px 8px; font-family:var(--hand); font-weight:700; transform:rotate(-4deg);
}
.ct-collection-card .text-button,.ct-collection-undo .text-button,.ct-collection-popup-action { min-height:44px; }
.ct-collection-actions { margin:18px 0; }
.ct-collection-actions.compact { margin:0 0 14px; padding:4px 0 9px; border-bottom:1px dashed var(--line); }
.ct-collection-actions .button { min-height:44px; white-space:normal; }
.ct-collection-actions [aria-pressed="true"] { background:var(--lime); }
.ct-collection-form { border-top:1px dashed var(--line); padding-top:14px; margin-top:12px; }
.ct-collection-form details { margin:12px 0; }
.ct-collection-form summary { width:fit-content; cursor:pointer; padding:8px 0; }
.ct-collection-undo { width:fit-content; background:var(--lime); border-radius:12px; margin:10px 0; padding:3px 12px; }
.ct-collection-undo.fresh { animation:ct-collection-stamp .24s ease-out; }
@keyframes ct-collection-stamp { 0% { transform:scale(.97); opacity:.55; } 100% { transform:scale(1); opacity:1; } }
#ct-coffee-map { z-index:0; isolation:isolate; height:clamp(235px,38vh,340px); border:1px solid var(--line); border-radius:18px; background:#f2ecdf; }
#ct-coffee-map .leaflet-popup-content { font-family:inherit; margin:12px 16px; }
#ct-coffee-map .leaflet-popup-content button { display:block; text-align:left; }
#ct-coffee-map .leaflet-control-zoom a { width:40px; height:40px; line-height:40px; }
.ct-collection .leaflet-container { font-family:inherit; }
#ct-coffee-map .ct-collection-pin-face {
  display:grid; place-items:center; width:44px; height:44px; border:2px solid var(--ink);
  border-radius:50% 48% 50% 46%; background:var(--cream); box-shadow:2px 2px 0 var(--ink);
}
#ct-coffee-map .ct-collection-pin.selected .ct-collection-pin-face { background:var(--lime); box-shadow:0 0 0 3px var(--ink); }
#ct-coffee-map .ct-collection-pin-face img { width:38px; height:34px; object-fit:contain; }
.ct-collection-pin-count {
  position:absolute; right:-4px; bottom:-2px; display:grid; place-items:center;
  min-width:20px; min-height:20px; padding:0 3px; border:1px solid var(--ink); border-radius:20px;
  background:var(--lime); color:var(--ink); font:800 12px/1 var(--body);
}
.ct-tasting-score { margin-inline-start:auto; border-radius:20px; padding:4px 11px; background:var(--lime); }
.ct-tasting-profile { margin:5px 0; padding-top:9px; border-top:1px dashed var(--line); }
.ct-tasting-profile figcaption { font-weight:800; }
.ct-radar-wrap { position:relative; width:min(100%,360px); margin-inline:auto; }
.ct-radar-wrap svg { display:block; width:100%; height:auto; }
.ct-radar-wrap.editable { width:min(100%,510px); }
.ct-radar-wrap.editable svg { touch-action:none; user-select:none; cursor:grab; }
.ct-radar-wrap.editable svg:active { cursor:grabbing; }
.ct-radar-labels { position:absolute; inset:0; pointer-events:none; }
.ct-radar-label {
  position:absolute; transform:translate(-50%,-50%); white-space:nowrap;
  display:flex; align-items:center; gap:.3em;
  color:var(--ink); font:700 clamp(10px,3.2vw,13px)/1 var(--body);
}
.ct-radar-label[data-score-side="above"] { flex-direction:column-reverse; }
.ct-radar-label[data-score-side="below"] { flex-direction:column; }
.ct-radar-label[data-score-side="left"] { flex-direction:row-reverse; }
.ct-radar-label strong { color:#42521c; font-weight:900; }
.ct-radar-label strong[hidden] { display:none; }
.ct-radar-label.active { border-radius:15px; background:var(--lime); padding:5px 7px; }
.ct-radar-label.active strong { color:inherit; }
.ct-radar-grid { fill:none; stroke:var(--line); stroke-width:1.25; }
.ct-radar-grid line.active { stroke:#566529; stroke-width:2.6; }
.ct-radar-profile { fill:var(--lime); fill-opacity:.55; stroke:#566529; stroke-width:2.5; pointer-events:none; }
.ct-radar-point { fill:var(--lime); stroke:var(--ink); stroke-width:1.6; }
.ct-radar-sliders { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:5px 16px; }
.ct-radar-sliders label { display:grid; grid-template-columns:minmax(0,1fr) minmax(60px,1.2fr) 2ch; align-items:center; gap:7px; min-height:42px; font-size:13px; }
.ct-radar-sliders input { width:100%; accent-color:#566529; }
.ct-radar-sliders output { text-align:right; }
#ct-my-ratings h2 { scroll-margin-top:105px; }
.ct-collection-popup-action { width:100%; overflow-wrap:anywhere; }
#ct-collection-selection:empty { display:none; }
@media(max-width:600px) {
  .ct-collection-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ct-collection-card { padding:15px; }
  .ct-collection-actions .button,.ct-collection-card .text-button { font-size:13px; }
}

.ct-export-frame {
  position:absolute; inset:0 auto auto -200vw; width:400px;
  box-sizing:border-box; background:var(--paper); padding:16px 19px 19px 16px;
  color:var(--ink); font-family:var(--body); pointer-events:none;
}
.ct-export-card.ct-collection-card {
  position:relative; display:flex; flex-direction:column; gap:9px;
  border:1.25px solid var(--ink); border-radius:16px; padding:19px;
  font-size:16px; line-height:1.45;
}
.ct-export-card .ct-collection-card-top { margin-bottom:5px; }
.ct-export-card h3 { font:800 22px/1.2 var(--body); }
.ct-export-card .ct-radar-label { font-size:12px; }
.ct-export-card .ct-tasting-profile { margin:6px 0 0; }
.ct-export-card .ct-tasting-profile,.ct-export-card .ct-rating-note { border-top:1px dashed var(--line); padding-top:10px; }
.ct-export-brand { display:flex; justify-content:center; border-top:1px solid var(--line); padding-top:9px; margin-top:6px; }
.ct-export-brand .ct-brand-lockup { height:42px; gap:8px; }
.ct-export-brand .ct-brand-cup { width:43px; height:38px; }
.ct-export-brand .ct-brand-wordmark { width:138px; max-width:none; height:35px; }
.ct-share-dialog { width:min(92vw,440px); background:var(--paper); color:var(--ink); border-radius:16px; padding:15px; }
.ct-share-dialog img { display:block; max-width:100%; max-height:65vh; margin:0 auto; object-fit:contain; }
.ct-share-actions { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; padding-top:10px; }

#ct-coffee-map .leaflet-tile-pane { filter:saturate(.88) contrast(.92) brightness(1.06); }
#ct-coffee-map .leaflet-bar { border:1px solid var(--line); border-radius:9px; overflow:hidden; box-shadow:none; }
#ct-coffee-map .leaflet-bar a { background:var(--cream); color:var(--ink); }
#ct-coffee-map .leaflet-popup-content-wrapper { background:var(--cream); color:var(--ink); border-radius:12px; }
.ct-map-popover > div + div { border-top:1px solid var(--line); margin-top:6px; }
.ct-map-link { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.ct-map-popover .ct-map-link { display:inline-flex; min-height:32px; align-items:center; }
.ct-tasting-detail.ct-collection-card { display:block; padding:0; }
.ct-tasting-summary,.ct-saved-panel > summary {
  cursor:pointer; display:grid; grid-template-columns:14px minmax(0,1fr) auto auto;
  align-items:center; gap:8px; padding:11px 14px; min-height:48px;
  list-style:none; box-sizing:border-box;
}
.ct-tasting-summary::-webkit-details-marker,.ct-saved-panel > summary::-webkit-details-marker { display:none; }
.ct-tasting-summary::before,.ct-saved-panel > summary::before {
  content:''; display:block; width:7px; height:7px; border-right:1.5px solid;
  border-bottom:1.5px solid; transform:rotate(-45deg);
}
[open] > .ct-tasting-summary::before,.ct-saved-panel[open] > summary::before { transform:rotate(45deg); margin-top:-4px; }
.ct-tasting-summary-name { font-weight:800; }
.ct-tasting-summary-date { color:var(--muted); font-size:13px; }
.ct-tasting-summary .ct-tasting-score { white-space:nowrap; font-size:13px; }
.ct-tasting-detail-body {
  display:grid; gap:8px; padding:12px 14px 15px; margin:0;
  border-top:1px dashed var(--line);
}
.ct-tasting-detail-body > button { justify-self:start; }
.ct-saved-panel { border:1px solid var(--line); border-radius:14px; background:var(--cream); margin:7px 0; }
.ct-saved-panel > summary { grid-template-columns:14px minmax(0,1fr) auto; }
.ct-saved-panel > summary span { color:var(--muted); font-size:13px; }
.ct-saved-panel-body { padding:0 12px 12px; }
.ct-collection .ct-reader-account { margin:22px 0 0; }
@media (max-width:420px) {
  .ct-tasting-summary { grid-template-columns:12px minmax(0,1fr) auto; row-gap:2px; }
  .ct-tasting-summary-date { grid-column:2; grid-row:2; }
  .ct-tasting-summary .ct-tasting-score { grid-column:3; grid-row:1 / span 2; }
}

.ct-explorer-intro {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,240px) auto; align-items:center;
}
.ct-explorer-intro > img { grid-column:3; }
.ct-explorer {
  background:var(--cream); border:1px solid var(--line); border-radius:14px;
  padding:10px 13px; font:700 13px/1.35 var(--body); min-width:0;
}
.ct-explorer-heading,.ct-explorer-caption {
  display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 8px;
}
.ct-explorer-heading strong { font:700 19px/1.1 var(--hand); }
.ct-explorer progress {
  display:block; width:100%; height:8px; margin:8px 0 6px; border:0; border-radius:9px; overflow:hidden;
  appearance:none; background:#e9e1d2; accent-color:#a5bb52;
}
.ct-explorer progress::-webkit-progress-bar { background:#e9e1d2; border-radius:9px; }
.ct-explorer progress::-webkit-progress-value { background:#a5bb52; border-radius:9px; }
.ct-explorer progress::-moz-progress-bar { background:#a5bb52; border-radius:9px; }
.ct-explorer-caption { color:var(--muted); font-size:12px; }
.ct-explorer-rank {
  display:inline-block; margin-top:8px; border-radius:14px; padding:3px 8px;
  background:var(--lime); color:var(--ink); font-size:12px;
}
@media (max-width:760px) {
  .ct-explorer-intro { grid-template-columns:minmax(0,1fr) auto; }
  .ct-explorer-intro > img { grid-column:2; grid-row:1; }
  .ct-explorer { grid-column:1 / -1; grid-row:2; }
}
