/* AI Tickets keeps a single settings form and explicit ownership actions. */
html body #ai-tickets-overview .page-head h1{font-family:'Proxima Nova',Arial,sans-serif!important;font-size:32px!important;font-style:normal!important;font-weight:700!important;line-height:1.2;margin:0 0 8px!important}
html body #ai-tickets-overview .page-head{padding-bottom:0!important;margin-bottom:18px!important}
html body #ai-tickets-overview .page-head p{font-size:13px!important;line-height:1.6;color:#b0a4b9}
html body #ai-tickets-overview>.card{padding:20px!important;margin:0 0 16px!important;border:1px solid #ffffff18!important;border-radius:15px!important;background:#181112ef!important;box-shadow:none!important;min-width:0}
html body #ai-tickets-overview h2{font-size:16px!important;line-height:1.4;margin:0 0 8px!important}
html body #ai-tickets-overview .card>p{font-size:12px;line-height:1.7;color:#b5aabd;margin:0 0 16px;max-width:100%}
html body #ai-tickets-overview .ai-config-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:18px;align-items:stretch;margin-top:18px}
html body #ai-tickets-overview .ai-knowledge-editor{display:flex;flex-direction:column;gap:10px;min-width:0}
html body #ai-tickets-overview .ai-knowledge-editor>label{font-size:13px;font-weight:600}
html body #ai-tickets-overview textarea{width:100%;box-sizing:border-box;min-height:240px;resize:vertical;padding:13px 15px;border:1px solid #ffffff20;border-radius:11px;background:#10090a;color:#eee7f2;font:13px/1.7 'Proxima Nova',Arial,sans-serif}
html body #ai-tickets-overview .ai-panel-selector{margin:0;min-width:0;padding:14px;border:1px solid #ffffff16;border-radius:11px;background:#120b0c80}
html body #ai-tickets-overview .ai-panel-selector legend{padding:0 6px;font-size:13px;font-weight:600;color:#e6dceb}
html body #ai-tickets-overview .ai-panel-selector p{font-size:12px;line-height:1.65;color:#b0a5b8;margin:0 0 12px}
html body #ai-tickets-overview .ai-panel-options{display:grid;gap:8px;max-height:280px;overflow-y:auto;padding:3px;scrollbar-width:thin}
html body #ai-tickets-overview .ai-panel-choice{display:flex;align-items:center;gap:10px;min-height:44px;box-sizing:border-box;margin:0;padding:10px 12px;border:1px solid #ffffff16;border-radius:9px;background:#1b1314;cursor:pointer;font-size:12px;line-height:1.5}
html body #ai-tickets-overview .ai-panel-choice:has(input:checked){border-color:var(--nc-reference-line);background:#9832411a}
html body #ai-tickets-overview .ai-panel-choice span{min-width:0;overflow-wrap:anywhere}
html body #ai-tickets-overview .ai-panel-choice input{flex:none;accent-color:var(--nc-glass-link);width:16px;height:16px}
html body #ai-tickets-overview .ai-settings-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding-top:14px;margin-top:16px;border-top:1px solid #ffffff0d}
html body #ai-tickets-overview .ai-settings-actions .autosave-status{width:auto!important;max-width:100%;padding:7px 10px!important;min-height:32px;font-size:11px;white-space:normal}
html body #ai-tickets-overview .ai-rating-card{display:flex;align-items:center;justify-content:space-between;gap:16px}
html body #ai-tickets-overview .ai-rating-card p{margin:0;font-size:12px;color:#afa2b9}
html body #ai-tickets-overview .ai-rating-card>p{display:flex;align-items:center;gap:16px}
html body #ai-tickets-overview .ai-rating-card strong{font-size:22px;font-variant-numeric:tabular-nums;color:#f2eaf5}
html body #ai-tickets-overview .ai-ownership-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 0;border-top:1px solid #ffffff10}
html body #ai-tickets-overview .ai-ownership-row>a{flex:1 1 180px;overflow-wrap:anywhere;color:#ead6e5;font-size:13px;text-decoration:none}
html body #ai-tickets-overview .ai-ownership-status{padding:6px 9px;border:1px solid #ffffff16;border-radius:8px;font-size:11px;color:#c2aec9;background:#ffffff03}
html body #ai-tickets-overview .ai-handoff-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0}
html body #ai-tickets-overview .ai-handoff-actions button{min-height:40px;padding:9px 12px;border:1px solid #ffffff20;border-radius:9px;background:#19151f;color:#e7d7ed;font-size:12px}
html body #ai-tickets-overview .ai-handoff-actions button:disabled{opacity:.45;cursor:not-allowed}
html body #ai-tickets-overview [data-ticket-handoff]{flex-basis:100%;padding:10px 12px;border:1px solid #ffffff12;border-radius:9px;background:#120b0c}
html body #ai-tickets-overview [data-ticket-handoff]>summary{min-height:28px;cursor:pointer;font-size:12px;color:#cdbbd6}
html body #ai-tickets-overview .module-setup-steps{display:flex;flex-wrap:wrap;gap:8px}
html body #ai-tickets-overview .module-setup-steps :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;padding:9px 12px!important;box-sizing:border-box;border:1px solid #ffffff20;border-radius:10px;background:#18151e;color:#e1d3e9;font-size:12px;text-decoration:none}
html body #ai-tickets-overview .module-setup-note{margin-top:10px;font-size:12px;line-height:1.6;color:#aea1b7}
html body #ai-tickets-overview :is(a,button,textarea,input,summary):focus-visible{outline:3px solid #ff91b1;outline-offset:3px}
@media(max-width:900px){html body #ai-tickets-overview .ai-config-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){html body #ai-tickets-overview>.card{padding:16px!important}html body #ai-tickets-overview textarea{min-height:210px}html body #ai-tickets-overview .ai-settings-actions{justify-content:flex-start}html body #ai-tickets-overview .module-setup-steps>*{flex:1 1 140px}html body #ai-tickets-overview .ai-rating-card>p{gap:10px}}
/* Match Overview: charcoal surfaces, white headings and restrained crimson accents. */
html body .app main#ai-tickets-overview.content .card{padding:20px!important;margin-block:16px!important;background:linear-gradient(130deg,#2b161c,#151012)!important;border:1px solid #67404b77!important;border-radius:16px!important;box-shadow:inset 0 1px #ffffff06!important}
html body .app main#ai-tickets-overview.content h2{color:#f2e8ec!important;font-size:16px!important;margin:0 0 10px!important;letter-spacing:-.2px}
html body .app main#ai-tickets-overview.content .card p{font-size:12px!important;color:#bdaeb4!important;line-height:1.7!important;margin:8px 0 16px!important}
html body .app main#ai-tickets-overview.content .ai-config-grid{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)!important;gap:16px!important;margin-top:18px!important;align-items:stretch!important}
html body .app main#ai-tickets-overview.content :is(.ai-knowledge-editor,.ai-panel-selector){min-width:0!important;box-sizing:border-box}
html body .app main#ai-tickets-overview.content textarea{box-sizing:border-box;background:#181112!important;border:1px solid #67404b88!important;border-radius:10px!important;color:#f4e9ed!important;font-size:13px!important;line-height:1.7!important;min-height:190px!important;padding:14px!important;width:100%!important}
html body .app main#ai-tickets-overview.content .ai-panel-selector{background:#ffffff03!important;border:1px solid #67404b66!important;border-radius:12px!important;padding:16px!important}
html body .app main#ai-tickets-overview.content :is(label,legend){font-size:12px!important;color:#e3d7dd!important;font-weight:600!important}
html body .app main#ai-tickets-overview.content .ai-panel-choice{background:#ffffff03!important;border-color:#67404b66!important;border-radius:8px!important;padding:10px!important}
html body .app main#ai-tickets-overview.content .ai-panel-choice input{accent-color:#c92340}
html body .app main#ai-tickets-overview.content .ai-settings-actions{border-top:1px solid #67404b55!important;margin-top:16px!important;padding-top:12px!important}
html body .app main#ai-tickets-overview.content .ai-rating-card{display:flex!important;align-items:center;justify-content:space-between;gap:16px}
html body .app main#ai-tickets-overview.content .ai-rating-card p{margin:0!important}
html body .app main#ai-tickets-overview.content .ai-rating-card strong{color:#fff3f6!important;font-size:26px!important}
html body .app main#ai-tickets-overview.content :is(.ai-handoff-actions button,.ai-panel-selector a){color:#e3d7dd!important;background:#ffffff03!important;border:1px solid #67404b66!important;border-radius:9px!important;padding:9px 12px!important;min-height:38px!important;text-decoration:none!important}
html body .app main#ai-tickets-overview.content .ai-ownership-status{color:#cbb7bf!important;background:#ffffff03!important;border-color:#67404b66!important}
html body .app main#ai-tickets-overview.content .ai-ownership-row{border-color:#67404b55!important;padding-block:14px!important}
@media(max-width:900px){html body .app main#ai-tickets-overview.content .ai-config-grid{grid-template-columns:minmax(0,1fr)!important}}
