/* Nexus Development – interfaccia (centro operativo) */
@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"); }
/* Bricolage Grotesque: titoli e numeri dello studio (e anteprime degli stili) */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(/fonts/bricolage-grotesque-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: "Bricolage Grotesque"; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(/fonts/bricolage-grotesque-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-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 {
  /* Nexus: inchiostro della console + giallo segnale del marchio, piano di lavoro grigio freddo */
  --ink: #15161b; --ink2: #383b45; --muted: #636875; --line: #dcdfe5; --line2: #c8ccd4; --bg: #eceef2; --card: #fff; --soft: #f5f6f8;
  --hi: #f5d547; --hi2: #e9c72a; --hi-ink: #15161b;
  --con: #15161b; --con2: #1d1f26; --con-line: #2a2d36; --con-tx: #a8acb8; --con-hi: #f4f5f7;
  --ok: #1a7f46; --mid: #b26a00; --bad: #c23a2b; --run: #3552d8;
  --r: 12px; --focus: #3552d8;
  --display: "roc-grotesk", "Bricolage Grotesque", "aktiv-grotesk", "Manrope", system-ui, sans-serif; /* font Adobe (kit «studio-ui») con ripiego OFL */
  font: 500 15px/1.5 "aktiv-grotesk", "Manrope", system-ui, sans-serif; color: var(--ink); background: var(--bg);
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
h1 { font: 700 2rem/1.1 var(--display); letter-spacing: -.025em; font-stretch: 92%; }
h2 { font-weight: 750; }
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%); white-space: nowrap; }
.i { display: inline-flex; flex: none; 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: #fff4cf; color: #5c4200; margin: 0 0 1rem; border: 1px solid #f1dc8a; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.5rem; padding: .45rem 1rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; color: var(--ink); transition: background-color .15s, border-color .15s, box-shadow .15s; box-shadow: 0 1px 0 rgb(21 22 27 / .05); }
.btn:hover { border-color: var(--ink2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: #2a2c35; border-color: #2a2c35; }
.btn--ghost { background: transparent; border-style: dashed; box-shadow: none; }
.btn--sm { min-height: 2rem; padding: .25rem .7rem; font-size: .84rem; 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: #e6e8ed; }
.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: lato console a sinistra, modulo a destra */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); }
.login__side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; padding: clamp(2rem, 6vw, 5rem); background: var(--con); color: var(--con-hi); overflow: hidden; }
.login__side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--con-line) 1px, transparent 1px), linear-gradient(90deg, var(--con-line) 1px, transparent 1px); background-size: 48px 48px; opacity: .45; mask-image: linear-gradient(160deg, #000 10%, transparent 70%); }
.login__side > * { position: relative; }
.login__logo { width: 3.4rem; height: 3.4rem; margin-bottom: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--con-line); }
.login__name { margin: 0; font: 700 clamp(2.4rem, 5vw, 4rem)/1 var(--display); letter-spacing: -.035em; font-stretch: 88%; }
.login__name b { color: var(--hi); font-weight: 700; }
.login__claim { margin: 0; max-width: 34ch; color: var(--con-tx); font-size: 1.05rem; }
.login__box { align-self: center; justify-self: center; width: min(400px, calc(100% - 3rem)); display: grid; gap: .45rem; padding: 2.2rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px -45px rgb(20 20 30 / .5); }
.login__box h1 { font-size: 1.7rem; }
.login__box p.muted { margin: 0 0 .8rem; }
.login label { font-size: .85rem; font-weight: 700; margin-top: .4rem; }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login__side { padding: 1.4rem 1.2rem 1.6rem; gap: .4rem; }
  .login__logo { width: 2.6rem; height: 2.6rem; margin-bottom: 1.6rem; }
  .login__name { font-size: 2.3rem; }
  .login__claim { font-size: .95rem; }
  .login__box { align-self: start; margin: 1.4rem 0 2rem; padding: 1.6rem 1.3rem; }
}
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=datetime-local], input[type=time], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 2.6rem; padding: .5rem .75rem; border: 1px solid var(--line2); 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(--ink); box-shadow: 0 0 0 3px rgb(245 213 71 / .55); }

/* Struttura: barra laterale (console) + piano di lavoro */
.shell:not(.shell--full) { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; min-height: 100vh; background: linear-gradient(90deg, var(--con) 236px, var(--bg) 236px); }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--con); color: var(--con-tx); border-right: 1px solid var(--con-line); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--con-line) transparent; }
.rail__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.1rem 1rem 1rem 1.1rem; }
.brand__txt { display: inline-flex; flex-direction: column; gap: .28rem; }
.brand__ver { font: 500 .68rem/1 "aktiv-grotesk", "Manrope", system-ui, sans-serif; letter-spacing: .02em; color: var(--con-tx); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font: 700 1.08rem/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 1.9rem; height: 1.9rem; border-radius: 8px; box-shadow: 0 0 0 1px var(--con-line); }
.brand b { color: var(--hi); font-weight: 700; }
.rail__menu { display: none; align-items: center; gap: .4rem; min-height: 2.4rem; padding: .3rem .8rem; border: 1px solid var(--con-line); border-radius: 9px; background: var(--con2); color: var(--con-hi); font-weight: 700; cursor: pointer; }
.rail__menu .i { width: 1.1rem; height: 1.1rem; }
.rail__nav { flex: 1; display: flex; flex-direction: column; padding: 0 .7rem 1rem; }
.rail__grp { display: grid; gap: 2px; padding: .5rem 0; }
.rail__grp + .rail__grp { border-top: 1px solid var(--con-line); }
.rail__grp--foot { margin-top: auto; }
.rail__h { margin: .35rem .55rem .35rem; font-size: .76rem; font-weight: 700; color: #7c8090; }
.rail__a { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 2.35rem; padding: .35rem .6rem; border-radius: 8px; color: var(--con-tx); text-decoration: none; font-weight: 650; font-size: .93rem; }
.rail__a .i { width: 1.15rem; height: 1.15rem; opacity: .8; }
.rail__a:hover { color: #fff; background: var(--con2); }
.rail__a.is-on { color: #fff; background: #23252e; }
.rail__a.is-on .i { color: var(--hi); opacity: 1; }
.rail__a.is-on::before { content: ""; position: absolute; left: -.7rem; top: .45rem; bottom: .45rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--hi); }
.rail__a:focus-visible, .rail__out:focus-visible, .rail__menu:focus-visible, .brand:focus-visible { outline: 2px solid var(--hi); outline-offset: 1px; }
.rail__me { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; padding: .7rem .45rem 0; border-top: 1px solid var(--con-line); }
.rail__av { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--hi); color: var(--hi-ink); font-weight: 800; font-size: .9rem; }
.rail__who { display: grid; min-width: 0; line-height: 1.25; }
.rail__who b { color: var(--con-hi); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__who small { font-size: .75rem; }
.rail__out { margin-left: auto; padding: .3rem .55rem; border: 1px solid var(--con-line); border-radius: 7px; background: none; color: var(--con-hi); font-size: .8rem; font-weight: 700; cursor: pointer; }
.rail__out:hover { background: var(--con2); }
@media (max-width: 900px) {
  .shell:not(.shell--full) { display: block; background: var(--bg); }
  .rail { position: sticky; z-index: 30; height: auto; max-height: 100vh; border-right: 0; border-bottom: 1px solid var(--con-line); }
  .rail__top { padding: .6rem .8rem .6rem 1rem; }
  .rail__menu { display: inline-flex; }
  .rail__nav { display: none; padding-bottom: .8rem; }
  .rail.is-open .rail__nav { display: flex; }
  .rail.is-open { height: 100vh; height: 100dvh; }
}

/* Pagine */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 2.2rem clamp(1rem, 3vw, 2.4rem) 5rem; min-width: 0; }
.page__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.page__head p { margin: .45rem 0 0; max-width: 64ch; }
.search { max-width: 340px; margin-bottom: 1.2rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
ul.cards { list-style: none; margin: 0; padding: 0; }
/* schede dell'elenco App, Bot ed Email */
.card { border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line2); box-shadow: 0 14px 30px -24px rgb(20 20 30 / .45); }
.card__link { display: block; height: 100%; padding: 1rem 1.1rem 1.1rem; color: inherit; text-decoration: none; border-radius: inherit; }
.card__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.card__link h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.card__link p { margin: .25rem 0 0; }
@media (prefers-reduced-motion: reduce) { .card, .lcard { transition: none; } .card:hover, .lcard:hover { transform: none; } }
.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: border-color .15s, box-shadow .15s; }
.lcard:hover { border-color: var(--line2); box-shadow: 0 14px 30px -24px rgb(20 20 30 / .45); }
.lcard:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcard__sw { position: relative; height: 104px; display: flex; align-items: flex-end; gap: .4rem; padding: .9rem; border-bottom: 1px solid rgb(0 0 0 / .06); }
.lcard__sw i { width: 1.5rem; height: 1.5rem; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / .7); }
.lcard__sw b { position: absolute; right: 1rem; top: .5rem; font-size: 2.8rem; font-weight: 700; letter-spacing: -.03em; }
.lcard__body { padding: .9rem 1rem 1.1rem; }
.lcard__body h2 { font-size: 1.05rem; margin: .5rem 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: 6px; background: #e9ebef; color: var(--ink2); }
.score { display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.6rem; padding: 0 .4rem; border-radius: 6px; 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: 1.5px dashed var(--line2); border-radius: 16px; background: rgb(255 255 255 / .45); }
.empty h2 { font: 700 1.4rem/1.2 var(--display); }
.empty p { color: var(--muted); max-width: 52ch; margin: .5rem auto 1.2rem; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th { font-size: .78rem; font-weight: 750; color: var(--muted); background: var(--soft); }
.tbl .right { text-align: right; white-space: nowrap; }
.tbl .btn { margin-left: .3rem; }
.tablewrap { overflow-x: auto; }

/* 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: var(--line2); }
.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: #e9ebef; }
.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: #f7f8fa; 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: #e9ebef; }
.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, #e6e8ec 0 10px, #e1e3e8 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: #fafbfc; }
.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: min(560px, calc(100vw - 2rem)); width: max-content; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; text-align: center; cursor: pointer; }
#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 ---------- */
.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: #e9ebef; 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: var(--line2); }
.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: #f7f8fa; }
.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: #eceef2; 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: #f1f2f5; } .ver.is-on { background: #e9ebef; 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; }
/* 3.11: prova di attivazione e specifica del plugin */
.rep__act { border: 1px solid var(--line, #e5e5e5); border-radius: 12px; padding: .7rem .9rem; }
.rep__act h3 { margin: 0 0 .2rem; font-size: 1rem; }
.rep__act ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.rep__spec summary { cursor: pointer; font-weight: 700; }
.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: #f1f2f5; } .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) { .issues li { grid-template-columns: 1fr; gap: .2rem; } }

.row-in { display: flex; gap: .4rem; align-items: center; }
.row-in input { flex: 1; }
/* 2.2 – editor delle app */
.chipsx { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin: .3rem 0 .8rem; }
.appx__tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin: .4rem 0 1rem; }
.appx__tabs button { border: 0; background: transparent; padding: .6rem .9rem; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.appx__tabs button.is-on { color: var(--ink); border-bottom-color: var(--accent, #2a6fdb); }
.appx { display: grid; gap: 1rem; }
.appx .box { display: flex; flex-direction: column; gap: .2rem; }
.grid2, .grid3, .grid4 { display: grid; gap: 0 .9rem; grid-template-columns: 1fr; align-items: start; }
/* 3.54.3: editor del bot su una colonna leggibile, campi affiancati allineati in alto */
.page--bot > .page__head, .page--bot > .appx__tabs, .page--bot > .warn, .appx--bot { max-width: 60rem; }
.page--bot > .warn { overflow-wrap: anywhere; }
.chk.is-off { color: var(--muted); cursor: default; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ml { display: grid; gap: .35rem; margin-bottom: .7rem; } .ml__l { font-weight: 600; font-size: .88rem; }
.ml__i { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .5rem; align-items: start; } .ml__i small { padding-top: .6rem; font-weight: 700; color: var(--muted); }
.ml__i input, .ml__i textarea { width: 100%; min-width: 0; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .8rem; }
.item__head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.rowx { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; } .rowx input[type=text], .rowx input:not([type]) { flex: 1; min-width: 0; } .rowx input[type=color] { width: 3rem; height: 2.4rem; padding: 0; }
.hrow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); } .hrow > b { width: 6.5rem; }
.win { display: inline-flex; gap: .3rem; align-items: center; } .win input { width: 7.5rem; }
.fieldx { border-top: 1px dashed var(--line); padding: .6rem 0; }
.modrow { align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--line); } .modrow span { display: flex; flex-direction: column; } .modrow small { font-size: .85rem; }
.tpls { display: grid; gap: .5rem; margin-bottom: .8rem; }
/* 2.4 – bot AI */
pre.code { background: #17181d; color: #e8e6df; border-radius: 10px; padding: .8rem 1rem; font: 13px/19px ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: .5rem 0; }
.chatlog { display: grid; gap: .35rem; margin: .5rem 0; max-height: 420px; overflow-y: auto; }
.chatlog p { margin: 0; padding: .45rem .7rem; border-radius: 10px; font-size: .92rem; white-space: pre-wrap; }
.chatlog__u { background: #eef3ff; justify-self: end; max-width: 85%; } .chatlog__a { background: #f4f5f7; max-width: 85%; }
details.item > summary { cursor: pointer; list-style: none; } details.item > summary::-webkit-details-marker { display: none; }
p.ok { color: #1f7a45; }
/* 2.5 – email marketing */
.mail-ed { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .mail-ed { grid-template-columns: minmax(0, 1fr) 640px; } .mail-side { position: sticky; top: 12px; } }
.mail-side .acts { flex-wrap: wrap; margin-bottom: 8px; }
.mail-prev { width: 100%; height: 720px; border: 1px solid #e3e8ef; border-radius: 12px; background: #f2f4f7; }
.mblocks .item textarea, .mblocks .item input { width: 100%; }
.kpis-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.kpi-box { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.kpi-box b { font-size: 1.4rem; }
.auto-steps { margin: 8px 0; padding-left: 20px; } .auto-steps li { padding: 8px 0; border-bottom: 1px dashed #e3e8ef; }
.auto-steps li { display: list-item; } .auto-steps li > div, .auto-steps li > span { display: inline-block; vertical-align: middle; } .auto-steps li > span { float: right; }

/* ===== 2.7 Generatore di app: richiesta a Jarvis, categorie, procedura a conversazione, anteprima ===== */
.glyph { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: 12px; background: #eceef2; color: var(--ink); }
.glyph svg { width: 1.35rem; height: 1.35rem; }
.abx { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.6rem); margin-bottom: 1.6rem; }
.abx__t { font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; }
.abx__s { color: #c9cad2; max-width: 62ch; margin: .6rem 0 1.3rem; }
.abx__box { display: flex; gap: .6rem; align-items: flex-end; background: #fff; border-radius: 16px; padding: .55rem .55rem .55rem 1rem; box-shadow: 0 0 0 4px rgb(245 213 71 / .9); }
.abx__box textarea { flex: 1; border: 0; resize: vertical; min-height: 3.2rem; padding: .35rem 0; color: var(--ink); background: transparent; }
.abx__box textarea:focus { outline: none; }
.abx__box .btn--primary { background: var(--hi); color: var(--hi-ink); border-color: var(--hi); }
.abx__box .btn--primary:hover { background: #ecc832; border-color: #ecc832; }
.abx__alt { margin: .9rem 0 0; color: #a9abb5; }
.abx__alt .link { color: #fff; }
.abx__cats h2, .abx__mine h2 { font-size: 1.15rem; }
.abx__cats { margin-bottom: 2rem; }
.cats { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin-top: .8rem; }
.cat { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem .7rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--ink); transform: translateY(-1px); }
.cat:hover .glyph { background: var(--hi); }
.abx__mine { margin-bottom: .8rem; }

/* conversazione */
.jv { max-width: 760px; display: flex; flex-direction: column; min-height: calc(100dvh - 120px); }
.jv__t { font-size: 1.5rem; margin: .3rem 0 1rem; }
.jv__log { flex: 1; display: flex; flex-direction: column; gap: .8rem; padding-bottom: 1rem; }
.jv__msg { align-self: flex-start; max-width: min(100%, 620px); background: var(--card); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: .8rem 1rem; }
.jv__msg p { margin: 0 0 .5rem; } .jv__msg p:last-child { margin-bottom: 0; }
.jv__msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 18px 4px 18px 18px; white-space: pre-wrap; }
.jv__msg.is-done { opacity: .75; }
.jv__who { display: block; font-size: .78rem; font-weight: 800; color: var(--muted); margin-bottom: .25rem; }
.jv__acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.jv__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.jv__pill { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.jv__pill[aria-pressed="true"] { background: var(--hi); border-color: var(--hi); }
.jv__count { font-weight: 750; font-size: .9rem; margin: .2rem 0 .6rem !important; }
.feats { display: grid; gap: .5rem; margin-bottom: .8rem; }
.feat { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fafbfc; }
.feat:has(.feat__cb:checked) { border-color: var(--ink); background: #fff; }
.feat:has(.feat__cb:checked) .glyph { background: var(--hi); }
.feat__tx { flex: 1; display: grid; gap: .1rem; }
.feat__tx small { color: var(--muted); line-height: 1.35; }
.feat__cb { width: 1.3rem; height: 1.3rem; accent-color: var(--ink); flex: none; }
.jv__steps { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .45rem; }
.jv__steps li { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.jv__dot { width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.jv__steps li.is-run { color: var(--ink); } .jv__steps li.is-run .jv__dot { border-color: var(--ink); border-top-color: transparent; animation: spin .8s linear infinite; }
.jv__steps li.is-ok { color: var(--ink); } .jv__steps li.is-ok .jv__dot { background: var(--ok); border-color: var(--ok); }
.jv__steps li.is-err .jv__dot { background: var(--bad); border-color: var(--bad); }
.jv__comp { position: sticky; bottom: .8rem; display: flex; gap: .5rem; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: .5rem .5rem .5rem 1rem; box-shadow: 0 18px 40px -26px rgb(20 20 30 / .45); }
.jv__comp textarea { flex: 1; border: 0; resize: none; min-height: 2.6rem; max-height: 10rem; padding: .45rem 0; background: transparent; }
.jv__comp textarea:focus { outline: none; }
.jv__comp:focus-within { border-color: var(--ink); }
.jv__send { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; flex: none; }
.jv__send:disabled { background: #d5d5db; cursor: not-allowed; }

/* anteprima nell'editor */
.btn--hi { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); }
.pv { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
.pv__stage { min-width: 0; }
.pv__tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); margin-right: auto; }
.seg button { display: grid; place-items: center; width: 2.6rem; height: 2.1rem; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pv__dev { margin: 0 auto; background: #1d1e24; overflow: hidden; }
.pv__dev--mob { width: min(100%, 390px); height: 760px; border-radius: 44px; padding: 14px; box-shadow: 0 30px 60px -35px rgb(20 20 30 / .7); }
.pv__dev--mob .pv__bar { display: none; }
.pv__dev--mob .pv__if { border-radius: 32px; }
.pv__dev--desk { width: 100%; height: 720px; border-radius: 14px; display: flex; flex-direction: column; border: 1px solid #1d1e24; }
.pv__bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; color: #a9abb5; font-size: .78rem; }
.pv__bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #45474f; }
.pv__bar span { margin-left: .6rem; background: #2c2d34; border-radius: 6px; padding: .1rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv__if { display: block; width: 100%; height: 100%; border: 0; background: #fff; flex: 1; }
.pv__side { display: grid; gap: 1rem; position: sticky; top: 1rem; }
.jvbox h2 { display: flex; align-items: center; gap: .4rem; }
.jv__log--side { max-height: 380px; overflow-y: auto; padding: .2rem .1rem .6rem; }
.jv__log--side .jv__msg { font-size: .92rem; }
.jv__comp--side { position: static; box-shadow: none; }
.pv__jump { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; }
.qr { text-align: center; } .qr img { display: block; margin: 0 auto 1rem; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 900px) { .pv { grid-template-columns: 1fr; } .pv__side { position: static; } .pv__dev--mob { height: 680px; } .pv__dev--desk { height: 560px; } }
@media (max-width: 560px) { .abx__box { flex-direction: column; align-items: stretch; } .jv__msg { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cat, .cat:hover { transition: none; transform: none; } .jv__steps li.is-run .jv__dot { animation: none; } }
/* il riquadro esterno fa da campo: niente secondo bordo sul testo */
.jv__comp textarea, .jv__comp textarea:focus, .abx__box textarea, .abx__box textarea:focus { border: 0; box-shadow: none; background: transparent; padding-left: 0; padding-right: 0; }
.pwa { display: flex; gap: 1rem; align-items: flex-start; } .pwa__ic { border-radius: 18px; flex: none; box-shadow: 0 8px 20px -12px rgb(20 20 30 / .5); }

/* 2.8.1 «Come funziona» */
.helpfab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 20; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--hi); color: var(--hi-ink); font-size: 1.35rem; font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px -14px rgb(20 20 30 / .7); }
.helpfab:hover { background: #ecc832; }
.hlp { max-width: 62ch; }
.hlp__what { font-size: 1.02rem; margin: 0 0 1rem; }
.hlp__sec { margin-top: 1rem; }
.hlp__sec h3 { font-size: .95rem; margin-bottom: .35rem; }
.hlp__sec ol, .hlp__sec ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.hlp__sec p { margin: 0; }
.hlp__ask { background: #f6f5ee; border-left: 3px solid var(--hi); padding: .5rem .7rem; border-radius: 0 8px 8px 0; }
.hlp__card { padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.hlp__card h2 { font-size: 1.1rem; } .hlp__card p { margin: 0; flex: 1; } .hlp__card .acts { display: flex; gap: .5rem; }
.page.jv ~ .helpfab { top: 4.4rem; bottom: auto; }

/* 2.9 – Nexus Backup */
.bk-head { display: grid; gap: .6rem; margin-bottom: 1rem; }
.bk-plan { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .86rem; padding: .7rem .8rem; border: 1px solid var(--line, #e5e5e5); border-radius: 10px; }
.bk-plan .chk { margin: 0; }
.bk-plan select { width: auto; padding: .25rem .4rem; }
.bk-restore { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .86rem; }
.bk-acts { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.bk-dl summary { cursor: pointer; font-size: .82rem; }
.bk-dl[open] { display: grid; gap: .2rem; }
/* 3.0: Nexus Care e Nexus Speed */
.stat--bad b { color: var(--bad, #b42318); }
.care-head p { margin: .3rem 0; }
.care-sec { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line, #e5e5e5); }
.care-sec h3 { font-size: 1rem; margin: 0 0 .5rem; }
.care-set { margin-top: .8rem; }
.care-set > summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.care-set .bk-plan { margin-top: .5rem; }
.care-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .88rem; }
.care-adv ul { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .88rem; }
.care-pin { margin-top: .6rem; padding: .8rem; border: 1px dashed var(--line, #ccc); border-radius: 10px; }
.care-pin .pin { font-size: 1.4rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.sp-form { display: grid; gap: .55rem; margin: .5rem 0 .8rem; }
.sp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; margin: 0; }
.sp-row input[type=number] { width: 6rem; }
.sp-row input[type=text] { min-width: 12rem; }
.sp-cmp { font-size: .9rem; }

/* 3.0.2: motivo di una misura PageSpeed non riuscita */
.sp-err { display: block; margin: .4rem 0 .8rem; padding: .55rem .8rem; border-radius: 8px; background: #fff5d6; color: #6b4b00; font-size: .9rem; font-weight: 500; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.sp-err--sm { margin: .25rem 0 0; padding: .3rem .55rem; font-size: .8rem; }
td .sp-err { margin: 0; }
.sp-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.sp-score { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; text-align: center; }
.sp-score b { display: block; font-size: 1.8rem; line-height: 1.1; }
.sp-score span { font-size: .8rem; color: var(--muted); }
.sp-score--ok b { color: #0b8043; } .sp-score--mid b { color: #b06000; } .sp-score--bad b { color: #c5221f; }
.sp-item { border-bottom: 1px solid var(--line); padding: .45rem 0; } .sp-item summary { cursor: pointer; }
.sp-urls { overflow-wrap: anywhere; margin: .3rem 0 .3rem 1rem; }
@media (max-width: 560px) { .sp-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 3.1 Centro operativo e ritocchi grafici condivisi ===== */
.stat { gap: .2rem; }
.stat b { font: 700 1.9rem/1.05 var(--display); letter-spacing: -.03em; }
.box h2, .panel__h h2, .dlg__head h2, .abx__cats h2, .abx__mine h2 { letter-spacing: -.01em; }
.chip { border-radius: 6px; }
.chip--ok::before, .chip--mid::before, .chip--bad::before, .chip--run::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.btn--hi { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); }
.btn--hi:hover { background: var(--hi2); border-color: var(--hi2); }
.btn--console { background: var(--con2); border-color: var(--con-line); color: var(--con-hi); box-shadow: none; }
.btn--console:hover { background: #262833; border-color: #3a3d48; }
.ed__bar { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgb(21 22 27 / .03); }
.outline { background: var(--soft); }
.oitem.is-on { box-shadow: inset 3px 0 0 var(--hi); }
.tabs button.is-on, .appx__tabs button.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.helpfab { border: 0; box-shadow: 0 0 0 4px rgb(21 22 27 / .9), 0 14px 30px -12px rgb(20 20 30 / .7); }
.helpfab:hover { background: var(--hi2); }

.page--ops { max-width: 1320px; padding-top: 1.6rem; }
.ops { display: grid; gap: 1.2rem; }
/* 1. stato */
/* 3.47.1: titolo e pulsanti su due righe. Con cinque pulsanti la colonna «auto» si prendeva tutta la larghezza e il titolo finiva sotto i pulsanti. */
.ops__state { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hello" "head" "go"; align-items: end; gap: 1.4rem 2rem; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 18px; background: var(--con); color: var(--con-hi); overflow: hidden; isolation: isolate; }
.ops__state::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--con-line) 1px, transparent 1px), linear-gradient(90deg, var(--con-line) 1px, transparent 1px); background-size: 40px 40px; opacity: .35; mask-image: linear-gradient(100deg, transparent 35%, #000 100%); }
.ops__hello { grid-area: hello; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--con-tx); font-size: .92rem; }
.ops__hello p { margin: 0; }
.ops__date::first-letter { text-transform: uppercase; }
.ops__head { grid-area: head; display: flex; align-items: flex-start; gap: 1.3rem; min-width: 0; }
.ops__head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -.04em; font-stretch: 85%; color: #fff; }
.ops__sum { margin: .6rem 0 0; color: var(--con-tx); max-width: 56ch; }
.ops__signal { position: relative; flex: none; width: 1.05rem; height: 1.05rem; margin-top: .55em; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sig) 22%, transparent), 0 0 24px 2px color-mix(in srgb, var(--sig) 55%, transparent); }
.ops__state--ok { --sig: #3ccf7a; } .ops__state--mid { --sig: var(--hi); } .ops__state--bad { --sig: #ff5a46; }
.ops__state--bad .ops__signal::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--sig); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.ops__go { grid-area: go; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-start; }
.ops__head h1 { text-wrap: balance; }
/* riquadri */
.ops__row { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; }
.ops__row--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel2 { min-width: 0; padding: 1.1rem 1.2rem 1.2rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.panel2__h { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.panel2__h h2 { font: 700 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.panel2__more { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--ink2); }

/* 3.11 – «Cosa vuoi fare?»: percorsi guidati per risultato */
.tasks .panel2__h { flex-wrap: wrap; }
.tasks .panel2__h .muted { margin-left: auto; }
.tasks__grid { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr 1fr; }
.tasks__grp { display: grid; gap: .5rem; align-content: start; }
.tasks__grp:first-child { grid-template-columns: 1fr 1fr; }
.tasks__grp:first-child .tasks__h { grid-column: 1 / -1; }
.tasks__h { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.task { display: flex; gap: .7rem; align-items: flex-start; width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s; }
.task:hover { border-color: var(--line2); background: #fff; }
.task:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.task__i { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--con); color: var(--hi); }
.task__i .i { width: 1.05rem; height: 1.05rem; }
.task__tx { display: grid; gap: .1rem; min-width: 0; }
.task__tx b { font-size: .95rem; line-height: 1.25; }
.task__tx small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
@media (max-width: 1100px) { .tasks__grid { grid-template-columns: 1fr 1fr; } .tasks__grp:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tasks__grid, .tasks__grp:first-child { grid-template-columns: 1fr; } .tasks .panel2__h .muted { margin-left: 0; } }
kbd { display: inline-block; padding: 0 .35rem; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; font: 700 .72rem/1.5 "aktiv-grotesk", "Manrope", system-ui, sans-serif; background: var(--card); color: var(--ink2); }

/* 3.11 – ricerca rapida (Ctrl+K, «/») */
.rail__search { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin: 0 0 .8rem; padding: .5rem .6rem; border: 1px solid var(--con-line); border-radius: 9px; background: var(--con2); color: var(--con-tx); font: 600 .88rem/1.2 "aktiv-grotesk", "Manrope", system-ui, sans-serif; cursor: pointer; }
.rail__search:hover { color: #fff; border-color: #3a3e49; }
.rail__search:focus-visible { outline: 2px solid var(--hi); outline-offset: 1px; }
.rail__search kbd { background: transparent; border-color: var(--con-line); color: var(--con-tx); }
.cmdk { width: min(640px, calc(100vw - 2rem)); margin-top: 12vh; }
.cmdk__box { display: flex; flex-direction: column; min-height: 0; }
.cmdk__in { width: 100%; padding: 1rem 1.1rem; border: 0; border-bottom: 1px solid var(--line); font: 600 1.05rem/1.3 "aktiv-grotesk", "Manrope", system-ui, sans-serif; background: transparent; outline: none; }
.cmdk__list { list-style: none; margin: 0; padding: .4rem; max-height: min(60vh, 460px); overflow: auto; }
.cmdk__it { display: flex; gap: .8rem; align-items: center; padding: .55rem .7rem; border-radius: 10px; cursor: pointer; }
.cmdk__it.is-on { background: var(--soft); box-shadow: inset 3px 0 0 var(--hi2); }
.cmdk__k { flex: none; min-width: 4.6rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmdk__l { display: grid; min-width: 0; }
.cmdk__l b, .cmdk__l small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk__l small { color: var(--muted); }
.cmdk__empty { padding: 1rem; color: var(--muted); }
.cmdk__hint { margin: 0; padding: .55rem 1rem; border-top: 1px solid var(--line); }

/* 3.11 – pulsante al lavoro: si vede che carica e non accetta un secondo clic */
.btn.is-busy, button.is-busy { position: relative; pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ""; width: .85em; height: .85em; margin-left: .3rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nx-spin .7s linear infinite; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::after { animation-duration: 2.5s; } }
.count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .45rem; border-radius: 6px; font-size: .82rem; font-weight: 800; color: #fff; background: var(--ink); }
.count--bad { background: var(--bad); } .count--mid { background: var(--hi); color: var(--hi-ink); }
/* coda dei problemi */
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.queue__it { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .7rem .8rem .7rem 0; border-radius: 10px; background: var(--soft); overflow: hidden; }
.queue__mark { align-self: stretch; margin: -.7rem 0; background: var(--line2); }
.queue__it--bad { background: #fdf0ee; } .queue__it--bad .queue__mark { background: var(--bad); }
.queue__it--mid .queue__mark { background: var(--hi); }
.queue__it--run .queue__mark { background: var(--run); }
.queue__tx { display: grid; gap: .1rem; min-width: 0; }
.queue__tx b { font-size: .93rem; overflow-wrap: anywhere; }
.queue__tx span { font-size: .83rem; color: var(--muted); overflow-wrap: anywhere; }
.queue__it--bad .queue__tx span { color: #7d2a20; }
.queue__empty { padding: 1.2rem .2rem .4rem; }
.queue__empty p { margin: 0 0 .4rem; }
.queue__empty p:first-child { font-weight: 750; }
/* monitor dei siti */
.mon { list-style: none; margin: 0; padding: 0; }
.mon__it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); }
.mon__it:first-child { border-top: 0; padding-top: .2rem; }
.mon__dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--muted); }
.mon__it--up .mon__dot { background: var(--ok); box-shadow: 0 0 0 3px #d7efe0; }
.mon__it--down .mon__dot { background: var(--bad); box-shadow: 0 0 0 3px #f8d6d1; }
.mon__it--unknown .mon__dot, .mon__it--off .mon__dot { background: #fff; border: 2px solid var(--muted); }
.mon__name { display: grid; min-width: 0; line-height: 1.3; }
.mon__name b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon__name small { font-size: .8rem; color: var(--muted); }
.mon__it--down .mon__name small { color: var(--bad); font-weight: 700; }
.mon__up { display: grid; justify-items: end; font: 700 1.05rem/1.15 var(--display); }
.mon__up small { font: 600 .72rem/1.2 "aktiv-grotesk", "Manrope", system-ui, sans-serif; color: var(--muted); }
/* produzione */
.ledger { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.ledger ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ledger li + li { border-left: 1px solid var(--line); }
.ledger a { display: grid; gap: .15rem; padding: 1rem 1.1rem 1.05rem; color: inherit; text-decoration: none; height: 100%; }
.ledger a:hover { background: var(--soft); }
.ledger a:hover span { color: var(--ink); }
.ledger a:focus-visible { outline-offset: -3px; }
.ledger b { font: 700 2rem/1 var(--display); letter-spacing: -.04em; }
.ledger span { font-size: .84rem; font-weight: 650; color: var(--muted); }
/* attività */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .8rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; padding-top: .1rem; }
.feed__tx { display: grid; min-width: 0; }
.feed__tx a { font-weight: 700; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.feed__tx a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feed__tx small { color: var(--muted); font-size: .8rem; }
.feed__st, .feed__kind { justify-self: start; font-size: .75rem; font-weight: 750; padding: .1rem .45rem; border-radius: 6px; background: #e9ebef; color: var(--ink2); }
.feed__st--ok { background: #dcf1e4; color: #13603a; } .feed__st--bad { background: #fbe1dd; color: #8c2318; }
/* numeri del mese */
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; margin: 0; padding: .2rem .2rem 0; }
.facts div { display: flex; align-items: baseline; gap: .55rem; }
.facts dt { font-size: .84rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 800; }
@media (max-width: 1100px) { .ledger ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ledger li:nth-child(5) { border-left: 0; } .ledger li:nth-child(n+5) { border-top: 1px solid var(--line); } }
@media (max-width: 1020px) { .ops__row, .ops__row--even { grid-template-columns: minmax(0, 1fr); } .ops__state { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hello" "head" "go"; } .ops__go { justify-content: flex-start; } }
@media (max-width: 560px) {
  .page--ops { padding-top: 1rem; }
  .ops__state { border-radius: 14px; gap: 1.1rem; }
  .ops__go .btn { flex: 1 1 calc(50% - .5rem); padding-inline: .6rem; }
  .ledger ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger li:nth-child(odd) { border-left: 0; } .ledger li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ledger a { padding: .8rem .9rem; }
  .queue__it { grid-template-columns: 4px minmax(0, 1fr); }
  .queue__it .btn { grid-column: 2; justify-self: start; }
  .feed li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .facts { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .ops__state--bad .ops__signal::after { animation: none; opacity: 0; } .btn:active { transform: none; } }
/* tabelle larghe sul telefono: scorrono dentro il riquadro, non la pagina */
@media (max-width: 720px) { .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .tbl th, .tbl td { white-space: nowrap; } .tbl td .sp-err { white-space: normal; min-width: 14rem; } }
.page__head a, .kv a { color: inherit; text-underline-offset: 3px; }
/* 3.49.2: un collegamento a forma di pulsante scuro tiene il testo bianco (prima ereditava il colore scuro del titolo e non si leggeva) */
.page__head a.btn--primary, .kv a.btn--primary { color: #fff; text-decoration: none; }
.page__head a.btn, .kv a.btn { text-decoration: none; }

/* ---------- Temi (galleria dei siti vetrina, public/showcase.js) ---------- */
.thm-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.4rem 0 1.3rem; }
.thm-filter__b { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.2rem; padding: .3rem .85rem; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--ink2); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.thm-filter__b small { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.thm-filter__b:hover { border-color: var(--ink2); }
.thm-filter__b.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.thm-filter__b.is-on small { color: #c9ccd4; }
.thm-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.thm-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.thm-card__shot { display: block; aspect-ratio: 16 / 10; background: var(--con); overflow: hidden; }
.thm-card__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.thm-card__shot:hover img, .thm-card__shot:focus-visible img { transform: scale(1.035); }
.thm-card__ph { display: grid; place-items: center; height: 100%; font: 800 2rem/1 "Bricolage Grotesque", system-ui, sans-serif; }
.thm-card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.thm-card__top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.thm-card h2 { margin: .1rem 0 0; font-size: 1.3rem; }
.thm-card p { margin: 0; }
.thm-dots { display: inline-flex; }
.thm-dots i { width: 1.05rem; height: 1.05rem; border-radius: 50%; margin-left: -.3rem; box-shadow: 0 0 0 2px var(--card), inset 0 0 0 1px rgb(0 0 0 / .12); }
.thm-feat { margin: 0; padding-left: 1.1rem; font-size: .86rem; color: var(--ink2); display: grid; gap: .1rem; }
.thm-tech { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; padding-top: .3rem; }
.chip--soft { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.thm-acts { flex-wrap: wrap; gap: .45rem; padding-top: .35rem; }
.thm-invalid { margin-top: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .thm-card__shot img { transition: none; } .thm-card__shot:hover img { transform: none; } }

/* 3.4: «Personalizza per il cliente» (customize.js) */
.cst-list { margin: -.2rem 0 1.6rem; }
.cst-list h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.cst-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cst-list__a { display: grid; gap: .15rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; }
.cst-list__a:hover, .cst-list__a:focus-visible { border-color: var(--ink2); }
.cst-list__a .chip { justify-self: start; margin-top: .2rem; }
.cst-old { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 10px; background: #f3f4f6; }
.cst-old p { margin: 0; } .cst-old ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.cst-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: start; }
.cst-col { display: grid; gap: 1.2rem; min-width: 0; }
.cst-col--side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.cst-sec h2 { font-size: 1.1rem; margin: 0 0 .7rem; }
.cst-sub { font-size: .92rem; margin: 1rem 0 .5rem; } .cst-sub small { font-weight: 500; color: var(--muted); }
.cst-logo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; align-items: start; }
.cst-logo__img { display: grid; place-items: center; min-height: 110px; padding: .8rem; border-radius: 12px; border: 1px dashed var(--line2); background: repeating-conic-gradient(#f1f2f4 0 25%, #fff 0 50%) 0 0 / 16px 16px; text-align: center; }
.cst-logo__img img { max-width: 100%; max-height: 90px; object-fit: contain; }
.cst-mode { border: 0; padding: 0; margin: .8rem 0 0; display: grid; gap: .2rem; } .cst-mode legend { font-weight: 750; margin-bottom: .2rem; }
.cst-photos { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cst-photo { display: grid; gap: .35rem; align-content: start; }
.cst-photo p { margin: 0; overflow-wrap: anywhere; }
.cst-photo__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #eef0f3; border: 1px dashed var(--line2); font-size: .78rem; color: var(--muted); }
.cst-photo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cst-search { width: 100%; margin: 0 0 .8rem; }
.cst-groups { display: grid; gap: .5rem; }
.cst-group { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cst-group > summary { cursor: pointer; padding: .7rem .9rem; font-weight: 750; }
.cst-group > summary small { font-weight: 500; color: var(--muted); }
.cst-group[open] > summary { border-bottom: 1px solid var(--line); }
.cst-group > .cst-t { margin: .8rem .9rem; }
.cst-t label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; font-weight: 600; }
.cst-t.is-set label::after { content: " · cambiato"; font-family: inherit; color: #135f35; font-weight: 750; }
.cst-t textarea, .cst-t input { width: 100%; }
.cst-share__url { width: 100%; font-size: .85rem; }
.cst-how ol { padding-left: 1.2rem; margin: .3rem 0 0; display: grid; gap: .3rem; font-size: .9rem; }
.cst-how h3 { font-size: .95rem; margin: .9rem 0 .2rem; }
.cst-del { margin: 0; }
.btn.is-dirty { box-shadow: 0 0 0 3px rgb(255 214 0 / .55); }
@media (max-width: 1000px) { .cst-grid { grid-template-columns: 1fr; } .cst-col--side { position: static; max-height: none; } }
@media (max-width: 560px) { .cst-logo { grid-template-columns: 1fr; } }
/* «Genera un sito Nexus» e «Ottimizza» nella pagina Siti (public/wpgen.js) */
.wg-sec { margin-top: 2.2rem; }
.wg-sec__head { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.wg-sec__head h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.wg-sec__head p { margin: 0; max-width: 62ch; }
.wg-rows { display: grid; gap: .6rem; }
.wg-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.wg-row__main { min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
.wg-row__main .small { margin-top: .25rem; }
.dlg.dlg--wide { width: min(980px, calc(100vw - 2rem)); }
.wg-legal { font-size: .82rem; }
.wg-an h3 { margin: 0 0 .5rem; font-size: 1rem; }
.wg-an .kv { padding: .6rem .8rem; margin: .6rem 0 0; }
.wg-sw { display: inline-flex; gap: 3px; vertical-align: middle; }
.wg-sw i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgb(0 0 0 / .12); display: inline-block; }
.wg-brief { margin-top: .6rem; }
.wg-pages { display: grid; gap: .4rem; }
.wg-page { display: flex; gap: .5rem; align-items: center; }
.wg-page .chip { min-width: 9.5rem; justify-content: center; }
.wg-page input { flex: 1; min-width: 0; }
.wg-checks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .5rem 0 .8rem; }
.wg-check { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .9rem; }
.wg-colors { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .3rem 0 .8rem; }
.wg-colors label { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; }
.wg-colors input[type="color"] { width: 2.2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.wg-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: flex-end; margin: 1rem -1.3rem -1.2rem; position: sticky; bottom: -1.2rem; background: var(--card); padding: .8rem 1.3rem; border-top: 1px solid var(--line); }
.wg-tools select { width: auto; max-width: 100%; flex: 0 1 18rem; }
.wg-foot .muted { margin-right: auto; }
.wg-dev { margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.wg-dev--desk { height: 72vh; min-height: 480px; }
.wg-dev--mob { width: min(100%, 390px); height: 760px; border: 12px solid #1d1e24; border-radius: 40px; }
.wg-wait { margin: 1rem 0; }
.wg-steps { margin: 0 0 1rem 1.2rem; display: grid; gap: .35rem; }
.wg-steps li.is-ok::marker { color: #1b7a43; } .wg-steps li.is-fail::marker, .wg-steps li.is-fail b { color: #a12a1c; } .wg-steps li.is-skip b { color: var(--muted); }
.wg-score { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1rem; }
.wg-score div { padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 12px; min-width: 7rem; }
.wg-score small { display: block; color: var(--muted); font-weight: 700; } .wg-score b { font-size: 1.4rem; }
.wg-heavy, .wg-imgs, .wg-warn { margin: 0 0 .6rem 1.1rem; display: grid; gap: .45rem; }
.wg-heavy p { margin: .1rem 0 0; }
.wg-over { color: #a12a1c; font-weight: 800; }
.wg-ol { margin: .8rem 0 .6rem 1.2rem; display: grid; gap: .35rem; }
.box + .box { margin-top: 1rem; }
@media (max-width: 640px) { .wg-page .chip { min-width: 0; } .wg-dev--desk { height: 64vh; } }
.wg-foot--page { margin: 1.2rem 0 0; position: static; padding: .8rem 0 0; }
/* 3.5 – selettore dei modelli di landing: categorie, miniature, anteprima */
.ltpl__cats { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .8rem; }
.ltpl__cat { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; color: var(--ink2); }
.ltpl__cat.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ltpl__group { margin-bottom: 1rem; } .ltpl__group h4 { margin: 0 0 .45rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ltpl__grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.ltpl { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.ltpl:hover { border-color: var(--line2); } .ltpl.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ltpl__pick { display: grid; gap: .25rem; align-content: start; text-align: left; padding: .6rem .7rem .4rem; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; flex: 1; }
.ltpl__pick b { font-size: .95rem; } .ltpl__pick > span { color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.35; }
.ltpl__foot { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; padding: 0 .7rem .6rem; } .ltpl__foot .tag { font-size: .7rem; }
.ltpl__prev { margin-left: auto; font-size: .8rem; font-weight: 650; color: var(--ink); }
.ltpl__th { display: flex; flex-direction: column; gap: 3px; height: 92px; padding: 5px; border-radius: 8px; overflow: hidden; margin-bottom: .3rem; border: 1px solid rgb(0 0 0 / .06); }
.ltpl__r { display: block; flex: 0 1 7px; min-height: 3px; border-radius: 3px; position: relative; box-shadow: inset 0 0 0 1px rgb(127 127 127 / .14); }
.ltpl__r--bar { flex: 0 0 4px; box-shadow: none; }
.ltpl__r--hero { flex: 0 0 32px; box-shadow: none; }
.ltpl__r--hero b { position: absolute; left: 4px; height: 4px; border-radius: 2px; } .ltpl__r--hero b:first-child { top: 7px; width: 42%; } .ltpl__r--hero b:nth-child(2) { top: 17px; width: 18%; height: 5px; }
.ltpl__r--hero u { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 34%; border: 1.5px solid; border-radius: 3px; }
.ltpl__r--hero.ltpl__h--center b { left: 50%; transform: translateX(-50%); }
.ltpl__r--form, .ltpl__r--offer { flex-basis: 11px; } .ltpl__r--cta { flex-basis: 9px; }
.ltpl__note { margin: .2rem 0 .6rem; padding: .55rem .75rem; border-radius: 10px; background: #fff6dc; color: #5b4300; font-size: .85rem; }

/* ---------- Web app installabile (public/pwa.js) ---------- */
.pwa-install { display: none !important; }
.can-install .pwa-install { display: flex !important; }
.can-install .btn.pwa-install { display: inline-flex !important; }
.rail__install { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; font-weight: 650; font-size: .93rem; }
.rail__install .i { color: var(--hi); opacity: 1; }
.login__install { margin-top: .4rem; }
.pwa-bar { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom)); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; width: max-content; max-width: calc(100vw - 2rem); padding: .6rem .7rem .6rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 650; font-size: .92rem; box-shadow: 0 18px 44px -18px rgb(0 0 0 / .6); }
.pwa-bar--off { top: calc(.6rem + env(safe-area-inset-top)); bottom: auto; background: #5c4200; padding-right: 1rem; }
.pwa-bar--up .btn { background: var(--hi); color: var(--hi-ink); border-color: var(--hi); min-height: 2.5rem; }
.pwa-steps { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .6rem; }
.pwa-share { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.15em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M6 11H5v10h14V11h-1'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M6 11H5v10h14V11h-1'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--run); }

/* ---------- Telefono e tablet (touch): bersagli da almeno 44px, campi a 16px (iOS non ingrandisce), safe-area ---------- */
@media (pointer: coarse) {
  .btn, .btn--sm, .rail__menu, .rail__search, .thm-filter__b, .lab-filter__b, .score-btn, .tpl, .oitem, .iconopt { min-height: 44px; }
  .btn--sm { padding: .35rem .85rem; font-size: .9rem; }
  .icon-btn, .icon-btn.sm, .jv__send { width: 44px; height: 44px; }
  .rail__a, .brand { min-height: 44px; }
  .rail__out { min-height: 44px; padding: .3rem .8rem; }
  .tbl .btn { margin: .15rem 0 .15rem .3rem; }
  input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select, textarea, .cmdk__in { font-size: 16px; min-height: 44px; }
  .chk input { width: 1.25rem; height: 1.25rem; }
  .chk { min-height: 44px; margin-bottom: .2rem; }
  .tabs button, .appx__tabs button, .seg button, .oitem__main { min-height: 44px; }
  .seg button { width: 44px; }
  .tabs, .appx__tabs { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  input[type=color] { min-width: 44px; min-height: 44px; }
  input[type=range] { height: 44px; }
  /* link «‹ Sezione», briciole e salti: area di tocco più grande senza cambiare l'impaginazione */
  .crumb a, .page a.muted.small, .pv__jump .link, .feed__tx a { display: inline-block; padding: .8rem .3rem; margin: -.8rem -.3rem; }
}
/* safe-area: notch e barra Home (con viewport-fit=cover) */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.page { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
#toast { bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
.dlg { max-height: calc(100vh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  .rail__top { padding-top: max(.6rem, env(safe-area-inset-top)); }
  .rail.is-open { overscroll-behavior: contain; }
  .rail.is-open .rail__nav { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .login__side { padding-top: max(1.4rem, env(safe-area-inset-top)); }
}
/* app installata: niente rimbalzo che scopre lo sfondo, niente selezione accidentale della barra */
.is-standalone body { overscroll-behavior-y: none; }
.is-standalone .rail { -webkit-user-select: none; user-select: none; }

/* APK di prova (Android) e QR del Laboratorio – public/apk.js */
.apk { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.apk h3 { margin: 0 0 .4rem; font-size: 1rem; }
.apk__warn { background: var(--soft); border-left: 3px solid #d99a1e; border-radius: 8px; padding: .5rem .7rem; }
.apk__fp { word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; }
.apk__list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .6rem; }
.apk__list > li { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.apk__row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.apk__pre { max-height: 14rem; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: .75rem; background: var(--soft); padding: .5rem; border-radius: 8px; }
.apk__qrbox { display: grid; justify-items: center; gap: .3rem; margin-top: .5rem; }
.apk__qr { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 8px; }
.apk__steps { text-align: left; margin: .3rem 0; padding-left: 1.2rem; }
.apk__url { word-break: break-all; }
.apk__phone .qr { text-align: center; }

/* 3.26: versione in fondo a ogni pagina */
.page-ver { margin: 32px 0 12px; text-align: center; font-size: .78rem; color: #6b7280; }

/* 3.49.1 – procedura guidata: «Modifica» sotto ogni risposta data */
.jv__edit { display: block; margin: 6px 0 0 auto; padding: 4px 0; min-height: 28px; border: 0; background: none; color: #f5d547; font: inherit; font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jv__edit:focus-visible { outline: 2px solid #f5d547; outline-offset: 3px; border-radius: 4px; }

/* 3.52: elenco dei temi WordPress di una destinazione */
.wpthemes__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .7rem 0; border-top: 1px solid rgba(128, 128, 128, .25); }
.wpthemes__row p { margin: .2rem 0 0; } .wpthemes__row .tcard__acts { margin-top: 0; }

/* 3.53 – Temi: sezioni (siti in codice, WordPress di base, WordPress premium) */
.thm-sec { display: flex; gap: .3rem; margin: -.3rem 0 1.4rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.thm-sec::-webkit-scrollbar { display: none; }
.thm-sec__a { padding: .65rem .95rem; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.thm-sec__a:hover { color: var(--ink); } .thm-sec__a.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.tag--ok { background: #e3f4e8; color: #17603a; } .tag--prem { background: #171a21; color: #f3d68a; }
.thm-card--prem { border-color: #d9c48a; } .wpp { margin-top: auto !important; padding-top: .4rem; font-size: 1.05rem; } .wpp b { font-size: 1.35rem; }
.wpm { height: 100%; display: flex; flex-direction: column; padding: 5% 6%; gap: 8%; font-size: .7rem; }
.wpm__bar { display: flex; align-items: center; gap: 4%; } .wpm__bar b { flex: 1; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpm__bar span { width: 7%; height: 3px; border-radius: 2px; background: currentColor; opacity: .45; } .wpm__bar i { width: 14%; height: 14px; }
.wpm__hero { flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 6%; align-items: center; }
.wpm__hero > div:first-child { display: flex; flex-direction: column; gap: 7px; }
.wpm__hero strong { display: block; height: 13px; width: 90%; border-radius: 3px; background: currentColor; } .wpm__hero em { display: block; height: 4px; width: 84%; border-radius: 2px; background: currentColor; opacity: .4; }
.wpm__btns { display: flex; gap: 6px; margin-top: 6px; } .wpm__btns i { width: 34%; height: 16px; box-sizing: border-box; }
.wpm__img { height: 86%; }
.wpx { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem 2.5rem; margin: 2rem 0 1rem; }
.wpx h2 { font-size: 1.1rem; margin: 0 0 .5rem; } .wpx section h2 + ul + h2 { margin-top: 1.3rem; }
.wpx ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .92rem; color: var(--ink2); }
.thm-card--prem .wpp { margin-top: auto !important; } .thm-card--prem .thm-acts { margin-top: .6rem; }
/* 3.58 – App: caricamento di logo, copertina e foto delle persone */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.imgpick { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 .9rem; min-width: 0; }
.imgpick__v { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 14px; object-fit: contain; background: repeating-conic-gradient(#eef0f4 0% 25%, #fff 0% 50%) 50% / 14px 14px; border: 1px solid var(--line, #dfe3ea); }
.imgpick--wide .imgpick__v { width: 7.5rem; object-fit: cover; } .imgpick--round .imgpick__v { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; }
.imgpick__v--none { display: grid; place-items: center; background: #f3f5f8; color: #8b94a3; font-size: 1.4rem; }
.imgpick__t { display: grid; gap: .25rem; min-width: 0; } .imgpick__b { display: flex; gap: .4rem; flex-wrap: wrap; } .imgpick__b label { cursor: pointer; }
.rowx--staff { flex-wrap: wrap; padding-bottom: .5rem; border-bottom: 1px dashed var(--line, #dfe3ea); } .rowx--staff .imgpick { margin: 0; } .rowx--staff .imgpick__t b { display: none; }

/* 3.59: Siti → Aree clienti (public/selfsite-admin.js) */
.as-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; }
.as-card.is-off { opacity: .6; }
.as-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.as-head h3 { margin: 0; font-size: 1.02rem; }
.as-head .row, .as-sites .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.as-sites { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.as-sites li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.as-sites li:last-child { border-bottom: 0; }
.as-packs { margin-top: 10px; } .as-pack h4 { margin: 12px 0 6px; font-size: .9rem; }
.as-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.as-slot { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); }
.as-slot img, .as-slot__none { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.as-slot__none { display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.as-slot figcaption { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; }
.as-slot figcaption .small { flex: 1 1 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 3.70 – Dubai / Nexus Luxury */
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.lx-tour { padding: 16px 18px; } .lx-tour h3 { margin: 0 0 4px; } .lx-tour .muted { word-break: break-all; }
.lx-new { padding: 18px 20px; max-width: 760px; } .lx-new h2 { margin-top: 0; }
.lx-new textarea, .lx-new input[type=text] { width: 100%; }
.lx-json { width: 100%; font: 12px/1.4 ui-monospace, Menlo, monospace; }
.lx-rooms-list { margin: 6px 0 10px; padding-left: 20px; }
