/* — Reset base e regole modali spostate da index.html — */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Contenitore modale nascosto di default */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal.open {
  display: flex;
}

/* — Fine blocco spostato — */
:root {
  /*dropdown*/
  --color-artista:      oklch(0.5462 0.1649 12.2);
  --color-album:        oklch(0.5379 0.141 4.97);
  --color-brano:        oklch(0.5262 0.1116 351.47);
  --color-luogo:        oklch(0.5355 0.0805 336.23);
  --color-persona:      oklch(0.543 0.0712 309.56);
  --color-altro:        oklch(0.5521 0.0702 278.94);
  --color-video:        oklch(0.571 0.0787 257.63);
  --color-letteratura:  oklch(0.571 0.0787 257.63);
  --color-spiritualità: oklch(0.6193 0.1149 240.33);

  /* colore archi-link-collegamenti */
  --color-link: #999;

  --font-main: "Inter", sans-serif;
  /* --font-ui:   var(--font-main);
  --font-node: var(--font-main);
  --font-link: var(--font-main); */
  --font-ui:   "Inter", sans-serif;
  --font-node: "Inter", sans-serif;
  --font-link: "Inter", sans-serif;
}

.node.artista       { fill: var(--color-artista); }
.node.album         { fill: var(--color-album); }
.node.brano         { fill: var(--color-brano); }
.node.luogo         { fill: var(--color-luogo); }
.node.persona       { fill: var(--color-persona); }
.node.altro         { fill: var(--color-altro); }
.node.video         { fill: var(--color-video); }
.node.letteratura   { fill: var(--color-letteratura); }
.node.spiritualità  { fill: var(--color-spiritualità); } 

body         {font-family: var(--font-ui), sans-serif;}
svg text     {font-family: var(--font-node), sans-serif;}
.label       {font-family: var(--font-node), sans-serif;}
.link-label  {font-family: var(--font-link), sans-serif;}

button,
input,
select,
textarea,
.modal       { font-family: var(--font-ui), sans-serif; }


.link{
  stroke:var(--color-link);
  stroke-opacity:.6;
  stroke-width:0.7;
}

body {
  margin: 0;
  /* background: #f0eeee; */
  font-weight: 400;
  font-style: normal;
}
.node {
  stroke: #ffffff;
  stroke-width: 3px;
}

.textarea-with-files {
  position: relative;
}

.modal-content {
  display: inline-block;
  text-align: left;
  will-change: transform, opacity;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));  /*rivedi123*/
  width: 740px;       /* esempio: puoi aumentare a piacere */
  max-width: 96vw;    /* così non esce mai dal viewport su schermi piccoli */
  min-width: 280px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.3);
  /* background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.1)); */
  border-radius: 24px;
  padding: 18px 1.5rem 1.5rem;
  /* hairline glassy stroke (subtler) */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.5),   /* top-edge highlight */
    inset 0 -0.5px 0 rgba(0,   0,   0,   0.03),  /* bottom-edge shadow */
    0 2px 20px rgba(0, 0, 0, 0.005);             /* leggera profondità esterna */
}

.modal-content #linkLabelInput {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
}

.modal-content #deleteLink {
    background:#ff6b6b;
    color:#fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
}

.modal-content #saveLinkLabel {
  background:black;
  color:#fff;
  border-radius: 18px;
}

.close-btn {
  top: 27px;
  left: 729px;
  position: absolute;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 32px;        /* increase clickable area */
  height: 32px;
  font-size: 1.5rem;  /* enlarge the icon inside */
}

.close-btn i {
  font-size: 1.5rem;
}


/* --- File-input & hidden edit/save buttons --- */
input[type="file"]{
  font-family: var(--font-ui), sans-serif;
}
/* nasconde “No file chosen” (WebKit) */
input[type="file"]::-webkit-file-upload-button {
  visibility:hidden;
}
/* choose file Button */
input[type="file"]::file-selector-button{
  font-family: var(--font-ui), sans-serif;
}

/* old */
#editName,
#saveNode{
  display:none !important;
}

/* phosphor icons fill */
.icon-fill{ display:none; }
.toolbar-item:hover .icon-outline{ display:none; }
.toolbar-item:hover .icon-fill{  display:inline-block; }

/* Theme‑toggle helper: if we need only one icon visible (handled in JS) */
.toolbar-item[data-hidden]{ display:none !important; }

/* ── Filter‑modal category list ─────────────────────────────── */
.filter-modal            { position: fixed; right: 16px; bottom: 48px; width: 240px; background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.14); font-family: var(--font-ui), sans-serif; display: none; }
.filter-modal.open       { display: block; }
.filter-modal h3         { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.filter-categories       { display: flex; flex-direction: column; gap: 6px; }
.category-item           { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: default; }
.category-item .bullet   { width: 11px; height: 11px; border-radius: 50%; flex: none; }
/* map bullets to the same vars used for nodes */
.bullet.artista       { background: var(--color-artista); }
.bullet.album         { background: var(--color-album); }
.bullet.brano         { background: var(--color-brano); }
.bullet.luogo         { background: var(--color-luogo); }
.bullet.persona       { background: var(--color-persona); }
.bullet.altro         { background: var(--color-altro); }
.bullet.video         { background: var(--color-video); }
.bullet.letteratura   { background: var(--color-letteratura); }
.bullet.spiritualità  { background: var(--color-spiritualità); }

/* Glass-style textarea in modal */
.modal-content textarea {
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  color: #333;
  /* Center single-line text vertically */
  padding-block: 0.75rem;  /* top and bottom padding */
  padding-inline: 0.5rem;  /* left and right padding */
  line-height: 1.333rem;       /* set line-height to match font size for centering */
  height: auto;
  min-height: calc(1rem + 1.5rem);
  max-height: 200px;
  overflow-y: auto;
  resize: none;
  font-size: 1.0831rem;
  font-family: var(--font-ui), sans-serif;
}

.modal-content textarea:focus {
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  /* box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);  */
}

#modalDesc {
  box-sizing: border-box;
  /* keep room for the action icons without forcing a tall box */
  padding-right: 4.5rem;   /* =72 px, matches .textarea-wrapper offset */
  padding-bottom: 0.75rem; /* same vertical padding as the top */
}

/* File picker: hide filename and remove boxes */
.modal-content input[type="file"] {
  background: none;
  border: none;
  padding: 0;
  margin: 0;}



.modal-content input[type="file"]::file-selector-button,
.modal-content input[type="file"]::-webkit-file-upload-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* Text-only buttons for upload and delete */
.modal-content button#uploadFile,
.modal-content button#deleteNode {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0.5rem 0 0;
  font: inherit;
  cursor: pointer;
}


/* Layout and spacing for header and titles inside modal */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 3.5rem;
}
.modal-titles {
  margin: 0;
  padding-top: 1px;
  padding-bottom: 1px;
  position: relative;
}

#modalName:focus {
  outline: none;
}


.modal-titles #modalType {
  display: inline-block;
  font-size: 0.7rem;
  color: rgb(255, 255, 255);
  background: rgba(48, 223, 0, 0.52);
  border-radius: 24px;
  padding: 0.25rem 0.75rem;   /* 0.25rem top/bottom, 0.75rem left/right */
  position: static;
  top: 0;
  margin-bottom: 0.1rem;   /* space below small element */
  margin-left: 0.5rem;    /* space to the left of small element */
}

.modal-titles .last-modified {
  display: block;
  position: static !important;
  font-size: 0.65rem;
  color: #888;
  margin-top: 0.25rem;
  background: none !important;
  padding: 0;
}

.modal-titles h2 {
  display: block;
  font-size: 1.8331rem;
  margin-top: 4px;
  margin-left: 0.5rem;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: rgba(0, 0, 0, 0.89);
  text-shadow:
          0 1px 2px rgba(0, 0, 0, 0.1),    /* piccolo scurimento per contrasto */
          0 0 8px rgba(255, 255, 255, 0.4); /* alone chiaro, sfocato */
}


/* Delete icon button in modal header */
.delete-btn {
  top: 27px;
  left: 659px;
  position: absolute;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 32px;        /* increase clickable area */
  height: 32px;
  font-size: 1.5rem;  /* enlarge the icon inside */
}
.delete-btn .ph-fill {
  display: none;
}
.delete-btn:hover .ph {
  display: none;
}
.delete-btn:hover .ph-fill {
  display: block;
  color: red;
}

/* ── Textarea action icons ─────────────────────────────── */
.textarea-wrapper {
  position: relative;
  width: 100%;
  max-height: 200px;
}
.textarea-wrapper textarea {
  padding-right: 4.5rem; /* leave room for save + attach icons */
  width: 100%;
  max-height: 200px;
  min-height: 40px;
  box-sizing: border-box;
  resize: none;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0); /* puoi lasciare trasparente se vuoi effetto glass */
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  color: #333;
  font-size: 18px;
  font-family: var(--font-ui), sans-serif;
  padding-block: 0.75rem;
  padding-inline: 0.5rem 4.5rem; /* spazio per le icone */
  line-height: 1.5rem;
}

.textarea-wrapper textarea:focus {
  border: 1px solid rgba(0, 0, 0, 0.16);
  outline: none;
}
.save-icon,
.attach-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  top: auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.save-icon {
  right: 12px; /* sits to the left of attach */
  color: #2ecc71;
}
.attach-icon {
  right: 42px;
  color: #555;
}
.attach-icon:hover {
  color: #000;
}
.save-icon:hover {
  filter: brightness(1.3);
}

/* ── Create button in new-node modal ─────────────────── */
.create-btn {
  display: block;
  margin: 1rem auto;       /* center horizontally with some vertical spacing */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;         /* enlarge the icon */
  line-height: 1;
}
.create-btn .ph-fill {
  display: none;
}
.create-btn:hover .ph {
  display: none;
}
.create-btn:hover .ph-fill {
  display: inline-block;
  color: inherit;          /* =colore */
}

/* ── Glass toolbar ───────────────────────────── */
.bottom-toolbar.glass {
  position: fixed;
  justify-content: space-evenly;   /* distribuisce TUTTI i pill sull’intera larghezza */
  gap: 0.5rem;                     /* distanza fissa fra le pill */
  bottom: 8px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.4rem 1rem;
  background: none;  /* light glass fill */
  border: none;   /* thin stroke */
  border-radius: 9999px;                   /* fully rounded */
  font-family: "Inter", sans-serif;
  z-index: 12;
}

/* singole voci filtro */
.cat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  padding: 0.25rem 0.8rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  cursor: pointer;
  user-select: none;
}

/* pallini – erano già definiti, li riciclo per comodità */
.bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 0;
}
.bullet-artista      { background: var(--color-artista); }
.bullet-album        { background: var(--color-album);}
.bullet-brano        { background: var(--color-brano);}
.bullet-luogo        { background: var(--color-luogo);}
.bullet-persona      { background: var(--color-persona); }
.bullet-video        { background: var(--color-video); }
.bullet-letteratura  { background: var(--color-letteratura); }
.bullet-spiritualita { background: var(--color-spiritualità); }
.bullet-altro        { background: var(--color-altro); }

/* pulsanti View / Search */
.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.8rem;
  background: none;
  border: 0 solid rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
  font-size: 0.9rem;     /* stessa altezza testo delle cat-pill */
  line-height: 1;
  cursor: pointer;
}
.toolbar-btn:hover {
  filter: brightness(1.2);
}
.toolbar-btn i { 
  font-size: 0.9rem;     /* icona ≈ diametro dei pallini (10 px) */
}

/* colore delle label dei nodi poi vediamo */
.label {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  fill: #000000;
}

/* ── Animated search top-right ───────────────────── */
/* Animated search centered top-right */
.search {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 6px;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: rgba(255,255,255,0.18);  /* vetro */
  border: 1px solid rgba(0,0,0,0.25);  /* stroke */
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(.9,0,.3,.9);
}

/* Stato aperto: container si allarga, button rimane fisso */
.search.show-search {
  width: 240px;  /* stessa larghezza del tuo searchBox principale */
}

/* Input placeholder centrato verticalmente */
.search__input {
  height: 100%;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: transparent;
  width: 0;
  opacity: 0;
  pointer-events: none;
  color: #000;
  font-size: 0.8rem;
  padding-left: 8px;
  font-family: "Inter", sans-serif;
  transition: opacity .4s;
}

.search.show-search .search__input {
  width: 100%;
  opacity: 1;
  pointer-events: initial;
}

/* Pulsante nero sempre centrato, ruota in place */
.search__button {
  position: absolute;
  top: 50%;
  right: 11.5px;
  width: 28px;
  height: 28px;
  background: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .6s cubic-bezier(.9,0,.3,.9);
  transform: translateY(-50%);     /* centro verticale */
  transform-origin: center;
}

/* In stato open: ruota solo in place RUOTA ICONA */
.search.show-search .search__button {
  transform: translateY(-50%) rotate(90deg);
}

/* Icone interne */
.search__icon,
.search__close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  color: #000000;
}
.search__close { opacity: 0; }
.search.show-search .search__icon  { opacity: 0; }
.search.show-search .search__close { opacity: 1; }

/* Hide the browser's built-in clear (X) button in search inputs */
.search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}
.search__input::-ms-clear {
  display: none;
}

/* ── Site header ─────────────────────────────────── */
#site-header {
  position: fixed;
  font-size: 400px;
  top:  8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 20;
  padding: 0.5rem;
}

/* Toolbar icons vertically at top-right */
#toolbar {
  position: fixed;
  top: 89px;
  right: 28.5px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  z-index: 20;
}

/* Venerus logo */
#logo {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
}
.logo-archi { font-weight: 700; }
.logo-ve    { font-weight: 600; font-style: italic; }

/* toolbar buttons styling */
#toolbar button {
  background: none;
  border: none;
  padding: 0.25rem;
  font-size: 1.25rem;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#toolbar button:hover {
  filter: brightness(1.2);
}

/* hide default linkHint styling if any */
#linkHint { display: none; }

.graph_container {
  position: relative;
    width: 100%;
    height: 100%;
}

#graph_container {
  position: relative;
  width: 100%;
  height: 100%;
}

.fade-top,
.fade-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 28px; /* regola se vuoi fade più alto o basso */
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.56) 80%, rgba(255,255,255,0));
}

.fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.53) 80%, rgba(255,255,255,0));
}

/* Fades attivati da JS
.textarea-fade-show-top .fade-top { opacity: 1; }
.textarea-fade-show-bottom .fade-bottom { opacity: 1; }

.fade-top {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.fade-bottom {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
} */
/* ▼ Effetto dim per nodi, link e label --------------------------- */
.node.dim,
.link.dim,
.label.dim,
text.dim {
  opacity: 0.25;           /* sfuma al 25% di opacità */
  transition: opacity 0.2s;
}

.cat-item.inactive {
  opacity: 0.4;
  filter: brightness(0.8);
}

/* Stile normale del bottone linkMode */
#linkModeBtn {
  background: none;
  border: none;
  padding: 0.4rem;
  font-size: 1.25rem;
  color: #000;           /* icona nera quando inattivo */
  cursor: pointer;
}

/* Hover */
#linkModeBtn:hover {
  filter: brightness(1.2);
}

/* Stato active: diventa blu */
#linkModeBtn.active {
  color: #0066cc;        /* blu a scelta */
}

#attachmentsList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

#attachmentsList img,
#attachmentsList .file-icon {
  width: 100%;
  height: auto;
  max-width: 64px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

#attachmentsList img:hover,
#attachmentsList .file-icon:hover {
  transform: scale(1.05);
}

/* Contenitore generale anteprime */
.file-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Box singola anteprima */
.file-preview {
  width: 120px;                    /* fissi: 120×80  */
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 0px solid rgba(0,0,0,0.15); */          /* stesso stroke textarea */
  border-radius: 12px;                              /* stesso radius */
  background: rgba(255,255,255,0.75);               /* glass */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* Fade overlay on each preview – from bottom (light) to top (transparent) */
.file-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.39) 35%,
    rgba(255,255,255,0)       70%);
}

/* Icona fallback (ph-file) centrata */
.file-preview i {
  font-size: 1.4rem;
  color: #000;
}

/* Immagine ridimensionata al box */
.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* X di eliminazione */
.file-preview button {
  position: absolute;
  top: 2px;
  right: 4px;
  padding: 0;
  background: none;
  border: none;
  color: #000;
  font-size: 0.9rem;
  cursor: pointer;
}




#attachmentsList:empty {
  display: none;
}


body.modal-active {
  overflow: hidden;
}

#modal-container {
  position: fixed;
  inset: 0;
  display: table;
  height: 100%;
  width: 100%;
  transform: scale(0);          /* collapsed by default */
  z-index: 1000;                /* above graph and toolbar */
  pointer-events: none;
  opacity: 0;
}

#modal-container.reveal {       /* opening */
  transform: scale(1);
  pointer-events: auto;
  opacity: 1;
}

#modal-container.reveal .modal-background {
  animation: none;
  background: transparent;
}

#modal-container.reveal .modal-content {
  opacity: 0;
  animation: scaleUp 0.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

#modal-container.reveal.out {   /* closing */
  animation: quickScaleDown 0s 0.5s linear forwards;
}

#modal-container.reveal.out .modal-background {
  animation: none;
  background: transparent;
}

#modal-container.reveal.out .modal-content {
  animation: scaleDown 0.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards;
}

/* backdrop “cell” */
#modal-container .modal-background {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeIn  { from { background: rgba(0,0,0,0);} to { background: rgba(0,0,0,0);} }
@keyframes fadeOut { from { background: rgba(0,0,0,0);} to { background: rgba(0,0,0,0);} }

@keyframes scaleUp {
  from { transform: scale(0.8) translateY(1000px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);      opacity: 1; }
}

@keyframes scaleDown {
  from { transform: scale(1)   translateY(0);      opacity: 1; }
  to   { transform: scale(0.8) translateY(1000px); opacity: 0; }
}

@keyframes quickScaleDown {
  0%   { transform: scale(1); }
  99.9%{ transform: scale(1); }
  100% { transform: scale(0); }
}

/* Make the textarea‑wrapper a flex column so we can control
   vertical spacing with gap (avoids margin‑collapse quirks). */
.textarea-fade-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;   /* 3 rem sopra e sotto il blocco file‑preview */
}

/* ── Viewer (spettatore) mode ───────────────────────── */
body.viewer .modal-content textarea,
body.viewer .modal-content .textarea-wrapper {
  border: none !important;        /* rimuove la cornice “stroke” */
  box-shadow: none !important;    /* nessuna ombra */
}

body.viewer .save-icon,
body.viewer #saveNode,
body.viewer #toggleEdges {
  display: none !important;       /* nasconde questi controlli */
}


.modal-titles .last-modified {
  display: block;
  position: static !important;
  font-size: 0.65rem;
  color: #888;
  margin-top: 0;
  background: none !important;
  padding: 0;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;

}


/* ── About pill più scura ─────────────────────────── */
.about-pill {
  background: rgba(0, 0, 0, 0.85);         /* vetro scuro */
  border: 0 solid rgb(0, 0, 0);
  color: #fff !important;
  text-decoration: none !important;        /* niente underline né blu */
}
.about-pill i {
  font-size: 0.9rem;
  margin-right: 0.3rem;
}

/* ── Layout pagina About ───────────────────────────── */
body.about-page {
  display: flex;
  flex-direction: column;
  justify-content: center;                 /* centro verticale */
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background-color: #fff8f8;
  background-image: radial-gradient(circle at 1px 1px, #d8d8d8 1px, transparent 0);
  background-size: 18px 18px;                   /* stesso fondo del grafo */
  font-family: "Inter", sans-serif;
}
.about-wrapper {
  background: none !important;             /* niente bolla bianca */
  padding: 0 2rem;
  max-width: 40rem;
}
.about-wrapper h1 {
  margin: 0 0 1.2rem;
  font-size: 2.4rem;
  font-weight: 800;
}

