/* Nexus Landing Studio – interfaccia */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
/* Font delle anteprime degli stili */
@font-face { font-family: "Fraunces"; font-weight: 300 900; font-display: swap; src: url(/fonts/fraunces-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Syne"; font-weight: 400 800; font-display: swap; src: url(/fonts/syne-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url(/fonts/outfit-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 100 800; font-display: swap; src: url(/fonts/sora-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-display: swap; src: url(/fonts/dm-sans-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); }

:root {
  --ink: #15161b; --ink2: #3a3d47; --muted: #6b6f7b; --line: #e3e3e8; --bg: #f3f2ef; --card: #fff; --hi: #f5d547; --hi-ink: #15161b;
  --ok: #1b8a4b; --mid: #b7791f; --bad: #c0392b; --r: 12px; --focus: #3b5bfd;
  font: 500 15px/1.5 "Manrope", system-ui, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
h1 { font-size: 1.9rem; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.i { display: inline-flex; width: 1.1em; height: 1.1em; }
.i svg { width: 100%; height: 100%; }
.err { color: var(--bad); min-height: 1.2em; margin: .4rem 0; font-size: .9rem; }
.warn { padding: .8rem 1rem; border-radius: 10px; background: #fff5d6; color: #6b4b00; margin: 0 0 1rem; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.5rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { border-color: #c9c9d1; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #2a2c34; border-color: #2a2c34; }
.btn--ghost { background: transparent; border-style: dashed; }
.btn--sm { min-height: 2rem; padding: .25rem .7rem; font-size: .85rem; border-radius: 8px; }
.btn--wide { width: 100%; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--ink2); text-decoration: none; font-size: 1.3rem; line-height: 1; }
.icon-btn:hover { background: #eceae5; }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.icon-btn.sm { width: 1.8rem; height: 1.8rem; border-radius: 7px; }
.icon-btn .i { width: 1.05rem; height: 1.05rem; }

/* Accesso */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(800px 500px at 15% 10%, #f8e7a0 0, transparent 60%), var(--bg); }
.login__box { width: min(400px, 100%); display: grid; gap: .45rem; padding: 2.2rem; border-radius: 18px; background: var(--card); box-shadow: 0 30px 70px -40px rgb(20 20 30 / .45); }
.login__logo { width: 3rem; height: 3rem; margin-bottom: .6rem; }
.login__box h1 { font-size: 1.5rem; }
.login__box p.muted { margin: 0 0 .8rem; }
.login label { font-size: .85rem; font-weight: 700; margin-top: .4rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 2.6rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-weight: 500;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink2); box-shadow: 0 0 0 3px rgb(21 22 27 / .1); }

/* Testata */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.6rem; height: 3.6rem; padding: 0 1.4rem; background: var(--ink); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; }
.brand img { width: 1.8rem; height: 1.8rem; }
.bar__nav { display: flex; gap: .3rem; }
.bar__nav a { color: #c9cad2; text-decoration: none; padding: .4rem .8rem; border-radius: 8px; font-weight: 650; }
.bar__nav a.is-on, .bar__nav a:hover { color: #fff; background: rgb(255 255 255 / .1); }
.bar__me { margin-left: auto; display: flex; gap: 1rem; align-items: center; color: #c9cad2; font-size: .9rem; }
.bar__me .link { color: #fff; }

/* Pagine */
.page { max-width: 1180px; margin: 0 auto; padding: 2rem 1.4rem 4rem; }
.page__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page__head p { margin: .3rem 0 0; max-width: 60ch; }
.search { max-width: 340px; margin-bottom: 1.2rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lcard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--card); text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.lcard:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -28px rgb(20 20 30 / .5); }
.lcard__sw { position: relative; height: 92px; display: flex; align-items: flex-end; gap: .4rem; padding: .9rem; }
.lcard__sw i { width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / .6); }
.lcard__sw b { position: absolute; right: 1rem; top: .5rem; font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; }
.lcard__body { padding: .9rem 1rem 1.1rem; }
.lcard__body h2 { font-size: 1.05rem; margin: .45rem 0 .2rem; }
.lcard__body p { margin: 0; font-size: .82rem; }
.lcard__top { display: flex; justify-content: space-between; align-items: center; }
.tag { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #efede8; }
.score { display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; }
.score.is-good { background: var(--ok); } .score.is-mid { background: var(--mid); } .score.is-low { background: var(--bad); }
.empty { grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem; border: 2px dashed var(--line); border-radius: 16px; }
.empty p { color: var(--muted); max-width: 52ch; margin: .5rem auto 1.2rem; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .8rem; color: var(--muted); }
.tbl .right { text-align: right; white-space: nowrap; }
.tbl .btn { margin-left: .3rem; }

/* Finestre */
.dlg { width: min(860px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 40px 100px -30px rgb(0 0 0 / .45); background: var(--card); color: var(--ink); }
.dlg::backdrop { background: rgb(15 16 22 / .55); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.dlg__head h2 { font-size: 1.15rem; }
.dlg__body { padding: 1.2rem 1.3rem; overflow: auto; }
.dlg__foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.3rem; border-top: 1px solid var(--line); }
.sub { font-size: .95rem; margin: 1.4rem 0 .6rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.tpls, .addgrid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.tpl { display: grid; gap: .25rem; text-align: left; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.tpl span { color: var(--muted); font-size: .84rem; font-weight: 500; }
.tpl:hover { border-color: #bdbdc6; }
.tpl.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.presets { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.presets--panel { grid-template-columns: repeat(2, 1fr); }
.preset { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .2rem .6rem; padding: .7rem .8rem; border: 1.5px solid rgb(0 0 0 / .08); border-radius: 12px; cursor: pointer; text-align: left; }
.preset.is-on { outline: 3px solid var(--ink); outline-offset: 1px; }
.preset__aa { grid-row: span 2; font-size: 1.7rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.preset__dots { display: flex; gap: .25rem; }
.preset__dots i { width: .85rem; height: .85rem; border-radius: 50%; }
.preset__name { font-size: .78rem; font-weight: 700; }

/* Editor */
.shell--full { height: 100vh; overflow: hidden; }
@media (max-width: 900px) { .shell--full { height: auto; overflow: visible; } }
.ed { display: flex; flex-direction: column; height: 100vh; }
.ed__bar { display: flex; align-items: center; gap: .7rem; height: 3.6rem; padding: 0 .9rem; background: var(--card); border-bottom: 1px solid var(--line); }
.title-in { max-width: 340px; border-color: transparent !important; font-weight: 750 !important; font-size: 1.02rem; }
.title-in:hover { border-color: var(--line) !important; }
.status { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.ed__tools { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #efede8; }
.seg button { display: grid; place-items: center; width: 2.2rem; height: 2rem; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--muted); }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.score-btn { display: inline-flex; align-items: center; gap: .45rem; height: 2.5rem; padding: 0 .8rem 0 .4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; }
.ed__main { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr) 360px; }
.outline { overflow: auto; padding: .8rem .6rem 2rem; background: #faf9f6; border-right: 1px solid var(--line); }
.outline__h { margin: .9rem .5rem .4rem; font-size: .72rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.oitem { display: flex; align-items: center; width: 100%; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; padding: .5rem .6rem; font-weight: 650; font-size: .9rem; margin-bottom: 2px; }
.oitem:hover { background: #efede8; }
.oitem.is-on { background: var(--ink); color: #fff; }
.oitem--sec { padding: .25rem .3rem .25rem .2rem; }
.oitem__main { flex: 1; min-width: 0; display: grid; border: 0; background: none; text-align: left; cursor: pointer; padding: .2rem .4rem; color: inherit; }
.oitem__main small { font-size: .7rem; font-weight: 700; opacity: .6; }
.oitem__main span { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oitem__act { display: none; }
.oitem:hover .oitem__act, .oitem.is-on .oitem__act, .oitem:focus-within .oitem__act { display: inline-flex; }
.oitem.is-on .icon-btn { color: #fff; }
.oitem.is-on .icon-btn:hover { background: rgb(255 255 255 / .12); }
.oitem.is-off .oitem__main { opacity: .45; }
.oitem.is-off .oitem__act { display: inline-flex; }
.outline .btn--wide { margin-top: .8rem; }
.stage { position: relative; overflow: auto; background: repeating-linear-gradient(45deg, #ebe9e4 0 10px, #e6e4de 10px 20px); display: flex; justify-content: center; padding: 1.2rem; }
.stage__dev { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -36px rgb(0 0 0 / .5); }
.stage--mobile .stage__dev { width: 390px; height: min(844px, 100%); border-radius: 34px; border: 10px solid #15161b; }
.frame { width: 100%; height: 100%; border: 0; display: block; }
.panel { overflow: auto; background: var(--card); border-left: 1px solid var(--line); }
.panel__h { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; margin: 0; background: var(--card); border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.panel__h h2 { font-size: 1.05rem; }
.panel__body { padding: 1rem 1.1rem 3rem; }
.tip { margin: 0 0 1rem; padding: .7rem .85rem; border-radius: 10px; background: #fbf6dc; color: #4f4300; font-size: .84rem; }
.fld { display: grid; gap: .3rem; margin-bottom: .95rem; }
.fld label, .fld .lbl { font-size: .8rem; font-weight: 750; color: var(--ink2); }
.hint { margin: 0; font-size: .78rem; color: var(--muted); }
.chk { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; margin-bottom: .7rem; cursor: pointer; }
.chk input { width: 1rem; height: 1rem; accent-color: var(--ink); }
.chk.small { font-size: .78rem; color: var(--muted); margin: 0; }
.chips { display: grid; gap: .1rem; }
.chiprow { display: flex; justify-content: space-between; align-items: center; }
.chiprow .chk { margin: .2rem 0; }
.color { display: flex; gap: .4rem; }
.color input[type=color] { width: 2.6rem; height: 2.6rem; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.hex { font-family: ui-monospace, monospace; }
.icons { display: flex; flex-wrap: wrap; gap: .3rem; }
.iconopt { padding: .25rem .5rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .74rem; cursor: pointer; }
.iconopt.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.img { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.img img { width: 100%; max-height: 150px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.list { display: grid; gap: .45rem; }
.list__it { border: 1px solid var(--line); border-radius: 10px; background: #fcfbf9; }
.list__it > summary { list-style: none; cursor: pointer; }
.list__it > summary::-webkit-details-marker { display: none; }
.list__head { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .45rem .5rem .45rem .8rem; }
.list__head b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__head span { display: inline-flex; flex: none; }
.list__body { padding: .2rem .8rem .5rem; display: grid; gap: .4rem; }
.list__body .fld { margin-bottom: .45rem; }
.serp { margin-top: 1rem; padding: 1rem; border-radius: 10px; border: 1px solid var(--line); }
.serp__url { font-size: .78rem; color: #1a7f37; }
.serp b { display: block; color: #1a0dab; font-size: 1.05rem; margin: .2rem 0; }
.serp p { margin: 0; font-size: .85rem; color: #4d5156; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.checks li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line); }
.checks li.is-no { background: #fff8ef; border-color: #f1d9b5; }
.checks p { margin: .2rem 0 0; color: var(--muted); font-size: .86rem; }
.checks small { color: var(--muted); font-weight: 700; }
.checks__mark { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-weight: 800; color: #fff; background: var(--ok); }
.is-no .checks__mark { background: var(--mid); }
.vers { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.vers li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.dl__card { display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
.dl__card h3 { font-size: 1.05rem; }
.dl__card p { color: var(--muted); font-size: .88rem; }
.dl__card ul { margin: 0 0 1rem; padding-left: 1.1rem; font-size: .85rem; color: var(--ink2); }
.dl__card .btn { margin-top: auto; }
@media (max-width: 700px) { .dl { grid-template-columns: 1fr; } }
.lib { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.lib__it { border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; background: #fff; cursor: pointer; text-align: left; }
.lib__it img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lib__it span { display: block; padding: .3rem .5rem; font-size: .72rem; color: var(--muted); }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 1.4rem; transform: translate(-50%, 220%); visibility: hidden; padding: .7rem 1.1rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 650; box-shadow: 0 16px 40px -16px rgb(0 0 0 / .5); transition: transform .25s; max-width: calc(100vw - 2rem); }
#toast.is-on { transform: translate(-50%, 0); visibility: visible; }
#toast.is-bad { background: var(--bad); }
@media (max-width: 1100px) { .ed__main { grid-template-columns: 220px minmax(0, 1fr) 320px; } .status { display: none; } }
@media (max-width: 900px) {
  .ed { height: auto; min-height: 100vh; }
  .ed__main { grid-template-columns: 1fr; }
  .outline { border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; }
  .stage { height: 70vh; }
  .ed__bar { flex-wrap: wrap; height: auto; padding: .5rem; }
  .ed__tools { flex-wrap: wrap; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Nexus Development ---------- */
.brand b { color: var(--hi); font-weight: 800; }
.bar { overflow-x: auto; }
.bar__nav { flex-wrap: nowrap; }
.acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.crumb { margin: 0 0 .25rem; font-size: .85rem; color: var(--muted); }
.crumb a { color: inherit; }
.page--wide { max-width: 1400px; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 750; background: #efede8; color: var(--ink2); white-space: nowrap; }
.chip--ok { background: #dff3e6; color: #135f35; }
.chip--mid { background: #fff0cc; color: #6b4b00; }
.chip--bad { background: #fbe0dd; color: #8c2318; }
.chip--run { background: #e3e8ff; color: #2a3eb1; }
.chip--k-wordpress { background: #e6eef8; color: #1d4f8a; } .chip--k-nexus { background: var(--ink); color: var(--hi); }
.stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 1.4rem; }
.stat { display: grid; gap: .1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.stat b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 650; }
.stat:hover { border-color: #c9c9d1; }
.ov__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); margin-top: 1rem; }
.box { padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.box h2 { font-size: 1rem; margin-bottom: .6rem; }
.box__head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.box__head h2 { margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem; min-width: 0; }
.rows li:first-child { border-top: 0; }
.rows li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.rows a { color: inherit; font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 0 0 1rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.kv dt { color: var(--muted); font-size: .85rem; font-weight: 700; } .kv dd { margin: 0; white-space: pre-line; }
.tbl tr.rowlink { cursor: pointer; } .tbl tr.rowlink:hover td { background: #faf9f6; }
.tbl tr.is-off td { opacity: .55; }
.tbl a { color: inherit; }
.tblwrap { overflow-x: auto; margin-top: .8rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: #f1efe9; padding: .1rem .35rem; border-radius: 5px; }

/* Plugin */
.pd-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .pd-wrap { grid-template-columns: 1fr; } }
.vers-side { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.vers-side h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .2rem .3rem .6rem; }
.vers-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ver { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .15rem .6rem; width: 100%; text-align: left; padding: .5rem .6rem; border: 0; border-radius: 9px; background: none; cursor: pointer; }
.ver .chip { justify-self: end; }
.ver small { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.ver:hover { background: #f4f3ef; } .ver.is-on { background: #efede8; box-shadow: inset 3px 0 0 var(--ink); }
.pd { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem 1.4rem; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin: -.2rem -.2rem 1rem; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: .6rem .8rem; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.pane { display: grid; gap: .9rem; }
.rep__head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.rep__head .btn { margin-left: auto; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.issues li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; align-items: start; padding: .6rem .8rem; border-radius: 10px; background: #fff8e6; }
.issues li.is-error { background: #fdecea; }
.issues__sev { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding-top: .15rem; }
.issues li.is-error .issues__sev { color: var(--bad); } .issues li.is-warn .issues__sev { color: var(--mid); }
.issues b { display: block; font-weight: 650; }
.fwrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; min-height: 60vh; }
@media (max-width: 860px) { .fwrap { grid-template-columns: 1fr; } }
.ftree { list-style: none; margin: 0; padding: 0; font-size: .85rem; max-height: 70vh; overflow: auto; }
.ftree button { display: flex; align-items: center; justify-content: space-between; gap: .4rem; width: 100%; text-align: left; padding: .35rem .5rem; border: 0; border-radius: 7px; background: none; cursor: pointer; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.ftree button:hover { background: #f4f3ef; } .ftree button.is-on { background: var(--ink); color: #fff; }
.ftree .link { font-family: inherit; color: var(--ink2); }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mid); flex: none; } .dot--bad { background: var(--bad); }
.fedit { display: flex; flex-direction: column; min-width: 0; }
.fedit__bar { display: flex; align-items: center; gap: .6rem; padding-bottom: .5rem; flex-wrap: wrap; }
.fedit__bar .sp { flex: 1; }
textarea.code { flex: 1; min-height: 60vh; font: 13px/19px ui-monospace, "SF Mono", Menlo, Consolas, monospace; tab-size: 4; white-space: pre; background: #17181d; color: #e8e6df; border-color: #17181d; border-radius: 10px; padding: .9rem 1rem; }
textarea.code:focus { box-shadow: 0 0 0 3px rgb(245 213 71 / .5); border-color: #17181d; }
.gen { display: flex; align-items: center; gap: 1rem; padding: 1.4rem; border-radius: 12px; background: #f1f3ff; }
.gen h2 { font-size: 1.05rem; } .gen p { margin: .2rem 0 0; }
.gen--sm { padding: .7rem 1rem; gap: .6rem; margin: .8rem 0 0; }
.spinner { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 3px solid #c9d0f5; border-top-color: #3b5bfd; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.req summary { cursor: pointer; font-weight: 700; } .req p { white-space: pre-line; color: var(--ink2); }
.okbox { margin-top: .8rem; padding: .8rem 1rem; border-radius: 10px; background: #dff3e6; color: #135f35; overflow-wrap: anywhere; }
.okbox a { color: inherit; font-weight: 700; }

/* Destinazioni */
.tcards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tcard { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.tcard h2 { font-size: 1.05rem; margin-top: .3rem; }
.tcard p { margin: 0; overflow-wrap: anywhere; }
.tcard a { color: inherit; }
.tcard__top { display: flex; justify-content: space-between; gap: .5rem; }
.tcard__msg { flex: 1; }
.tcard__acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.steps { padding-left: 1.2rem; display: grid; gap: .8rem; }
.sp1 { height: 1rem; }
.tpick { display: grid; gap: .45rem; margin: 1rem 0; }
.tpick__it { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.tpick__it:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tpick__it span { display: grid; min-width: 0; } .tpick__it small { color: var(--muted); overflow-wrap: anywhere; }

/* Editor dei siti */
.pagesel { margin: 0 .2rem .4rem; width: calc(100% - .4rem); font-weight: 700; }
.pages { display: grid; gap: .5rem; margin-bottom: .8rem; }
.pg { display: grid; gap: .45rem; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pg.is-on { border-color: var(--ink); }
.pg__slug { display: flex; align-items: center; gap: .2rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; color: var(--muted); }
.pg__slug input { min-height: 2rem; padding: .25rem .5rem; font-family: inherit; font-size: .85rem; }
.pg__act { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.pg__act .chk { margin-right: auto; }
@media (max-width: 720px) { .bar { gap: .8rem; padding: 0 .8rem; } .bar__me span { display: none; } .issues li { grid-template-columns: 1fr; gap: .2rem; } }
