.wiki-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  overflow: hidden;
}

.wiki-thumb {
  border-radius: 13px;
  max-width: 40%;
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
  background: var(--border-color);
}

.wiki-thumb--logo {
  display: block;
  max-width: 80%;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.75rem;
  margin: 0.75rem auto 2rem auto;
}

.wiki-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wiki-title {
  display: block;
  font-size: var(--font-large);
  font-weight: 600;
  color: var(--link-color);
  text-decoration: none;
  line-height: 1.1;
}

.wiki-title:hover {
  color: var(--link-hover, var(--link-color));
  text-decoration: underline;
}

.wiki-desc {
  margin-bottom: 1rem;
  font-size: var(--font-small);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.wiki-extract {
  font-size: var(--font-medium);
  color: var(--text-primary);
  display: inline;
}

.wiki-footer-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.wiki-footer-link:hover {
  color: var(--link-color);
  text-decoration: underline;
}

.imdb-result {
  padding: 0;
  max-width: 652px;
  color: var(--text-primary);
}

.imdb-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.imdb-poster {
  flex-shrink: 0;
  width: 100px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-light);
}

.imdb-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imdb-hero-text {
  flex: 1;
  min-width: 0;
}

.imdb-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.imdb-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.imdb-title-link {
  color: inherit;
  text-decoration: none;
}

.imdb-title-link:hover .imdb-title,
.imdb-title-link:hover .imdb-filmography-title {
  text-decoration: underline;
}

a.imdb-cast-card {
  color: inherit;
  text-decoration: none;
}

a.imdb-cast-card:hover .imdb-cast-name {
  text-decoration: underline;
}

.imdb-hero-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.imdb-hero-meta .imdb-rated + .imdb-released::before {
  content: " · ";
  color: var(--text-secondary);
}

.imdb-ratings {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.imdb-plot {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.imdb-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.imdb-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8125rem;
}

.imdb-grid-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.imdb-grid-value {
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imdb-cast-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
}

.imdb-cast-strip {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  padding: 0 0.25rem 0 0;
}

.imdb-cast-scroll {
  scrollbar-width: none;
}

.imdb-cast-scroll::-webkit-scrollbar {
  display: none;
}

.imdb-cast-card {
  flex: 0 0 auto;
  width: 5.5rem;
  padding: 0;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imdb-cast-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--border-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imdb-cast-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imdb-cast-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-light);
}

.imdb-cast-card .imdb-cast-name {
  padding: 0.4rem 0.35rem 0.15rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.imdb-cast-character {
  padding: 0 0.35rem 0.4rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.imdb-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary, #1a73e8);
  text-decoration: none;
}

.imdb-link:hover {
  text-decoration: underline;
}

.imdb-hero--compact {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.imdb-hero--compact .imdb-poster {
  width: 80px;
  height: 120px;
}

.imdb-filmography-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.imdb-section-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.imdb-filmography-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
  margin: 0 0 1rem;
}


.imdb-filmography-scroll::-webkit-scrollbar {
  display: none;
}

.imdb-filmography-strip {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0 0.25rem 0 0;
}

.imdb-filmography-scroll::-webkit-scrollbar {
  height: 6px;
}

.imdb-filmography-scroll::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  opacity: 0.3;
  border-radius: 3px;
}

.imdb-movie-card {
  flex: 0 0 auto;
  width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.imdb-movie-card:hover {
  transform: scale(1.02);
}

.imdb-movie-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  margin-bottom: 0.35rem;
}

.imdb-movie-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imdb-movie-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.imdb-movie-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.imdb-movie-year {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

@media (min-width: 480px) {
  .imdb-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .imdb-meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tmdb-tabs {
  position: relative;
}

.tmdb-tab-bar {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.tmdb-tab-bar::-webkit-scrollbar {
  display: none;
}

.tmdb-tab-btn {
  all: unset;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
  margin-bottom: -1px;
}

.tmdb-tab-btn:hover {
  color: var(--text-primary);
}

.tmdb-tab-btn--active {
  color: var(--text-primary);
  border-bottom-color: var(--primary, #1a73e8);
}

.tmdb-accordion {
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.tmdb-accordion .tmdb-accordion {
  border-radius: 6px;
  margin: 0.35rem 0;
}

.tmdb-accordion-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.tmdb-accordion-summary::-webkit-details-marker {
  display: none;
}

.tmdb-accordion-summary::before {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.tmdb-accordion[open] > .tmdb-accordion-summary::before {
  transform: rotate(45deg);
}

.tmdb-accordion-meta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.tmdb-accordion-body {
  padding: 0 0 0.75rem;
  max-height: 20rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.tmdb-season-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tmdb-season-poster {
  flex-shrink: 0;
  width: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.tmdb-season-info {
  flex: 1;
  min-width: 0;
}

.tmdb-season-overview {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-primary);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmdb-season-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary, #1a73e8);
  text-decoration: none;
}

.tmdb-season-link:hover {
  text-decoration: underline;
}

/* ── OSM Slot ─────────────────────────────────────────────── */

.osm-slot-wrap {
  margin-bottom: 12px;
  max-width: 680px;
}

.osm-slot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.osm-slot-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.osm-slot-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex-shrink: 0;
}

.osm-slot-city {
  font-size: 0.72rem;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osm-slot-open {
  font-size: 0.7rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.osm-slot-open:hover {
  text-decoration: underline;
}

.osm-map-container {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Fix Leaflet popup inside dark themes */
.leaflet-popup-content-wrapper {
  background: var(--bg-light) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.leaflet-popup-tip {
  background: var(--bg-light) !important;
}

.leaflet-popup-content {
  margin: 8px 12px !important;
  font-size: 0.8rem !important;
}

/* Fix Leaflet controls inside dark themes */
.leaflet-control-zoom a {
  background: var(--bg-light) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-hover) !important;
}

.leaflet-control-attribution {
  background: rgba(0,0,0,0.4) !important;
  color: var(--text-secondary) !important;
  font-size: 0.6rem !important;
}

.leaflet-control-attribution a {
  color: var(--primary) !important;
}

html[dir="rtl"] .apps-pocket-panel {
  right: auto;
  left: 0;
}

.header-link {
  line-height: 0;
}

.apps-pocket-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: auto;
}

@media (min-width: 767.98px) {
  .apps-pocket-wrapper {
    position: relative;
  }
}

.apps-pocket-launcher {
  background: transparent;
  border: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--text-secondary);
}

.apps-pocket-launcher:hover {
  color: var(--text-primary);
}

#results-header .apps-pocket-launcher {
  margin-left: auto;
}

@media (max-width: 767.98px) {
  #results-header .apps-pocket-wrapper {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    display: flex;
    margin-left: 0;
  }

  #results-header #nav-settings-results {
    position: relative;
    top: auto;
    right: auto;
  }
}

.apps-pocket-panel {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 16px));
  max-height: min(70vh, 480px);
  overflow: auto;
  padding: 12px;
}

@media (max-width: 767.98px) {
  .apps-pocket-panel {
    position: fixed;
    top: 56px;
    right: 8px;
    left: 8px;
    width: auto;
  }
}

.apps-pocket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.apps-pocket-title {
  font-weight: 600;
  color: var(--text-primary);
}

.apps-pocket-info-btn {
  all: unset;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
}

.apps-pocket-info-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.apps-pocket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.apps-pocket-grid::-webkit-scrollbar {
  display: none;
}

.apps-pocket-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}

.apps-pocket-tile:hover {
  background: var(--bg-hover);
}

.apps-pocket-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apps-pocket-tile-img {
  width: 100%;
  object-fit: contain;
}

.apps-pocket-tile-fallback {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  background: var(--bg);
}

.apps-pocket-tile-label {
  font-size: 12px;
  color: var(--text-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-pocket-empty {
  grid-column: 1 / -1;
  padding: 16px 8px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.apps-pocket-bang {
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text-primary);
}

.apps-pocket-modal {
  width: 640px;
}

.apps-pocket-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 2px;
}

.apps-pocket-rows::-webkit-scrollbar {
  display: none;
}

.apps-pocket-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.apps-pocket-row-add {
  align-self: flex-start;
}

.apps-pocket-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.apps-pocket-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  resize: vertical;
  min-height: 160px;
}

/* ── Page logo elements ─────────────────────────────────────────────────────── */

.logotype-img {
  display: block;
  max-height: 300px;
  max-width: 500px;
  width: auto;
  object-fit: contain;
}
.logotype-img--search { max-width: 300px; }

.logotype-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  line-height: 1;
  white-space: nowrap;
}
.logotype-wordmark--search { gap: 0.25em; }

.lt-word-text {
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: inherit;
  white-space: nowrap;
}
.logotype-wordmark--search .lt-word-text {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.lt-word-dec {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.lt-word-dec--dot { align-self: center; }

/* ── Card ────────────────────────────────────────────────────────────────────── */

#logotype-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px;
}

/* ── Mode tabs ───────────────────────────────────────────────────────────────── */

.lt-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lt-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(128,128,128,0.22);
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
  user-select: none;
}
.lt-mode-tab:hover { opacity: 0.8; background: rgba(128,128,128,0.06); }
.lt-mode-tab.active {
  opacity: 1;
  background: rgba(128,128,128,0.1);
  border-color: var(--accent, var(--degoog-accent, currentColor));
}

/* ── Preview ─────────────────────────────────────────────────────────────────── */

.lt-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: rgba(128,128,128,0.08);
  border-radius: 8px;
  padding: 14px 16px 12px;
}

.lt-preview-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.45;
}

.lt-preview-logo-area {
  min-height: 52px;
  display: flex;
  align-items: center;
}

.lt-wm-preview-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.lt-wm-preview-empty { opacity: 0.2; }

.lt-preview-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  border: 1px solid rgba(128,128,128,0.2);
  background: rgba(128,128,128,0.06);
  padding: 7px 14px;
}

/* ── Panels ──────────────────────────────────────────────────────────────────── */

.lt-panel { display: flex; flex-direction: column; gap: 14px; }

/* ── Sections ────────────────────────────────────────────────────────────────── */

.lt-section { display: flex; flex-direction: column; gap: 8px; }

.lt-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.5;
}

/* ── Text input ──────────────────────────────────────────────────────────────── */

.lt-text-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid rgba(128,128,128,0.28);
  background: rgba(128,128,128,0.06);
  color: inherit;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.lt-text-input:focus { border-color: rgba(128,128,128,0.55); }

/* ── Font chips ──────────────────────────────────────────────────────────────── */

.lt-font-picker { display: flex; flex-wrap: wrap; gap: 6px; }

.lt-font-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid rgba(128,128,128,0.28);
  background: transparent;
  color: inherit;
  opacity: 0.55;
  transition: opacity 0.15s, border-color 0.15s;
  white-space: nowrap;
  user-select: none;
}
.lt-font-chip:hover { opacity: 0.85; border-color: rgba(128,128,128,0.5); }
.lt-font-chip.active {
  opacity: 1;
  border-color: var(--accent, var(--degoog-accent, currentColor));
  background: rgba(128,128,128,0.1);
}

/* ── Color mode group ────────────────────────────────────────────────────────── */

.lt-mode-group {
  display: inline-flex;
  border: 1px solid rgba(128,128,128,0.28);
  border-radius: 6px;
  overflow: hidden;
  align-self: flex-start;
}

.lt-mode-btn {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-right: 1px solid rgba(128,128,128,0.28);
  background: transparent;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}
.lt-mode-btn:last-child { border-right: none; }
.lt-mode-btn:hover { opacity: 0.8; background: rgba(128,128,128,0.08); }
.lt-mode-btn.active { opacity: 1; background: rgba(128,128,128,0.14); }

/* ── Color swatches ──────────────────────────────────────────────────────────── */

.lt-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.lt-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.12s, border-color 0.12s;
  outline-offset: 2px;
}
.lt-swatch:hover { transform: scale(1.15); }
.lt-swatch.active {
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
  transform: scale(1.1);
}

.lt-swatch-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(128,128,128,0.5);
  cursor: pointer;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.15s;
  position: relative;
  overflow: hidden;
}
.lt-swatch-custom:hover { opacity: 1; }
.lt-swatch-custom input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
}

.lt-swatches-grad .lt-swatch { width: 36px; border-radius: 4px; }

/* ── Gradient row ────────────────────────────────────────────────────────────── */

.lt-grad-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lt-grad-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  opacity: 0.7;
  cursor: pointer;
}
.lt-grad-label input[type="color"] {
  width: 28px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(128,128,128,0.3);
  background: none;
  cursor: pointer;
  padding: 1px;
}

.lt-angle-group {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.lt-angle-btn {
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(128,128,128,0.28);
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.12s, background 0.12s;
}
.lt-angle-btn:hover { opacity: 0.8; }
.lt-angle-btn.active {
  opacity: 1;
  background: rgba(128,128,128,0.15);
  border-color: rgba(128,128,128,0.55);
}

/* ── Decorator chips ─────────────────────────────────────────────────────────── */

.lt-dec-group { display: flex; gap: 6px; flex-wrap: wrap; }

.lt-dec-chip {
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(128,128,128,0.28);
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.5;
  gap: 4px;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
}
.lt-dec-chip:hover { opacity: 0.85; background: rgba(128,128,128,0.08); }
.lt-dec-chip.active {
  opacity: 1;
  background: rgba(128,128,128,0.14);
  border-color: var(--accent, var(--degoog-accent, currentColor));
}

/* ── Position buttons ────────────────────────────────────────────────────────── */

.lt-pos-group {
  display: inline-flex;
  border: 1px solid rgba(128,128,128,0.28);
  border-radius: 6px;
  overflow: hidden;
  align-self: flex-start;
}

.lt-pos-btn {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-right: 1px solid rgba(128,128,128,0.28);
  background: transparent;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
}
.lt-pos-btn:last-child { border-right: none; }
.lt-pos-btn:hover { opacity: 0.8; background: rgba(128,128,128,0.08); }
.lt-pos-btn.active { opacity: 1; background: rgba(128,128,128,0.14); }

/* ── Image panel ─────────────────────────────────────────────────────────────── */

.lt-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1.5px dashed rgba(128,128,128,0.35);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  background: rgba(128,128,128,0.04);
}
.lt-upload-zone:hover {
  border-color: rgba(128,128,128,0.6);
  background: rgba(128,128,128,0.08);
}

.lt-upload-text {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.75;
}
.lt-upload-hint { font-size: 0.72rem; opacity: 0.4; }

.lt-img-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.lt-img-thumb {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(128,128,128,0.22);
  background: rgba(128,128,128,0.06);
  padding: 4px 8px;
}

.lt-img-none {
  font-size: 0.8rem;
  opacity: 0.4;
  font-style: italic;
  margin: 4px 0 0;
  text-align: center;
}

/* ── Display size (collapsible) ──────────────────────────────────────────────── */

.lt-dims-details {
  border: 1px solid rgba(128,128,128,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.lt-dims-summary {
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.65;
  transition: opacity 0.15s, background 0.15s;
}
.lt-dims-summary::-webkit-details-marker { display: none; }
.lt-dims-summary::before {
  content: "▶";
  font-size: 0.6em;
  display: inline-block;
  transition: transform 0.18s;
}
details[open] .lt-dims-summary::before { transform: rotate(90deg); }
.lt-dims-summary:hover { opacity: 1; background: rgba(128,128,128,0.05); }

.lt-dims-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(128,128,128,0.12);
}

.lt-dims-group { display: flex; flex-direction: column; gap: 6px; }

.lt-dims-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.45;
}

/* ── Sliders ─────────────────────────────────────────────────────────────────── */

.lt-slider-row { display: flex; align-items: center; gap: 8px; }

.lt-slider-label {
  font-size: 0.78rem;
  opacity: 0.65;
  min-width: 50px;
}

.lt-slider { flex: 1; accent-color: var(--accent, var(--degoog-accent, currentColor)); }

.lt-slider-val {
  font-size: 0.78rem;
  opacity: 0.65;
  min-width: 44px;
  text-align: right;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */

.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(128,128,128,0.32);
  background: transparent;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
  white-space: nowrap;
  align-self: flex-start;
}
.lt-btn:hover { opacity: 1; background: rgba(128,128,128,0.1); }

.lt-btn-primary {
  background: rgba(128,128,128,0.18);
  border-color: rgba(128,128,128,0.4);
  opacity: 1;
}
.lt-btn-primary:hover { background: rgba(128,128,128,0.28); }

.lt-btn-danger { color: var(--danger, #e06c75); border-color: rgba(224,108,117,0.32); opacity: 0.7; }
.lt-btn-danger:hover { background: rgba(224,108,117,0.1); opacity: 1; }

.lt-btn-ghost { border-color: transparent; opacity: 0.5; }
.lt-btn-ghost:hover { border-color: rgba(128,128,128,0.22); background: rgba(128,128,128,0.08); opacity: 0.75; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */

.lt-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(128,128,128,0.1);
}

.lt-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lt-status { font-size: 0.78rem; opacity: 0.6; margin: 0; }

/* users-online/style.css  v1.0.0
   All selectors prefixed .uo- to avoid conflicts.
   Uses Degoog CSS variables for automatic theme support. */

/* ════════════════════════════════════════
   HEADER BUTTON
   Injected before #nav-settings-top
   ════════════════════════════════════════ */

#uo-header-btn,
.uo-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  margin-right: 10px;
  vertical-align: middle;

  background: var(--bg-hover, rgba(255,255,255,0.07));
  border: 1px solid var(--border, rgba(255,255,255,0.14));
  border-radius: 6px;

  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary, #e8e8ec);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;

  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

#uo-header-btn:hover,
.uo-header-btn:hover {
  background: var(--primary-muted, rgba(99,102,241,0.18));
  border-color: var(--primary, #6366f1);
  color: var(--primary, #6366f1);
}

/* ════════════════════════════════════════
   SIDEBAR CARD
   ════════════════════════════════════════ */

.uo-sidebar {
  padding: 12px 14px;
  font-size: 13px;
}

.uo-sidebar-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.uo-sidebar-icon { font-size: 16px; }

.uo-sidebar-title { font-size: 13px; }

.uo-count-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.uo-count {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1;
}

.uo-count-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.uo-hint {
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.7;
  line-height: 1.5;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   MODAL OVERLAY
   ════════════════════════════════════════ */

.uo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.uo-overlay.uo-overlay--open { opacity: 1; }

.uo-modal-loading,
.uo-modal-error {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.uo-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: uo-spin 0.7s linear infinite;
}
@keyframes uo-spin { to { transform: rotate(360deg); } }

.uo-modal-inner {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: uo-pop 0.2s ease;
}

@keyframes uo-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.uo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.uo-modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* Modal header */
.uo-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-right: 36px;
}

.uo-modal-icon { font-size: 28px; line-height: 1; }

.uo-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.uo-modal-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Count hero */
.uo-modal-count-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.uo-modal-count {
  font-size: 48px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  line-height: 1;
}

.uo-modal-count-label {
  font-size: 14px;
  color: var(--text-secondary);
  align-self: flex-end;
  padding-bottom: 6px;
}

.uo-modal-note {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Hide me section */
.uo-hide-section {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.uo-hide-header {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.uo-hide-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.uo-hide-label { flex: 1; min-width: 0; }

.uo-hide-label-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.uo-hide-label-desc {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  line-height: 1.5;
}

/* Toggle switch */
.uo-toggle-btn {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  background: var(--border, rgba(255,255,255,0.14));
  border: none;
  border-radius: 99px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.uo-toggle-btn.uo-toggle-on {
  background: var(--primary, #6366f1);
}

.uo-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  pointer-events: none;
}

.uo-toggle-btn.uo-toggle-on .uo-toggle-knob {
  left: 21px;
}
