/* v17: new login/member controls only. Existing dashboard visual styles retained. */
body:not(.is-admin) .admin-only,
body:not(.is-admin) [data-action="targets"]{display:none!important}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:32px 18px;background:radial-gradient(ellipse at 12% 16%,#d9eafa 0,transparent 54%),radial-gradient(ellipse at 90% 84%,#dcf2ed 0,transparent 52%),#f3f6fa}
.auth-card{width:min(456px,100%);padding:32px 34px 22px;background:#fff;border:1px solid #dfe7f1;border-radius:20px;box-shadow:0 20px 64px #0e2b5320;color:#1c304b}
.auth-brand{display:flex;align-items:center;gap:12px}.auth-logo{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(145deg,#2970d4,#7ebced);color:white;font:800 28px Georgia,serif}
.auth-brand b{display:block;font-size:21px;letter-spacing:1.8px}.auth-brand div>span{display:block;font-size:10px;letter-spacing:1.5px;margin-top:3px;color:#72869e}
.auth-card-rule{height:1px;background:#e8eef5;margin:23px 0}.auth-eyebrow{color:#3978c3;font-size:11px;letter-spacing:1.3px;font-weight:700}
.auth-card h1{font-size:24px;margin:7px 0 10px;line-height:1.4;letter-spacing:-.8px}.auth-help{font-size:14px;line-height:1.75;color:#60738c;margin:0 0 20px}
.auth-field{display:block;font-size:13px;font-weight:700;margin:15px 0 0;color:#334d6d}
.auth-field input{display:block;width:100%;height:46px;margin-top:7px;border:1px solid #cfdaea;border-radius:9px;background:#fbfdff;padding:10px 12px;font:inherit;font-weight:400;color:#192e4b}
.auth-field input:focus{outline:2px solid #8cbaf0;outline-offset:1px;background:#fff}
.auth-check{display:flex;align-items:center;gap:8px;font-size:13px;margin:17px 0 5px}.auth-check input{width:16px;height:16px;accent-color:#256cc8}
.auth-hint{font-size:12px;line-height:1.7;color:#6c7d93;margin:8px 0 17px}
.auth-card .auth-main-button{width:100%;min-height:45px;margin:6px 0;font-size:14px;font-weight:700;border-radius:9px}
.auth-card .auth-main-button:disabled{opacity:.55;cursor:wait}.auth-link{border:0;background:none;color:#4e698c;font-size:12px;padding:12px 4px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.auth-footer{margin:16px 0 0;padding-top:17px;border-top:1px solid #edf1f6;text-align:center;font-size:11px;color:#8595a9}
.auth-message{font-size:13px;color:#ae432f;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.auth-message:not(:empty){background:#fff6ee;border:1px solid #f0dec7;border-radius:8px;padding:10px 12px;margin-top:12px}
.auth-email{border:1px solid #dce7f4;background:#f2f7fe;padding:12px;border-radius:9px;font-size:15px;font-weight:700;overflow-wrap:anywhere;margin-bottom:14px}.auth-signed-email{font-size:11px;color:#718299;margin-top:9px;overflow-wrap:anywhere}
.auth-loading{display:flex;align-items:center;gap:10px;color:#5e7593;font-size:13px;padding:15px 0}.auth-loading i{width:19px;height:19px;border:2px solid #cbdcf2;border-top-color:#2571c9;border-radius:50%;animation:spin .9s linear infinite}
.sidebar .account{padding:13px 13px 7px;gap:9px}.sidebar .account p{flex:1}.sidebar .account b{font-size:12px}.sidebar .account span{font-size:10px;max-width:154px}.sidebar .account #accountRole{color:#b0c5dd;font-weight:600}.sidebar .account #accountEmail{color:#8faaca;font-size:10px}
.account-controls{display:flex;gap:7px;padding:5px 13px 13px;flex-wrap:wrap}.account-controls button{border:1px solid #ffffff26;border-radius:6px;background:#ffffff08;color:#c4d5e9;font-family:inherit;font-weight:600;font-size:10px;padding:7px 8px;cursor:pointer}.account-controls button:hover{background:#ffffff18;color:#fff}
.member-card{width:min(1160px,96vw);max-height:92vh;padding:23px}.member-card .modal-head{gap:20px}.member-card .modal-head h2{font-size:21px}.member-card .modal-head p{font-size:13px;line-height:1.65;max-width:820px}.member-card .icon-btn{display:block;margin-left:auto}
.member-create{display:grid;grid-template-columns:minmax(100px,1fr) minmax(240px,2fr) 130px auto;gap:12px;align-items:end;margin:20px 0 11px;padding:17px;border:1px solid #dce6f1;background:#f7fafe;border-radius:12px}
.member-create label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#4a6380}.member-card input,.member-card select{font:inherit;font-size:13px;color:#253b57;border:1px solid #cfdbe9;border-radius:6px;padding:8px 9px;background:#fff;min-width:0}.member-card button{font:inherit;font-size:12px;min-height:35px;white-space:nowrap}.member-card input:focus,.member-card select:focus{outline:2px solid #a5c9f2;outline-offset:1px}.member-card button:disabled{opacity:.45;cursor:not-allowed}
.member-permissions{font-size:12px;line-height:1.8;color:#667d95;padding:0 2px}.member-permissions span{margin:0 9px;color:#c0cddb}.member-permissions b{color:#344f6d}
.member-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:20px 0 12px}.member-toolbar strong{font-size:13px;margin-right:auto;color:#31516f}.member-toolbar input{width:205px}
.member-table-wrap{max-height:400px;overflow:auto;border:1px solid #dee7f1;border-radius:9px;margin-bottom:14px}.member-table-wrap table{width:100%;border-collapse:collapse;min-width:930px;font-family:inherit;font-size:12px}.member-table-wrap th{position:sticky;top:0;z-index:1;background:#f2f6fc;text-align:left;font-weight:700;color:#4a647f;padding:12px 9px;border-bottom:1px solid #dae5f1;white-space:nowrap}.member-table-wrap td{padding:11px 9px;border-bottom:1px solid #e9eff5;vertical-align:middle;color:#2f4763}.member-table-wrap tr:last-child td{border-bottom:0}.member-table-wrap input{width:114px}.member-table-wrap select{min-width:88px}.member-row-actions{white-space:nowrap}.member-row-actions button+button{margin-left:5px}.member-email{white-space:nowrap}.member-table-wrap small{display:block;font-size:10px;margin-top:5px}.member-mine{color:#377ac1}.member-status{font-size:11px;font-weight:600;white-space:nowrap;border-radius:12px;padding:4px 7px}.member-status.ready{background:#e8f6ef;color:#197151}.member-status.pending{background:#fff2dc;color:#976510}
.member-message{font-size:13px;line-height:1.65;color:#a75021;margin:8px 0;white-space:pre-wrap}.member-secret{border:1px solid #c8ddec;background:#eef7ff;border-radius:9px;padding:13px 15px;margin-top:15px;color:#254f77;font-size:13px}.member-secret pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.9;margin:5px 0 0}.member-note{font-size:12px;color:#748499;line-height:1.8;margin:10px 0 0}.member-table-wrap h3{padding:10px 12px;margin:0;font-size:14px}
@media(max-width:720px){.auth-card{padding:27px 23px 20px}.member-create{grid-template-columns:1fr 1fr;padding:12px}.member-create label:nth-child(2){grid-column:1/-1;grid-row:2}.member-card{padding:17px}.member-toolbar{align-items:stretch}.member-toolbar strong{width:100%}.member-toolbar input{flex:1}.account-controls button{font-size:11px}}
/* v42: independent narrow write grant for target changes. */
.member-table-wrap{max-width:100%}.member-table-wrap table{min-width:1140px}
.member-table-wrap select[data-member-field="targetManager"]{min-width:158px;max-width:190px}
