#results-layout:has(#engine-stats) #sidebar-col {
  display: none;
}

#results-layout:has(#engine-stats) #results-main {
  max-width: none;
}

.es-command {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 2rem;
}

.es-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.es-heading {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.es-logo {
  color: var(--primary);
  font-size: 1.5rem;
}

.es-heading-text {
  display: flex;
  flex-direction: column;
}

.es-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.es-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.es-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.es-tabs {
  display: flex;
  gap: 0.25rem;
}

.es-tab {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.es-tab:hover {
  background: var(--bg-hover);
}

.es-tab--on {
  background: var(--primary);
  color: var(--white);
}


.es-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.es-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--bg-light);
}

.es-card-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.es-card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.es-table-wrap {
  overflow-x: auto;
}

.es-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.es-table th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.es-table td {
  padding: 0.55rem 0.6rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.es-row:hover td {
  background: var(--bg-hover);
}

.es-num {
  font-variant-numeric: tabular-nums;
}

.es-engine {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.es-name {
  font-weight: 500;
}

.es-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-secondary);
}

.es-dot--healthy {
  background: var(--success);
}

.es-dot--shaky {
  background: var(--warning, #d98324);
}

.es-dot--down {
  background: var(--danger);
}

.es-row--down .es-fail,
.es-error {
  color: var(--danger);
}

.es-row--shaky .es-fail {
  color: var(--warning, #d98324);
}

.es-chips {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.es-chip {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.es-muted {
  color: var(--text-secondary);
}

.es-empty,
.es-foot {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.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;
}

.gh-slot-result {
  padding: 0;
  max-width: 100%;
  width: 100%;
  color: var(--text-primary);
  min-width: 0;
}

.gh-slot-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gh-slot-section {
  margin-bottom: 0;
  min-width: 0;
}

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

.gh-slot-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
  min-width: 0;
}

.gh-slot-grid::-webkit-scrollbar {
  /* The global theme rule (src/styles/style.scss) only sets `width`, which
     affects vertical scrollbars. Set the height here so the horizontal bar
     of this grid matches (0.5rem). Ideally this moves into the theme so all
     horizontal scrollbars are consistent site-wide. */
  height: 0.5rem;
}

.gh-slot-grid::-webkit-scrollbar-track {
  background: var(--bg-hover);
  border-radius: 3px;
}

.gh-slot-grid::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  opacity: 0.4;
  border-radius: 3px;
}

.gh-slot-card {
  display: block;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 280px;
  transition: background 0.15s ease;
}

.results-slot-panel-body a:hover {
  text-decoration: none;
}

.gh-slot-card {
  background: var(--bg-hover);
}

.gh-slot-avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gh-slot-avatar--user {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.gh-slot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-slot-avatar-placeholder {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gh-slot-repo-head,
.gh-slot-user-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.gh-slot-repo-meta,
.gh-slot-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gh-slot-repo-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary, #0969da);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-slot-repo-lang {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gh-slot-stars {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.gh-slot-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-slot-user-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.gh-slot-user-login {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gh-slot-user-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.math-widget {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  max-width: 652px;
  color: var(--text-primary);
}

.math-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

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

.math-query {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.math-equals {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.math-result {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.math-calc {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 652px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.math-calc-screen {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.math-calc-expr {
  width: 100%;
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 12px;
  outline: none;
}

.math-calc-result {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  min-height: 1.6rem;
  padding: 0 0.75rem;
}

.math-calc-keys {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.math-calc-row {
  display: flex;
  gap: 0.4rem;
}

.math-calc-key {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.7rem 0;
  cursor: pointer;
  transition: background 0.15s;
}

.math-calc-key:hover {
  background: var(--bg-hover);
}

.math-calc-fn {
  color: var(--text-secondary);
}

.math-calc-eq {
  background: var(--brand-blue);
  color: #fff;
}

.math-calc-eq:hover {
  background: var(--brand-blue);
  opacity: 0.92;
}

.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;
}

.glance-ai-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.glance-ai-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.glance-ai-title .fa-robot {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.glance-ai-sources-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border: none;
  border-radius: 1.5rem;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.glance-ai-sources-toggle:hover {
  color: var(--text-primary);
}

.glance-ai-sources-toggle::after {
  content: "\25BE";
  font-size: 0.625rem;
  line-height: 1;
  transition: transform 0.15s;
}

.glance-ai-sources-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.glance-ai-stack {
  display: inline-flex;
  align-items: center;
}

.glance-ai-stack-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--bg-hover);
  object-fit: contain;
}

.glance-ai-stack-icon + .glance-ai-stack-icon {
  margin-left: -6px;
}

.glance-ai-rail {
  display: flex;
  gap: 0.5rem;
  margin: -0.25rem 0 0.75rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.glance-ai-rail[hidden] {
  display: none;
}

.glance-ai-rail-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 0 0 11rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
  scroll-snap-align: start;
  transition: background 0.15s;
}

.glance-ai-rail-card:hover {
  background: rgba(var(--primary-rgb), 0.12);
  text-decoration: none;
}

.glance-ai-rail-head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.glance-ai-rail-icon {
  flex-shrink: 0;
  border-radius: 3px;
}

.glance-ai-rail-host {
  color: var(--text-secondary);
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glance-ai-rail-title {
  font-size: 0.75rem;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glance-ai-body--clamped {
  min-height: 160px;
  max-height: 160px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.glance-ai-body .glance-snippet > :first-child {
  margin-top: 0;
}

.glance-ai-body .glance-snippet p,
.glance-ai-reply p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.glance-ai-body .glance-snippet h2,
.glance-ai-body .glance-snippet h3,
.glance-ai-reply h2,
.glance-ai-reply h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.glance-ai-body .glance-snippet ul,
.glance-ai-body .glance-snippet ol,
.glance-ai-reply ul,
.glance-ai-reply ol {
  margin: 0 0 0.75rem;
  padding-inline-start: 1.15rem;
}

.glance-ai-body .glance-snippet li,
.glance-ai-reply li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.glance-ai-body .glance-snippet li::marker,
.glance-ai-reply li::marker {
  color: var(--text-secondary);
}

.glance-ai-body .glance-snippet table,
.glance-ai-reply table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 0 0.75rem;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.glance-ai-body .glance-snippet th,
.glance-ai-body .glance-snippet td,
.glance-ai-reply th,
.glance-ai-reply td {
  padding: 0.375rem 0.625rem;
  text-align: start;
  vertical-align: top;
}

.glance-ai-body .glance-snippet thead th,
.glance-ai-reply thead th {
  background: var(--bg-hover);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.glance-ai-body .glance-snippet tbody tr:nth-child(even),
.glance-ai-reply tbody tr:nth-child(even) {
  background: var(--bg-hover);
}

.glance-ai-body .glance-snippet code,
.glance-ai-reply code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-hover);
  font-size: 0.8125em;
}

.glance-ai-body .glance-snippet pre,
.glance-ai-reply pre {
  margin: 0 0 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--bg-hover);
  overflow-x: auto;
}

.glance-ai-body .glance-snippet pre code,
.glance-ai-reply pre code {
  padding: 0;
  background: none;
}

.glance-ai-body .glance-snippet blockquote,
.glance-ai-reply blockquote {
  margin: 0 0 0.75rem;
  padding: 0.125rem 0 0.125rem 0.75rem;
  border-inline-start: 2px solid var(--border);
  color: var(--text-secondary);
}

.glance-ai-body .glance-snippet hr,
.glance-ai-reply hr {
  margin: 1rem 0;
  border: none;
  height: 1px;
  background: var(--border);
}

.glance-ai-key {
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(var(--primary-rgb), 0.16);
  color: var(--text-primary);
  font-weight: 600;
}

.glance-ai.degoog-panel {
  overflow: visible;
  position: relative;
  background: transparent;
}

.glance-ai:has(.glance-ai-collapse:not([hidden])) {
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}

.glance-ai-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 0.25rem;
  background: var(--bg);
  color: var(--white);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.15s;
  border: 2px solid var(--primary);
  border-radius: 2rem;
}

.glance-ai-expand::after {
  content: "\25BE";
  font-size: 0.75rem;
  line-height: 1;
}

.glance-ai-expand:hover {
  color: var(--text-primary);
}

.glance-ai-expand[hidden],
.glance-ai-collapse[hidden] {
  display: none;
}

.glance-ai-collapse {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: auto;
  margin: 0;
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(-50%, 50%);
  transition: color 0.15s;
}

.glance-ai-collapse::after {
  content: "\25BE";
  font-size: 0.75rem;
  line-height: 1;
  transform: rotate(180deg);
}

.glance-ai-collapse:hover {
  color: var(--text-primary);
}

.glance-ai-cite {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: baseline;
  margin: 0 2px;
  padding: 0 4px;
  max-width: 12rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s;
}

.glance-ai-cite:hover,
.glance-ai-cite--open {
  background: var(--bg-hover);
}

.glance-ai-cite-favicon {
  flex-shrink: 0;
  border-radius: 2px;
  vertical-align: middle;
}

.glance-ai-cite-host {
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glance-ai-cite-more {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.glance-ai-pop {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 17rem;
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.375rem;
  border-radius: 0.5rem;
  background: var(--bg-light);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.glance-ai-pop--visible {
  display: block;
}

.glance-ai-pop--pinned {
  pointer-events: auto;
}

.glance-ai-pop-label {
  padding: 0.25rem 0.375rem;
  color: var(--text-secondary);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.glance-ai-pop-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.375rem;
  border-radius: 0.375rem;
  color: var(--text-primary);
  text-decoration: none;
}

.glance-ai-pop--pinned .glance-ai-pop-row:hover {
  background: rgba(var(--primary-rgb), 0.12);
  text-decoration: none;
}

.glance-ai-pop-head {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
}

.glance-ai-pop-host {
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glance-ai-pop-title {
  font-weight: 500;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glance-ai-pop-snippet {
  color: var(--text-secondary);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glance-ai-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.glance-ai-chat {
  margin-top: 0.75rem;
}

@property --glance-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.glance-ai-input-wrap--styled {
  position: relative;
  padding: 2px;
  border-radius: 0.5rem;
}

.glance-ai-input-wrap--styled::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glance-angle),
    var(--brand-blue, var(--primary)),
    var(--danger),
    var(--brand-yellow, var(--warning)),
    var(--success),
    var(--brand-blue, var(--primary))
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.glance-ai-input-wrap--styled:focus-within::before {
  opacity: 1;
  animation: glance-ai-spin 4s linear infinite;
}

@keyframes glance-ai-spin {
  to {
    --glance-angle: 360deg;
  }
}

.glance-ai-input {
  position: relative;
  width: 100%;
  min-height: 5rem;
  resize: none;
}

.glance-ai-reply {
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.875rem;
}

.glance-ai-reply.glance-ai-user {
  align-self: flex-end;
  max-width: 78%;
  background: var(--bg-hover);
  border-radius: 1rem 0 1rem 1rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  display: block;
  width: auto;
}

.glance-ai-typing {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.glance-ai-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.glance-ai-skeleton .skeleton-line--snippet {
  width: 100%;
}

.glance-ai-skeleton .skeleton-line--snippet-short {
  width: 55%;
}

.glance-ai-writing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.glance-ai-writing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: glance-ai-pulse 1.2s ease-in-out infinite;
}

.glance-ai-writing span:nth-child(2) {
  animation-delay: 0.2s;
}
.glance-ai-writing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes glance-ai-pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.glance-ai-thinking-label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.glance-ai-thinking-stream {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.75;
  white-space: pre-wrap;
  max-height: 12em;
  overflow-y: auto;
  border-left: 2px solid var(--text-secondary);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .glance-ai-input-wrap--styled:focus-within::before {
    animation: none;
  }

  .glance-ai-writing span {
    animation: none;
  }
}

.ac-item--history {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.ac-item--history .ac-item-icon--clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.ac-item--history .ac-item-icon--clock svg {
  width: 20px;
  height: 20px;
}

.ac-item--history .ac-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-item--history .ac-item-delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  opacity: 0.8;
}

.ac-item--history .ac-item-delete:hover {
  opacity: 1;
  background: var(--bg-hover);
  color: var(--danger);
}

.ac-item--history .ac-item-delete svg {
  width: 18px;
  height: 18px;
}

.search-history-result .result-favicon--clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-cite);
}

.search-history-result .result-favicon--clock svg {
  width: 22px;
  height: 22px;
}

.search-history-result .history-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  text-decoration: none;
}

.search-history-result .history-delete-btn:hover {
  color: var(--danger);
  background: var(--bg-hover);
}

.search-history-result .history-delete-btn svg {
  width: 18px;
  height: 18px;
}


.qr-result .qr-label {
  word-break: break-all;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.qr-result .qr-image {
  display: block;
  border-radius: 8px;
}

.time-result .time-place {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
}

.time-time {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.time-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.password-result .password-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.password-result .password-value {
  font-size: 1.1rem;
  word-break: break-all;
  margin: 0.5rem 0;
}

.password-result .password-value code {
  background: var(--bg-hover);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.password-result .password-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

#results-layout:has(#engine-stats) #sidebar-col {
  display: none;
}

#results-layout:has(#engine-stats) #results-main {
  max-width: none;
}

.es-command {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 2rem;
}

.es-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.es-heading {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.es-logo {
  color: var(--primary);
  font-size: 1.5rem;
}

.es-heading-text {
  display: flex;
  flex-direction: column;
}

.es-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.es-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.es-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.es-tabs {
  display: flex;
  gap: 0.25rem;
}

.es-tab {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.es-tab:hover {
  background: var(--bg-hover);
}

.es-tab--on {
  background: var(--primary);
  color: var(--white);
}


.es-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.es-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--bg-light);
}

.es-card-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.es-card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.es-table-wrap {
  overflow-x: auto;
}

.es-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.es-table th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.es-table td {
  padding: 0.55rem 0.6rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.es-row:hover td {
  background: var(--bg-hover);
}

.es-num {
  font-variant-numeric: tabular-nums;
}

.es-engine {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.es-name {
  font-weight: 500;
}

.es-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-secondary);
}

.es-dot--healthy {
  background: var(--success);
}

.es-dot--shaky {
  background: var(--warning, #d98324);
}

.es-dot--down {
  background: var(--danger);
}

.es-row--down .es-fail,
.es-error {
  color: var(--danger);
}

.es-row--shaky .es-fail {
  color: var(--warning, #d98324);
}

.es-chips {
  display: inline-flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.es-chip {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.es-muted {
  color: var(--text-secondary);
}

.es-empty,
.es-foot {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

#results-layout:has(#fourplay-status) #sidebar-col {
  display: none;
}

#results-layout:has(#fourplay-status) #results-main {
  max-width: none;
}

.fourplay-command {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 2rem;
}

.fourplay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.fourplay-heading {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.fourplay-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--bg-light);
  color: var(--primary);
  font-size: 1.125rem;
}

.fourplay-heading-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.fourplay-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.fourplay-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.fourplay-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fourplay-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
}

.fourplay-dot[data-tone="success"] {
  background: var(--success);
}

.fourplay-dot[data-tone="danger"] {
  background: var(--danger);
}

.fourplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.875rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.fourplay-btn[hidden],
.degoog-icon-btn[hidden] {
  display: none;
}

.fourplay-btn:hover {
  background: var(--bg-hover);
}

.fourplay-btn--danger {
  color: var(--danger);
}

.fourplay-btn--firefox {
  text-decoration: none;
  background: var(--primary);
  color: var(--white);
}

.fourplay-btn--firefox:hover {
  background: var(--primary-hover);
}

.fourplay-session-solve {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

.fourplay-refresh {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--bg-light);
  font-size: 0.875rem;
}

.fourplay-test-result {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-light);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.fourplay-test-result[hidden] {
  display: none;
}

.fourplay-test-result[data-tone="success"] {
  color: var(--success);
}

.fourplay-test-result[data-tone="danger"] {
  color: var(--danger);
}

.fourplay-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.fourplay-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fourplay-tiles.degoog-grid {
  gap: 1rem;
}

.fourplay-tile.degoog-panel {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.125rem 1.25rem;
}

.fourplay-tile-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.fourplay-tile-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.fourplay-tile-value[data-tone="success"] {
  color: var(--success);
}

.fourplay-tile-value[data-tone="danger"] {
  color: var(--danger);
}

.fourplay-tile-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.fourplay-section-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.25rem;
}

.fourplay-section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fourplay-section-head [data-show-tagalong] {
  margin-left: auto;
}

.fourplay-modal-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.fourplay-sessions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.fourplay-session.degoog-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
}

.fourplay-session-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.fourplay-session-origin {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.fourplay-session-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.fourplay-session-state.degoog-badge {
  flex-shrink: 0;
  padding: 0.3rem 0.625rem;
  font-weight: 600;
}

.fourplay-session-state[data-tone="success"] {
  color: var(--success);
}

.fourplay-session-state[data-tone="danger"] {
  color: var(--danger);
}

.fourplay-session-clear {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.fourplay-session-clear:hover {
  color: var(--danger);
  background: var(--bg-hover);
}

.fourplay-hero.degoog-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 3.5rem 2rem;
  text-align: center;
}

.fourplay-hero-icon {
  font-size: 2rem;
  color: var(--text-secondary);
}

.fourplay-hero-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 34rem;
  line-height: 1.55;
}

.fourplay-hero .fourplay-btn {
  margin-top: 0.25rem;
  background: var(--primary);
  color: var(--white);
}

.fourplay-hero .fourplay-btn:hover {
  background: var(--primary-hover);
}

.fourplay-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.fourplay-busy {
  pointer-events: none;
}

@media (max-width: 480px) {
  .fourplay-session.degoog-panel {
    flex-wrap: wrap;
  }

  .fourplay-session-state.degoog-badge {
    order: 3;
  }
}

.rss-result-date {
  font-size: 12px;
  color: var(--text-secondary);
}
.rss-result-date::before {
  content: "\00b7";
  margin: 0 6px;
}

#main-home.has-feed {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 24px;
}

.home-news-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 584px;
  margin: 24px auto 0;
  gap: 16px;
}
.home-news-feed:empty {
  display: none;
}

.skeleton-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}
.skeleton-feed-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skeleton-feed-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    90deg,
    var(--bg-light) 25%,
    var(--bg-hover) 50%,
    var(--bg-light) 75%
  );
  background-size: 200% 100%;
  animation: rss-skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-feed-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-feed-line {
  background: linear-gradient(
    90deg,
    var(--bg-light) 25%,
    var(--bg-hover) 50%,
    var(--bg-light) 75%
  );
  background-size: 200% 100%;
  animation: rss-skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 4px;
  height: 12px;
}
.skeleton-feed-line.skeleton-feed-source {
  width: 100px;
}
.skeleton-feed-line.skeleton-feed-title {
  height: 16px;
  width: 85%;
}

@keyframes rss-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes home-feed-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-feed-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  animation: home-feed-fade-in 0.4s ease-out backwards;
}

.home-feed-card.ext-card {
  padding: 0;
}

.home-feed-card:nth-child(1) {
  animation-delay: 0.02s;
}
.home-feed-card:nth-child(2) {
  animation-delay: 0.06s;
}
.home-feed-card:nth-child(3) {
  animation-delay: 0.1s;
}
.home-feed-card:nth-child(4) {
  animation-delay: 0.14s;
}
.home-feed-card:nth-child(5) {
  animation-delay: 0.18s;
}
.home-feed-card:nth-child(6) {
  animation-delay: 0.22s;
}
.home-feed-card:nth-child(7) {
  animation-delay: 0.26s;
}
.home-feed-card:nth-child(8) {
  animation-delay: 0.3s;
}
.home-feed-card:nth-child(n + 9) {
  animation-delay: 0.34s;
}

.home-feed-card:active {
  background: var(--bg-hover);
}

.home-feed-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-hover);
}

.home-feed-card-favicon-wrap {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-hover);
  align-items: center;
  justify-content: center;
}
.home-feed-card-favicon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.home-feed-card-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-feed-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.home-feed-card-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feed-card-date {
  flex-shrink: 0;
}
.home-feed-card-date::before {
  content: "\00b7";
  margin-right: 6px;
}

.home-feed-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-news-feed:not(.home-news-feed--desktop) {
    display: none !important;
  }

  .home-news-feed--desktop {
    flex-direction: row;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 0 24px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .home-news-feed--desktop::-webkit-scrollbar {
    display: none;
  }

  .home-news-feed--desktop .home-feed-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
  .home-news-feed--desktop .home-feed-card-img {
    aspect-ratio: 16 / 9;
  }

  .home-news-feed--desktop .home-feed-sentinel {
    flex: 0 0 1px;
    min-width: 1px;
  }

  .home-news-feed--desktop .skeleton-feed {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }
  .home-news-feed--desktop .skeleton-feed-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

.define-result .define-word {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
}

.define-phonetic {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
}

.define-meaning {
  margin-bottom: 1rem;
}

.define-pos {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.define-list {
  margin: 0.25rem 0 0 1rem;
  padding-left: 0.5rem;
}

.define-example {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.colors-command {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.colors-command.degoog-panel {
  border: none;
  box-shadow: none;
  background: transparent;
}

.colors-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  padding-left: 0;
}

.colors-style-wrap {
  min-width: 8rem;
}

.colors-hint {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.colors-boxes.boxes {
  display: flex;
  width: 100%;
  min-height: 14rem;
  max-height: 20rem;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid var(--border-light, rgba(128, 128, 128, 0.25));
}

.colors-command .box {
  width: 20%;
  position: relative;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.colors-command .box:hover {
  filter: brightness(1.05);
}

.colors-command .colors-lock {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.75rem;
  pointer-events: none;
  z-index: 1;
}

.colors-command .box.locked .colors-lock {
  display: flex;
}

.colors-command .box .colors-hex {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  bottom: 1.25rem;
  left: 50%;
  transform: translate(-50%, 0);
  position: absolute;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  z-index: 2;
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.colors-command .box .colors-hex:hover {
  background: rgba(0, 0, 0, 0.12);
}

.colors-command .box .colors-hex.colors-hex--copied {
  opacity: 0.85;
}

#main-home.has-dynacat {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 20vh;
}

.dyn-root {
  width: 100%;
  max-width: 68rem;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
  color: var(--text-primary);
  text-align: left;
}

.dyn-root--results {
  margin: 0;
  padding: 0;
  max-width: none;
}

.dyn-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.dyn-bar-label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.dyn-bar-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.dyn-bar-page {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dyn-page-select {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.dyn-page-select-label,
.dyn-server-meta,
.dyn-picker-hint {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.dyn-select {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text-primary);
  max-width: 14rem;
}

.dyn-bar-tools {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

.dyn-btn {
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.dyn-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--primary);
}

.dyn-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.dyn-btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.dyn-btn--primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.dyn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.dyn-slot[data-span="2"],
.dyn-grid > .dyn-card[data-span="2"] {
  grid-column: span 2;
}

.dyn-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem 1rem;
  height: 100%;
  overflow: hidden;
}

.dyn-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.625rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.dyn-card-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.dyn-card-type {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.dyn-card-body {
  font-size: 0.8125rem;
  overflow-y: auto;
  /* The absolutely positioned hover readouts still count towards scrollable
     overflow, which would otherwise add a horizontal scrollbar. */
  overflow-x: hidden;
}

.dyn-card[data-size="small"] .dyn-card-body {
  height: 9rem;
}

.dyn-card[data-size="large"] .dyn-card-body {
  height: 20rem;
}

.dyn-empty,
.dyn-error {
  margin: 0;
  font-size: 0.8125rem;
}

.dyn-empty {
  color: var(--text-secondary);
}

.dyn-tone-ok {
  color: var(--success);
}

.dyn-tone-warn {
  color: var(--warning);
}

.dyn-error,
.dyn-tone-bad {
  color: var(--danger);
}

.dyn-pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 1.5rem;
  border: 1px solid currentColor;
  font-size: 0.6875rem;
  white-space: nowrap;
}

.dyn-pill.dyn-tone-neutral {
  color: var(--text-secondary);
}

.dyn-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.dyn-summary {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.dyn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dyn-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dyn-row--stacked {
  align-items: flex-start;
}

.dyn-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.dyn-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  text-decoration: none;
}

.dyn-row--stacked .dyn-row-title {
  white-space: normal;
  overflow: visible;
  line-height: 1.35;
}

a.dyn-row-title:hover {
  color: var(--text-link);
  text-decoration: underline;
}

.dyn-row-meta,
.dyn-row-side {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dyn-row-meta {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dyn-dot--inline {
  margin-top: 0.3rem;
}

.dyn-row-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

.dyn-thumb {
  width: 3.25rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.dyn-server + .dyn-server {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
}

.dyn-server-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.dyn-server-name {
  font-weight: 600;
}

.dyn-meter + .dyn-meter {
  margin-top: 0.5rem;
}

.dyn-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.dyn-meter-label {
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dyn-meter-side {
  display: flex;
  align-items: baseline;
  gap: 0.4375rem;
  min-width: 0;
}

.dyn-meter-value {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.dyn-meter-track {
  height: 0.3125rem;
  border-radius: 1.5rem;
  background: var(--border);
  background: color-mix(in srgb, var(--border) 55%, transparent);
  overflow: hidden;
}

.dyn-meter-fill {
  height: 100%;
  border-radius: 1.5rem;
  background: currentColor;
}

.dyn-meter-detail {
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dyn-weather {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Rain keeps a hue of its own because custom themes redefine the brand tokens. */
  --dyn-rain: var(--dyn-weather-rain, #38bdf8);
}

.dyn-weather-now {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dyn-weather-temp {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.dyn-weather-text {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  min-width: 0;
}

.dyn-weather-cond {
  font-weight: 600;
}

.dyn-weather-place,
.dyn-weather-feels {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dyn-weather-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.1875rem;
  margin-top: auto;
  /* Reserves the row the hover readout pops into, so the card never clips it. */
  padding-top: 1.375rem;
}

.dyn-wcol {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
}

.dyn-wtip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-light);
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 2;
}

.dyn-wcol:nth-child(-n + 4) .dyn-wtip {
  left: 0;
  transform: none;
}

.dyn-wcol:nth-last-child(-n + 4) .dyn-wtip {
  left: auto;
  right: 0;
  transform: none;
}

.dyn-wcol:hover .dyn-wtip {
  opacity: 1;
}

.dyn-wtrack {
  width: 100%;
  height: 2.5rem;
  display: flex;
  align-items: flex-end;
}

.dyn-wbar {
  width: 100%;
  border-radius: 0.1875rem;
  background: var(--border);
  background: color-mix(in srgb, var(--text-secondary) 55%, transparent);
}

.dyn-wbar--rain {
  background: var(--dyn-rain);
}

.dyn-wcol--now::before {
  content: "";
  position: absolute;
  inset: -0.125rem -0.125rem 0;
  border-radius: 0.25rem;
  background: var(--bg-hover);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.dyn-wcol--now .dyn-wtrack,
.dyn-wcol--now .dyn-wlabel {
  position: relative;
}

.dyn-wcol--now .dyn-wlabel {
  color: var(--primary);
  font-weight: 700;
}

.dyn-wcol:hover .dyn-wbar {
  filter: brightness(1.2);
}

.dyn-wlabel {
  font-size: 0.5625rem;
  color: var(--text-secondary);
  white-space: nowrap;
  min-height: 0.75rem;
}

.dyn-spark {
  width: 3.5rem;
  height: 1.25rem;
  flex-shrink: 0;
  transform: scaleY(-1);
}

.dyn-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 0.5rem;
}

.dyn-tile {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background: var(--bg-hover);
}

.dyn-tile-value {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dyn-tile-label {
  font-size: 0.625rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}

.dyn-generic-group {
  margin-top: 0.75rem;
}

.dyn-generic-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.dyn-generic-text {
  margin: 0;
  color: var(--text-secondary);
}

.dyn-json {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.dyn-picker {
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--bg-light);
  padding: 0.875rem 1rem;
  margin-bottom: 0.875rem;
}

.dyn-picker-head {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-bottom: 0.75rem;
}

.dyn-picker-title {
  font-weight: 600;
}

.dyn-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 20rem;
  overflow-y: auto;
}

.dyn-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--bg-hover);
}

.dyn-pick--off {
  opacity: 0.5;
}

.dyn-pick-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  cursor: pointer;
}

.dyn-pick-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dyn-pick-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dyn-pick-type {
  font-size: 0.625rem;
  color: var(--text-secondary);
}

.dyn-pick-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.dyn-picker-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (max-width: 767px) {
  .dyn-grid {
    grid-template-columns: 1fr;
  }

  .dyn-slot[data-span="2"],
  .dyn-grid > .dyn-card[data-span="2"] {
    grid-column: span 1;
  }
}

.rss-result-date {
  font-size: 12px;
  color: var(--text-secondary);
}
.rss-result-date::before {
  content: "\00b7";
  margin: 0 6px;
}

#main-home.has-feed {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 24px;
}

.home-news-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 584px;
  margin: 24px auto 0;
  gap: 16px;
}
.home-news-feed:empty {
  display: none;
}

.skeleton-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}
.skeleton-feed-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skeleton-feed-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    90deg,
    var(--bg-light) 25%,
    var(--bg-hover) 50%,
    var(--bg-light) 75%
  );
  background-size: 200% 100%;
  animation: freshrss-shimmer 1.6s ease-in-out infinite;
}
.skeleton-feed-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-feed-line {
  background: linear-gradient(
    90deg,
    var(--bg-light) 25%,
    var(--bg-hover) 50%,
    var(--bg-light) 75%
  );
  background-size: 200% 100%;
  animation: freshrss-shimmer 1.6s ease-in-out infinite;
  border-radius: 4px;
  height: 12px;
}
.skeleton-feed-line.skeleton-feed-source {
  width: 100px;
}
.skeleton-feed-line.skeleton-feed-title {
  height: 16px;
  width: 85%;
}

@keyframes freshrss-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes freshrss-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-feed-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  animation: freshrss-fade-in 0.4s ease-out backwards;
}

.freshrss-mark-read {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-text);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s, background 0.15s, transform 0.15s;
  z-index: 1;
}
.home-feed-card:hover .freshrss-mark-read {
  opacity: 1;
}
.freshrss-mark-read:hover {
  background: var(--btn-bg);
  transform: scale(1.1);
}
.freshrss-mark-read:active {
  transform: scale(0.95);
}

@keyframes freshrss-mark-out {
  to { opacity: 0; transform: scale(0.94); }
}
.freshrss-marking-read {
  animation: freshrss-mark-out 0.32s ease forwards;
  pointer-events: none;
}
.home-feed-card.ext-card {
  padding: 0;
}
.home-feed-card:nth-child(1) {
  animation-delay: 0.02s;
}
.home-feed-card:nth-child(2) {
  animation-delay: 0.06s;
}
.home-feed-card:nth-child(3) {
  animation-delay: 0.1s;
}
.home-feed-card:nth-child(4) {
  animation-delay: 0.14s;
}
.home-feed-card:nth-child(5) {
  animation-delay: 0.18s;
}
.home-feed-card:nth-child(6) {
  animation-delay: 0.22s;
}
.home-feed-card:nth-child(7) {
  animation-delay: 0.26s;
}
.home-feed-card:nth-child(8) {
  animation-delay: 0.3s;
}
.home-feed-card:nth-child(n + 9) {
  animation-delay: 0.34s;
}
.home-feed-card:active {
  background: var(--bg-hover);
}

.home-feed-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-hover);
}
.home-feed-card-favicon-wrap {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-hover);
  align-items: center;
  justify-content: center;
}
.home-feed-card-favicon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}
.home-feed-card-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-feed-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.home-feed-card-source-favicon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: contain;
}

.home-feed-card-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-feed-card-date {
  flex-shrink: 0;
}
.home-feed-card-date::before {
  content: "\00b7";
  margin-right: 6px;
}
.home-feed-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-news-feed:not(.home-news-feed--desktop) {
    display: none !important;
  }
  .home-news-feed--desktop {
    flex-direction: row;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 0 24px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .home-news-feed--desktop::-webkit-scrollbar {
    display: none;
  }
  .home-news-feed--desktop .home-feed-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
  .home-news-feed--desktop .home-feed-card-img {
    aspect-ratio: 16 / 9;
  }
  .home-news-feed--desktop .home-feed-sentinel {
    flex: 0 0 1px;
    min-width: 1px;
  }
  .home-news-feed--desktop .skeleton-feed {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }
  .home-news-feed--desktop .skeleton-feed-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
}

@media (max-width: 767px) {
  .home-news-feed {
    width: 100vw;
    margin: 2em -1em;
    gap: 0;
  }

  .home-news-feed .home-feed-card {
    border-radius: 0;
    background: var(--bg);
  }

  .home-feed-card-body {
    padding: 1.3em 1em;
  }

  .home-feed-card-title {
    font-size: 16px;
    font-weight: normal;
  }

  .home-feed-card-meta {
    margin-bottom: 0.1em;
  }

  .home-feed-card-source,
  .home-feed-card-date {
    font-size: 10px;
  }

  .home-feed-card-source-favicon {
    background: var(--bg-light);
    border-radius: 100%;
  }

  .freshrss-mark-read {
    opacity: 1;
    top: 8px;
    right: 8px;
  }
}

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;
}

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

.weather-result .ti {
  font-size: 1.25em;
  opacity: 0.9;
  color: var(--text-primary);
}

.weather-location {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.weather-hero-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.weather-hero-icon .ti {
  font-size: 2.5rem;
  color: var(--primary, #1a73e8);
}

.weather-hero-text {
  min-width: 0;
}

.weather-temp {
  font-size: 2rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.weather-desc {
  font-size: 0.9375rem;
  font-weight: 400;
  opacity: 0.85;
  color: var(--text-secondary);
}

.weather-feels {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.weather-now-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.weather-now-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.weather-now-icon {
  flex-shrink: 0;
  font-size: 1.1rem !important;
  opacity: 0.7;
  color: var(--text-secondary) !important;
}

.weather-value {
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.weather-week-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.weather-week-wrap {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-light);
  overflow: hidden;
}

.weather-week {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.weather-week th,
.weather-week td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

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

.weather-week tbody tr:last-child td {
  border-bottom: none;
}

.weather-week-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.weather-week-row:hover {
  background: var(--bg-hover, rgba(0, 0, 0, 0.04));
}

.weather-week-row:focus {
  outline: 2px solid var(--primary, #1a73e8);
  outline-offset: -2px;
}

.weather-day {
  font-weight: 600;
  color: var(--text-primary);
  width: 3.5rem;
}

.weather-day-icon .ti {
  font-size: 1.35rem !important;
  color: var(--primary, #1a73e8) !important;
}

.weather-day-temps {
  font-weight: 500;
  color: var(--text-primary);
}

.weather-day-precip {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.weather-day-precip .ti {
  font-size: 0.9rem !important;
  opacity: 0.8;
  margin-right: 0.2rem;
}

.weather-hourly-row td {
  padding: 0 !important;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  background: var(--bg-light);
}

.weather-hourly-cell {
  padding: 0.75rem 1rem !important;
  overflow: hidden;
}

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

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

.weather-hourly-scroll::-webkit-scrollbar {
  height: 6px;
}

.weather-hourly-scroll::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

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

.weather-hour-card {
  flex: 0 0 auto;
  min-width: 4.25rem;
  padding: 0.6rem 0.5rem;
  background: var(--search-bar-bg, #fff);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.weather-hour-time {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.weather-hour-icon {
  font-size: 1.5rem !important;
  color: var(--primary, #1a73e8) !important;
}

.weather-hour-temp {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.weather-hour-precip {
  font-size: 0.65rem;
  color: var(--text-secondary);
}
