:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#17253b;background:#f5f7fc;font-size:16px;--ink:#193a65;--accent:#087b80;--line:#dbe3ef}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px 15px;background:#fff;color:var(--ink);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-weight:600;gap:8px}button:hover,.button:hover{border-color:var(--ink)}button:disabled{opacity:.6;cursor:wait}.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.quiet{border:0;background:transparent}input,select,textarea{width:100%;border:1px solid #bac8dc;background:#fff;color:#17253b;border-radius:10px;padding:11px;min-height:44px;max-width:100%}textarea{resize:vertical}label{display:block;font-size:.9rem;font-weight:600;margin:12px 0}label input,label select,label textarea{margin-top:6px}h1{font-size:1.85rem;margin:0}h2{font-size:1.25rem;margin:24px 0 12px}p{line-height:1.5;overflow-wrap:anywhere}a{color:#125b96}.muted{color:#52627a;font-size:.9rem}main{max-width:1150px;padding:0 24px 48px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:1.5rem}.heading{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:30px}.heading p{margin:6px 0 0}.notice{padding:14px 18px;background:#e7eef9;border-left:4px solid var(--ink);border-radius:8px;margin:20px 0;font-size:.9rem;line-height:1.6}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px}.stat b{font-size:1.5rem;display:block;color:var(--ink)}.stat span{font-size:.85rem;color:#52627a}.tabs{display:flex;overflow-x:auto;gap:5px;margin:24px 0 18px;border-bottom:1px solid var(--line);padding-bottom:10px}.tabs button{border:0;background:transparent;white-space:nowrap}.tabs button[aria-current]{background:var(--ink);color:#fff}.toolbar{display:flex;gap:16px;align-items:end}.toolbar .search{flex:1;margin:0}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.filters label{margin:10px 0 0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{padding:20px;border-radius:17px;background:#fff;border:1px solid var(--line);min-width:0}.cardtop{display:flex;justify-content:space-between;gap:10px;align-items:center}.card h2{margin:0;font-size:1.2rem}.score{font-size:1.4rem;font-weight:750;color:var(--ink);white-space:nowrap}.badge{display:inline-block;border-radius:6px;padding:5px 8px;background:#edf2fa;font-size:.85rem;margin:10px 4px 0 0}.badge.met{background:#daf2ed;color:#16604d}.card .facts{margin:14px 0;color:#3c4d65;line-height:1.6}.card .last{min-height:42px;font-size:.9rem}.card .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.card .actions button{flex:1}.empty{grid-column:1/-1;background:white;border:1px dashed #bac8dc;padding:36px;text-align:center;border-radius:17px}.login{max-width:430px;margin:10vh auto;padding:30px;background:#fff;border:1px solid var(--line);border-radius:20px}.login .primary{width:100%;margin-top:12px}dialog{width:min(760px,95vw);max-height:92vh;border:0;border-radius:18px;padding:22px;box-shadow:0 20px 90px #17253b44;color:#17253b}dialog::backdrop{background:#101d3280}.dialogbar{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:-22px;padding:10px 0;background:#fff;z-index:1}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.check{display:flex;gap:10px;align-items:center}.check input{width:22px;height:22px;min-height:22px;margin:0}.message{background:#f1f4f9;border-radius:9px;padding:12px;margin:8px 0;overflow-wrap:anywhere}.message small{display:block;color:#52627a}.message.me{border-left:3px solid var(--ink)}.sourceimg{width:100%;height:auto;border-radius:8px}.factrow{padding:12px;border-bottom:1px solid var(--line);font-size:.95rem}.factrow strong{display:block}.factrow button{font-size:.85rem;min-height:38px;margin-top:5px}.splitactions{display:flex;flex-wrap:wrap;gap:10px}.danger{color:#a62039}.pending{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;margin:12px 0}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:min(90vw,620px);background:#17253b;color:white;padding:14px 20px;border-radius:14px;z-index:10;box-shadow:0 4px 20px #17253b55}.instructions{max-width:750px;margin:30px auto;padding:24px}.instructions li{margin:12px 0;line-height:1.6}#settingsPanel{max-width:720px}#pairResult code{overflow-wrap:anywhere;display:block;padding:14px;background:#e7eef9;border-radius:10px}#loginError{color:#a62039}:focus-visible{outline:3px solid #22a7bc;outline-offset:3px}[hidden]{display:none!important}@media(max-width:800px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){main{padding:0 16px 36px}.heading{align-items:start;flex-direction:column}.heading .primary{width:100%}.stats{grid-template-columns:repeat(2,1fr);gap:8px}.stat{padding:13px}.cards{grid-template-columns:1fr}.card{padding:17px}.toolbar{align-items:stretch;flex-direction:column;gap:10px}.toolbar button{align-self:flex-start}.tabs{margin-top:18px}.tabs button{padding:10px 12px}.formgrid{grid-template-columns:1fr}dialog{padding:16px}.login{margin:8vh 16px;padding:24px}.heading h1{font-size:1.6rem}}
:root{--sheet-green:#176b46}.filter-details{margin:14px 0;border:1px solid var(--line);border-radius:8px;padding:10px 14px}.filter-details summary{cursor:pointer;font-weight:600;color:var(--ink)}.sheet-help{font-size:.85rem;color:#52627a;margin:10px 0 4px}#cellStatus{min-height:1.3em;margin:5px 0}#resultCount{margin:5px 0 10px}main{max-width:1600px}.sheet-scroll{overflow:auto;width:100%;max-height:72vh;border:1px solid #a6b8ab;border-radius:6px;background:white;overscroll-behavior:contain}.people-sheet{width:2820px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:.84rem}.people-sheet th,.people-sheet td{border-right:1px solid #d6dfd9;border-bottom:1px solid #d6dfd9;text-align:left;vertical-align:top;padding:5px 6px;height:43px;overflow-wrap:anywhere}.people-sheet .column-letters th{position:sticky;top:0;background:#e4ece6;color:#496253;text-align:center;font-weight:400;font-size:.75rem;height:25px;padding:3px;z-index:4}.people-sheet .column-titles th{position:sticky;top:25px;background:var(--sheet-green);color:white;font-weight:650;height:40px;vertical-align:middle;z-index:4}.people-sheet tbody tr:nth-child(even) td{background:#f6faf7}.people-sheet tbody tr:hover td{background:#edf5ef}.people-sheet .row-number{position:sticky;left:0;background:#e4ece6;color:#496253;text-align:center;font-weight:400;z-index:2}.people-sheet tbody td:nth-child(2){position:sticky;left:38px;z-index:2;background:#fff;border-right:2px solid #a6b8ab;font-weight:600}.people-sheet tbody tr:nth-child(even) td:nth-child(2){background:#f6faf7}.people-sheet thead th:first-child{position:sticky;left:0;z-index:6}.people-sheet thead th:nth-child(2){position:sticky;left:38px;z-index:6;border-right:2px solid #a6b8ab}.people-sheet col.number-col{width:38px}.people-sheet col.name-col{width:172px}.people-sheet col.age-col{width:70px}.people-sheet col.rating-col{width:90px}.people-sheet col.met-col{width:80px}.people-sheet col.col-4{width:155px}.people-sheet col.col-5{width:170px}.people-sheet col.col-6{width:105px}.people-sheet col.col-7{width:75px}.people-sheet col.col-8{width:140px}.people-sheet col.col-9{width:210px}.people-sheet col.col-10{width:150px}.people-sheet col.col-11{width:260px}.people-sheet col.col-12{width:170px}.people-sheet col.col-13{width:205px}.people-sheet col.col-14{width:240px}.people-sheet col.col-15{width:170px}.people-sheet col.col-16{width:185px}.people-sheet input,.people-sheet select{border:1px solid transparent;background:transparent;border-radius:2px;padding:4px;min-height:32px;font-size:inherit;width:100%;max-width:100%}.people-sheet input:hover,.people-sheet select:hover{border-color:#b4c9ba}.people-sheet input:focus,.people-sheet select:focus{background:#fff;outline:2px solid var(--sheet-green);outline-offset:-2px}.people-sheet input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--sheet-green);margin-top:6px}.people-sheet .tick-cell{text-align:center}.people-sheet td small{display:block;color:#60736a;font-size:.7rem;line-height:1.25;padding:2px 4px;font-weight:400}.people-sheet .message-cell{line-height:1.35}.people-sheet .row-actions button{padding:4px 7px;min-height:30px;border-radius:4px;font-size:.75rem;margin:2px}.people-sheet .cell-saving{box-shadow:inset 0 -3px #d9ac41}.people-sheet .cell-error{box-shadow:inset 0 0 0 2px #b83232}.people-sheet .missing-chat{color:#a62039}.people-sheet .sheet-empty{height:90px;vertical-align:middle;padding:20px;white-space:normal}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.notice{margin:10px 0;padding:9px 12px}.heading{margin-top:18px}.tabs{margin:16px 0 12px}.stats .stat{padding:10px 14px}.stats .stat b{font-size:1.15rem}@media(max-width:520px){.sheet-scroll{max-height:68vh}.people-sheet{font-size:.8rem}.sheet-help{font-size:.8rem}.filter-details{margin:10px 0}.heading .primary{width:auto}.stats .stat{padding:9px}.toolbar{flex-direction:row;align-items:end}.toolbar .search{min-width:0}.toolbar button{white-space:nowrap;align-self:auto;padding:10px}.heading{gap:10px}.sheet-scroll{border-radius:4px}}

.connection-details{background:#e7eef9;border:1px solid #d7e2f3;border-radius:6px;padding:8px 12px;margin:12px 0}.connection-details summary{color:var(--ink);font-size:.85rem;cursor:pointer}.connection-details .notice{margin:8px 0}.connection-details .stats{margin:10px 0}.people-sheet{width:2685px}.heading p{font-size:.9rem}.sheet-help{margin:8px 0 4px}#cellStatus{font-size:.8rem}@media(max-width:520px){header{padding:12px 0}.heading{margin-top:12px}.tabs{margin:10px 0;gap:2px}.tabs button{font-size:.83rem;padding:7px 9px;min-height:38px}.people-sheet{width:2594px}.people-sheet col.number-col{width:28px}.people-sheet col.name-col{width:125px}.people-sheet col.age-col{width:58px}.people-sheet col.rating-col{width:78px}.people-sheet col.met-col{width:70px}.people-sheet tbody td:nth-child(2),.people-sheet thead th:nth-child(2){left:28px}.people-sheet input[type=number]{appearance:textfield}.people-sheet input::-webkit-inner-spin-button,.people-sheet input::-webkit-outer-spin-button{appearance:none;margin:0}.people-sheet .column-titles th{font-size:.76rem}.sheet-help{font-size:.75rem}.filter-details{padding:7px 10px}.filter-details summary{font-size:.85rem}.connection-details{margin:10px 0;padding:7px 9px}}

.people-sheet td small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;max-height:4.05em}

/* Tabella immediata: nome fisso, nessuna imitazione di Excel. */
.people-sheet .column-titles th{top:0;background:var(--ink)}.people-sheet tbody td:nth-child(2),.people-sheet thead th:nth-child(2){position:static;font-weight:400;border-right:1px solid var(--line)}.people-sheet tbody td:first-child,.people-sheet thead th:first-child{position:sticky;left:0;z-index:3;border-right:2px solid #bac8dc}.people-sheet thead th:first-child{z-index:6}.people-sheet tbody td:first-child{background:#fff;font-weight:600}.people-sheet tbody tr:nth-child(even) td{background:#f5f7fc}.people-sheet tbody tr:hover td{background:#edf2fa}.sheet-scroll{border-color:var(--line)}.people-sheet input:focus,.people-sheet select:focus{outline-color:var(--ink)}.people-sheet input[type=checkbox]{accent-color:var(--ink)}.people-sheet th,.people-sheet td{border-color:var(--line)}.phone-setup{max-width:480px}.phone-setup .primary{width:100%}.phone-setup p{font-size:.95rem}.capture-preview{white-space:pre-wrap;font-family:inherit;background:#f5f7fc;padding:12px;max-height:55vh;overflow:auto}.heading{flex-direction:row;align-items:center}.heading h1{font-size:1.45rem}.sheet-help{display:none}#cellStatus{margin:2px 0}.filter-details{margin:6px 0}.connection-details{margin:6px 0}.heading p{display:none}@media(max-width:520px){main{padding-left:10px;padding-right:10px}.heading .primary{font-size:.87rem;padding:10px}.heading h1{font-size:1.25rem}}

/* Tutte le colonne nella larghezza della pagina. */
.sheet-scroll{overflow:visible;max-height:none;overscroll-behavior:auto}.people-sheet{width:100%;table-layout:fixed;font-size:.9rem}.people-sheet col.profile-col{width:35%}.people-sheet col.priority-col{width:12%}.people-sheet col.conversation-col{width:53%}.people-sheet tbody td:first-child,.people-sheet thead th:first-child{position:static}.people-sheet .column-titles th{position:static;top:auto}.compact-field{margin:4px 0 7px}.compact-field label{display:inline;color:#52627a;font-weight:600;font-size:.75rem;margin:0}.people-sheet input,.people-sheet select,.people-sheet textarea{font-size:inherit;min-height:28px;border:0;padding:3px 1px;border-radius:2px;margin:0;width:100%;max-width:100%}.people-sheet textarea{resize:none;display:block;overflow:hidden}.people-sheet select{white-space:normal}.people-sheet td small{white-space:normal;overflow:visible;text-overflow:clip;font-size:.7rem;padding:1px 0}.priority-cell{text-align:center}.priority-cell button{padding:4px;min-width:28px;min-height:32px}.priority-cell .compact-field label{font-size:.7rem}.people-sheet .message-cell{white-space:pre-wrap;padding:6px 0;overflow-wrap:anywhere}.presence-cell,.instagram-cell,.date-cell{font-size:.8rem;margin:6px 0;overflow-wrap:anywhere}.people-sheet .sheet-empty{padding:18px}.heading{margin-top:8px}.tabs{margin:5px 0}.table-options{margin-top:14px}.table-options summary{cursor:pointer;font-size:.85rem}.toolbar .search{margin:0}.toolbar input{min-height:34px;padding:6px}.toolbar{gap:8px}.toolbar button{min-height:34px;padding:6px 8px}.people-sheet .tick-cell{text-align:center}@media(max-width:520px){.people-sheet{width:100%;font-size:.82rem}.people-sheet col.profile-col{width:42%}.people-sheet col.priority-col{width:15%}.people-sheet col.conversation-col{width:43%}.people-sheet td,.people-sheet th{padding:4px}.people-sheet .column-titles th{font-size:.8rem}.compact-field label{font-size:.68rem}.priority-cell .compact-field label{font-size:.63rem}.date-cell,.instagram-cell,.presence-cell{font-size:.72rem}.people-sheet input[type=datetime-local]{font-size:.67rem;min-width:0;width:100%}.people-sheet td small{font-size:.62rem}.people-sheet input[type=checkbox]{width:20px;height:20px;min-height:20px}.priority-cell button{font-size:1rem}.sheet-scroll{max-height:none}}

#cellStatus{font-size:.72rem}#resultCount{font-size:.8rem;margin:4px 0 8px}.profile-cell .compact-field{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;margin:3px 0}.profile-cell .compact-field label{font-size:.75rem}.profile-cell .compact-field small{grid-column:1/-1}.profile-cell > .compact-field:first-child{display:block}.profile-cell > .compact-field:first-child label{display:none}.profile-cell > .compact-field:first-child input{font-weight:700;font-size:1rem}.table-options .toolbar{margin-top:12px}.table-options .tabs{flex-wrap:wrap;overflow:visible}header{gap:10px}.conversation-cell .compact-field{margin:4px 0}.people-sheet .priority-cell button{margin-top:8px}@media(max-width:520px){.profile-cell .compact-field{grid-template-columns:53px minmax(0,1fr)}.profile-cell .compact-field label{font-size:.67rem}.profile-cell > .compact-field:first-child input{font-size:.87rem}.people-sheet .profile-cell input{min-height:24px}.people-sheet td small{line-height:1.1}.table-options{margin-top:8px}}
