/* Codex.me · componenti CSS 0.5.94 */
body.codex-ui :where(.primary-button,.secondary-button,.danger-button,.small-button,button:not(.icon-button):not(.codex-menu-trigger):not(.codex-menu-close):not(.codex-menu-backdrop)){display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:var(--cx-control);padding:.65rem 1rem;border:1px solid transparent;border-radius:var(--cx-radius-control);font-weight:800;line-height:1.15;text-decoration:none;cursor:pointer;box-shadow:none;transition:background-color .15s,border-color .15s,color .15s,transform .15s}
body.codex-ui .primary-button,body.codex-ui button[type="submit"]{background:var(--cx-text);border-color:var(--cx-text);color:#fff}
body.codex-ui .primary-button:hover,body.codex-ui button[type="submit"]:hover{background:#1a2639;border-color:#1a2639;color:#fff}
body.codex-ui .secondary-button{background:#fff;border-color:var(--cx-line-strong);color:var(--cx-text)}
body.codex-ui .secondary-button:hover{background:var(--cx-subtle);border-color:var(--cx-line-dark);color:var(--cx-text)}
body.codex-ui .danger-button{background:var(--cx-danger);border-color:var(--cx-danger);color:#fff}
body.codex-ui .danger-button:hover{background:#8f1b13;border-color:#8f1b13}
body.codex-ui .small-button,body.codex-ui .small{min-height:34px;padding:.42rem .7rem;font-size:.84rem}
body.codex-ui :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){width:100%;min-height:var(--cx-control);padding:.7rem .8rem;border:1px solid var(--cx-line-strong);border-radius:var(--cx-radius-control);background:#fff;color:var(--cx-text);outline:0}
body.codex-ui textarea{min-height:118px;resize:vertical;line-height:1.55}
body.codex-ui :where(input,select,textarea)::placeholder{color:#78879a;opacity:1}
body.codex-ui :where(input,select,textarea):focus{border-color:var(--cx-brand-strong);box-shadow:0 0 0 3px rgba(18,111,179,.16)}
body.codex-ui :where(input,select,textarea):disabled{background:#eef1f4;color:#68778a;cursor:not-allowed}
body.codex-ui .form,body.codex-ui .uc-form{display:grid;gap:var(--cx-s5)}
body.codex-ui .form label,body.codex-ui .uc-form label{display:grid;gap:.42rem;color:var(--cx-text-2);font-weight:760}
body.codex-ui .check-row,body.codex-ui .choice-card{display:flex!important;align-items:flex-start;gap:.7rem!important}
body.codex-ui :where(input[type="checkbox"],input[type="radio"]){width:1.15rem;height:1.15rem;flex:none;margin:.18rem 0 0;accent-color:var(--cx-brand-strong)}
body.codex-ui .actions-row,body.codex-ui .inline-form{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
body.codex-ui .flash,body.codex-ui .network-status{padding:.85rem 1rem;border:1px solid var(--cx-line);border-radius:var(--cx-radius);background:#fff;color:var(--cx-text-2)}
body.codex-ui .flash.success{border-color:#a8d6bc;background:var(--cx-positive-soft);color:var(--cx-positive)}
body.codex-ui .flash.error{border-color:#efb8b4;background:var(--cx-danger-soft);color:var(--cx-danger)}
body.codex-ui .flash.warning{border-color:#eed39b;background:var(--cx-warning-soft);color:var(--cx-warning)}
body.codex-ui :where(.status-pill,.status-badge,.integrity-badge){display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:28px;padding:.28rem .6rem;border-radius:var(--cx-radius-pill);background:#edf1f5;color:#425167;font-size:.75rem;font-weight:850;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}
body.codex-ui :where(.status-pill,.status-badge).success,body.codex-ui .is-ok{background:var(--cx-positive-soft);color:var(--cx-positive)}
body.codex-ui :where(.status-pill,.status-badge).error,body.codex-ui .is-failed{background:var(--cx-danger-soft);color:var(--cx-danger)}
body.codex-ui :where(.status-pill,.status-badge).warning,body.codex-ui .is-warning{background:var(--cx-warning-soft);color:var(--cx-warning)}
body.codex-ui :where(.empty-state,.danger-box,.uc-card,.uc-warning,.uc-danger){padding:clamp(1.25rem,3vw,2rem)}
body.codex-ui .empty-state{text-align:center;background:linear-gradient(180deg,#fff,var(--cx-subtle))}
body.codex-ui details>summary{cursor:pointer;font-weight:800}
body.codex-ui pre{max-width:100%;overflow:auto;padding:1rem;border:1px solid var(--cx-line);background:#f6f8fa;color:#25344a;white-space:pre-wrap}

/* 0.5.96 · tabelle, dati, card e feedback */
body.codex-ui .responsive-table,body.codex-ui .admin-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid var(--cx-line);background:#fff;-webkit-overflow-scrolling:touch}
body.codex-ui table{width:100%;border-collapse:collapse;border-spacing:0;font-variant-numeric:tabular-nums}
body.codex-ui th,body.codex-ui td{padding:.78rem .75rem;border-bottom:1px solid var(--cx-line);text-align:left;vertical-align:top}
body.codex-ui th{position:relative;background:#f3f6f9;color:#526174;font-size:.73rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
body.codex-ui tbody tr:hover{background:#f8fbfd}
body.codex-ui td small{display:block;margin-top:.2rem}
body.codex-ui .table-note{padding:.75rem;color:var(--cx-muted);font-size:.84rem}
body.codex-ui :where(.four-grid,.three-grid,.two-grid,.uc-grid,.uc-report-grid,.messaging-quality-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
body.codex-ui :where(.four-grid,.three-grid,.two-grid,.uc-grid,.uc-report-grid)>:where(article,div,.surface){min-width:0}
body.codex-ui .quality-card.ok{border-top:4px solid var(--cx-positive)}body.codex-ui .quality-card.fail{border-top:4px solid var(--cx-danger)}
body.codex-ui .choice-card{padding:.9rem;border:1px solid var(--cx-line);background:#fff}
body.codex-ui .choice-card:has(input:checked){border-color:var(--cx-brand-strong);background:var(--cx-brand-soft)}
body.codex-ui .danger-box,body.codex-ui .uc-danger{border-color:#efb8b4;background:var(--cx-danger-soft)}
body.codex-ui .uc-warning{border:1px solid #edd198;background:var(--cx-warning-soft)}
