.fam-modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:9999}.fam-modal{background:var(--bg-elevated, #252540);border:1px solid var(--border, #2a2a45);border-radius:16px;padding:0;width:90%;max-width:500px;color:var(--text, #eaeaea);box-shadow:0 20px 60px #00000080;max-height:90vh;display:flex;flex-direction:column}.fam-modal-sm{max-width:440px}.fam-modal-md{max-width:600px}.fam-modal-lg{max-width:700px}.fam-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:1px solid var(--border-subtle, #1e1e35)}.fam-modal-title{margin:0;font-size:1.1rem;color:var(--text, #eaeaea)}.fam-modal-close{background:none;border:none;color:var(--text-muted, #666);cursor:pointer;padding:4px 6px;border-radius:4px;font-size:.9rem;transition:color .15s}.fam-modal-close:hover{color:var(--text, #eaeaea)}.fam-modal-body{padding:20px 24px;overflow-y:auto;flex:1}.fam-modal-scroll{max-height:85vh}.fam-modal-body .form-group{margin-bottom:16px}.fam-modal-body .form-group label{display:block;margin-bottom:6px;font-size:.875rem;color:var(--text-dim, #9a9ab0)}.fam-modal-body .form-group input,.fam-modal-body .form-group select,.fam-modal-body .form-group textarea{width:100%;padding:10px 12px;background:var(--bg-input, #252540);color:var(--text, #eaeaea);border:1px solid var(--border, #2a2a45);border-radius:8px;font-size:.9rem;box-sizing:border-box;font-family:inherit}.fam-modal-body .form-group input:focus,.fam-modal-body .form-group select:focus,.fam-modal-body .form-group textarea:focus{outline:none;border-color:var(--accent, #e94560)}.fam-modal-body .form-group label input[type=checkbox]{width:auto;margin-right:6px}.fam-modal-actions{display:flex;gap:12px;justify-content:flex-end;padding:16px 24px 20px;border-top:1px solid var(--border-subtle, #1e1e35)}.fam-modal-actions button{padding:8px 16px;border-radius:8px;font-size:.85rem;font-weight:500;cursor:pointer;border:none;transition:all .2s;font-family:inherit}.fam-modal-actions button:last-child{background:var(--accent, #e94560);color:#fff}.fam-modal-actions button:last-child:hover{filter:brightness(1.1)}.fam-modal-actions button:last-child:disabled{opacity:.5;cursor:not-allowed}.fam-modal-actions button:first-child:not(:last-child){background:var(--bg-input, #252540);color:var(--text-dim, #9a9ab0);border:1px solid var(--border, #2a2a45)}.fam-modal-actions button:first-child:not(:last-child):hover{color:var(--text, #eaeaea)}@media(max-width:768px){.fam-modal{max-width:95vw!important;margin:8px}}
