
  :root{
    --bg:#F0F2F5;
    --glass-strong:rgba(255,255,255,0.68);
    --glass-strong-border:rgba(255,255,255,0.6);
    --glass-card:rgba(255,255,255,0.74);
    --glass-card-border:rgba(255,255,255,0.5);
    --text-1:#0E1420;
    --text-2:rgba(14,20,32,0.58);
    --text-3:rgba(14,20,32,0.36);
    --brand-blue:#2E6BF2;
    --brand-blue-dk:#1747B0;
    --brand-teal:#0FBE93;
    --c-costruttore:#2E6BF2;
    --c-impianti:#0FBE93;
    --c-restauro:#7C5CFA;
    --c-noleggio:#5B7DB1;
    --font: -apple-system, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{ font-family:var(--font); background:#20242c; display:flex; justify-content:center; padding:40px 12px; }
  .icon{fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; display:inline-block; flex-shrink:0;}
  .back-icon{ transform:rotate(180deg); transform-origin:center; }

  .frame{
    width:390px; height:844px; border-radius:52px; background:var(--bg);
    position:relative; overflow:hidden;
    box-shadow:0 40px 90px rgba(0,0,0,0.5), 0 0 0 10px #0b0c10, 0 0 0 11px rgba(255,255,255,0.06);
  }

  @media (max-width:520px){
    body{ padding:0 !important; min-height:100dvh; background:var(--bg); }
    .frame{ width:100vw !important; height:100dvh !important; border-radius:0 !important; box-shadow:none !important; }
    .status{ padding-top:calc(12px + env(safe-area-inset-top, 0px)) !important; padding-left:calc(22px + env(safe-area-inset-left, 0px)) !important; padding-right:calc(22px + env(safe-area-inset-right, 0px)) !important; }
    .header{ margin-left:calc(14px + env(safe-area-inset-left, 0px)) !important; margin-right:calc(14px + env(safe-area-inset-right, 0px)) !important; }
    .navbar{ left:calc(14px + env(safe-area-inset-left, 0px)) !important; right:calc(14px + env(safe-area-inset-right, 0px)) !important; bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
    .screen{ padding-bottom:calc(104px + env(safe-area-inset-bottom, 0px)) !important; }
  }

  .scroll{
    position:relative; z-index:1; height:100%; overflow-y:auto; padding-bottom:104px;
    background-color:var(--bg);
  }
  .scroll::-webkit-scrollbar{display:none;}

  .screen{ position:absolute; top:0; left:0; right:0; bottom:0; z-index:1; overflow-y:auto; padding-top:126px; padding-bottom:104px; background-color:var(--bg); }
  .screen::-webkit-scrollbar{display:none;}
  .hidden{ display:none !important; }

  .top-fixed{ position:absolute; top:0; left:0; right:0; z-index:10; }
  .status{display:flex; justify-content:space-between; align-items:center; padding:18px 26px 8px; color:var(--text-1); font-size:15px; font-weight:600;}
  .status .icons{display:flex; gap:6px; align-items:center;}

  .glass-hero{
    background:var(--glass-strong); backdrop-filter:blur(25px) saturate(180%); -webkit-backdrop-filter:blur(25px) saturate(180%);
    border:1px solid var(--glass-strong-border);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 22px rgba(20,30,50,0.08);
  }
  .header{ position:relative; display:flex; align-items:center; justify-content:space-between; padding:10px 14px; margin:0 16px 18px; border-radius:22px; }
  .brand-word-img{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); height:19px; width:auto; display:block; }
  .icon-btn{ width:40px; height:40px; border-radius:13px; background:rgba(255,255,255,0.7); border:1px solid var(--glass-card-border); display:flex; align-items:center; justify-content:center; color:var(--text-1); position:relative; transition:transform 0.15s ease, box-shadow 0.15s ease; }
  .icon-btn:hover{ transform:translateY(-2px); }
  .icon-btn:active{ transform:scale(0.9); }
  .icon-btn.plus{ background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); color:#fff; border:none; box-shadow:0 8px 18px rgba(46,107,242,0.4);}
  .header-right{display:flex; gap:10px;}
  .dot{position:absolute; top:-3px; right:-3px; width:9px; height:9px; border-radius:50%; background:var(--brand-teal); border:2px solid #fff;}
  .badge-count{ position:absolute; top:-6px; right:-6px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:#E24B4A; color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; border:2px solid #fff;}

  .section{margin:0 0 26px;}
  .section-head{display:flex; align-items:center; justify-content:space-between; padding:0 22px; margin-bottom:12px;}
  .section-title{display:flex; align-items:center; gap:8px; color:var(--text-1);}
  .section-title svg{ transition:transform 0.2s ease; }
  .section-title:hover svg{ transform:scale(1.15) rotate(-4deg); }
  .section-title h2{font-size:19px; font-weight:700;}
  .see-all{font-size:13px; color:var(--brand-blue); font-weight:700; display:flex; align-items:center; gap:2px; transition:gap 0.15s ease;}
  .see-all:hover{ gap:5px; }

  .hscroll{display:flex; gap:12px; overflow-x:auto; padding:0 22px 6px; scroll-snap-type:x mandatory;}
  .hscroll::-webkit-scrollbar{display:none;}

  .glass-card{
    background:var(--glass-card); backdrop-filter:blur(10px) saturate(135%); -webkit-backdrop-filter:blur(10px) saturate(135%);
    border:1px solid var(--glass-card-border);
    box-shadow:0 3px 8px rgba(20,30,50,0.05);
  }

  .tag{font-size:10px; font-weight:700; letter-spacing:0.2px; padding:4px 9px; border-radius:8px; display:inline-flex; align-items:center; gap:4px;}
  .tag-costruttore{background:rgba(46,107,242,0.14); color:var(--c-costruttore);}
  .tag-impianti{background:rgba(15,190,147,0.14); color:var(--c-impianti);}
  .tag-restauro{background:rgba(124,92,250,0.14); color:var(--c-restauro);}
  .tag-noleggio{background:rgba(91,125,177,0.16); color:var(--c-noleggio);}

  .card-az{ scroll-snap-align:start; min-width:160px; width:160px; border-radius:20px; overflow:visible; transition:transform 0.18s ease, box-shadow 0.18s ease;}
  .card-az:hover{ transform:translateY(-3px); }
  .card-az .img-wrap{ position:relative; border-radius:20px 20px 0 0; overflow:hidden; }
  .card-az img{width:100%; height:84px; object-fit:cover; display:block;}
  .card-az .body{padding:11px 12px 13px;}
  .card-az .name{font-size:13.5px; font-weight:700; color:var(--text-1); line-height:1.25; margin-bottom:7px;}
  .card-az .tags-row{display:flex; align-items:center; gap:5px; margin-bottom:8px; flex-wrap:wrap;}
  .tag-more{background:rgba(14,20,32,0.08); color:var(--text-2);}
  .meta-row{display:flex; align-items:center; margin-top:0;}
  .meta-row .loc{font-size:10.5px; color:var(--text-2); display:flex; align-items:center; gap:3px;}

  .ann-scroll{display:flex; gap:14px; overflow-x:auto; padding:0 22px 6px; scroll-snap-type:x mandatory;}
  .ann-scroll::-webkit-scrollbar{display:none;}
  .ann-page{scroll-snap-align:start; min-width:294px; width:294px; display:flex; flex-direction:column; gap:10px;}
  .ann-row{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:16px; transition:transform 0.15s ease;}
  .ann-row:hover{ transform:translateX(3px); }
  .ann-ic{width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .ic-blue{background:rgba(46,107,242,0.14); color:var(--brand-blue);}
  .ic-teal{background:rgba(15,190,147,0.14); color:var(--brand-teal);}
  .ic-purple{background:rgba(124,92,250,0.14); color:var(--c-restauro);}
  .ic-slate{background:rgba(91,125,177,0.16); color:var(--c-noleggio);}
  .ann-body{flex:1; min-width:0;}
  .ann-title{font-size:13px; font-weight:700; color:var(--text-1); margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .ann-meta{font-size:11px; color:var(--text-2); display:flex; align-items:center; gap:4px;}

  .card-cant{ scroll-snap-align:start; min-width:172px; width:172px; border-radius:20px; overflow:hidden; transition:transform 0.18s ease;}
  .card-cant:hover{ transform:translateY(-3px); }
  .card-cant img{width:100%; height:88px; object-fit:cover; display:block;}
  .card-cant .body{padding:12px 13px 14px;}
  .card-cant .name{font-size:13.5px; font-weight:700; color:var(--text-1); margin-bottom:7px;}
  .status-pill{font-size:9.5px; font-weight:700; padding:3px 8px; border-radius:7px; display:inline-flex; align-items:center; gap:4px; margin-bottom:9px;}
  .st-corso{background:rgba(46,107,242,0.14); color:var(--brand-blue);}
  .st-completato{background:rgba(15,190,147,0.14); color:var(--brand-teal);}
  .st-ritardo{background:rgba(226,75,74,0.14); color:#C23B3A;}
  .prog-row{display:flex; align-items:center; justify-content:space-between; font-size:10.5px; color:var(--text-2); margin-bottom:5px;}
  .prog-row b{color:var(--text-1); font-weight:700;}
  .prog-track{height:5px; border-radius:4px; background:rgba(20,30,50,0.08); overflow:hidden; margin-bottom:9px;}
  .prog-fill{height:100%; border-radius:4px;}
  .fill-blue{background:var(--brand-blue);} .fill-teal{background:var(--brand-teal);} .fill-red{background:#E24B4A;}
  .card-cant .loc{font-size:10.5px; color:var(--text-2); display:flex; align-items:center; gap:3px;}

  /* Cantieri (full list) screen */
  .cant-tabs{ position:relative; margin:14px 22px 18px; display:flex; padding:4px; border-radius:16px; gap:4px; }
  .cant-tab-slider{ position:absolute; top:4px; bottom:4px; left:4px; border-radius:12px; background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); box-shadow:0 6px 14px rgba(46,107,242,0.35); transition:left 0.3s cubic-bezier(.4,0,.2,1), width 0.3s cubic-bezier(.4,0,.2,1); z-index:0;}
  .cant-tab{ position:relative; z-index:1; flex:1; display:flex; align-items:center; justify-content:center; padding:10px 2px; border-radius:12px; font-size:11.5px; font-weight:700; color:var(--text-2); transition:color 0.2s ease; cursor:pointer; white-space:nowrap;}
  .cant-tab.active{ color:#fff; }
  .cant-list{ padding:0 22px; display:flex; flex-direction:column; gap:16px; }
  .cant-card{ border-radius:22px; overflow:hidden; transition:transform 0.18s ease, opacity 0.18s ease;}
  .cant-card:hover{ transform:translateY(-2px); }
  .cant-card img{ width:100%; height:148px; object-fit:cover; display:block; }
  .cant-card .cant-body{ padding:14px 16px 16px; }
  .cant-name{ font-size:15.5px; font-weight:800; color:var(--text-1); margin:8px 0 7px; line-height:1.25;}
  .cant-meta{ font-size:11.5px; color:var(--text-2); display:flex; align-items:center; gap:5px; margin-bottom:5px;}
  .cant-bottom-row{ display:flex; align-items:center; gap:10px; margin:12px 0 10px; }
  .cant-price-pill{ background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); color:#fff; font-weight:800; padding:7px 14px; border-radius:12px; font-size:12.5px; box-shadow:0 6px 14px rgba(46,107,242,0.3);}
  .cant-percent-pill{ background:rgba(14,20,32,0.06); color:var(--text-1); font-weight:800; padding:7px 14px; border-radius:12px; font-size:12.5px; display:flex; align-items:center; gap:6px;}
  .cant-percent-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0;}
  .dot-blue{background:var(--brand-blue);} .dot-teal{background:var(--brand-teal);} .dot-red{background:#E24B4A;}
  .cant-empty{ margin:10px 22px; padding:26px; border-radius:18px; text-align:center; color:var(--text-3); font-size:12.5px; font-weight:600;}

  /* ARIA AI logo — no background, just the glowing mark */
  .aria-orb{ position:absolute; right:20px; bottom:96px; z-index:6; width:58px; height:58px; }
  .aria-arcs{ animation:ariaSpin 7s linear infinite; transform-origin:50px 50px; }
  .aria-arc-blue{ filter:drop-shadow(0 0 3px rgba(46,107,242,0.9)); }
  .aria-arc-cyan{ filter:drop-shadow(0 0 3px rgba(30,180,230,0.9)); }
  .aria-arc-green{ filter:drop-shadow(0 0 3px rgba(15,190,147,0.9)); }
  .aria-sphere{ animation:ariaPulse 2.4s ease-in-out infinite; transform-origin:50px 50px; }
  .aria-chevron{ filter:drop-shadow(0 0 4px rgba(255,255,255,0.95)); animation:ariaPulse 2.4s ease-in-out infinite; transform-origin:50px 52px; }
  @keyframes ariaSpin{ to{ transform:rotate(360deg); } }
  @keyframes ariaPulse{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.08); opacity:0.88; } }

  .navbar{ position:absolute; left:20px; right:20px; bottom:22px; z-index:5; display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-radius:28px; background:rgba(255,255,255,0.7); backdrop-filter:blur(27px) saturate(180%); -webkit-backdrop-filter:blur(27px) saturate(180%); border:1px solid var(--glass-strong-border); box-shadow:inset 0 1px 0 rgba(255,255,255,0.6), 0 14px 30px rgba(20,30,50,0.13);}
  .nav-item{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--text-3); font-size:9.5px; font-weight:700; width:52px; height:48px; border-radius:16px; transition:transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;}
  .nav-item:active svg{ transform:scale(0.88); }
  .nav-item.active{ color:var(--brand-teal); background:rgba(15,190,147,0.12); box-shadow:0 4px 10px rgba(15,190,147,0.22), inset 0 1px 0 rgba(255,255,255,0.6); }
  .nav-avatar{ width:22px; height:22px; border-radius:50%; object-fit:cover; border:1.5px solid rgba(20,30,50,0.12); }
  .nav-item.active .nav-avatar{ border-color:var(--brand-teal); }
  .nav-logo-btn{ width:44px; height:44px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 16px rgba(46,107,242,0.4); transition:transform 0.15s ease;}
  .nav-logo-img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
  .nav-logo-btn:active{ transform:scale(0.92); }

  /* Cerca screen */
  .search-bar-row{ display:flex; gap:10px; align-items:center; margin:14px 22px 18px; }
  .search-input{ flex:1; display:flex; align-items:center; gap:10px; padding:13px 16px; border-radius:16px; color:var(--text-3); font-size:13.5px; }
  .search-input svg{ color:var(--text-3); flex-shrink:0; }
  .filtri-icon-btn{ width:46px; height:46px; border-radius:16px; display:flex; align-items:center; justify-content:center; color:var(--brand-blue); flex-shrink:0; transition:transform 0.15s ease; cursor:pointer;}
  .filtri-icon-btn:hover{ transform:translateY(-2px); }

  .segmented{ position:relative; margin:0 22px 22px; display:flex; padding:4px; border-radius:16px; gap:4px; }
  .seg-slider{ position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:12px; background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); box-shadow:0 6px 14px rgba(46,107,242,0.35); transition:transform 0.3s cubic-bezier(.4,0,.2,1); z-index:0;}
  .seg-btn{ position:relative; z-index:1; flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:10px; border-radius:12px; font-size:13px; font-weight:700; color:var(--text-2); transition:color 0.2s ease; cursor:pointer;}
  .seg-btn.active{ color:#fff; }

  .sub-h2{ font-size:15px; font-weight:700; color:var(--text-1); padding:0 22px; margin-bottom:10px; }

  .chip-scroll{ display:flex; gap:8px; overflow-x:auto; padding:0 22px 6px; }
  .chip-scroll::-webkit-scrollbar{display:none;}
  .chip{ display:flex; align-items:center; gap:6px; padding:9px 14px; border-radius:14px; font-size:12.5px; font-weight:600; color:var(--text-1); white-space:nowrap; flex-shrink:0; transition:transform 0.15s ease; cursor:pointer;}
  .chip:hover{ transform:translateY(-2px); }

  .recent-card{ scroll-snap-align:start; min-width:138px; width:138px; border-radius:18px; overflow:visible; transition:transform 0.18s ease;}
  .recent-card:hover{ transform:translateY(-3px); }
  .recent-card .img-wrap{ position:relative; border-radius:18px 18px 0 0; overflow:hidden; height:76px;}
  .recent-card img{width:100%; height:100%; object-fit:cover; display:block;}
  .recent-card .logo-badge{ position:absolute; left:9px; bottom:-14px; width:30px; height:30px; border-radius:10px; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 10px rgba(20,30,50,0.18);}
  .recent-card .body{ padding:18px 10px 11px; }
  .recent-card .name{ font-size:12px; font-weight:700; color:var(--text-1); line-height:1.25; margin-bottom:6px; }

  .search-row{ display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:18px; margin:0 22px 10px; transition:transform 0.15s ease;}
  .search-row:hover{ transform:translateX(3px); }
  .search-row .thumb-wrap{ position:relative; flex-shrink:0; }
  .search-row .thumb{ width:52px; height:52px; border-radius:14px; object-fit:cover; display:block;}
  .search-row .logo-badge-sm{ position:absolute; right:-5px; bottom:-5px; width:22px; height:22px; border-radius:8px; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(20,30,50,0.2);}
  .search-row .info{ flex:1; min-width:0; }
  .search-row .name{ font-size:13.5px; font-weight:700; color:var(--text-1); margin-bottom:4px; }
  .search-row .meta2{ display:flex; align-items:center; gap:10px; margin-top:6px; }
  .search-row .meta2 span{ font-size:10.5px; color:var(--text-2); display:flex; align-items:center; gap:3px; }
  .tag-carpenteria{background:rgba(84,110,138,0.16); color:#546E8A;}
  .row-icon{ width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .chip-x{ display:flex; align-items:center; justify-content:center; width:15px; height:15px; border-radius:50%; background:rgba(14,20,32,0.08); color:var(--text-3); margin-left:1px; flex-shrink:0; transition:background 0.15s ease, color 0.15s ease;}
  .chip-x:hover{ background:rgba(14,20,32,0.18); color:var(--text-1); }
  .recent-x{ position:absolute; top:6px; right:6px; width:20px; height:20px; border-radius:50%; background:rgba(10,14,22,0.4); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; color:#fff; z-index:2; transition:background 0.15s ease, transform 0.15s ease;}
  .recent-x:hover{ background:rgba(10,14,22,0.65); transform:scale(1.1); }
  .empty-msg{ margin:0 22px; padding:20px; border-radius:16px; text-align:center; color:var(--text-3); font-size:12.5px; font-weight:600; }

  /* real search field */
  .search-input input{ border:none; background:transparent; outline:none; font-family:var(--font); font-size:13.5px; color:var(--text-1); flex:1; }
  .search-input input::placeholder{ color:var(--text-3); }

  /* fake iOS keyboard */
  .fake-keyboard{ position:absolute; left:0; right:0; bottom:0; z-index:40; background:#D3D7DE; border-top:1px solid rgba(0,0,0,0.1); padding:8px 5px calc(8px + env(safe-area-inset-bottom,0px)); border-radius:14px 14px 0 0; box-shadow:0 -8px 24px rgba(0,0,0,0.18); transform:translateY(100%); transition:transform 0.28s cubic-bezier(.4,0,.2,1); pointer-events:none;}
  .fake-keyboard.visible{ transform:translateY(0); pointer-events:auto; }
  .kb-row{ display:flex; gap:6px; margin-bottom:7px; justify-content:center; }
  .kb-key{ flex:1; height:38px; background:#fff; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:15px; color:var(--text-1); box-shadow:0 1px 0 rgba(0,0,0,0.25); text-transform:lowercase; user-select:none; transition:background 0.1s ease;}
  .kb-key:active{ background:#e8e8e8; }
  .kb-key.kb-wide{ flex:1.6; background:#B4BAC3; color:#1a1a1a; font-size:12px; font-weight:600;}
  .kb-key.kb-space{ flex:5; }
  .kb-key.kb-blue{ flex:1.6; background:var(--brand-blue); color:#fff; font-weight:700; font-size:13px;}

  /* filter sheet */
  .sheet-overlay{ position:absolute; inset:0; z-index:50; background:rgba(10,14,22,0); display:flex; align-items:flex-end; transition:background 0.25s ease; pointer-events:none; }
  .sheet-overlay.visible{ pointer-events:auto; }
  .sheet-overlay.visible{ background:rgba(10,14,22,0.45); }
  .sheet-panel{ width:100%; max-height:80%; background:#fff; border-radius:26px 26px 0 0; box-shadow:0 -20px 50px rgba(0,0,0,0.25); transform:translateY(100%); transition:transform 0.3s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column;}
  .sheet-overlay.visible .sheet-panel{ transform:translateY(0); }
  .sheet-handle{ width:38px; height:5px; border-radius:3px; background:rgba(14,20,32,0.15); margin:10px auto 4px; }
  .sheet-header{ display:flex; align-items:center; justify-content:space-between; padding:8px 20px 12px; border-bottom:1px solid rgba(14,20,32,0.06);}
  .sheet-header h3{ font-size:17px; font-weight:800; color:var(--text-1); }
  .sheet-close{ width:30px; height:30px; border-radius:50%; background:rgba(14,20,32,0.06); display:flex; align-items:center; justify-content:center; color:var(--text-2); }
  .sheet-body{ overflow-y:auto; padding:16px 20px 8px; }
  .filter-group{ margin-bottom:22px; }
  .filter-label{ font-size:13px; font-weight:700; color:var(--text-1); margin-bottom:10px; }
  .filter-search{ display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:13px; margin-bottom:10px; color:var(--text-3); font-size:12.5px;}
  .filter-search input{ border:none; background:transparent; outline:none; font-family:var(--font); font-size:12.5px; color:var(--text-1); flex:1;}
  .cat-grid{ display:flex; flex-wrap:wrap; gap:8px; }
  .cat-chip{ padding:8px 13px; border-radius:12px; font-size:12px; font-weight:600; color:var(--text-1); background:rgba(14,20,32,0.05); border:1.5px solid transparent; cursor:pointer; transition:all 0.15s ease;}
  .cat-chip.selected{ background:rgba(46,107,242,0.12); color:var(--brand-blue); border-color:var(--brand-blue); }
  .cat-chip:hover{ background:rgba(46,107,242,0.08); }
  .cat-dropdown-wrap{ position:relative; }
  .cat-dropdown{ position:absolute; top:calc(100% + 6px); left:0; right:0; background:#fff; border:1px solid rgba(14,20,32,0.08); border-radius:16px; box-shadow:0 14px 30px rgba(20,30,50,0.16); max-height:0; overflow:hidden; opacity:0; transition:max-height 0.22s ease, opacity 0.18s ease; z-index:6; padding:0 6px;}
  .cat-dropdown.open{ max-height:230px; opacity:1; overflow-y:auto; padding:6px; }
  .cat-dropdown .cat-chip{ width:100%; margin-bottom:4px; text-align:left; }
  .cat-count-badge{ font-size:11px; font-weight:700; color:var(--brand-blue); margin-left:4px; }
  .range-row{ display:flex; align-items:center; gap:8px; }
  .range-input{ flex:1 1 0; min-width:0; width:100%; box-sizing:border-box; padding:11px 10px; border-radius:13px; border:1px solid rgba(14,20,32,0.08); font-family:var(--font); font-size:13px; color:var(--text-1); outline:none; background:#F7F8FA;}
  .range-row span{ color:var(--text-3); font-size:13px; flex-shrink:0; }
  .rating-options{ display:flex; gap:8px; justify-content:space-between; }
  .rating-opt{ flex:1; padding:12px 2px; border-radius:16px; background:linear-gradient(135deg,rgba(245,166,35,0.05),rgba(245,166,35,0.11)); border:1.5px solid rgba(245,166,35,0.22); text-align:center; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:5px; transition:all 0.2s cubic-bezier(.4,0,.2,1);}
  .rating-opt svg{ color:#F5A623; transition:transform 0.2s ease;}
  .rating-opt:hover{ transform:translateY(-3px); }
  .rating-opt.selected{ background:linear-gradient(135deg,#F5A623,#E08E00); border-color:#E08E00; box-shadow:0 8px 18px rgba(245,166,35,0.4);}
  .rating-opt.selected svg{ color:#fff; transform:scale(1.15);}
  .rating-num{ font-size:10.5px; font-weight:800; color:#C67D00; }
  .rating-opt.selected .rating-num{ color:#fff; }
  .reset-link{ font-size:13px; font-weight:800; color:#E24B4A; cursor:pointer; }
  .filter-input{ width:100%; padding:12px 14px; border-radius:13px; border:1px solid rgba(14,20,32,0.08); font-family:var(--font); font-size:13px; color:var(--text-1); outline:none; background:#F7F8FA; box-sizing:border-box;}
  .sheet-footer{ display:flex; align-items:center; gap:14px; padding:14px 20px calc(18px + env(safe-area-inset-bottom,0px)); border-top:1px solid rgba(14,20,32,0.06); }
  .apply-btn{ flex:1; text-align:center; padding:13px; border-radius:15px; background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); color:#fff; font-weight:700; font-size:14px; box-shadow:0 10px 22px rgba(46,107,242,0.35); cursor:pointer;}

  /* results view */
  .results-count{ padding:0 22px 14px; font-size:12.5px; color:var(--text-2); font-weight:600; }
  .results-count b{ color:var(--text-1); }
  .back-to-cerca{ display:flex; align-items:center; gap:5px; padding:0 22px 12px; font-size:12.5px; color:var(--brand-blue); font-weight:700; cursor:pointer; }
  .card-result{ margin:0 22px 16px; border-radius:24px; overflow:hidden; transition:transform 0.18s ease;}
  .card-result:hover{ transform:translateY(-2px); }
  .card-result .cr-img{ width:100%; height:140px; object-fit:cover; display:block; }
  .card-result .cr-top{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px 0; }
  .cr-compare{ display:flex; align-items:center; gap:5px; padding:7px 12px; border-radius:12px; border:1.5px solid rgba(46,107,242,0.35); color:var(--brand-blue); font-size:11.5px; font-weight:700; cursor:pointer; transition:all 0.15s ease;}
  .cr-compare.active{ background:var(--brand-teal); border-color:var(--brand-teal); color:#fff; }
  .card-result .cr-body{ padding:10px 16px 16px; }
  .cr-name{ font-size:16px; font-weight:800; color:var(--text-1); margin-bottom:6px; }
  .cr-addr{ font-size:12px; color:var(--text-2); display:flex; align-items:center; gap:4px; margin-bottom:10px; }
  .cr-stats{ display:flex; align-items:center; gap:16px; margin-bottom:10px; }
  .cr-stat{ font-size:11.5px; color:var(--text-2); display:flex; align-items:center; gap:5px; font-weight:600;}
  .cr-stat b{ color:var(--text-1); }
  .cr-rating{ display:flex; align-items:center; gap:4px; margin-bottom:14px; }
  .cr-rating .stars{ display:flex; gap:1px; }
  .cr-rating .stars svg{ color:#F5A623; }
  .cr-rating .stars svg.empty{ color:rgba(14,20,32,0.15); }
  .cr-rating .rcount{ font-size:11.5px; color:var(--text-2); margin-left:4px; }
  .cr-rating .norev{ font-size:11.5px; color:var(--text-3); font-style:italic; }
  .cr-open{ display:block; text-align:center; padding:12px; border-radius:14px; background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); color:#fff; font-weight:700; font-size:13.5px; box-shadow:0 8px 18px rgba(46,107,242,0.3); }
  .cr-desc{ font-size:12px; color:var(--text-2); line-height:1.5; margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .cr-by{ font-size:11.5px; color:var(--text-2); margin-bottom:14px; }
  .cr-by b{ color:var(--text-1); font-weight:700; }

  /* compare floating bar */
  .aria-orb{ transition:opacity 0.2s ease; }
  .aria-orb.dimmed{ opacity:0; pointer-events:none; }
  .compare-bar{ position:absolute; left:20px; right:20px; bottom:96px; z-index:45; transform:translateY(16px); opacity:0; pointer-events:none; transition:all 0.25s cubic-bezier(.4,0,.2,1);}
  .compare-bar.visible{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .compare-bar-inner{ display:flex; align-items:center; justify-content:center; gap:8px; padding:15px 18px; border-radius:20px; background:linear-gradient(135deg,#0FBE93,#0A9A76); color:#fff; font-weight:800; font-size:13.5px; box-shadow:0 14px 30px rgba(15,190,147,0.45); cursor:pointer; transition:transform 0.15s ease;}
  .compare-bar-inner:active{ transform:scale(0.97); }
  .compare-bar-inner b{ font-weight:900; }

  /* Cantiere Detail screen (cd-) */
  .cd-topbar{ display:flex; align-items:center; gap:12px; padding:0 22px 14px; }
  .cd-back-btn{ width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--text-1); background:rgba(14,20,32,0.06); flex-shrink:0; transition:transform 0.15s ease; cursor:pointer;}
  .cd-back-btn:active{ transform:scale(0.9); }
  .cd-topbar-title{ flex:1; font-size:16px; font-weight:800; color:var(--text-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .cd-menu-btn{ width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--text-2); flex-shrink:0;}

  .cd-pill-row{ display:flex; gap:10px; padding:0 22px 18px; position:relative; z-index:5;}
  .cd-pill-wrap{ position:relative; flex:1; min-width:0;}
  .cd-pill{ display:flex; align-items:center; justify-content:space-between; gap:6px; padding:11px 13px; border-radius:14px; font-size:12px; font-weight:700; color:var(--text-1); cursor:pointer; min-width:0;}
  .cd-pill span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .cd-pill svg{ flex-shrink:0; color:var(--text-3); transition:transform 0.2s ease;}
  .cd-pill.open svg{ transform:rotate(180deg); }
  .cd-dropdown{ position:absolute; left:0; right:0; top:calc(100% + 6px); background:#fff; border-radius:16px; box-shadow:0 14px 30px rgba(20,30,50,0.2); border:1px solid rgba(14,20,32,0.06); max-height:0; overflow:hidden; opacity:0; transition:max-height 0.22s ease, opacity 0.18s ease; z-index:30;}
  .cd-dropdown.open{ max-height:340px; overflow-y:auto; opacity:1;}
  .cd-dropdown-item{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:13px 15px; font-size:12.5px; font-weight:600; color:var(--text-1); border-bottom:1px solid rgba(14,20,32,0.05); cursor:pointer;}
  .cd-dropdown-item:last-child{ border-bottom:none; }
  .cd-dropdown-item.active{ color:var(--brand-blue); background:rgba(46,107,242,0.07); font-weight:800;}
  .cd-dropdown-item svg{ flex-shrink:0; color:var(--brand-blue);}

  .cd-hero{ position:relative; margin:0 22px 18px; border-radius:22px; overflow:hidden;}
  .cd-hero img{ width:100%; height:220px; object-fit:cover; display:block;}
  .cd-hero-overlay{ position:absolute; left:0; right:0; bottom:0; padding:14px; background:linear-gradient(to top, rgba(10,14,22,0.6), rgba(10,14,22,0));}
  .cd-hero-badges{ display:flex; gap:8px; margin-bottom:10px;}
  .cd-badge-white{ background:rgba(255,255,255,0.95); color:var(--text-1); font-size:11px; font-weight:800; padding:6px 11px; border-radius:20px; display:flex; align-items:center; gap:5px;}
  .cd-badge-orange{ background:rgba(245,166,35,0.96); color:#fff; font-size:11px; font-weight:800; padding:6px 12px; border-radius:20px;}
  .cd-hero-budget-row{ display:flex; gap:8px;}
  .cd-hero-budget{ flex:1; border-radius:14px; padding:10px 12px;}
  .cd-hero-budget.blue{ background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk));}
  .cd-hero-budget.red{ background:linear-gradient(135deg,#E24B4A,#C23B3A);}
  .cd-hero-budget-label{ color:rgba(255,255,255,0.85); font-size:10px; font-weight:700; margin-bottom:2px;}
  .cd-hero-budget-value{ color:#fff; font-size:14.5px; font-weight:800;}

  .cd-title{ font-size:19px; font-weight:800; color:var(--text-1); padding:0 22px; margin-bottom:6px; line-height:1.25;}
  .cd-address{ font-size:12.5px; color:var(--text-2); padding:0 22px; display:flex; align-items:center; gap:5px; margin-bottom:14px;}
  .cd-tags-row{ display:flex; gap:6px; padding:0 22px; margin-bottom:20px; flex-wrap:wrap;}
  .cd-tag{ font-size:11px; font-weight:700; padding:6px 11px; border-radius:9px; background:rgba(46,107,242,0.1); color:var(--brand-blue);}
  .cd-tag.teal{ background:rgba(15,190,147,0.12); color:var(--brand-teal);}
  .cd-tag.purple{ background:rgba(124,92,250,0.12); color:var(--c-restauro);}

  .cd-section-label{ font-size:11.5px; font-weight:800; letter-spacing:0.4px; color:var(--text-2); text-transform:uppercase; padding:0 22px; margin-bottom:10px;}
  .cd-weather-grid{ display:flex; gap:12px; padding:0 22px; margin-bottom:22px;}
  .cd-weather-card{ flex:1; border-radius:18px; padding:16px 10px; text-align:center;}
  .cd-weather-emoji{ font-size:26px; display:block; margin-bottom:8px;}
  .cd-weather-date{ font-size:11.5px; color:var(--text-2); font-weight:700; margin-bottom:4px;}
  .cd-weather-temp{ font-size:14px; font-weight:800; color:var(--text-1); margin-bottom:3px;}
  .cd-weather-wind{ font-size:10.5px; color:var(--text-3);}

  .cd-team-row{ display:flex; align-items:center; gap:10px; padding:0 22px; margin-bottom:22px;}
  .cd-avatar-stack{ display:flex;}
  .cd-avatar-init{ width:32px; height:32px; border-radius:50%; border:2px solid #fff; margin-left:-10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; font-weight:800; flex-shrink:0;}
  .cd-avatar-init:first-child{ margin-left:0;}
  .cd-team-label{ font-size:12.5px; font-weight:700; color:var(--text-1);}

  .cd-progress-card{ margin:0 22px 18px; padding:16px; border-radius:18px;}
  .cd-progress-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
  .cd-progress-head b{ font-size:13px; color:var(--text-1); font-weight:800;}
  .cd-progress-head span{ font-size:11.5px; color:var(--text-2); font-weight:700;}

  .cd-desc-card{ margin:0 22px 20px; padding:16px; border-radius:18px;}
  .cd-desc-title{ font-size:13px; font-weight:800; color:var(--text-1); margin-bottom:8px;}
  .cd-desc-text{ font-size:12.5px; color:var(--text-2); line-height:1.6;}
  .cd-desc-text.clamp{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;}
  .cd-read-more{ font-size:12px; font-weight:700; color:var(--brand-blue); margin-top:8px; cursor:pointer;}

  .cd-link-row{ display:flex; align-items:center; justify-content:space-between; padding:0 22px; margin-bottom:12px;}
  .cd-link-row h2{ font-size:15px; font-weight:800; color:var(--text-1);}
  .cd-link{ font-size:12.5px; font-weight:700; color:var(--brand-blue); cursor:pointer;}

  .cd-fase-row{ display:flex; align-items:center; gap:12px; margin:0 22px 10px; padding:13px 14px; border-radius:16px; border-left:4px solid var(--brand-teal); background:rgba(15,190,147,0.07);}
  .cd-fase-row.late{ border-left-color:#E24B4A; background:rgba(226,75,74,0.07);}
  .cd-fase-icon{ width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--brand-teal); color:#fff;}
  .cd-fase-row.late .cd-fase-icon{ background:#E24B4A;}
  .cd-fase-body{ flex:1; min-width:0;}
  .cd-fase-name{ font-size:12.5px; font-weight:800; color:var(--text-1); margin-bottom:2px;}
  .cd-fase-sub{ font-size:10.5px; color:var(--brand-teal); font-weight:700;}
  .cd-fase-row.late .cd-fase-sub{ color:#C23B3A;}
  .cd-fase-dates{ font-size:10px; color:var(--text-3); margin-top:2px;}
  .cd-fase-cost{ font-size:12px; font-weight:800; color:var(--text-1); flex-shrink:0; text-align:right;}
  .cd-fase-tags{ display:flex; gap:4px; margin-top:6px; flex-wrap:wrap;}
  .cd-fase-tag{ font-size:9.5px; font-weight:700; padding:3px 7px; border-radius:6px; background:rgba(46,107,242,0.1); color:var(--brand-blue);}

  .cd-spese-card{ margin:0 22px 20px; padding:6px 16px 16px; border-radius:18px;}
  .cd-spese-row{ display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid rgba(14,20,32,0.06);}
  .cd-spese-row:last-of-type{ border-bottom:none;}
  .cd-spese-icon{ width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .cd-spese-info{ flex:1; min-width:0;}
  .cd-spese-info b{ font-size:12.5px; color:var(--text-1); font-weight:800; display:block;}
  .cd-spese-info span{ font-size:10.5px; color:var(--text-2);}
  .cd-spese-value{ font-size:13px; font-weight:800; color:var(--text-1); flex-shrink:0;}
  .cd-penali-box{ margin-top:6px; padding:12px; border-radius:14px; background:rgba(226,75,74,0.09);}
  .cd-penali-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:5px;}
  .cd-penali-head b{ font-size:12px; color:var(--text-1); font-weight:800;}
  .cd-penali-head span{ font-size:13px; font-weight:800; color:#C23B3A;}
  .cd-penali-note{ font-size:10px; color:var(--text-2); line-height:1.4;}

  .cd-btn-blue{ display:block; text-align:center; margin:16px 22px 22px; padding:13px; border-radius:15px; background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); color:#fff; font-weight:700; font-size:13.5px; box-shadow:0 8px 18px rgba(46,107,242,0.3); cursor:pointer;}
  .cd-btn-outline{ display:flex; align-items:center; justify-content:center; gap:7px; margin:0 22px 18px; padding:12px; border-radius:15px; background:rgba(46,107,242,0.08); color:var(--brand-blue); font-weight:700; font-size:13px; cursor:pointer;}

  .chip.active{ background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk)); color:#fff;}

  .cd-budget-pill-row{ display:flex; gap:10px; padding:0 22px; margin-bottom:22px;}
  .cd-expense-row{ display:flex; align-items:center; justify-content:space-between; margin:0 22px 10px; padding:13px 14px; border-radius:16px;}
  .cd-expense-row b{ font-size:12.5px; font-weight:800; color:var(--text-1); display:block; margin-bottom:2px;}
  .cd-expense-row span{ font-size:11px; color:var(--text-2);}

  .cd-collab-row{ display:flex; align-items:flex-start; gap:12px; margin:0 22px 12px; padding:14px; border-radius:18px;}
  .cd-collab-avatar{ width:44px; height:44px; border-radius:50%; background:rgba(46,107,242,0.12); color:var(--brand-blue); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-weight:800; font-size:14px;}
  .cd-collab-info{ flex:1; min-width:0;}
  .cd-collab-info b{ font-size:13px; font-weight:800; color:var(--text-1); display:block;}
  .cd-collab-info span{ font-size:11px; color:var(--text-2);}
  .cd-collab-role{ font-size:10.5px; font-weight:700; color:var(--brand-blue); background:rgba(46,107,242,0.1); padding:4px 9px; border-radius:8px; margin-top:6px; display:inline-block;}
  .cd-perm-row{ display:flex; gap:4px; margin-top:8px; flex-wrap:wrap;}
  .cd-perm-chip{ width:20px; height:20px; border-radius:6px; background:rgba(14,20,32,0.06); color:var(--text-2); font-size:9.5px; font-weight:800; display:flex; align-items:center; justify-content:center;}

  .cd-folder-scroll{ display:flex; gap:12px; overflow-x:auto; padding:0 22px 6px; margin-bottom:20px;}
  .cd-folder-scroll::-webkit-scrollbar{display:none;}
  .cd-folder-card{ min-width:118px; width:118px; border-radius:16px; padding:16px 10px; text-align:center; flex-shrink:0;}
  .cd-folder-card svg{ color:var(--brand-blue); margin-bottom:8px;}
  .cd-folder-name{ font-size:11px; font-weight:700; color:var(--text-1); line-height:1.3; margin-bottom:3px;}
  .cd-folder-date{ font-size:10px; color:var(--text-3);}
  .cd-file-row{ display:flex; align-items:center; gap:12px; margin:0 22px 10px; padding:12px 14px; border-radius:16px;}
  .cd-file-icon{ width:38px; height:38px; border-radius:11px; background:rgba(14,20,32,0.05); color:var(--text-2); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .cd-file-info{ flex:1; min-width:0;}
  .cd-file-info b{ font-size:12px; font-weight:700; color:var(--text-1); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .cd-file-info span{ font-size:10.5px; color:var(--text-2);}
  .cd-file-action{ font-size:11px; font-weight:700; color:var(--brand-blue); flex-shrink:0;}

  .cd-eco-hero{ margin:0 22px 16px; padding:16px; border-radius:18px; background:rgba(15,190,147,0.1); border:1px solid rgba(15,190,147,0.25);}
  .cd-eco-hero b{ font-size:13px; font-weight:800; color:var(--brand-teal); display:block; margin-bottom:6px;}
  .cd-eco-hero p{ font-size:12px; color:var(--text-2); line-height:1.5;}
  .cd-eco-row{ display:flex; align-items:center; gap:12px; margin:0 22px 10px; padding:14px; border-radius:16px;}
  .cd-eco-emoji{ font-size:22px; width:40px; text-align:center; flex-shrink:0;}
  .cd-eco-row span{ font-size:11.5px; color:var(--text-2); display:block; margin-bottom:2px;}
  .cd-eco-row b{ font-size:14px; font-weight:800; color:var(--text-1);}
  .cd-btn-green{ display:flex; align-items:center; justify-content:center; gap:8px; margin:16px 22px 22px; padding:13px; border-radius:15px; background:linear-gradient(135deg,var(--brand-teal),#0a9c78); color:#fff; font-weight:700; font-size:13.5px; box-shadow:0 8px 18px rgba(15,190,147,0.3); cursor:pointer;}

  .cd-op-row{ display:flex; align-items:center; gap:12px; margin:0 22px 10px; padding:13px 14px; border-radius:16px;}
  .cd-op-avatar{ width:38px; height:38px; border-radius:50%; background:rgba(14,20,32,0.08); color:var(--text-2); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-weight:800; font-size:12.5px;}
  .cd-op-info{ flex:1; min-width:0;}
  .cd-op-info b{ font-size:12.5px; font-weight:800; color:var(--text-1); display:block;}
  .cd-op-info span{ font-size:10.5px; color:var(--text-2);}
  .cd-op-status{ font-size:10.5px; font-weight:800; padding:5px 10px; border-radius:9px; flex-shrink:0;}
  .cd-op-status.absent{ background:rgba(226,75,74,0.12); color:#C23B3A;}
  .cd-op-status.present{ background:rgba(15,190,147,0.12); color:var(--brand-teal);}

  .cd-section{ display:block;}
  .cd-section.hidden{ display:none;}


  /* Fase / Presenza detail sheets */
  .cd-weather-scroll{ display:flex; gap:10px; overflow-x:auto; padding:0 22px 6px; margin-bottom:22px;}
  .cd-weather-scroll::-webkit-scrollbar{display:none;}
  .cd-weather-day{ min-width:74px; width:74px; flex-shrink:0; border-radius:16px; padding:12px 6px; text-align:center;}
  .cd-weather-day .cd-weather-emoji{ font-size:20px; display:block; margin-bottom:6px;}
  .cd-weather-day .cd-weather-date{ font-size:10px; color:var(--text-2); font-weight:700; margin-bottom:3px;}
  .cd-weather-day .cd-weather-temp{ font-size:12.5px; font-weight:800; color:var(--text-1); margin-bottom:2px;}
  .cd-weather-day .cd-weather-wind{ font-size:9px; color:var(--text-3);}
  .st-inprogress{ background:rgba(245,166,35,0.16); color:#C67D00;}

  .fd-title{ font-size:18px; font-weight:800; color:var(--text-1); margin-bottom:8px;}
  .fd-field{ display:flex; align-items:center; gap:7px; font-size:12px; font-weight:800; color:var(--text-1); margin:18px 0 8px;}
  .fd-field svg{ color:var(--text-2);}
  .fd-box{ background:#F5F6F8; border-radius:12px; padding:12px 14px; font-size:12.5px; color:var(--text-1); line-height:1.5;}
  .fd-cost{ font-size:18px; font-weight:800;}
  .fd-date-row{ display:flex; gap:10px;}
  .fd-date-box{ flex:1; background:#F5F6F8; border-radius:12px; padding:12px 14px;}
  .fd-date-box span{ font-size:10.5px; color:var(--text-2); display:block; margin-bottom:4px;}
  .fd-date-box b{ font-size:12px; color:var(--text-1); font-weight:800;}
  .fd-warning-box{ display:flex; gap:10px; align-items:flex-start; margin-top:14px; padding:12px 14px; border-radius:12px; background:rgba(226,75,74,0.08); border:1px solid rgba(226,75,74,0.25);}
  .fd-warning-box svg{ color:#C23B3A; flex-shrink:0; margin-top:1px;}
  .fd-warning-box b{ font-size:12px; color:#C23B3A; display:block; margin-bottom:2px;}
  .fd-warning-box span{ font-size:11px; color:#C23B3A;}
  .fd-person-row{ display:flex; align-items:center; gap:10px; background:#F5F6F8; border-radius:12px; padding:10px 12px;}
  .fd-person-row b{ font-size:12.5px; color:var(--text-1); font-weight:800; display:block;}
  .fd-person-row span{ font-size:11px; color:var(--text-2);}
  .sheet-footer-row{ display:flex; gap:10px; width:100%;}
  .sheet-btn-green{ flex:1; text-align:center; padding:13px; border-radius:15px; background:linear-gradient(135deg,var(--brand-teal),#0a9c78); color:#fff; font-weight:700; font-size:13px; cursor:pointer;}
  .sheet-btn-gray{ flex:1; text-align:center; padding:13px; border-radius:15px; background:rgba(14,20,32,0.06); color:var(--text-1); font-weight:700; font-size:13px; cursor:pointer;}

  .pd-avatar{ width:76px; height:76px; border-radius:50%; margin:6px auto 12px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:22px; background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dk));}
  .pd-name{ font-size:17px; font-weight:800; color:var(--text-1); text-align:center;}
  .pd-role{ font-size:12.5px; font-weight:700; color:var(--brand-blue); text-align:center; margin-bottom:18px;}
  .pd-hours-card{ background:rgba(15,190,147,0.09); border-radius:16px; padding:16px; text-align:center; margin-bottom:16px;}
  .pd-hours-card span{ font-size:11.5px; color:var(--text-2); display:block; margin-bottom:4px;}
  .pd-hours-card b{ font-size:22px; font-weight:800; color:var(--text-1);}
  .pd-actions-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px;}
  .pd-action-btn{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 8px; border-radius:15px; font-size:12px; font-weight:700; cursor:pointer;}
  .pd-action-btn.green{ background:rgba(15,190,147,0.1); color:var(--brand-teal); border:1px solid rgba(15,190,147,0.3);}
  .pd-action-btn.disabled{ background:rgba(14,20,32,0.04); color:var(--text-3); border:1px solid rgba(14,20,32,0.06); cursor:default;}
  .pd-badge-card{ background:#F5F6F8; border-radius:16px; padding:14px;}
  .pd-badge-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
  .pd-badge-head b{ font-size:12.5px; font-weight:800; color:var(--text-1);}
  .pd-verified{ font-size:10.5px; font-weight:800; color:var(--brand-teal);}
  .pd-badge-body{ display:flex; align-items:center; gap:10px;}
  .pd-badge-avatar{ width:40px; height:40px; border-radius:11px; background:var(--brand-blue); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; flex-shrink:0;}
  .pd-badge-info{ flex:1; min-width:0;}
  .pd-badge-info b{ font-size:12px; font-weight:800; color:var(--text-1); display:block;}
  .pd-badge-info span{ font-size:10px; color:var(--text-2);}
  .pd-qr{ width:56px; height:56px; border-radius:8px; background:repeating-conic-gradient(#0E1420 0% 25%, #fff 0% 50%) 0 0/7px 7px; position:relative; flex-shrink:0; border:1px solid rgba(14,20,32,0.1);}
  .pd-qr::before, .pd-qr::after{ content:''; position:absolute; width:13px; height:13px; border:2.5px solid #0E1420; background:#fff;}
  .pd-qr::before{ top:3px; left:3px;}
  .pd-qr::after{ bottom:3px; right:3px;}


  /* Profilo screen */
  .pr-hero{ display:flex; flex-direction:column; align-items:center; padding:10px 22px 26px; text-align:center;}
  .pr-avatar{ width:88px; height:88px; border-radius:50%; object-fit:cover; border:3px solid #fff; box-shadow:0 8px 20px rgba(20,30,50,0.15); margin-bottom:14px;}
  .pr-name{ font-size:18px; font-weight:800; color:var(--text-1); margin-bottom:4px;}
  .pr-id{ font-size:11.5px; font-weight:700; color:var(--text-3);}
  .pr-list{ padding:0 22px; display:flex; flex-direction:column; gap:12px;}
  .pr-row{ display:flex; align-items:center; gap:13px; padding:15px 16px; border-radius:18px; cursor:pointer; transition:transform 0.15s ease;}
  .pr-row:active{ transform:scale(0.98);}
  .pr-row-icon{ width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:rgba(46,107,242,0.12); color:var(--brand-blue);}
  .pr-row-icon.red{ background:rgba(226,75,74,0.12); color:#C23B3A;}
  .pr-row-label{ flex:1; font-size:13.5px; font-weight:700; color:var(--text-1);}
  .pr-row.danger .pr-row-label{ color:#C23B3A;}
  .pr-row-chevron{ color:var(--text-3); flex-shrink:0;}

  .info-topbar{ display:flex; align-items:center; gap:12px; padding:0 22px 16px; }
  .info-back-btn{ width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--text-1); background:rgba(14,20,32,0.06); flex-shrink:0; transition:transform 0.15s ease; cursor:pointer; }
  .info-back-btn:active{ transform:scale(0.9); }
  .info-titlebar{ font-size:21px; font-weight:800; color:var(--text-1); }
  .info-card{ margin:0 22px 14px; padding:16px; border-radius:20px; }
  .info-company{ display:flex; align-items:center; gap:13px; }
  .info-logo{ width:50px; height:50px; border-radius:16px; background:rgba(46,107,242,0.12); color:var(--brand-blue); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .info-name{ font-size:17px; font-weight:800; color:var(--text-1); }
  .info-sub{ font-size:11.5px; font-weight:650; color:var(--text-2); margin-top:2px; }
  .info-section-title{ display:flex; align-items:center; gap:8px; font-size:14.5px; font-weight:800; color:var(--text-1); margin-bottom:10px; }
  .info-section-title svg{ color:var(--brand-blue); }
  .info-text{ font-size:13.5px; line-height:1.62; color:var(--text-2); }
  .info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .info-stat{ border-radius:16px; background:rgba(255,255,255,0.52); border:1px solid rgba(255,255,255,0.45); padding:12px; }
  .info-stat-label{ font-size:10.5px; font-weight:800; color:var(--text-3); text-transform:uppercase; letter-spacing:0.45px; margin-bottom:4px; }
  .info-stat-value{ font-size:13px; font-weight:800; color:var(--text-1); line-height:1.3; }
  .info-tags{ display:flex; flex-wrap:wrap; gap:7px; }


html,body{height:100%;min-height:0;margin:0;overflow:hidden;background:#f0f2f5;padding:0;display:block}*{box-sizing:border-box}.frame{width:100%;height:100%;max-height:none;min-height:0;border-radius:0;box-shadow:none;margin:0;overflow:hidden;background:#f0f2f5}.demo-header{position:absolute;inset:12px 12px auto;height:56px;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-radius:22px}.demo-header img{width:115px;height:28px;object-fit:contain}.demo-header span{font-size:11px;color:#566678}.demo-stage{position:absolute;top:80px;left:16px;right:16px;bottom:55px;overflow:hidden}.demo-stage[hidden]{display:none}.demo-title{font-size:20px;font-weight:800;letter-spacing:-.5px;margin:0 0 4px;color:#0e1420}.demo-sub{color:#788495;font-size:12px;margin:0 0 16px}.demo-footer{position:absolute;bottom:10px;left:20px;right:20px;height:38px;border-radius:20px;display:flex;justify-content:space-around;align-items:center;color:#2e6bf2}.demo-footer svg{width:19px;height:19px}.demo-stage .glass-card{margin-bottom:12px}.cd-progress-card{padding:18px}.demo-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.demo-metrics .glass-card{padding:13px 9px;border-radius:16px}.demo-metrics small{display:block;font-size:10px;color:#798394;line-height:1.4}.demo-metrics strong{display:block;font-size:25px;margin-top:8px}.cd-op-row{padding:13px;display:flex;align-items:center;gap:12px}.cd-op-avatar img{width:40px;height:40px;border-radius:50%}.cd-op-info{flex:1;min-width:0}.cd-op-info b{font-size:13px;display:block}.cd-op-info span{font-size:10px;color:#85919d;display:block}.cd-op-status{font-size:10px;color:#078459;background:#e1f7eb;padding:5px 7px;border-radius:7px}.demo-confirm{padding:12px;font-size:12px;color:#078459;background:#e5f7ec;border-radius:13px}.demo-bubble{padding:17px;border-radius:20px;background:#fff;max-width:93%;margin-top:14px;font-size:14px;line-height:1.6}.demo-bubble.out{background:#e0edff;margin-left:auto}.demo-bubble small{display:block;color:#647997;font-size:11px}.demo-type:after{content:'▏';color:#2e6bf2;animation:caret 1s step-end infinite}@keyframes caret{50%{opacity:0}}.demo-stage{animation:state-in .3s ease}@keyframes state-in{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}.demo-static *{animation:none!important}.cd-hero-budget{padding:14px;border-radius:17px}.cd-hero-budget-label{font-size:11px}.cd-hero-budget-value{font-size:23px}.cd-expense-row{padding:13px;display:flex;justify-content:space-between;font-size:13px}.cd-expense-row span{display:block;font-size:11px;color:#8190a0;margin-top:4px}.prog-track{height:7px;border-radius:7px;background:#dce6f4;overflow:hidden;margin-top:16px}.prog-fill{height:100%;background:#2e6bf2;border-radius:7px}.cd-progress-head{display:flex;justify-content:space-between;font-size:13px}.cd-budget-pill-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.cd-hero-budget.blue{color:#fff;background:#2e6bf2}.cd-hero-budget.red{color:#fff;background:#e75a55}
