.dir-panel{max-width:720px;background:#fff;border:1px solid var(--line,#dde4eb);border-radius:16px;overflow:hidden}
.dir-search{display:flex;align-items:center;gap:10px;margin:16px;padding:0 12px;background:#f3f6fa;border:1px solid #ccd5e0;border-radius:10px;color:#41576c}
.dir-search input{width:100%;min-height:46px;background:transparent;border:0;color:#162238;font:inherit}
.dir-list{padding:0 16px}.dir-row{width:100%;min-height:64px;display:flex;align-items:center;text-align:left;gap:12px;background:transparent;border:0;border-top:1px solid #e1e6eb;padding:9px 0;color:#142338}
.dir-row>span:nth-child(2){flex:1}.dir-row b,.dir-row small{display:block}.dir-row small{color:#566779}.dir-row svg{color:#596a7c}
.dir-person-link{border:0;background:transparent;color:inherit;padding:0 2px;font:inherit;font-weight:650;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px;cursor:pointer}
.ticket-foot button.dir-person-link,.sc-person-list button.dir-person-link{display:inline-block;min-height:44px;font:inherit;color:inherit;line-height:1.35}
.dir-avatar{position:relative;display:inline-grid;place-items:center;flex:none;overflow:hidden;border-radius:50%;width:38px;height:38px;background:#e3ecfa;color:#244a78;font-weight:700;letter-spacing:.025em}
.dir-portrait{width:66px;height:66px;font-size:22px}.dir-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dir-sheet{width:min(430px,calc(100vw - 30px));max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;padding:20px;border:1px solid #dbe2ea;border-radius:18px;color:#142338;font:inherit;background:white;box-shadow:0 18px 64px #17233729}
.dir-sheet::backdrop{background:rgba(16,30,46,.46)}
.dir-sheet header,.dir-identity,.dir-actions,.dir-photo-controls{display:flex;align-items:center;gap:10px}
.dir-sheet header{justify-content:space-between}.dir-sheet header h2{font-size:17px;margin:0}
.dir-close{min-width:44px;min-height:44px;font-size:24px;font-weight:400;border:none;border-radius:50%;background:#eff3f7;color:#27394a;cursor:pointer}
.dir-identity{margin:18px 0;gap:15px}.dir-identity h3{font-size:23px;line-height:1.15;margin:0}.dir-identity p{margin:4px 0 0;color:#526379}
.dir-fields{margin:0 0 16px}.dir-fields>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid #e1e7ed;padding:10px 0}.dir-fields dt{color:#526379}.dir-fields dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.dir-actions,.dir-photo-controls{gap:8px;flex-wrap:wrap}.dir-actions .btn,.dir-photo-controls .btn{min-height:44px;display:inline-flex;align-items:center;gap:6px}.dir-edit{margin-top:14px}
.dir-photo-controls label{position:relative;overflow:hidden;cursor:pointer}.dir-photo-controls input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.dir-photo-controls label:focus-within{outline:2px solid #274fcf}
.dir-form{display:grid;gap:10px;margin-top:15px}.dir-form>label{display:grid;gap:3px;color:#35485c;font-size:13px;font-weight:650}.dir-form>label input{border:1px solid #becbd8;border-radius:8px;padding:9px;font:inherit;font-weight:400;min-height:44px;background:white;color:#142338}
.dir-form fieldset{border:1px solid #dbe2eb;border-radius:9px}.dir-form fieldset label{display:inline-flex;align-items:center;gap:3px;min-height:44px;margin-right:10px}.dir-alert{color:#9e2b20;margin:6px 0}.dir-alert:empty{display:none}
@media(max-width:640px){.dir-sheet{margin:auto 0 0;width:100%;max-width:100%;max-height:88dvh;padding:18px 18px max(18px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}.dir-form input,.dir-search input{font-size:16px}}
