.personnel-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(700px, calc(100dvh - 32px)); overflow: auto; border: 0; border-radius: 16px; padding: 0; color: #173c35; background: #fff; box-shadow: 0 24px 70px rgba(15, 53, 41, .26); }
.personnel-dialog::backdrop { background: rgba(13, 42, 33, .44); backdrop-filter: blur(5px); }
.personnel-dialog__header { display: flex; justify-content: space-between; gap: 18px; padding: 20px 24px 17px; border-bottom: 1px solid #deeadf; background: #f6faf5; }
.personnel-dialog__header .eyebrow { margin: 0 0 5px; color: #47765d; font-size: .68rem; }
.personnel-dialog__header h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 1.85rem); letter-spacing: -.045em; }
.personnel-dialog__header p:not(.eyebrow) { margin: 5px 0 0; color: #60746a; font-size: .84rem; line-height: 1.4; }
.personnel-dialog .dialog-close { position: relative; flex: 0 0 auto; width: 34px; height: 34px; min-height: 34px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: #1d604c; }
.personnel-dialog .dialog-close:hover { background: #174f3e; }
.personnel-dialog .dialog-close::before, .personnel-dialog .dialog-close::after { position: absolute; top: 9px; left: 16px; width: 2px; height: 16px; border-radius: 2px; background: #c4e0a6; content: ""; }
.personnel-dialog .dialog-close::before { transform: rotate(45deg); }
.personnel-dialog .dialog-close::after { transform: rotate(-45deg); }
.personnel-add { display: grid; grid-template-columns: minmax(0, 1fr) 145px auto; gap: 10px; align-items: end; margin: 16px 24px 0; padding: 12px; border: 1px solid #d5e4d8; border-radius: 10px; background: #f8fbf8; }
.personnel-add label, .personnel-row label { display: grid; gap: 6px; margin: 0; color: #4c6759; font-size: .77rem; font-weight: 800; letter-spacing: .02em; }
.personnel-add input, .personnel-add select, .personnel-row input, .personnel-row select { width: 100%; min-height: 42px; margin: 0; }
.personnel-add select, .personnel-row select { appearance: none; border: 1px solid #cbd6ce; border-radius: 8px; padding: 0 36px 0 13px; color: #173c35; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%233e6855' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; font: inherit; }
.personnel-add select:focus-visible, .personnel-row select:focus-visible { outline: 3px solid #c4e0a6; border-color: #276a54; }
.personnel-add button { min-height: 42px; margin: 0; padding-inline: 17px; }
.personnel-message { margin: 12px 24px 0; padding: 9px 11px; border-radius: 8px; color: #3c624a; background: #e7f2e8; font-size: .82rem; line-height: 1.35; }
.personnel-message[data-type="error"] { color: #934337; background: #fae9e5; }
.personnel-list { display: grid; gap: 16px; padding: 18px 24px 24px; }
.personnel-group h3 { margin: 0 0 5px; color: #315d49; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; }
.personnel-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; gap: 10px; align-items: end; padding: 9px 0; border-top: 1px solid #e5ede7; }
.personnel-row__actions { display: flex; gap: 6px; align-items: center; min-height: 38px; }
.personnel-row__actions .secondary, .personnel-remove { min-height: 38px; margin: 0; padding: 0 10px; font-size: .78rem; white-space: nowrap; }
.personnel-remove { color: #a04939; border: 1px solid #efd3cc; border-radius: 8px; background: #fff7f4; }
.personnel-remove:hover { background: #fae9e5; }
.personnel-empty { margin: 0; padding: 15px 0; color: #718178; font-size: .9rem; }
.personnel-archive { padding-top: 4px; }
.personnel-row.is-archived { opacity: .68; }
.personnel-archived { color: #6a7f71; font-size: .8rem; font-weight: 700; white-space: nowrap; }

@media(max-width:760px){.personnel-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.personnel-add,.personnel-row{grid-template-columns:1fr}.personnel-row__actions{justify-content:flex-end}}
.personnel-add button{border:1px solid #176d51;border-radius:8px;background:#176d51;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.personnel-row__actions .secondary{border:1px solid #bad5c3;border-radius:8px;background:#f4faf6;color:#165940;font:inherit;font-weight:700;cursor:pointer}
.crew-manage-personnel{margin:0 0 12px}
