/* ============================================================
   ORTO PREMIUM — re-skin "Erbario" dei pannelli premium nati dark
   (enc.css / tools.css / griglia strumenti, che girano anche su
   questo tema chiaro). Strategia:
   1) rimappatura delle 9 variabili --oib-* usate via var(x, fallback)
   2) override mirati dei soli valori letterali dark rimasti
   Caricato dopo oib-premium-enc / oib-premium-tools.
   ============================================================ */

:root {
  /* testo/valori primari = INCHIOSTRO su carta (era crema su dark) */
  --oib-cream: #1e2a22;
  --oib-foam: #1e2a22;
  --oib-mist: #5d6a5e;
  --oib-gold: #b3702a;
  --oib-coral: #285f49;
  --oib-accent: #b3702a;
  --oib-surface: #fbf9f2;
  --oib-glass-border: #d8d2c0;
  /* pannelli mu-plugin (related-redesign / guide-hub) che compongono gradienti */
  --oib-abyss: #f4f1e8;
  --oib-deep: #f4f1e8;
  --oib-reef: #ece7d8;
  --oib-radius: 6px;
  --oib-radius-lg: 8px;
}
.oib-rr, .oib-guide-hub {
  background: var(--op-card) !important;
  border: 1px solid var(--op-line) !important;
  border-radius: var(--op-radius) !important;
  box-shadow: var(--op-shadow) !important;
}
.oib-rr::before { animation: none !important; background: none !important; }
.oib-rr-card, .oib-gh-card { background: var(--op-paper) !important; border: 1px solid var(--op-line) !important; border-radius: 6px !important; }
.oib-rr-kicker, .oib-gh-kicker { color: #285f49 !important; }
.oib-rr-title, .oib-gh-title, .oib-rr-card-title, .oib-gh-card-title { color: #1e2a22 !important; }
.oib-rr-card-excerpt, .oib-gh-card-excerpt { color: #5d6a5e !important; }
.oib-rr-card-cta, .oib-gh-card-cta { color: #b3702a !important; }
.oib-rr-dash { background: linear-gradient(90deg, var(--op-ochre), transparent) !important; }
.oib-rr-card-ph, .oib-gh-card-ph { background: var(--op-paper-2) !important; }

/* ---------- Pannello "A colpo d'occhio" ---------- */
.oib-quick,
html.oib-light .oib-quick {
  background: var(--op-card) !important;
  border: 1px solid var(--op-line) !important;
  border-left: 4px solid var(--oib-gold) !important;
  border-radius: var(--op-radius) !important;
  box-shadow: var(--op-shadow) !important;
}
/* le microetichette erano "mist + 40% bianco": su carta serve inchiostrato */
.oib-quick-k, .oib-quick-scale, .oib-quick-ctas-label { color: #5d6a5e !important; }
.oib-quick-sci { font-family: var(--op-font-display) !important; }
.oib-quick-diff {
  background: rgba(40, 95, 73, .09);
  border-color: rgba(40, 95, 73, .4) !important;
  color: #285f49 !important;
}
.oib-quick-bar { background: #e3ddca !important; }
.oib-meter-track, html.oib-light .oib-meter-track { background: #e3ddca !important; box-shadow: inset 0 0 0 1px rgba(30,42,34,.06); }
.oib-meter-fill, html.oib-light .oib-meter-fill { background: linear-gradient(90deg, #285f49, #b3702a) !important; }
.oib-meter-tick, html.oib-light .oib-meter-tick { background: #1e2a22 !important; opacity: .16; }
.oib-meter-ends, html.oib-light .oib-meter-ends { color: #5d6a5e !important; }
.oib-quick-row + .oib-quick-row { border-top: 1px dashed var(--op-line) !important; }
.oib-quick-eyebrow { color: #285f49 !important; }
.oib-gauge { color: var(--oib-gold); }
.oib-gauge svg text, .oib-gauge text { fill: #6d7a6e !important; }
.oib-quick-v em { color: #a4593c; }

.oib-tool-cta, html.oib-light .oib-tool-cta {
  background: rgba(179, 112, 42, .08) !important;
  border-left-color: #b3702a !important;
}

/* ---------- Barra enciclopedia ---------- */
.oib-enc-bar,
html.oib-light .oib-enc-bar {
  background: var(--op-card) !important;
  border: 1px solid var(--op-line) !important;
  border-radius: var(--op-radius) !important;
  box-shadow: var(--op-shadow) !important;
  backdrop-filter: none !important;
}
.oib-enc-search, .oib-enc-sel,
html.oib-light .oib-enc-search, html.oib-light .oib-enc-sel {
  background: var(--op-paper) !important;
  border: 1.5px solid var(--op-line-strong, #c4bda6) !important;
  color: #1e2a22 !important;
  border-radius: var(--op-radius) !important;
  font-family: var(--op-font-body) !important;
}
.oib-enc-search::placeholder { color: #77837a !important; opacity: 1 !important; }
.oib-enc-search:focus, .oib-enc-sel:focus { border-color: #285f49 !important; outline: none; }
.oib-enc-count { color: #5d6a5e !important; border-left: 1px solid var(--op-line) !important; }
.oib-enc-count b { color: #b3702a; }
.oib-enc-clear { color: #5d6a5e !important; border-color: #c4bda6 !important; }
.oib-enc-clear:hover { color: #285f49 !important; border-color: #285f49 !important; }
.oib-enc-hint { color: #6d7a6e !important; }
.oib-enc-nofit { color: #a4593c !important; }

/* ---------- ⊕ comparatore ---------- */
.oib-cmp-add, html.oib-light .oib-cmp-add {
  background: var(--op-card) !important;
  border-color: #b3702a !important;
  color: #b3702a !important;
  box-shadow: 0 2px 10px rgba(30, 42, 34, .25) !important;
}
.oib-cmp-add:hover { background: #b3702a !important; color: #f4f1e8 !important; }

/* ---------- Barra selezione confronto (floating) ---------- */
.oib-enc-cmp {
  background: #16261e !important;
  border: 1.5px solid rgba(179, 112, 42, .65) !important;
  box-shadow: 0 16px 44px rgba(12, 22, 16, .45) !important;
}
.oib-enc-cmp-names { color: #f0ead6 !important; }
.oib-enc-cmp-go { border-color: #d9a05b !important; color: #e0b25a !important; }
.oib-enc-cmp-go:hover:not(:disabled) { background: #d9a05b !important; color: #16261e !important; }
.oib-enc-cmp-x { color: rgba(244, 241, 232, .6) !important; }
.oib-enc-cmp-x:hover { color: #f4f1e8 !important; }

/* ---------- Modale comparatore ---------- */
.oib-enc-modal { background: rgba(23, 33, 26, .55) !important; }
.oib-enc-table {
  background: var(--op-card) !important;
  border: 1px solid var(--op-line) !important;
  border-radius: var(--op-radius) !important;
}
.oib-enc-table caption { color: #1e2a22 !important; font-family: var(--op-font-display) !important; font-size: 1.2rem !important; }
.oib-enc-table thead th {
  background: var(--op-paper-2) !important;
  font-family: var(--op-font-mono) !important; font-size: .74rem !important;
  letter-spacing: .1em; text-transform: uppercase; color: #285f49 !important;
}
.oib-enc-table th, .oib-enc-table td { border-top: 1px solid var(--op-line) !important; color: #3c4a40; }
.oib-enc-table tbody th { color: #285f49 !important; }
.oib-enc-table a { color: #285f49; }
.oib-enc-close {
  background: var(--op-paper-2) !important; color: #3c4a40 !important;
  border: 1px solid var(--op-line-strong, #c4bda6) !important;
}
.oib-enc-close:hover { color: #1e2a22 !important; border-color: #285f49 !important; }
.oib-mini-bar { background: #e3ddca !important; }
.oib-mini-bar i { background: #b3702a !important; }

/* ---------- Tool enhancer (pannello anteprima) ---------- */
.oib-px-preview {
  background: var(--op-card) !important;
  border: 1px solid var(--op-line) !important;
  border-radius: var(--op-radius) !important;
  box-shadow: var(--op-shadow);
}
.oib-px-preview svg text { fill: #5d6a5e; }
.oib-px-stat { border: 1px solid var(--op-line-strong, #c4bda6) !important; background: var(--op-paper); border-radius: var(--op-radius) !important; }
.oib-px-stat b { color: #b3702a !important; }
.oib-px-stat span { color: #5d6a5e; }
.oib-px-hint { color: #5d6a5e !important; }
.oib-px-live { color: #285f49 !important; }
.oib-px-reset { color: #5d6a5e !important; border-color: #c4bda6 !important; background: transparent !important; }
.oib-px-reset:hover { color: #a4593c !important; border-color: #a4593c !important; }
.oib-px-field input[type="range"] { accent-color: #285f49; }

/* ---------- Hub strumenti: griglia card (mu-plugin, dark inline) ---------- */
.oib-tg-card, html.oib-light .oib-tg-card {
  background: var(--op-card) !important;
  border: 1px solid var(--op-line) !important;
  border-radius: var(--op-radius) !important;
  color: #1e2a22 !important;
  box-shadow: var(--op-shadow) !important;
}
.oib-tg-card:hover, .oib-tg-card:focus-visible {
  border-color: #285f49 !important;
  background: #fdfcf7 !important;
  box-shadow: var(--op-shadow-lift) !important;
}
.oib-tg-name { color: #1e2a22 !important; }
.oib-tg-card:hover .oib-tg-name { color: #1e2a22 !important; }
.oib-tg-ico { color: #285f49 !important; background: rgba(40, 95, 73, .09) !important; }
.oib-tg-arrow { color: #b3702a !important; }

/* ---------- Guide hub (mu-plugin oib-guide-hub) ---------- */
.oib-gh-card { background: var(--op-card); border: 1px solid var(--op-line); border-radius: var(--op-radius); box-shadow: var(--op-shadow); color: var(--op-ink); }
.oib-gh-card h3, .oib-gh-title { color: var(--op-ink); }
.oib-gh-card-excerpt, .oib-gh-card .oib-card-excerpt { color: var(--op-muted); }

/* ---------- Badge AI ---------- */
.oib-ai-badge { background: rgba(40, 95, 73, .1) !important; color: #285f49 !important; border-color: rgba(40, 95, 73, .35) !important; }

/* ---------- Support button ---------- */
.oib-support-button { background: #285f49 !important; color: #f4f1e8 !important; border-radius: 6px !important; font-family: var(--op-font-mono) !important; }
