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

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

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

/* ─────────────────────────────────────────────────────────────────────────────
   OhMyClean — style.css
   Only contains the arrow button styles. All hiding rules are injected
   dynamically by script.js into <head> based on user settings.
───────────────────────────────────────────────────────────────────────────── */

/* ── Arrow submit button (injected inside #search-bar-home by script.js) ──── */

#omc-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  color: var(--degoog-text-muted, #9aa0a6);
  transition: color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

#omc-arrow-btn:hover {
  color: var(--degoog-accent, var(--degoog-primary, #4a9eff));
  transform: translateX(2px);
}

#omc-arrow-btn svg {
  display: block;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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