/* ═══════════════════════════════════════════════════════════════════════
   MNEMOTEHNIC WIDGETS CSS — ALL-IN-ONE STYLES
   Versiunea: 2.1 | Aprilie 2026 — temă Scurtătura / preview (DDG-like)
   
   Include TOATE stilurile necesare pentru documente mnemotehnice:
   1. Document Layout (wrapper, paragraf, box-uri)
   2. Navigatie sticky
   3. Widget-uri Rating (stele per sectiune)
   4. Widget-uri Sugestii (formular feedback)
   5. Bookmark FAB
   6. DrCalc Panel
   7. Push Notification Modal
   8. Imagini Mnemotehnice (auto-injectate) + OCR inline
   9. Toast Notifications
   10. Responsive + Print
   
   UTILIZARE: Un singur <link> in <head> — nimic altceva.
   <link rel="stylesheet" href="path/to/mnemotehnic-widgets.css">
   ═══════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   1. VARIABILE, RESET, BODY — aliniat la studiu/preview.html
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Paleta preview / Scurtătura */
  --bg:           #FAFAF9;
  --bg2:          #F4F1EC;
  --bg3:          #EDE9E2;
  --card:         #FFFFFF;
  --text:         #1A1A1A;
  --muted:        #737373;
  --muted2:       #9A9590;
  --accent:       #DE5833;
  --accentD:      #B83F1F;
  --accentL:      #F47C5C;
  --gold:         #B07820;
  /* Compat: vechiul „blue” = accent (CTA / linkuri puternice) */
  --blue:         var(--accent);
  --blue-light:   #FDEEE9;
  --green:        #2E7D52;
  --green-light:  #EFF7F2;
  --amber:        var(--gold);
  --amber-light:  #FBF3E4;
  --purple:       #7C6AF6;
  --purple-light: #F0EEFF;
  --red:          #CC3333;
  --red-light:    #FDEAEA;
  --dark:         #1A1A1A;
  --border:       #E0DDD8;
  --borderL:      #C8C4BE;
  --radius:       10px;
  --radiusL:      14px;
  --shadow:       0 1px 4px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
  --shadowM:      0 4px 24px rgba(0,0,0,.11);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Calibri, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--borderL); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   2. NAVIGATIE STICKY — ca preview nav
   ══════════════════════════════════════════════════════════════ */

nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(250, 250, 249, 0.97);
  color: var(--text);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  letter-spacing: -0.02em;
}

.nav-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg2); color: var(--accent); }

#nav-toggle {
  background: var(--card);
  border: 1.5px solid var(--borderL);
  color: var(--muted);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
#nav-toggle:hover {
  background: var(--bg2);
  border-color: var(--accent);
  color: var(--accent);
}

#notif-btn {
  background: var(--card);
  border: 1.5px solid var(--borderL);
  color: var(--muted);
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
#notif-btn:hover {
  background: var(--blue-light);
  border-color: var(--accent);
  color: var(--accent);
}

#menu-content {
  display: none;
  width: 100%;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
#menu-content.mob-open { display: block; }

#menu-content a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 18px;
  font-size: 13px;
  transition: background 0.12s, color 0.12s;
}
#menu-content a:hover {
  background: var(--green-light);
  color: var(--green);
}

/* ══════════════════════════════════════════════════════════════
   3. DOCUMENT LAYOUT (wrapper, master-title, paragraf, box-uri)
   ══════════════════════════════════════════════════════════════ */

.wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.master-title {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radiusL);
  padding: 2rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}
.master-title h1 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 10px 0;
  line-height: 1.25;
  color: var(--text);
}
.master-title .subtitle {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.6;
}
.master-title .index-table { margin-top: 16px; }
.master-title .index-table a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.master-title .index-table a:hover { color: var(--accent); }

.bloc-disclaimer {
  background: #FBF3E4;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  margin-bottom: 24px;
  color: var(--text);
}

.bloc-header, .part-separator {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  padding: 12px 0;
  border-bottom: 2px solid var(--blue-light);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.paragraf {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radiusL);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.paragraf-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted2);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.ab-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--borderL);
  padding: 10px 14px;
  font-size: 13px;
  margin: 8px 16px;
  border-radius: 0 10px 10px 0;
  color: var(--text);
}

.box {
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 16px;
}

.box-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 7px;
}

.lectia-box {
  background: var(--green-light);
  border-left: 3px solid var(--green);
}
.lectia-box .box-label { color: var(--green); }

.tehnica-box {
  background: var(--blue-light);
  border-left: 3px solid var(--accent);
}
.tehnica-box .box-label { color: var(--accentD); }

.carlige-box {
  background: var(--amber-light);
  margin: 10px 16px;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #EDD9A8;
  border-left: 3px solid var(--gold);
}

.vers-box {
  background: var(--green-light);
  border: 1px solid #C5E3D3;
  border-radius: 8px;
  padding: 11px 16px;
  font-style: italic;
  color: #2A5040;
  margin: 8px 0;
  line-height: 1.75;
  font-size: 14px;
}

.corelatie-box {
  background: var(--purple-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #3d3558;
  margin: 8px 0;
  border: 1px solid #E4DFF8;
  border-left: 3px solid var(--purple);
}

/* Ringul comparatiilor */
.ring-p {
  background: var(--red-light);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0;
  border-left: 3px solid var(--red);
  color: var(--text);
}

.carlige-item { margin-bottom: 14px; }
.carlige-item-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.filtru-badge { display: none; }

/* ══════════════════════════════════════════════════════════════
   4. STATUS BOX + ROAST
   ══════════════════════════════════════════════════════════════ */

.status-box {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.65;
}
.status-line { color: var(--accent); margin-bottom: 6px; font-weight: 600; }

.roast-box {
  background: var(--blue-light);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  color: var(--text);
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════
   5. MNEMONIC IMAGE BOX + figure OCR (carnet)
   ══════════════════════════════════════════════════════════════ */

.mnemonic-image-box {
  margin: 8px 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mnemonic-image-box img {
  width: 100%;
  height: auto;
  display: block;
}
.img-ref {
  font-size: 11px;
  color: var(--muted2);
  padding: 6px 10px;
  text-align: center;
  font-style: italic;
}

figure.ocr-assoc {
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
  text-align: center;
}
figure.ocr-assoc img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════════════════════════
   6. BOOKMARK FAB (creat de JS)
   ══════════════════════════════════════════════════════════════ */

#bookmark-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(222, 88, 51, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
#bookmark-fab:hover {
  transform: scale(1.05);
  background: var(--accentD);
  box-shadow: 0 4px 20px rgba(222, 88, 51, 0.45);
}

#bk-toast {
  position: fixed;
  bottom: 72px;
  right: 20px;
  z-index: 9989;
  background: var(--dark);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  display: none;
  box-shadow: var(--shadowM);
  max-width: 280px;
}

/* ══════════════════════════════════════════════════════════════
   7. DRCALC PANEL (creat de JS)
   ══════════════════════════════════════════════════════════════ */

#drcalc-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9980;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: 2px 0 12px rgba(0,0,0,.12);
  transition: background 0.15s, filter 0.15s;
}
#drcalc-tab:hover { background: #256843; filter: brightness(1.05); }

#drcalc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9981;
  background: rgba(0,0,0,0.35);
  display: none;
}
#drcalc-overlay.active { display: block; }

#drcalc-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 85vw);
  z-index: 9982;
  background: var(--card);
  box-shadow: 4px 0 24px rgba(0,0,0,.12);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#drcalc-panel.active { transform: translateX(0); }

#drcalc-header {
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#drcalc-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.45);
  border-radius: 2px;
  margin: 0 auto 4px;
}
#drcalc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
#drcalc-close {
  background: rgba(255,255,255,0.22);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#drcalc-close:hover { background: rgba(255,255,255,0.35); }

#drcalc-frame {
  flex: 1;
  border: none;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   8. PUSH NOTIFICATION MODAL (creat de JS)
   ══════════════════════════════════════════════════════════════ */

#nm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
}
#nm-overlay.active { display: flex; }

#nm-dialog {
  background: var(--card);
  border-radius: var(--radiusL);
  padding: 28px 24px;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadowM);
  text-align: center;
  border: 1px solid var(--border);
}
#nm-dialog h3 { margin: 0 0 10px; font-size: 17px; color: var(--dark); }
#nm-dialog p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }

.nm-btn {
  display: inline-block;
  padding: 9px 22px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 4px;
  transition: transform 0.1s, background 0.15s;
}
.nm-btn:hover { transform: scale(1.03); }
.nm-btn-yes { background: var(--green); color: #fff; }
.nm-btn-yes:hover { background: #256843; }
.nm-btn-no {
  background: var(--bg2);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.nm-btn-no:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   9. BLOCK-LEVEL RATINGS (per sectiune)
   ══════════════════════════════════════════════════════════════ */

.block-rating-widget {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0 0;
  padding: 8px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  border-top: none;
}

.block-rating-widget .br-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 110px;
}

.block-rating-widget .br-stars {
  display: flex;
  gap: 2px;
}

.block-rating-widget .br-star {
  font-size: 18px;
  cursor: pointer;
  color: #C8C4BE;
  line-height: 1;
  user-select: none;
  transition: color 0.1s, transform 0.08s;
}

.block-rating-widget .br-star:hover {
  transform: scale(1.18);
  color: var(--accentL);
}

.block-rating-widget .br-star.active {
  color: var(--accent);
}

.block-rating-widget .br-info {
  font-size: 11px;
  color: var(--muted2);
}

.block-rating-widget .br-own {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.block-rating-widget .br-own.voted {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-color: var(--accent);
}

/* Atom / aliniat / imagine — stele compacte */
.mnem-rating-atom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
  padding: 5px 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 100%;
}
.mnem-rating-atom .br-type {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mnem-rating-atom .br-stars { display: flex; gap: 0; }
.mnem-rating-atom .br-star {
  font-size: 13px;
  cursor: pointer;
  color: #C8C4BE;
  line-height: 1;
  user-select: none;
  transition: color 0.1s, transform 0.08s;
}
.mnem-rating-atom .br-star:hover {
  transform: scale(1.12);
  color: var(--accentL);
}
.mnem-rating-atom .br-star.active {
  color: var(--accent);
}
.mnem-rating-atom .br-info { display: none; }
.mnem-rating-atom .br-own {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.mnem-rating-atom .br-own.voted {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
figure.mnem-rating-figure-wrap { position: relative; }
figure .mnem-rating-atom { margin-top: 6px; }

#mnem-export-ratings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9988;
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
#mnem-export-ratings-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   10. SUGGESTION WIDGET (per paragraf) — card deschis, nu „terminal”
   ══════════════════════════════════════════════════════════════ */

.suggestion-widget {
  margin: 6px 16px 20px 16px;
  border-radius: var(--radiusL);
  overflow: hidden;
  border: 1.5px dashed rgba(176, 120, 32, 0.55);
  background: var(--card);
  box-shadow: var(--shadow);
}

.sw-toggle {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: var(--amber-light);
  border: none;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.sw-toggle:hover { background: #F5EBD4; }

.sw-arrow {
  margin-left: 6px;
  transition: transform 0.2s;
  font-style: normal;
  color: var(--muted);
}
.suggestion-widget.sw-open .sw-arrow { transform: rotate(180deg); }

.sw-body {
  display: none;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.suggestion-widget.sw-open .sw-body { display: block; }

.sw-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px 0;
  line-height: 1.65;
}

.sw-row { margin-bottom: 12px; }
.sw-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sw-select, .sw-text {
  width: 100%;
  padding: 9px 11px;
  background: var(--card);
  border: 1.5px solid var(--borderL);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.sw-select:focus, .sw-text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(222, 88, 51, 0.12);
}

.sw-text {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}

.sw-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.sw-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.sw-submit:hover { background: var(--accentD); transform: scale(1.02); }
.sw-submit:disabled { background: var(--borderL); color: var(--muted); cursor: not-allowed; transform: none; }

.sw-status { font-size: 11px; color: var(--muted2); }

.sw-ai-hint {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg2);
  border-left: 3px solid var(--gold);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  border-radius: 0 8px 8px 0;
}
.sw-ai-hint strong { color: var(--gold); }
.sw-ai-hint em { color: var(--muted); font-style: italic; }

.sw-copy-area {
  margin-top: 12px;
  padding: 10px;
  background: var(--bg2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.sw-copy-text {
  width: 100%;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text);
  font-family: ui-monospace, monospace;
  resize: none;
}
.sw-copy-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.sw-copy-btn:hover { background: #256843; }

/* ══════════════════════════════════════════════════════════════
   11. TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════ */

#toast-global {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 99997;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadowM);
}
#toast-global.show { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   12. RESPONSIVE (Mobile ≤ 640px)
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .wrapper { padding: 16px 12px 50px; }
  .master-title { padding: 1.25rem 1rem; }
  .master-title h1 { font-size: 1.15rem; }

  .nav-brand { max-width: 150px; font-size: 11px; }
  .nav-link { display: none; }

  .paragraf-title { font-size: 10px; padding: 10px 12px; }
  .box { padding: 10px 12px; margin: 8px 10px; }
  .ab-box { margin: 6px 10px; font-size: 12px; }
  .carlige-box { margin: 8px 10px; padding: 10px 12px; }

  .block-rating-widget { padding: 6px 8px; gap: 4px; }
  .block-rating-widget .br-star { font-size: 15px !important; }
  .block-rating-widget .br-type { font-size: 9px !important; min-width: 85px; }

  .suggestion-widget { margin: 6px 8px 16px 8px; }
  .sw-toggle { padding: 8px 12px; font-size: 11.5px; }
  .sw-body { padding: 12px; }

  #bookmark-fab { padding: 8px 12px; font-size: 12px; }
  #bookmark-fab .bm-text { display: none; }
  #bookmark-fab .bm-num { display: inline !important; }

  #drcalc-panel { width: 90vw; }
}

/* ══════════════════════════════════════════════════════════════
   13. PRINT (ascunde tot interactiv)
   ══════════════════════════════════════════════════════════════ */

@media print {
  nav, #bookmark-fab, #bk-toast, #notif-btn,
  #drcalc-tab, #drcalc-panel, #drcalc-overlay,
  #nm-overlay,
  .block-rating-widget, .mnem-rating-atom, .img-rating-widget,
  .suggestion-widget, #toast-global, #debug-panel, #mnem-export-ratings-btn { display: none !important; }
  .wrapper { max-width: 100%; padding: 0; }
  .paragraf { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  @page { margin: 14mm 12mm; }
}
