/* ═══════════════════════════════════════════════════════════════════════
   MNEMOTEHNIC WIDGETS CSS — ALL-IN-ONE STYLES
   Versiunea: 3.0 | Aprilie 2026 — Paleta DDG caldă (același ton cu preview.html)
   
   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)
   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
   ══════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Paleta DDG caldă ── */
  --bg:           #FAFAF9;
  --bg2:          #F4F1EC;
  --bg3:          #EDE9E2;
  --card:         #FFFFFF;
  --border:       #E0DDD8;
  --borderL:      #C8C4BE;
  --text:         #1A1A1A;
  --muted:        #737373;
  --muted2:       #9A9590;

  /* accent = portocaliu cald */
  --accent:       #DE5833;
  --accentD:      #B83F1F;
  --accentL:      #F47C5C;
  --accent-light: #FDEEE9;

  /* semantice */
  --blue:         #DE5833;   /* alias pentru cod vechi care folosea --blue */
  --blue-light:   #FDEEE9;
  --green:        #2E7D52;
  --green-light:  #EFF7F2;
  --amber:        #B07820;
  --amber-light:  #FBF3E4;
  --purple:       #7C6AF6;
  --purple-light: #F0EEFF;
  --red:          #CC3333;
  --red-light:    #FDEAEA;
  --dark:         #1A1A1A;

  --radius:       10px;
  --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);
}

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

/* ══════════════════════════════════════════════════════════════
   2. NAVIGATIE STICKY
   ══════════════════════════════════════════════════════════════ */

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

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

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

#nav-toggle {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  transition: background .15s;
}
#nav-toggle:hover { background: var(--bg3); color: var(--text); }

#notif-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
#notif-btn:hover { background: var(--bg2); 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;
}
#menu-content.mob-open { display: block; }

#menu-content a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 16px;
  font-size: 12px;
  transition: background .12s;
}
#menu-content a:hover { background: var(--bg2); color: var(--accent); }

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

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

/* ── Master title — card cu bordură accent sus ── */
.master-title {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 1.8rem 1.8rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.master-title h1 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0 0 .5rem 0;
  color: var(--text);
  line-height: 1.35;
}
.master-title .subtitle {
  color: var(--muted);
  font-size: .84rem;
  margin: 0;
}
.master-title .index-table { margin-top: 1rem; }
.master-title .index-table a {
  color: var(--accent);
  text-decoration: none;
  font-size: .8rem;
}
.master-title .index-table a:hover { color: var(--accentD); text-decoration: underline; }

/* ── Disclaimer ── */
.bloc-disclaimer {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: .84rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ── Part separator — discret, portocaliu ── */
.bloc-header, .part-separator {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: .6rem 0;
  border-bottom: 2px solid var(--accent-light);
  margin: 2rem 0 1rem;
}

/* ══════════════════════════════════════════════
   PARAGRAF = CONCEPT CARD (identic cu preview)
══════════════════════════════════════════════ */
.paragraf {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Header paragraf = header concept din preview */
.paragraf-title {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--card);
  cursor: default;
  user-select: none;
}

/* Padding interior uniform — ca .c-content din preview */
.paragraf > .box,
.paragraf > .carlige-box,
.paragraf > .ab-box,
.paragraf > .ab-box.mnem-sursa,
.paragraf > .vers-box,
.paragraf > .corelatie-box,
.paragraf > .status-box,
.paragraf > .roast-box,
.paragraf > p,
.paragraf > figure {
  margin-left: 1.4rem;
  margin-right: 1.4rem;
}
.paragraf > .box:first-child,
.paragraf > .carlige-box:first-child { margin-top: 1.2rem; }
.paragraf > *:last-child { margin-bottom: 1.4rem; }

/* ── Abrevieri — subtil ── */
.ab-box {
  background: var(--bg2);
  border-left: 3px solid var(--borderL);
  padding: .6rem .9rem;
  font-size: .8rem;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  margin: .8rem 1.4rem;
}

.box {
  border-radius: 8px;
  padding: .95rem 1.1rem;
  margin: .8rem 1.4rem;
}

.box-label {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: .45rem;
}

/* ── Tehnica (📌 Ce memorăm) → ca .c-rule din preview ── */
.tehnica-box {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .95rem 1.1rem;
}
.tehnica-box .box-label { color: var(--accent); }
.tehnica-box p, .tehnica-box .mnem-box-p {
  font-size: .87rem !important;
  color: var(--text) !important;
  line-height: 1.7;
  margin: 0;
}

/* ── Carlige (🎣 Cârlige) → ca .c-story din preview ── */
.carlige-box {
  background: #FBF3E4;
  border: 1px solid #EDD9A8;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: .8rem 1.4rem;
}
.carlige-box .box-label { color: var(--amber); }
.carlige-item { margin-bottom: 1rem; }
.carlige-item:last-child { margin-bottom: 0; }
.carlige-item-header {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .4rem;
}
.carlige-box p, .carlige-item p {
  font-size: .86rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ── Vers (🎵) → ca .c-verse din preview ── */
.vers-box {
  background: #EFF7F2;
  border: 1px solid #C5E3D3;
  border-radius: 8px;
  padding: .85rem 1.1rem;
  font-size: .84rem;
  font-style: italic;
  color: #2A5040;
  line-height: 1.75;
  margin: .8rem 0;
}

/* ── Corelatie (🕸️) → violet ── */
.corelatie-box {
  background: var(--purple-light);
  border: 1px solid #D4CCFA;
  border-radius: 8px;
  padding: .85rem 1.1rem;
  font-size: .84rem;
  color: #4030A0;
  margin: .8rem 0;
  border-left: 3px solid var(--purple);
}

/* ── Lectia (📚) → verde, ca .c-action ── */
.lectia-box {
  background: #EFF7F2;
  border: 1px solid #C5E3D3;
  border-radius: 8px;
  padding: .95rem 1.1rem;
  border-left: 3px solid var(--green);
}
.lectia-box .box-label { color: var(--green); }
.lectia-box p, .lectia-box .mnem-box-p {
  font-size: .86rem !important;
  color: var(--text) !important;
  line-height: 1.7;
  margin: 0;
}

/* ── Ringul comparatiilor (🥊) ── */
.ring-p {
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
  padding: .85rem 1.1rem;
  margin: .6rem 0;
  border-left: 2px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
}

.filtru-badge { display: none; }

/* ── Tranziție paragraf ── */
.tier-primary {
  font-size: .86rem !important;
  color: var(--muted) !important;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: .8rem;
  margin: .8rem 0;
  line-height: 1.65;
}

/* ── Sursa ── */
.mnem-sursa {
  font-size: .75rem !important;
  color: var(--muted2) !important;
  margin: .3rem 1.4rem .8rem;
  font-style: italic;
}
.ab-box.mnem-sursa {
  background: none;
  border: none;
  border-left: none;
  padding: 0;
  font-size: .75rem !important;
  color: var(--muted2) !important;
}

/* ── Curtain line ── */
.mnem-curtain-line {
  border-top: 1px solid var(--border);
  margin: 1rem 0;
  color: var(--muted2);
  font-size: .78rem;
  padding-top: .6rem;
}

/* ══════════════════════════════════════════════════════════════
   4. STATUS BOX + ROAST (ca .c-analogy din preview)
   ══════════════════════════════════════════════════════════════ */

.status-box {
  background: var(--bg2);
  border: none;
  border-left: 2px solid var(--border);
  border-radius: 0 8px 8px 0;
  padding: .85rem 1rem;
  margin: .8rem 1.4rem;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.65;
}
.status-line { color: var(--accent); font-weight: 600; margin-bottom: .3rem; }

.roast-box {
  background: var(--bg2);
  border-left: 2px solid var(--border);
  padding: .85rem 1.1rem;
  border-radius: 0 8px 8px 0;
  font-size: .85rem;
  color: var(--muted);
  margin: .6rem 0;
  font-style: italic;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   5. MNEMONIC IMAGE BOX (auto-injectat de JS)
   ══════════════════════════════════════════════════════════════ */

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

/* ══════════════════════════════════════════════════════════════
   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 4px 16px rgba(222,88,51,.35);
  transition: transform .15s, box-shadow .15s, background .15s;
}
#bookmark-fab:hover {
  background: var(--accentD);
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(222,88,51,.45);
}

#bk-toast {
  position: fixed;
  bottom: 72px;
  right: 20px;
  z-index: 9989;
  background: var(--text);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  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 8px 8px 0;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: 2px 0 12px rgba(0,0,0,.12);
  transition: background .15s;
}
#drcalc-tab:hover { background: #245E3E; }

#drcalc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9981;
  background: rgba(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,.18);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .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,.4);
  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,.2);
  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,.3); }

#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,.45);
  display: none;
  align-items: center;
  justify-content: center;
}
#nm-overlay.active { display: flex; }

#nm-dialog {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadowM);
  text-align: center;
  border-top: 3px solid var(--accent);
}
#nm-dialog h3 { margin: 0 0 10px; font-size: 17px; color: var(--text); }
#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: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 4px;
  transition: transform .1s, background .15s;
}
.nm-btn:hover { transform: scale(1.04); }
.nm-btn-yes { background: var(--accent); color: #fff; }
.nm-btn-yes:hover { background: var(--accentD); }
.nm-btn-no  { background: var(--bg2); color: var(--muted); border: 1px solid var(--border); }
.nm-btn-no:hover  { background: var(--bg3); }

/* ══════════════════════════════════════════════════════════════
   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: 7px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  border-top: none;
}

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

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

.block-rating-widget .br-star {
  font-size: 18px;
  cursor: pointer;
  color: var(--border);
  line-height: 1;
  user-select: none;
  transition: color .1s, transform .08s, text-shadow .1s;
}

.block-rating-widget .br-star:hover {
  transform: scale(1.22);
  color: var(--amber);
  text-shadow: 0 0 6px rgba(176,120,32,.5);
}

.block-rating-widget .br-star.active {
  color: var(--amber);
  text-shadow: 0 0 5px rgba(176,120,32,.4);
}

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

.block-rating-widget .br-own {
  font-size: 10px;
  color: var(--muted2);
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--bg3);
  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: 4px 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 100%;
}
.mnem-rating-atom .br-type {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .04em;
  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: var(--border);
  line-height: 1;
  user-select: none;
  transition: color .1s, transform .08s;
}
.mnem-rating-atom .br-star:hover { transform: scale(1.15); color: var(--amber); }
.mnem-rating-atom .br-star.active { color: var(--amber); }
.mnem-rating-atom .br-info { display: none; }
.mnem-rating-atom .br-own {
  font-size: 9px;
  color: var(--muted2);
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bg3);
  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(--bg2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
#mnem-export-ratings-btn:hover { background: var(--bg3); color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   10. SUGGESTION WIDGET (per paragraf)
   ══════════════════════════════════════════════════════════════ */

.suggestion-widget {
  margin: 6px 16px 20px 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed var(--borderL);
  background: var(--bg2);
}

.sw-toggle {
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  background: var(--bg2);
  border: none;
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .02em;
  transition: background .15s;
}
.sw-toggle:hover { background: var(--bg3); }

.sw-arrow {
  margin-left: 6px;
  transition: transform .2s;
  font-style: normal;
}
.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(--card);
}
.suggestion-widget.sw-open .sw-body { display: block; }

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

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

.sw-select, .sw-text {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12.5px;
  font-family: inherit;
}
.sw-select:focus, .sw-text:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
}

.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: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.sw-submit:hover { background: var(--accentD); transform: scale(1.03); }
.sw-submit:disabled { background: var(--muted2); cursor: not-allowed; }

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

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

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

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

#toast-global {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 99997;
  opacity: 0;
  transition: opacity .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 10px 50px; }
  .master-title { padding: 20px 16px; }
  .master-title h1 { font-size: 17px; }

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

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

  .block-rating-widget { padding: 5px 8px; gap: 4px; }
  .block-rating-widget .br-star { font-size: 14px !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 var(--border); page-break-inside: avoid; }
  @page { margin: 14mm 12mm; }
}
