* { box-sizing: border-box; }
body {
  position: relative;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--c5, #f5f5f0);
  color: var(--on-page-bg, #22201d);
  line-height: 1.6;
  font-size: 15px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../assets/background.png');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 0;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; line-height: 1.25; margin: 0 0 0.5rem; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
a { color: var(--accent-text, #33673B); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.75rem;
  background: var(--c1, #19231A);
  color: #fff;
  flex-wrap: wrap;
  border-radius: 0 0 20px 20px;
}
.site-header .brand { color: var(--on-c1, #fff); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 0.5rem; }
.site-header nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--on-c1, #fff);
  opacity: 0.85;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.site-header nav a:hover { opacity: 1; background: rgba(255,255,255,0.14); text-decoration: none; }

.container { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 2.25rem 1.5rem; }

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  font-size: 0.82rem;
  color: #8a8a80;
}
.site-footer a { color: var(--on-page-bg, #33673B); text-decoration: underline; font-weight: 500; }

.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  color: #22201d;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card.book-card, .card.challenge-card { display: block; position: relative; }
.card.book-card:hover, .card.challenge-card:hover {
  border-color: var(--c4, #CC3F0C);
  text-decoration: none;
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--light-tint, #eef);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
  color: var(--accent-text, #33673B);
}

.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
}

.notice {
  background: var(--light-tint, #eef);
  color: #22201d;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.error {
  background: #fdecea;
  border: 1px solid #f3c7c2;
  color: #922;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}

form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: 0.88rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-weight: 400 !important; }
.checkbox-label input { margin-top: 0.2rem; flex-shrink: 0; }
form input[type=text], form input[type=email], form input[type=password],
form input[type=number], form input[type=date], form input[type=url],
form input[type=file], form select, form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: normal;
  background: #fff;
  transition: border-color 0.15s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--c2, #33673B);
}
form .row { display: flex; gap: 1rem; flex-wrap: wrap; }
form .row label { flex: 1; min-width: 160px; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 24px;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-primary { background: linear-gradient(180deg, var(--c2, #33673B), var(--c2-gradient, #274d2c)); color: var(--on-c2, #fff); border: 1px solid rgba(0,0,0,0.06); }
.btn-primary:hover { opacity: 0.9; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--accent-text, #33673B); border: 1px solid var(--accent-text, #33673B); }
.btn-secondary:hover { background: var(--light-tint, #eef); text-decoration: none; }
.btn-small { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-remove-row { background: none; border: none; color: #c0392b; cursor: pointer; font-size: 0.85rem; padding: 0; }

.book-row { border: 1px solid #e6e6e0; border-radius: 14px; padding: 1.1rem; margin-bottom: 1rem; }
.book-row legend { font-family: 'Space Grotesk', sans-serif; font-weight: 700; padding: 0 0.4rem; }

.muted { color: #8a8a80; font-size: 0.86rem; }
.challenge-description, .book-description { font-size: 0.92rem; line-height: 1.55; margin: 0.4rem 0 0.6rem; }
.challenge-header-info .challenge-description { max-width: 480px; }

.progress-bar-wrap { background: rgba(0,0,0,0.09); border-radius: 20px; height: 12px; overflow: hidden; margin: 0.75rem 0 0.3rem; }
.progress-bar-fill { background: var(--accent-text, #33673B); height: 100%; border-radius: 20px; transition: width 0.3s ease; }

.journal-entry { border-top: 1px solid #eee; padding: 0.9rem 0; }
.journal-list { margin-top: 1.25rem; }
.notes-disclaimer { margin-bottom: 0.75rem; }
.visibility-fieldset { border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 0.75rem 1rem; margin: 0.75rem 0; }
.visibility-fieldset legend { font-size: 0.85rem; font-weight: 600; padding: 0 0.3rem; }
.visibility-fieldset .checkbox-label { margin-top: 0.4rem; }
.badge-visibility { font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: 10px; margin-left: 0.4rem; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-public { background: var(--light-tint, #eef0ea); color: var(--accent-text); }
.badge-private { background: rgba(0,0,0,0.07); color: #6a6a60; }
.note-attribution { margin-left: 0.5rem; font-style: italic; }

.recommend-slider-wrap { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1.1rem; }
.recommend-slider-endpoint { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; color: #6a6a60; flex-shrink: 0; }
.recommend-slider-track { position: relative; flex: 1; padding-top: 1.9rem; }
.recommend-slider-track input[type="range"] {
  width: 100%;
  accent-color: var(--accent-text);
  cursor: pointer;
}
.recommend-slider-tooltip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--accent-text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}
.recommend-slider-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent-text);
}

.review-summary { margin-bottom: 1rem; }
.review-score-display { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.4rem; }
.review-score-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--accent-text); }
.review-actions { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.badge-spoiler { background: rgba(0,0,0,0.07); color: #6a6a60; }
.completed-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  pointer-events: none;
}
.challenge-header-thumb-wrap { position: relative; flex-shrink: 0; }
.completed-badge-small { width: 26px; height: 26px; top: -7px; right: -7px; }
.note-content-wrap { position: relative; margin-top: 0.4rem; }
.note-content-wrap.spoiler-blurred .note-content {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}
.spoiler-reveal-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.55);
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: #22201d;
}
.delete-note-form { margin-top: 0.5rem; }

.badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  text-transform: capitalize;
  background: var(--c3, #ccc);
  color: var(--on-c3, #fff);
  border: 1px solid rgba(0,0,0,0.06);
}
.badge-finished { background: var(--c2, #33673B); color: var(--on-c2, #fff); }
.badge-in_progress { background: var(--c4, #CC3F0C); color: var(--on-c4, #fff); }
.badge-dnf { background: #999; color: #fff; }
.badge-not_started { background: #bbb; color: #3a3a3a; }
.badge-waitlisted { background: #8577b5; color: #fff; }
.badge-mine { background: var(--accent-text, #33673B); color: #fff; margin-bottom: 0.6rem; display: inline-block; }

.book-cover { width: 100%; aspect-ratio: 1/1; background: var(--light-tint, #eee); border-radius: 14px; overflow: hidden; margin-bottom: 0; position: relative; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 0 0 14px 14px;
}
.book-cover-overlay h3 { color: #fff; margin: 0 0 0.15rem; font-size: 0.92rem; }
.book-cover-overlay .muted { color: rgba(255,255,255,0.78); font-size: 0.78rem; margin: 0 0 0.45rem; }
.book-cover-overlay .challenge-tag { margin: 0.4rem 0 0; }
.cover-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 1.8rem; color: var(--accent-text, #33673B); }
.book-cover-preview { max-width: 160px; border-radius: 14px; margin-bottom: 0.85rem; display: block; }

.cover-thumb-wrap { position: relative; display: inline-block; }
.cover-thumb-wrap .book-cover-preview { margin-bottom: 0.85rem; }
.challenge-cover-thumb-preview { max-width: 120px; width: 100%; border-radius: 14px; display: block; margin-bottom: 0.85rem; }
.cover-thumb-edit-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0.75; transition: opacity 0.15s ease;
  font-size: 0.9rem;
}
.cover-thumb-wrap:hover .cover-thumb-edit-btn,
.cover-thumb-wrap:focus-within .cover-thumb-edit-btn {
  opacity: 1;
}
.cover-thumb-edit-btn:hover { background: rgba(0,0,0,0.75); }

.palette-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.palette-option { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; cursor: pointer; border: 1px solid #e6e6e0; padding: 0.55rem 0.9rem; border-radius: 20px; transition: border-color 0.15s ease; }
.palette-option:hover { border-color: var(--accent-text, #33673B); }
.palette-swatch { display: flex; }
.swatch { width: 13px; height: 13px; display: inline-block; border-radius: 50%; margin-left: -4px; border: 1.5px solid #fff; }
.swatch:first-child { margin-left: 0; }

.filter-bar { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; font-size: 0.88rem; }
.filter-bar label { font-weight: normal; display: flex; align-items: center; gap: 0.45rem; }

details summary {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  cursor: pointer;
  color: var(--on-c3, #fff);
  background: var(--c3, #33673B);
  list-style: none;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 24px;
  transition: opacity 0.15s ease;
}
details summary:hover { opacity: 0.88; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { margin-bottom: 1rem; }
details.card form { margin-top: 0.5rem; }

.toggle-btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-toggle-panel {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--on-c3, #fff);
  background: var(--c3, #33673B);
  border: none;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 24px;
  transition: opacity 0.15s ease;
}
.btn-toggle-panel:hover { opacity: 0.88; }
.btn-toggle-panel.active { opacity: 0.7; }
.toggle-panel { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid #eee; }
.toggle-panel form { margin-top: 0.5rem; }
.toggle-panel form:first-child { margin-top: 0; }

.empty-state { text-align: center; padding: 3rem 1.5rem; }

.af-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #e6e6e0;
  border-radius: 14px;
  margin-top: 0.3rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}
.af-dropdown-item {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: normal;
  cursor: pointer;
}
.af-dropdown-item:hover { background: var(--light-tint, #eef); }
.btn-autofill { margin-right: 0.6rem; }

.assist-choice-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
#assist-describe-form, #assist-guided-form { margin-top: 0.75rem; }
#assist-describe-form textarea {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.65rem 0.85rem;
  border: 1px solid #ddd; border-radius: 12px; font-family: inherit; font-size: 0.95rem; resize: vertical;
}
#assist-status { margin-top: 0.9rem; }

.link-field { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.link-field-input { flex: 1; margin-top: 0 !important; }
.link-field-link {
  flex: 1; padding: 0.65rem 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 0.95rem; font-weight: 500;
}
.link-field-link, .link-field-edit { display: none; }
.link-field.has-link .link-field-input { display: none; }
.link-field.has-link .link-field-link, .link-field.has-link .link-field-edit { display: inline-flex; }
.link-field-edit {
  background: transparent; border: 1px solid #ddd; border-radius: 50%;
  width: 32px; height: 32px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--accent-text, #33673B); flex-shrink: 0; font-size: 0.95rem;
}
.link-field-edit:hover { background: var(--light-tint, #eef); }

.icon-btn-edit {
  background: transparent; border: 1px solid #ddd; border-radius: 50%;
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--accent-text, #33673B); font-size: 0.8rem; vertical-align: middle;
}
.icon-btn-edit:hover { background: var(--light-tint, #eef); }

.add-book-extra { display: none; margin-top: 0.5rem; }
.add-book-extra.expanded { display: block; }

.label-with-info > span:first-child { display: inline-flex; align-items: center; gap: 0.35rem; }
.info-icon { position: relative; display: inline-flex; align-items: center; cursor: pointer; color: var(--accent-text, #33673B); font-size: 0.9rem; }
.info-tooltip {
  display: none;
  position: absolute;
  bottom: 135%;
  left: 0;
  width: 230px;
  background: #22201d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.info-icon:hover .info-tooltip,
.info-icon:focus .info-tooltip,
.info-icon.tooltip-active .info-tooltip {
  display: block;
}

.challenge-cover { width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; margin-bottom: 0; position: relative; }
.challenge-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.challenge-cover .card-icon { width: 100%; height: 100%; border-radius: 14px; margin-bottom: 0; font-size: 2.4rem; }
.challenge-cover-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 0 0 14px 14px;
}
.challenge-cover-overlay h2 { color: #fff; margin: 0 0 0.2rem; font-size: 1rem; }
.challenge-cover-overlay p { margin: 0.15rem 0 0; font-size: 0.85rem; }
.challenge-cover-overlay .muted { color: rgba(255,255,255,0.78); font-size: 0.78rem; }
.challenge-cover-overlay .progress-bar-wrap { background: rgba(255,255,255,0.28); margin: 0.4rem 0 0.15rem; }
.challenge-cover-overlay .progress-bar-fill { background: #fff; }

.card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 0.9rem; }

.challenge-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.challenge-header-info { flex: 1; min-width: 0; }
.challenge-header-info h1 { margin-bottom: 0.4rem; }
.challenge-header-info .progress-bar-wrap {
  margin-top: 0;
  max-width: 320px;
  background: color-mix(in srgb, var(--on-page-bg, #22201d) 20%, transparent);
}
.challenge-header-info .progress-bar-fill { background: var(--on-page-bg, #22201d); }
.challenge-cover-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 14px; flex-shrink: 0;
}
.challenge-cover-thumb.default-thumbnail {
  filter: invert(var(--invert-icons, 0));
}

.btn-danger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem; border-radius: 24px; border: 1px solid #e0b4ae;
  background: transparent; color: #c0392b; font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 0.82rem; cursor: pointer;
}
.btn-danger:hover { background: #fdecea; }
.danger-zone { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #eee; }
.auth-card { max-width: 420px; margin: 0 auto; }
.app-intro { margin-bottom: 1.25rem; }
.app-intro p { margin: 0 0 0.6rem; font-size: 0.92rem; }
.app-intro ul { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; line-height: 1.7; color: #4a4a44; }
.prompt-finish { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.link-list { list-style: none; padding: 0; }
.preview-book-list {
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.preview-book-list li {
  padding: 0.4rem 0;
  border-top: 1px solid #eee;
}
.preview-book-list li:first-child { border-top: none; }
.preview-book-title { font-weight: 500; }

.reorder-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.reorder-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid #eee;
}
.reorder-list li:first-child { border-top: none; }
.reorder-title { font-size: 0.9rem; }
.reorder-buttons { display: flex; gap: 0.4rem; flex-shrink: 0; }
.reorder-buttons form { margin: 0; }
.reorder-buttons button { padding: 0.35rem 0.55rem; }
.reorder-buttons button:disabled { opacity: 0.35; cursor: not-allowed; }

#add-row-btn { margin-top: 0.5rem; }
.form-actions { margin-top: 1.25rem; }
.cover-upload-form { margin-top: 0.9rem; }

@media (max-width: 400px) {
  .site-header { padding: 0.85rem 1rem; }
  .site-header .brand { font-size: 1rem; }
  .site-header nav { gap: 0.15rem; }
  .site-header nav a { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
}

/* ---- Dashboard ---- */
.dashboard-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.dashboard-greeting h1 { margin: 0; font-size: 1.4rem; max-width: 560px; }

.dashboard-section { margin-bottom: 2.25rem; }
.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.dashboard-section-head h2 { margin: 0; font-size: 1.05rem; }
.see-all-link { font-size: 0.85rem; color: var(--accent-text); text-decoration: none; }
.see-all-link:hover { text-decoration: underline; }

.icon-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1.1rem 1.1rem 1.3rem;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  color: #22201d;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 230px;
  align-items: flex-start;
}
.icon-carousel::-webkit-scrollbar { display: none; height: 0; }
.icon-carousel-item {
  flex: 0 0 auto;
  width: 128px;
  text-decoration: none;
  color: inherit;
}
.icon-carousel-thumb {
  width: 128px;
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.05);
}
.icon-carousel-thumb-wrap { position: relative; }
.icon-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-carousel-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.icon-carousel-sublabel { margin-top: 0.15rem; font-size: 0.78rem; text-transform: capitalize; }

.icon-carousel-wrap { position: relative; }
.carousel-arrow {
  position: absolute;
  top: 1px;
  bottom: 1px;
  z-index: 3;
  width: 44px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #22201d;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.carousel-arrow:hover { opacity: 1; }
.carousel-arrow.is-hidden { opacity: 0; pointer-events: none; }
.carousel-arrow-left {
  left: 1px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(to right, #fff 45%, rgba(255,255,255,0));
  justify-content: flex-start;
  padding-left: 0.4rem;
}
.carousel-arrow-right {
  right: 1px;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(to left, #fff 45%, rgba(255,255,255,0));
  justify-content: flex-end;
  padding-right: 0.4rem;
}

.icon-carousel-see-more { display: flex; flex-direction: column; align-items: center; text-align: center; }
.see-more-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-tint, #eef0ea);
  font-size: 1.6rem;
  color: var(--accent-text);
}
.icon-carousel-see-more .icon-carousel-label { text-align: center; font-weight: 600; }

@media (max-width: 480px) {
  .icon-carousel-item, .icon-carousel-thumb { width: 104px; height: 104px; }
}
