.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 {
  display: none;
}

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

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

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

.custom-logo-img--search {
  max-width: 300px;
}

.custom-logo-upload-ui {
  padding: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-logo-preview-wrap {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.custom-logo-preview {
  max-height: 300px;
  max-width: 500px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border-light, rgba(255,255,255,0.1));
  background: var(--bg-tertiary, rgba(0,0,0,0.2));
  padding: 4px 8px;
}

.custom-logo-none {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.custom-logo-actions {
  display: flex;
  gap: 8px;
}

.custom-logo-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light, rgba(255,255,255,0.15));
  background: var(--bg-secondary, #1e1e2e);
  color: var(--text-primary, #cdd6f4);
  transition: background 0.15s;
  user-select: none;
}

.custom-logo-btn:hover {
  background: var(--primary-light, rgba(139,92,246,0.15));
}

.custom-logo-btn--remove {
  color: var(--danger, #f38ba8);
  border-color: var(--danger-light, rgba(243,139,168,0.25));
}

.custom-logo-btn--remove:hover {
  background: rgba(243,139,168,0.12);
}

.custom-logo-status {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
  min-height: 1em;
}

/* Widen degoog's results column when the navbar editor is active */
#results-main:has(.litruv-editor) {
  max-width: 820px;
}

#results-layout:has(.litruv-editor) #sidebar-col,
body:has(.litruv-editor) #results-meta {
  display: none;
}

#litruv-navbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.litruv-logo {
  width: min(400px, 80%);
  max-width: 100%;
  display: block;
}

.litruv-results-logo {
  width: 100px;
  display: block;
}

.litruv-no-results-gif {
  display: block;
  margin: 1rem auto 0;
  max-width: 100%;
  border-radius: 8px;
}

.logo-container .logo {
  display: none;
}

.litruv-navbar-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.litruv-navbar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.15s;
}

.litruv-navbar-link:hover {
  color: var(--text-primary);
}

/* Grid launcher button */
.litruv-launcher-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.litruv-launcher-btn:hover,
.litruv-launcher-btn--active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* Popup */
.litruv-launcher-popup {
  display: none;
  position: fixed;
  top: 44px;
  right: 1rem;
  z-index: 100;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  min-width: 220px;
  max-width: 280px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  flex-direction: column;
}

.litruv-launcher-popup--open {
  display: flex;
}

.litruv-launcher-section {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.litruv-launcher-section + .litruv-launcher-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.litruv-launcher-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 0 0.25rem;
}

.litruv-launcher-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.litruv-launcher-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.625rem 0.25rem;
  border-radius: 8px;
  text-decoration: none;
  gap: 0.375rem;
  transition: background 0.15s;
  min-width: 0;
  width: 100%;
}

.litruv-launcher-tile:hover {
  background: var(--bg-hover);
}

.litruv-launcher-tile-icon {
  font-size: 1.625rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
}

.litruv-uptime-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 3px;
  color: #fff;
  pointer-events: auto;
  cursor: default;
  z-index: 201;
}

.litruv-uptime-badge--green  { background: #16a34a; }
.litruv-uptime-badge--yellow { background: #d97706; }
.litruv-uptime-badge--red    { background: #dc2626; }

.litruv-uptime-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  background: var(--bg-light, #1e2433);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 6px;
  padding: 5px 6px;
  gap: 2px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.litruv-uptime-pill {
  width: 5px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.litruv-uptime-pill--up      { background: #16a34a; }
.litruv-uptime-pill--down    { background: #dc2626; }
.litruv-uptime-pill--maint   { background: #6366f1; }
.litruv-uptime-pill--pending { background: #d97706; }

.litruv-launcher-tile-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.litruv-launcher-tile--static {
  cursor: default;
}

.litruv-launcher-tile--static:hover {
  background: none;
}

.litruv-launcher-tile-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.litruv-navbar-active .header {
  top: 36px;
}

/* ── !navbar visual editor ───────────────────────────────────────────────── */

.litruv-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 800px;
  max-width: 100%;
  padding: 30px 0;
}

.litruv-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.litruv-editor-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  flex: 1;
}

.litruv-editor-status {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.litruv-editor-status--ok  { color: #16a34a; }
.litruv-editor-status--err { color: #dc2626; }

.litruv-editor-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.litruv-editor-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.litruv-editor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
  border-radius: 9px 9px 0 0;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: border-radius 0.15s;
}

.litruv-editor-card-header--stuck {
  border-radius: 0;
}

.litruv-editor-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0;
}

.litruv-editor-card-btns {
  display: flex;
  gap: 0.375rem;
}

.litruv-editor-list {
  display: flex;
  flex-direction: column;
}

.litruv-editor-empty {
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Shared row base */
.litruv-editor-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.06));
}

.litruv-editor-row:last-child {
  border-bottom: none;
}

/* Quick-link row */
.litruv-ql-row .litruv-input { flex: 1; }

/* Section heading row */
.litruv-svc-heading-row {
  background: rgba(255,255,255,0.02);
}

.litruv-heading-badge {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  user-select: none;
}

.litruv-input--heading {
  flex: 1;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Service row */
.litruv-svc-row { align-items: flex-start; }

.litruv-svc-icon-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 36px;
  flex-shrink: 0;
  padding-top: 0.375rem;
}

.litruv-icon-preview {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.litruv-svc-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.litruv-svc-fields-row {
  display: flex;
  gap: 0.375rem;
}

.litruv-svc-fields-row .litruv-input { flex: 1; min-width: 0; }

.litruv-svc-fields-row--secondary .litruv-input {
  font-size: 0.75rem;
}

.litruv-svc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.litruv-reorder-btns {
  display: flex;
  gap: 0.125rem;
}

/* Uptime Kuma card */
.litruv-uptime-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
}

.litruv-field {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.litruv-field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 110px;
  flex-shrink: 0;
}

/* Shared input style */
.litruv-input {
  background: var(--bg-input, var(--bg));
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  padding: 0.3125rem 0.5rem;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.litruv-input:focus { border-color: var(--accent, #6366f1); }
.litruv-input--small { font-size: 0.75rem; }
.litruv-field .litruv-input { flex: 1; }

/* Shared button style */
.litruv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.litruv-btn:hover { color: var(--text-primary); background: var(--bg-active, var(--bg-hover)); }
.litruv-btn:disabled { opacity: 0.5; cursor: default; }

.litruv-btn--primary {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
  color: #fff;
}

.litruv-btn--primary:hover { filter: brightness(1.1); }

.litruv-btn--add {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.litruv-btn--icon {
  padding: 0.2rem 0.375rem;
  font-size: 0.75rem;
  min-width: 24px;
}

.litruv-btn--del { color: #dc2626; border-color: transparent; background: none; }
.litruv-btn--del:hover { background: rgba(220,38,38,0.12); color: #dc2626; }
.litruv-btn--upload-icon {
  position: absolute;
  top: 0.375rem;
  left: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.litruv-svc-icon-wrap:hover .litruv-btn--upload-icon,
.litruv-svc-icon-wrap--empty .litruv-btn--upload-icon {
  opacity: 1;
}
.litruv-svc-icon-wrap--empty .litruv-btn--upload-icon {
  background: none;
  border: 1px dashed var(--color-border);
  color: var(--color-text-secondary);
}

.bang-ac-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-secondary, var(--bg, #1e1e2e));
  border: 1px solid var(--border-light, rgba(255,255,255,0.1));
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  overflow: hidden;
  font-family: var(--font-sans, sans-serif);
}

.bang-ac-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.06));
}

.bang-ac-item:last-child {
  border-bottom: none;
}

.bang-ac-item:hover,
.bang-ac-item.bang-ac-active {
  background: var(--primary-light, rgba(139,92,246,0.12));
}

.bang-ac-trigger {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--primary, #cba6f7);
  min-width: 90px;
  flex-shrink: 0;
}

.bang-ac-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary, #cdd6f4);
  flex-shrink: 0;
}

.bang-ac-desc {
  font-size: 0.73rem;
  color: var(--text-secondary, #a6adc8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ── Weather Slot — Minimal Theme ───────────────────── */

/* Built-in slot chrome can clip or cap width; full-width plugin roots need room to grow. */
.results-slot-panel:has(> .results-slot-panel-body > .wxs-wrap.slot-full-width) {
    overflow: visible;
    max-width: none;
}

.wxs-wrap {
    container-type: inline-size;
    --wxs-accent: #4285f4;
    --wxs-sun: #f59e0b;
    --wxs-rain: #60a5fa;
    --wxs-snow: #bfdbfe;

    margin-bottom: 12px;
    font-family: var(--font-sans, sans-serif);
    color: var(--text-primary);
    position: relative;
}

/* ── Eyebrow / header ─────────────────────────── */

.wxs-header {
    margin-bottom: 10px;
}

.wxs-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.wxs-eyebrow-label {
    color: var(--text-secondary);
}

.wxs-eyebrow-location {
    color: var(--text-primary);
    font-weight: 600;
}

.wxs-eyebrow-sep {
    opacity: 0.55;
}

.wxs-eyebrow-date {
    color: var(--text-secondary);
}

/* ── Hero ──────────────────────────────────────── */

.wxs-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
}

.wxs-hero-left {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "icon temp meta"
        "icon temp meta";
    align-items: center;
    gap: 8px 14px;
    min-width: 0;
}

.wxs-hero-icon {
    grid-area: icon;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wxs-hero-temp {
    grid-area: temp;
    display: flex;
    align-items: flex-start;
    line-height: 0.95;
    white-space: nowrap;
}

.wxs-num {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    transition: opacity 200ms ease;
}

.wxs-deg {
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 0.35em;
    margin-left: 0.1em;
    letter-spacing: -0.02em;
}

.wxs-hero-meta {
    grid-area: meta;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.wxs-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.wxs-meta-label {
    color: var(--text-secondary);
}

.wxs-meta-value {
    color: var(--text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.wxs-hero-right {
    display: grid;
    gap: 6px;
    text-align: right;
    min-width: 0;
}

.wxs-hero-eyebrow {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.wxs-hero-date {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.wxs-hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.wxs-hero-hilo {
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.wxs-hilo-hi strong,
.wxs-hilo-lo strong {
    color: var(--text-primary);
    font-weight: 600;
}

.wxs-hilo-sep {
    opacity: 0.55;
}

/* ── Tabs ─────────────────────────────────────── */

.wxs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.wxs-tab {
    position: relative;
    padding: 10px 14px;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: color 160ms ease;
}

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

.wxs-tab-active {
    color: var(--text-primary);
    font-weight: 600;
}

.wxs-tab-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--wxs-accent);
}

/* ── Chart ────────────────────────────────────── */

.wxs-chart-wrap {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 10px 12px 8px;
    background: var(--bg-light, transparent);
    margin-bottom: 12px;
}

.wxs-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.wxs-chart-title {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.wxs-chart-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.wxs-chart {
    position: relative;
    width: 100%;
    height: 140px;
}

.wxs-chart-scroll {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.wxs-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wxs-chart-grid line {
    stroke: var(--border-light);
    stroke-dasharray: 2 4;
    opacity: 0.6;
}

.wxs-chart-axis text {
    fill: var(--text-secondary);
    font-size: 12px;
    font-family: inherit;
}

.wxs-chart-label {
    fill: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    font-family: inherit;
}

.wxs-chart-area {
    opacity: 0.18;
}

.wxs-chart-line {
    fill: none;
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.wxs-chart-bar {
    transition: opacity 160ms ease;
}

.wxs-chart-point {
    fill: var(--bg, #111);
    stroke-width: 2;
    pointer-events: none;
}

.wxs-chart-marker {
    cursor: crosshair;
    pointer-events: all;
}

.wxs-chart-label {
    pointer-events: none;
}

.wxs-chart-line,
.wxs-chart-area {
    pointer-events: none;
}

.wxs-chart-tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--bg, #1a1a1a);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    transform: translate(-50%, calc(-100% - 10px));
    opacity: 0;
    transition:
        opacity 120ms ease,
        left 80ms ease;
    z-index: 2;
    min-width: 112px;
}

.wxs-chart-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 8px;
    height: 8px;
    background: var(--bg, #1a1a1a);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: translateX(-50%) rotate(45deg);
}

.wxs-chart-tooltip.wxs-tt-visible {
    opacity: 1;
}

.wxs-chart-tooltip strong {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.wxs-chart-tooltip .wxs-tt-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-light);
}

.wxs-chart-tooltip .wxs-tt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    line-height: 1.35;
}

.wxs-chart-tooltip .wxs-tt-row + .wxs-tt-row {
    margin-top: 3px;
}

.wxs-chart-tooltip .wxs-tt-key {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.wxs-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.wxs-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wxs-chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    font-style: normal;
}

/* ── Days ─────────────────────────────────────── */

.wxs-days-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.wxs-days-hint {
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-secondary);
}

.wxs-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.wxs-day {
    background: var(--bg-light, transparent);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 4px 8px;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
    user-select: none;
}

.wxs-day:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.04));
}

.wxs-day-active {
    border-color: var(--wxs-accent);
    background: color-mix(in srgb, var(--wxs-accent) 12%, transparent);
}

.wxs-day-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wxs-day-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    margin-bottom: 4px;
}

.wxs-day-hi {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.wxs-day-lo {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.wxs-day-precip {
    margin-top: 6px;
    font-size: 0.76rem;
    color: var(--wxs-rain);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.wxs-day-precip svg {
    display: block;
}

.wxs-day-precip.wxs-day-precip-zero {
    color: var(--text-secondary);
    opacity: 0.55;
}

/* ── Details grid ────────────────────────────── */

.wxs-details-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.wxs-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wxs-detail {
    background: var(--bg-light, var(--bg));
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wxs-detail-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.wxs-detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.wxs-detail-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
}

/* ── Sun row ─────────────────────────────────── */

.wxs-sun-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: var(--bg-light, transparent);
}

.wxs-sun-side {
    display: grid;
    gap: 2px;
}

.wxs-sun-side-right {
    text-align: right;
}

.wxs-sun-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.wxs-sun-time {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.wxs-sun-track {
    position: relative;
    height: 48px;
}

.wxs-sun-arc {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.wxs-sun-arc-bg {
    stroke: var(--border);
    opacity: 0.7;
}

.wxs-sun-arc-fill {
    stroke: var(--wxs-sun);
    opacity: 0.8;
    stroke-linecap: round;
}

.wxs-sun-dot {
    position: absolute;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--wxs-sun);
    box-shadow: 0 0 12px color-mix(in srgb, var(--wxs-sun) 60%, transparent);
    transform: translate(-50%, -50%);
    transition:
        left 0.6s ease,
        top 0.6s ease;
    pointer-events: none;
}

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

.wxs-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.wxs-footer a {
    color: var(--text-link, var(--wxs-accent));
    text-decoration: none;
}

.wxs-footer a:hover {
    text-decoration: underline;
}

.wxs-footer-sep {
    opacity: 0.55;
}

/* ── Animated hero icons ─────────────────────── */

.wxs-ani-float {
    animation: wxs-float 4s ease-in-out infinite;
}
.wxs-ani-sun {
    animation: wxs-float 4s ease-in-out infinite;
}

@keyframes wxs-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes wxs-spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes wxs-fadein {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wxs-drop {
    position: absolute;
    width: 2px;
    border-radius: 2px;
    background: var(--wxs-rain);
    opacity: 0.85;
    animation: wxs-rain 1.1s linear infinite;
}

@keyframes wxs-rain {
    0% {
        transform: translateY(-2px);
        opacity: 0;
    }
    50% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(18px);
        opacity: 0;
    }
}

.wxs-flake {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--wxs-snow);
    animation: wxs-snow 1.4s linear infinite;
}

@keyframes wxs-snow {
    0% {
        transform: translateY(-2px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(14px);
        opacity: 0;
    }
}

.wxs-bolt {
    animation: wxs-flash 2s ease-in-out infinite;
}

@keyframes wxs-flash {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 1;
    }
}

.wxs-hero-icon > div {
    animation: wxs-fadein 0.35s ease;
}

/* ── Responsive ──────────────────────────────── */

@container (max-width: 720px) {
    .wxs-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wxs-hero-right {
        text-align: left;
    }

    .wxs-hero-hilo {
        justify-content: flex-start;
    }

    .wxs-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 560px) {
    .wxs-hero-left {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon temp"
            "meta meta";
    }

    .wxs-hero-icon {
        width: 72px;
        height: 72px;
    }

    .wxs-days {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@container (max-width: 420px) {
    .wxs-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wxs-details {
        grid-template-columns: 1fr 1fr;
    }

    .wxs-sun-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wxs-sun-side-right {
        text-align: left;
    }

    .wxs-sun-track {
        height: 54px;
    }
}

/* -- OSM Slot ------------------------------------------------ */

.osm-slot-wrap {
  margin-bottom: 12px;
  max-width: 680px;
  /* Leaflet defaults use z-index 200+ on panes; keep the whole card under search AC (≈100). */
  position: relative;
  z-index: 0;
  isolation: isolate;
}

#results-page.degoog-fullwidth-slot-shell .osm-slot-wrap.slot-full-width {
  max-width: none;
}

.osm-slot-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 6px;
  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: 392px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  z-index: 0;
}

.osm-slot-wrap .leaflet-container {
  z-index: 0 !important;
}

.osm-slot-wrap .leaflet-tile-pane {
  z-index: 1 !important;
}

.osm-slot-wrap .leaflet-overlay-pane {
  z-index: 2 !important;
}

.osm-slot-wrap .leaflet-shadow-pane {
  z-index: 3 !important;
}

.osm-slot-wrap .leaflet-marker-pane {
  z-index: 4 !important;
}

.osm-slot-wrap .leaflet-tooltip-pane {
  z-index: 5 !important;
}

.osm-slot-wrap .leaflet-popup-pane {
  z-index: 6 !important;
}

.osm-slot-match-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-inline-start: 4px;
}

.osm-slot-match-nav.is-visible {
  display: inline-flex;
}

.osm-slot-match-nav .osm-slot-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.osm-slot-match-nav .osm-slot-nav-btn:hover {
  background: var(--bg-hover);
}

.osm-slot-match-nav .osm-slot-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.osm-slot-match-nav .osm-slot-nav-meta {
  font-size: 0.65rem;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 2.5rem;
  text-align: center;
}

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