  @font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(inter-var.woff2) format("woff2"); }

  :root {
    color-scheme: light;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --teal: #0e7490; --teal-dark: #07303f; --coral: #e2613c; --sun: #d9a520;
    --green: #117a52; --on-accent: #fff;

    --win: #fbfcfd; --surface-2: #fff; --inset: #eef3f6; --edge: rgba(15, 26, 33, 0.10);
    --head: rgba(255, 255, 255, 0.6);

    --ink: #14212a; --ink-2: #3a4d5c; --muted: #647889;
    --line: rgba(15, 26, 33, 0.11);

    --chrome: rgba(255, 255, 255, 0.68); --chrome-ink: #17252e; --chrome-edge: rgba(15, 26, 33, 0.11);
    --desk-ink: #17252e; --desk-ombra: 0 1px 2px rgba(255, 255, 255, 0.7);
    --desktop:
      radial-gradient(86vmax 52vmax at 50% 112%, rgba(8, 126, 158, 0.55), transparent 64%),
      radial-gradient(44vmax 36vmax at 84% 4%, rgba(233, 130, 80, 0.22), transparent 62%),
      linear-gradient(180deg, #a3c9d9 0%, #77b0c6 50%, #4b95b0 100%);

    --stage: #2b353d;
    --ombra-win: 0 1px 2px rgba(6, 20, 26, 0.07), 0 14px 38px rgba(4, 16, 22, 0.26);
    --ombra-card: 0 1px 3px rgba(6, 20, 26, 0.09);
    --ombra-hover: 0 4px 12px rgba(6, 20, 26, 0.13);
    --accent-soft: rgba(14, 116, 144, 0.09); --green-soft: rgba(17, 122, 82, 0.12);
    --rail: rgba(14, 116, 144, 0.3);

    --cielo: #cdeef2; --sabbia: #f7e8c6; --umb-libero: #b9c4cc;
  }
  [data-tema="scuro"] {
    color-scheme: dark;
    --teal: #3fc9bd; --teal-dark: #0a2b31; --coral: #f08a63; --sun: #e8bb4d;
    --green: #34d399; --on-accent: #06232a;
    --win: #161d23; --surface-2: #1d262d; --inset: #111920; --edge: rgba(255, 255, 255, 0.09);
    --head: rgba(255, 255, 255, 0.035);
    --ink: #e9f0f4; --ink-2: #bccbd5; --muted: #8ba0ad;
    --line: rgba(255, 255, 255, 0.10);
    --chrome: rgba(10, 16, 20, 0.72); --chrome-ink: #e9f0f4; --chrome-edge: rgba(255, 255, 255, 0.08);
    --desk-ink: #eef7f4; --desk-ombra: 0 1px 3px rgba(0, 0, 0, 0.5);
    --desktop:
      radial-gradient(90vmax 54vmax at 50% 114%, rgba(41, 148, 165, 0.16), transparent 62%),
      linear-gradient(180deg, #05090c 0%, #070f14 58%, #0a181f 100%);
    --stage: #0c1216;
    --ombra-win: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 44px rgba(0, 0, 0, 0.5);
    --ombra-card: 0 1px 3px rgba(0, 0, 0, 0.35);
    --ombra-hover: 0 4px 14px rgba(0, 0, 0, 0.45);
    --accent-soft: rgba(63, 201, 189, 0.13); --green-soft: rgba(52, 211, 153, 0.15);
    --rail: rgba(63, 201, 189, 0.28);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    font-family: "Inter", -apple-system, sans-serif; color: var(--ink);
    overflow: hidden; font-size: 14px; line-height: 1.5;
    background: var(--desktop);
    transition: background 0.35s ease;
  }
  button { font-family: inherit; }
  .mono { font-family: var(--mono); }
  .todo { background: rgba(217, 165, 32, 0.22); color: inherit; padding: 0 5px; border-radius: 4px; }

  #boot { position: fixed; inset: 0; z-index: 300; background: #050a0d; color: #9fe8d8; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.6s; }
  #boot.out { opacity: 0; pointer-events: none; }

  body[data-senza-avvio] #boot { display: none; }
  #bootlog { font-family: var(--mono); font-size: clamp(11px, 1.6vw, 13.5px); line-height: 1.9; width: min(640px, 92vw); }
  #bootlog .ok { color: #5eead4; }
  #bootlog .warn { color: var(--sun); }
  #bootlog .dim { color: #4a6a72; }
  #splash { display: none; text-align: center; }
  #splash .name { font-size: clamp(34px, 7vw, 58px); font-weight: 700; letter-spacing: -0.03em; color: #eafbf6; }
  #splash .name b { color: #5eead4; font-weight: 700; }
  #splash .pb { width: 220px; height: 3px; background: rgba(255,255,255,0.12); border-radius: 99px; margin: 26px auto 0; overflow: hidden; }
  #splash .pb i { display: block; height: 100%; width: 0; background: #5eead4; border-radius: 99px; transition: width 1.1s ease; }
  #boot .skip { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: #4a6a72; font-family: var(--mono); }

  #menubar {
    position: fixed; top: 0; left: 0; right: 0; height: 30px; z-index: 200;
    background: var(--chrome); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    color: var(--chrome-ink); display: flex; align-items: center; gap: 18px; padding: 0 14px;
    font-size: 12.5px; border-bottom: 1px solid var(--chrome-edge);
  }

  #menubar .osname { font-weight: 700; background: none; border: none; color: inherit; font-family: inherit; font-size: inherit; padding: 2px 6px; margin-left: -6px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
  #menubar .osname:hover, #menubar .osname[aria-expanded="true"] { background: var(--inset); }

  #osmenu {
    position: fixed; top: 32px; left: 8px; z-index: 260; width: 268px; max-width: calc(100vw - 16px);
    background: var(--chrome); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--chrome-edge); border-radius: 12px; box-shadow: var(--ombra-win);
    padding: 6px; display: none; max-height: calc(100vh - 44px); overflow-y: auto;
  }
  #osmenu[data-aperto] { display: block; }
  #osmenu .voce {
    display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
    padding: 7px 9px; border-radius: 7px; border: none; background: none; cursor: pointer;
    font: inherit; font-size: 12.5px; color: var(--ink); text-decoration: none;
  }
  #osmenu .voce:hover { background: var(--accent-soft); }
  #osmenu .voce svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: 0.75; }
  #osmenu .sep { height: 1px; background: var(--line); margin: 5px 7px; }
  #osmenu .gruppo { font-size: 10px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 6px 9px 3px; }

  #osmenu .aspetto { display: flex; gap: 5px; padding: 2px 9px 7px; }
  #osmenu .aspetto button {
    flex: 1; padding: 6px 0; border-radius: 7px; border: 1px solid var(--chrome-edge);
    background: none; color: var(--ink); font: inherit; font-size: 11.5px; cursor: pointer;
  }
  #osmenu .aspetto button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-accent); font-weight: 600; }
  #osmenu .applist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  #osmenu .applist .voce { font-size: 12px; padding: 6px 8px; }
  #osmenu .applist .pallino { width: 9px; height: 9px; border-radius: 3px; flex: none; }
  #menubar .osname i { font-style: normal; color: var(--teal); }
  #menubar .tema { display: inline-flex; align-items: center; border: 1px solid var(--chrome-edge); background: none; color: inherit; font: inherit; padding: 4px 8px; border-radius: 99px; cursor: pointer; line-height: 0; }
  #menubar .tema svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  #menubar .tema .luna { display: none; }
  [data-tema="scuro"] #menubar .tema .sole { display: none; }
  [data-tema="scuro"] #menubar .tema .luna { display: inline; }
  #menubar .doc { opacity: 0.75; margin: 0; font-size: inherit; font-weight: 400; letter-spacing: normal; }
  #menubar .sp { flex: 1; }
  #menubar a { color: inherit; text-decoration: none; border: 1px solid var(--chrome-edge); padding: 2px 10px; border-radius: 99px; font-size: 11.5px; }
  #menubar a:hover, #menubar .tema:hover { background: var(--inset); }

  #menubar .lang { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
  #menubar .stat { font-family: var(--mono); font-size: 11.5px; opacity: 0.85; }
  @media (max-width: 700px) { #menubar .doc, #menubar .stat.batt { display: none; } #menubar { gap: 12px; } }

  .dicon {
    position: absolute; width: 86px; text-align: center; cursor: pointer; z-index: 5;
    color: var(--desk-ink); font-size: 11.5px; font-weight: 500; text-shadow: var(--desk-ombra);
    display: block; text-decoration: none;
  }
  .dicon .ic { width: 52px; height: 52px; margin: 0 auto 6px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; transition: transform 0.16s ease; }
  .dicon:hover .ic { transform: scale(1.06); }

  #dock {
    position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 210;
    display: flex; gap: 10px; padding: 9px 12px; border-radius: 22px;
    background: var(--chrome); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--chrome-edge);
  }

  .dapp, .dicon .ic {
    background-color: var(--tinta);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.05) 44%, rgba(0,0,0,0.13) 100%);
    color: var(--glifo, #fff);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.45),
      inset 0 -1px 0 rgba(0,0,0,0.18),
      0 1px 2px rgba(4,16,22,0.22),
      0 5px 12px rgba(4,16,22,0.22);
  }
  .dapp { position: relative; width: 46px; height: 46px; border-radius: 13px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: transform 0.16s ease, box-shadow 0.16s ease; text-decoration: none; }

  .dapp svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.22)); }
  .dicon .ic { text-shadow: 0 1px 1px rgba(0,0,0,0.18); }

  [data-tema="scuro"] .dapp, [data-tema="scuro"] .dicon .ic { filter: brightness(1.06); }
  .dapp:hover {
    transform: translateY(-5px) scale(1.07);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.5),
      inset 0 -1px 0 rgba(0,0,0,0.2),
      0 2px 4px rgba(4,16,22,0.24),
      0 12px 22px rgba(4,16,22,0.3);
  }
  .dapp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.05; stroke-linecap: round; stroke-linejoin: round; }
  .dapp::after { content: attr(data-label); position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); background: rgba(5, 14, 19, 0.92); color: #fff; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
  .dapp:hover::after { opacity: 1; }
  .dapp .on { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--teal); opacity: 0; }
  .dapp.open .on { opacity: 1; }
  @media (max-width: 700px) {

    #dock { gap: 14px; padding: 9px 14px; bottom: 10px; }
    .dapp { width: 46px; height: 46px; font-size: 12px; flex: none; }
    .dapp svg { width: 22px; height: 22px; }
    .dapp::after { display: none; }
  }

  #griglia { display: none; }
  @media (max-width: 700px) {
    #griglia {
      display: grid; position: absolute; z-index: 5;
      top: 62px; left: 0; right: 0; padding: 0 16px;
      grid-template-columns: repeat(4, 1fr); gap: 20px 8px; justify-items: center;
    }
    #griglia .gcell { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; }
    #griglia .glabel {
      color: var(--desk-ink); font-size: 11px; font-weight: 500; text-align: center;
      text-shadow: var(--desk-ombra); line-height: 1.25; word-break: break-word;
    }
    #griglia .dapp { width: 54px; height: 54px; border-radius: 15px; }
    #griglia .dapp svg { width: 26px; height: 26px; }

    #griglia .dicon { position: static; width: 100%; font-size: 11px; }
    #griglia .dicon .ic { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 7px; }

    body.app-aperta #griglia, body.app-aperta #dock { display: none; }
  }

  .window {
    position: fixed; z-index: 100; width: min(680px, 94vw);
    background: var(--win);
    border-radius: 16px; border: 1px solid var(--edge);
    box-shadow: var(--ombra-win);
    animation: wopen 0.28s cubic-bezier(0.2, 1.3, 0.4, 1); overflow: hidden;
    display: flex; flex-direction: column;
  }
  @keyframes wopen { from { transform: scale(0.92) translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
  .whead { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; background: var(--head); }
  .whead:active { cursor: grabbing; }
  .dot { width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer; padding: 0; position: relative; }
  .dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
  .dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
  .dot.r::before { content: "×"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1; font-weight: 700; color: transparent; z-index: 1; }
  .whead:hover .dot.r::before { color: rgba(60, 0, 0, 0.6); }

  .wtitle { flex: 1; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wbody { padding: 22px 26px 24px; overflow-y: auto; max-height: min(70vh, 640px); }

  .wback { display: none; }
  @media (max-width: 700px) {

    .window {
      left: 0 !important; top: 30px !important; width: 100vw !important;
      height: calc(100vh - 30px); height: calc(100dvh - 30px);
      border-radius: 0; border: none; box-shadow: none;
    }
    .whead { cursor: default; padding: 10px 12px; }
    .whead .dot { display: none; }
    .wback {
      display: inline-flex; align-items: center; justify-content: center;
      width: 30px; height: 30px; margin: -4px 0; padding: 0;
      border: none; background: none; color: var(--ink); cursor: pointer;
    }
    .wback svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .wtitle { margin-left: 0; }
    .wbody { max-height: none; flex: 1; }

    .wbody { max-height: calc(100vh - 170px); padding: 16px 15px 18px; }
    .wbody h2, .wbody h1 { font-size: 17px; }
    .kcol { padding: 6px; }
    .kcolh { font-size: 9.5px; letter-spacing: 0.03em; gap: 4px; }
  }

  .wbody h2, .wbody h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.022em; }
  .wbody .avatar { float: right; width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 2px 0 10px 16px; border: 2px solid var(--surface-2); box-shadow: var(--ombra-card); }
  .wbody p { font-size: 13.5px; line-height: 1.62; color: var(--ink-2); margin-top: 9px; }

  .wbody h2.sez { font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 18px 0 -2px; }
  .wbody p a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
  .demo-note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); background: var(--inset); border-radius: 6px; padding: 5px 9px; margin: 12px 0; display: inline-block; }

  .curiosita { margin-top: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--inset); }
  .curiosita > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px; }
  .curiosita p { margin: 0; }
  .bgproc { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
  .bgproc span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--win); border: 1px solid var(--line); transition: transform .16s, border-color .16s; }
  .bgproc span:hover { transform: translateY(-1px); border-color: var(--teal); }
  .bgproc svg { width: 14px; height: 14px; flex: none; stroke: var(--teal); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

  .sysinfo { display: flex; gap: 24px; align-items: flex-start; }
  .sysside { flex: 0 0 148px; text-align: center; padding-top: 4px; }
  .sysface { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; border: 2px solid var(--surface-2); box-shadow: var(--ombra-card); }
  .sysside b { display: block; font-size: 15px; letter-spacing: -0.01em; }
  .sysside span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .sysmain { flex: 1; min-width: 0; min-height: 290px; }
  .systabs { display: flex; gap: 2px; background: var(--inset); border-radius: 9px; padding: 3px; margin-bottom: 14px; }
  .systab { flex: 1; border: 0; background: none; font: inherit; font-size: 12.5px; padding: 5px 8px; border-radius: 6px; color: var(--muted); cursor: pointer; transition: background .16s, color .16s; }
  .systab:hover { color: var(--ink); }
  .systab.is-on { background: var(--surface-2); color: var(--ink); box-shadow: var(--ombra-card); }
  .syspane { display: none; }
  .syspane.is-on { display: block; animation: tlin .22s ease; }

  .sysmain .syspane h2 { font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 18px 0 -2px; }
  .specs { margin: 12px 0 4px; }
  .specs > div { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
  .specs > div:last-child { border-bottom: 0; }
  .specs span { color: var(--muted); text-align: right; }
  .specs b { font-weight: 500; }
  .presslab { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 2px; }
  .pressgroup:first-child .presslab { margin-top: 2px; }

  .pressgroup a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
  .pressgroup > :last-child { border-bottom: 0; }
  .pressgroup a b { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--teal); }
  .pressgroup a i { display: block; font-style: normal; font-size: 12.5px; margin-top: 1px; }
  .pressgroup a:hover i { text-decoration: underline; }

  .ritaglio img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--ombra-card); margin-bottom: 9px; transition: box-shadow .16s, transform .16s; }
  .ritaglio:hover img { box-shadow: var(--ombra-hover); transform: translateY(-1px); }
  .ritaglio u { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--muted); text-decoration: none; margin-top: 3px; }
  .ritaglio:hover u { color: var(--teal); }
  @media (max-width: 620px) {
    .sysinfo { flex-direction: column; gap: 14px; }
    .sysside { flex: none; width: 100%; }
    .specs > div { grid-template-columns: 1fr; gap: 2px; }
    .specs span { text-align: left; }
  }

  .tl { margin: 16px 0 6px; }
  .tlrail { display: flex; position: relative; margin-bottom: 12px; }
  .tlrail::before { content: ""; position: absolute; left: 12%; right: 12%; top: 6px; height: 2px; background: var(--line); }
  .tlstep { flex: 1; background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-align: center; cursor: pointer; position: relative; }
  .tlstep .tldot { display: block; width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 8px; background: var(--win); border: 2px solid var(--line); transition: transform .18s, background .18s, border-color .18s; }
  .tlstep b { display: block; font-size: 12.5px; color: inherit; }
  .tlstep i { display: block; font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .02em; opacity: .85; }
  .tlstep:hover .tldot { border-color: var(--teal); }
  .tlstep.is-on { color: var(--ink); }
  .tlstep.is-on b { color: var(--teal); }
  .tlstep.is-on .tldot { background: var(--teal); border-color: var(--teal); transform: scale(1.2); }
  .tlbody { min-height: 92px; }
  .tlbody p { display: none; margin: 0; }
  .tlbody p.is-on { display: block; animation: tlin .22s ease; }
  @keyframes tlin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  .facts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
  .facts b { display: block; font-size: 17px; color: var(--teal); }
  .facts i { font-style: normal; font-size: 11px; color: var(--muted); }
  .chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .chiprow span { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--muted); background: var(--surface-2); }

  .perm { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
  .permq { text-align: left; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; cursor: pointer; transition: background .16s, border-color .16s, color .16s; }
  .permq:hover { background: var(--inset); color: var(--ink); }
  .permq.is-on { border-color: var(--rail); background: var(--inset); color: var(--ink); font-weight: 600; }
  .permout { margin-top: 11px; padding: 12px 15px; border-radius: 10px; background: var(--inset); border-left: 3px solid var(--muted); font-size: 12.5px; line-height: 1.58; color: var(--ink-2); }
  .permout b { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; color: var(--muted); }
  .permout.ok { border-left-color: var(--green); }
  .permout.ok b { color: var(--green); }
  .permout.no { border-left-color: var(--coral); }
  .permout.no b { color: var(--coral); }
  .permout.ask { border-left-color: var(--sun); }
  .permout.ask b { color: var(--sun); }
  .pillok { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 99px; }
  .pillok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

  .beach { margin-top: 12px; background: linear-gradient(180deg, var(--cielo) 0 26%, var(--sabbia) 26%); border-radius: 12px; padding: 18px 12px 12px; border: 1px solid var(--line); }
  .brow { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
  .umb { width: 34px; height: 40px; background: none; border: none; cursor: pointer; position: relative; transition: transform 0.15s; }
  .umb:hover { transform: scale(1.18); }
  .umb svg { width: 100%; height: 100%; }
  .umb .top { fill: var(--umb-libero); } .umb.full .top { fill: var(--coral); }
  .bstats { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
  .bstats b { color: var(--ink); }

  .kan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .kcol { background: var(--inset); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 120px; }

  .kcolh { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
  .kcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 11.5px; margin-bottom: 6px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
  .kcard:hover { transform: translateY(-2px); box-shadow: var(--ombra-hover); }
  .kcard small { display: block; color: var(--muted); font-size: 10.5px; }
  .kdone { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 8px; min-height: 18px; }

  .label-card { --ink: #14212a; color: #14212a; display: flex; gap: 14px; align-items: center; background: #fff; border: 1.5px dashed rgba(15, 26, 33, 0.22); border-radius: 10px; padding: 12px; margin-top: 12px; position: relative; overflow: hidden; }
  .qr { width: 56px; height: 56px; flex-shrink: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.5px; }
  .qr i { background: var(--ink); border-radius: 1px; } .qr i.o { background: transparent; }
  .label-card .info { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; }
  .label-card .info b { font-size: 13px; }
  .scanline { position: absolute; left: 0; right: 0; height: 3px; background: #2dd4bf; box-shadow: 0 0 14px #2dd4bf; top: -10px; opacity: 0; }
  .scanning .scanline { animation: scan 0.7s ease; }
  @keyframes scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 1; } }
  .mlog { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 10px; max-height: 70px; overflow-y: auto; line-height: 1.8; }
  .btnrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .abtn { border: none; border-radius: 8px; background: var(--teal); color: var(--on-accent); font-weight: 600; font-size: 12.5px; padding: 9px 16px; cursor: pointer; }

  a.abtn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
  a.abtn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .abtn:hover { filter: brightness(1.12); }
  .abtn.ghost { background: var(--accent-soft); color: var(--teal); }

  .serp { margin-top: 12px; }
  .serp .rrow { display: grid; grid-template-columns: 60px 1fr 46px; gap: 10px; align-items: center; font-size: 12px; margin-bottom: 7px; color: var(--muted); }
  .serp .glabel { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
  .serp .glabel:first-child { margin-top: 4px; }
  .serp .tr2 { height: 9px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; }
  .serp .fl2 { height: 100%; border-radius: 99px; background: var(--teal); width: 0; transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .serp .pos { font-family: var(--mono); text-align: right; }
  .serp .win .fl2 { background: var(--green); }
  .serp .win { color: var(--ink); font-weight: 600; }

  .rel { border-left: 2px solid var(--rail); padding: 2px 0 14px 16px; position: relative; }
  .rel::before { content: ""; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
  .rel .v { font-family: var(--mono); font-weight: 700; font-size: 13px; }
  .rel .d { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-left: 8px; }
  .rel ul { margin: 6px 0 0 16px; font-size: 12.5px; color: var(--ink-2); }
  .rel li { margin-bottom: 3px; }
  .rel a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
  .rel.next { border-left-style: dashed; } .rel.next::before { background: var(--coral); }

  .tform label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 12px 0 4px; }

  .tform label i { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .75; }
  .tform select, .tform textarea, .tform input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 13px; font-family: inherit; background: var(--surface-2); color: var(--ink); }
  .tform textarea { min-height: 84px; resize: vertical; }
  .tform select:focus-visible, .tform textarea:focus-visible, .tform input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
  .tform .manca { border-color: var(--coral); }

  .tesca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .tesito { min-height: 1px; }

  .tconsenso { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
  .tform .tconsenso input[type="checkbox"] { width: auto; flex: none; margin-top: 2px; accent-color: var(--teal); }
  .tform .tconsenso label { display: block; margin: 0; font-size: 11.5px; line-height: 1.5;
    font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); cursor: pointer; }
  .tconsenso.manca label { color: var(--coral); }
  .tconsenso.manca input[type="checkbox"] { outline: 2px solid var(--coral); outline-offset: 2px; }
  .tesito.ok { color: var(--green); font-weight: 600; }
  .tesito.ko { color: var(--coral); }

  .fotoapp { display: flex; gap: 16px; margin-top: 14px; }

  .falbums { flex: 0 0 138px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: flex-start; background: var(--win); }
  .falbum { display: flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--muted); text-align: left; padding: 6px 8px; border-radius: 7px; cursor: pointer; transition: background .16s, color .16s; }
  .falbum:hover { color: var(--ink); background: var(--inset); }
  .falbum.is-on { background: var(--surface-2); color: var(--ink); font-weight: 600; box-shadow: var(--ombra-card); }
  .falbum i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
  .falbum u { text-decoration: none; margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .fgrid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 18px; align-content: start; }

  .ftile { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); box-shadow: var(--ombra-card); display: flex; flex-direction: column; text-align: left; font: inherit; transition: box-shadow .16s, transform .16s; }
  .ftile:hover { box-shadow: var(--ombra-hover); transform: translateY(-2px); }
  .ftile .fcap { border-top: 1px solid var(--line); }

  .ftile[hidden] { display: none; }
  .ftile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .3s ease; }
  .ftile:hover img { transform: scale(1.05); }
  .ftile .fcap { padding: 9px 11px 12px; }
  .ftile b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
  .ftile i { display: block; font-style: normal; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--muted); }
  .ftile.wait { display: flex; align-items: center; justify-content: center; padding: 8px; min-height: 120px; border-style: dashed; cursor: default; }
  .ftile.wait span { font-family: var(--mono); font-size: 9.5px; line-height: 1.6; color: var(--muted); word-break: break-all; text-align: center; }
  .ftile.wait b { display: none; }
  @media (max-width: 620px) {
    .fotoapp { flex-direction: column; gap: 10px; }

    .falbums { flex: none; flex-direction: row; flex-wrap: wrap; overflow-x: visible; gap: 5px;
      top: -16px; margin: -16px -15px 0; padding: 16px 15px 9px; z-index: 3;
      border-bottom: 1px solid var(--line); }
    .falbum { flex: none; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; }
    .falbum.is-on { border-color: transparent; }
    .falbum u { display: none; }
  }

  #ql { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px 16px; background: rgba(4, 16, 22, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  #ql.on { display: flex; }
  .qlbox { display: flex; width: min(1500px, 97vw); max-height: 94vh; background: var(--win); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(3, 16, 22, 0.5); animation: wopen .24s cubic-bezier(0.2, 1.3, 0.4, 1); }
  .qlstage { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--stage); position: relative; }
  .qlframe { display: flex; align-items: center; justify-content: center; max-width: 100%; transition: max-width .3s ease; }
  .qlframe img { display: block; max-width: 100%; max-height: min(86vh, 1000px); object-fit: contain; border-radius: 3px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); }
  .qlframe .qlwait { display: none; font-family: var(--mono); font-size: 11px; line-height: 1.8; color: #9fb4bd; text-align: center; padding: 46px 22px; }
  .qlframe.wait img { display: none; }
  .qlframe.wait .qlwait { display: block; }
  .qlframe.dev-mobile { max-width: 288px; }
  .qlframe.dev-mobile img { border-radius: 10px; border: 5px solid #11181d; }
  .qlnav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: rgba(6, 20, 26, 0.55); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .qlnav:hover { background: rgba(6, 20, 26, 0.85); }
  .qlnav.prev { left: 10px; } .qlnav.next { right: 10px; }
  .qlmeta { flex: 0 0 244px; padding: 16px 18px 18px; border-left: 1px solid var(--line); overflow-y: auto; }
  .qlmeta .qtop { display: flex; align-items: center; gap: 8px; }
  .qlmeta .qtop i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
  .qlmeta .qtop b { font-size: 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .qlmeta .qclose { margin-left: auto; border: 0; background: none; font: inherit; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
  .qlmeta .qclose:hover { color: var(--ink); }

  .qlmeta .qltitle { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin: 10px 0 4px; }
  .qlmeta .qdesc { font-size: 12.5px; color: var(--ink-2); }
  .qldev { display: flex; gap: 2px; background: var(--inset); border-radius: 8px; padding: 3px; margin-top: 14px; }
  .qldev button { flex: 1; border: 0; background: none; font: inherit; font-size: 11.5px; padding: 5px 4px; border-radius: 6px; color: var(--muted); cursor: pointer; }
  .qldev button.is-on { background: var(--surface-2); color: var(--ink); box-shadow: var(--ombra-card); }
  .qlexif { margin-top: 14px; }
  .qlexif div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
  .qlexif div:last-child { border-bottom: 0; }
  .qlexif span { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; padding-top: 1px; }
  .qlexif b.todo { justify-self: start; }
  @media (max-width: 760px) {
    #ql { padding: 12px; }
    .qlbox { flex-direction: column; width: 96vw; }
    .qlstage { padding: 12px; }
    .qlframe img { max-height: 48vh; }
    .qlmeta { flex: none; border-left: 0; border-top: 1px solid var(--line); }
  }

  .window.wide { width: min(920px, 96vw); }
  .window.wide .wbody { max-height: min(78vh, 900px); }
  .cvview { background: var(--stage); margin: -22px -26px -24px; padding: 16px; }
  .cvbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: #dbe6ec; font-size: 11px; font-family: var(--mono); }

  .cvbar .cvazioni { display: flex; align-items: center; gap: 8px; }
  .cvbar .cvget { border: none; border-radius: 7px; background: var(--teal); color: var(--on-accent); font-weight: 600; font-size: 12px; padding: 7px 14px; text-decoration: none; font-family: inherit; white-space: nowrap; }
  .cvbar .cvget:hover { filter: brightness(1.12); }
  .cvbar button { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 7px; background: none; color: #dbe6ec; font-weight: 600; font-size: 12px; padding: 6px 13px; cursor: pointer; font-family: inherit; white-space: nowrap; }
  .cvbar button:hover { background: rgba(255, 255, 255, 0.1); }
  .cvholder { overflow: hidden; }
  #printroot { display: none; }

  .cvpage {
    width: 210mm; height: 297mm; background: #fff; color: #24333d; position: relative; overflow: hidden;
    transform-origin: top left; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-size: 10pt; line-height: 1.42; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .cvpage .wave { position: absolute; left: 0; right: 0; pointer-events: none; }
  .cvpage .wave.top { top: 0; height: 60mm; }
  .cvpage .wave.bot { bottom: 0; height: 34mm; }
  .cvpage .inner { position: relative; z-index: 1; height: 100%; padding: 0 16mm; display: flex; flex-direction: column; }

  .cvhead { display: flex; align-items: flex-start; gap: 12mm; height: 77mm; flex-shrink: 0; padding-top: 9mm; }
  .cvhead .ph { width: 50mm; height: 50mm; border-radius: 50%; object-fit: cover; border: 1.8mm solid #fff; box-shadow: 0 2mm 5mm rgba(0, 40, 46, 0.28); flex-shrink: 0; }
  .cvhead .txt { padding-top: 24mm; }
  .cvhead h2 { font-size: 23pt; font-weight: 700; letter-spacing: -0.02em; color: #1d5b63; line-height: 1.1; }
  .cvhead .role { font-size: 10.5pt; font-weight: 600; color: #3d8a90; margin-top: 1mm; }
  .cvhead .cts { margin-top: 3mm; display: grid; gap: 1.2mm; font-size: 9pt; color: #3c4f5a; }
  .cvhead .cts div { display: flex; align-items: center; gap: 2.4mm; }
  .cvhead .cts a { color: inherit; text-decoration: none; }
  .cvhead svg { width: 3.6mm; height: 3.6mm; stroke: #2f7a82; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

  .cvcols { display: flex; gap: 9mm; flex: 1; padding-bottom: 6mm; }
  .cvcols .side { width: 52mm; flex-shrink: 0; }
  .cvcols .main { flex: 1; min-width: 0; }
  .cvsec { margin-bottom: 4mm; }
  .cvsec h3 { display: flex; align-items: center; gap: 2.2mm; font-size: 9pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: #1d5b63; border-bottom: 0.4mm solid #cfe0e2; padding-bottom: 1.4mm; margin-bottom: 2.8mm; }
  .cvsec h3 svg { width: 4mm; height: 4mm; stroke: #2f7a82; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cvsec p { font-size: 9pt; color: #3c4f5a; }

  .cvitem { position: relative; padding-left: 5mm; padding-bottom: 2.2mm; }
  .cvitem::before { content: ""; position: absolute; left: 0; top: 1.4mm; width: 2.2mm; height: 2.2mm; border-radius: 50%; background: #2f7a82; }
  .cvitem::after { content: ""; position: absolute; left: 0.95mm; top: 4mm; bottom: 0; width: 0.3mm; background: #d3e3e5; }
  .cvitem:last-child::after { display: none; }
  .cvitem .t { font-size: 10pt; font-weight: 700; color: #1c2b34; }
  .cvitem .m { font-size: 8.5pt; font-style: italic; color: #2f7a82; display: flex; justify-content: space-between; gap: 3mm; }
  .cvitem .m b { font-style: normal; font-weight: 600; color: #7c8d97; white-space: nowrap; }
  .cvitem p { font-size: 8.5pt; line-height: 1.33; color: #45575f; margin-top: 0.7mm; }
  .cvitem .kpi { color: #1d5b63; font-weight: 700; }

  .cvskills { display: flex; flex-wrap: wrap; gap: 1.4mm; }
  .cvskills span { font-size: 8pt; border: 0.3mm solid #cfe0e2; border-radius: 1.2mm; padding: 0.7mm 2mm; color: #3c5560; background: #f5fafa; }

  @media print {
    @page { size: A4; margin: 0; }

    :root { color-scheme: light; }
    html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
    body > *:not(#printroot) { display: none !important; }
    #printroot { display: block !important; }
    #printroot { line-height: 0; }
    #printroot .cvpage { transform: none !important; box-shadow: none !important; margin: 0 !important; height: 296.6mm !important; }
  }
