/* Isolated STOM personal-code forms, shared by the existing employee card/settings. */
.fm-code-panel{padding:20px 22px;margin-top:18px;border:1px solid #e8e9ef;border-radius:10px;background:#fff;max-width:620px;color:#425169}.fm-code-panel h3{margin:0 0 11px;font-size:15px;font-weight:600}.fm-code-state{margin:0 0 7px;font-size:13px;font-weight:600;color:#687b70}.fm-code-description{font-size:12px;line-height:1.6;color:#7e899b;margin:0 0 17px;max-width:440px}.fm-code-actions{display:flex;align-items:center;gap:15px;margin-top:17px}.fm-code-actions button{width:auto;min-width:0;font:600 13px/1.35 "Segoe UI",system-ui,sans-serif;cursor:pointer}.fm-code-primary{padding:9px 14px;border:0;border-radius:7px;background:#7c5cbe;color:#fff}.fm-code-primary:hover:not(:disabled){background:#6b4caa;color:#fff}.fm-code-cancel{padding:7px 0;border:0;background:none;color:#8a76aa}.fm-code-cancel:hover:not(:disabled){text-decoration:underline;background:none;color:#735d96}.fm-code-actions button:disabled{opacity:.55;cursor:default}.fm-code-form{max-width:430px}.fm-code-form .fm-code-employee{font-size:13px;font-weight:600;margin:0 0 10px;color:#56647b}.fm-code-form .fm-code-field{display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:300px;margin:0 0 15px;font-size:12px;color:#7b879a}.fm-code-form .fm-code-field input{width:100%;height:39px;min-height:39px;padding:8px 11px;border:1px solid #dfe3ec;border-radius:7px;color:#526078;background:#fff;font:400 16px/1.4 "Segoe UI",system-ui,sans-serif;letter-spacing:3px;box-shadow:none}.fm-code-form .fm-code-field input:focus{border-color:#b3a0d4;outline:2px solid #f0ebf8;outline-offset:1px}.fm-code-form .fm-code-field input:disabled{background:#f7f8fb;color:#939aab}.fm-code-hint{margin:0;font-size:11px;line-height:1.55;color:#9aa3b0}.fm-code-status{margin:12px 0 0;font-size:12px;line-height:1.5;color:#4f9475;min-height:18px;white-space:normal}.fm-code-status[data-error=true]{color:#b2696c}.fm-code-dialog{width:min(490px,92vw);max-height:90vh;padding:23px 26px;border:1px solid #e7e3ed;border-radius:13px;background:#fff;color:#425169;box-shadow:0 20px 80px #30254c26;overflow:auto}.fm-code-dialog::backdrop{background:#26334648}.fm-code-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}.fm-code-dialog-head h2{margin:0;font-size:18px;font-weight:600}.fm-code-close{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:6px;color:#8a92a0;background:none;font:24px/1 "Segoe UI",system-ui,sans-serif;cursor:pointer}.fm-code-close:hover{background:#f4f2f8;color:#6b5b83}.fm-code-dialog .fm-code-form{max-width:none}.fm-code-dialog .fm-code-field{max-width:none}.fm-code-dialog .fm-code-actions{justify-content:flex-end}.fm-code-dialog .fm-code-description{margin-bottom:19px}.fm-code-panel button:focus-visible,.fm-code-dialog button:focus-visible{outline:2px solid #a68dce;outline-offset:3px}
.sd-shell .fm-code-panel,.fm-sound-dialog .fm-code-panel{box-shadow:none}
/* Outrank existing shared-shell palettes only inside the personal-code module. */
:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-panel button.fm-code-primary,:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-dialog button.fm-code-primary{padding:9px 14px;min-height:36px;border:0;border-radius:7px;background:#7c5cbe;color:#fff;box-shadow:none;font-size:13px;font-weight:600}
:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-panel button.fm-code-primary:enabled:is(:hover,:active,:focus-visible),:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-dialog button.fm-code-primary:enabled:is(:hover,:active,:focus-visible){background:#6b4caa;color:#fff;border:0}
:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-panel button.fm-code-cancel,:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-dialog button.fm-code-cancel{padding:7px 0;min-height:0;border:0;background:none;color:#8a76aa;box-shadow:none}
:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-form label.fm-code-field input[type=password]{display:block;width:100%;height:39px;min-height:39px;max-width:none;padding:8px 11px;border:1px solid #dfe3ec;border-radius:7px;color:#526078;background:#fff;letter-spacing:3px;box-shadow:none;font-size:16px}
:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-form label.fm-code-field input[type=password]:focus{border-color:#b3a0d4;outline:2px solid #f0ebf8;outline-offset:1px}
:is(#stom-client-cabinet,#fx-work,.fm-sound-dialog,.fm-code-dialog) .fm-code-dialog button.fm-code-close{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:6px;color:#8a92a0;background:none;font-size:24px;line-height:1;box-shadow:none}
