.desk:has(#mg-team:not([hidden])){max-width:1580px;padding-inline:clamp(15px,3vw,52px)}
.desk:has(#mg-team:not([hidden])) .top{padding:clamp(22px,3vw,42px) 0 8px}
.desk:has(#mg-team:not([hidden])) .heading h1{font-size:clamp(32px,3.25vw,48px)}
.desk:has(#mg-team:not([hidden])) #salon{font-size:18px;color:#76576e}
.tp{--line:#ded6dc;--muted:#766975;color:#31182b;margin:0 0 34px}
.tp-back,.tp-link{font-size:13px;color:#70435e;text-decoration:none}.tp-back:hover,.tp-link:hover{text-decoration:underline}
.tp-tabs{display:flex;gap:clamp(14px,3vw,47px);border-bottom:1px solid #d7cbd3;margin:15px 0 24px;overflow:auto}
.tp-tabs a{display:flex;align-items:center;gap:9px;padding:13px 1px;color:#655360;text-decoration:none;white-space:nowrap;font-size:clamp(14px,1.25vw,19px);border-bottom:3px solid transparent}
.tp-tabs a[aria-current]{font-weight:680;color:#4b1c3b;border-color:#54203f}.tp-tabs svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.tp-panel{border:1px solid var(--line);background:white;border-radius:13px;min-width:0;overflow:hidden;box-shadow:0 3px 14px #52234305}.tp-split{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.95fr);gap:20px;align-items:start}
.tp-head,.tp-actions,.tp-bar,.tp-person,.tp-card-top,.tp-week-nav,.tp-time,.tp-person-row,.tp-check,.tp-photo-line{display:flex;align-items:center;gap:10px}
.tp-head{padding:22px 22px 12px;justify-content:space-between}.tp h2{margin:0;letter-spacing:-.04em;font-weight:680;font-size:clamp(21px,2vw,31px)}.tp h3{font-size:16px;margin:20px 0 10px}.tp .primary{background:#4b193c;border-color:#4b193c}
.tp-bar{flex-wrap:wrap;padding:12px 22px 18px}.tp-bar input,.tp-bar select,.tp-head button,.tp-small{font-size:14px}.tp-bar input{flex:1;min-width:120px;max-width:400px}
.tp-directory{padding:0 12px 14px}.tp-person-row{display:grid;width:100%;grid-template-columns:1.15fr 1fr .8fr;text-align:left;padding:12px;gap:10px}
.dash button.tp-person-row{border:1px solid transparent;border-bottom-color:#eee9ed;border-radius:0;min-height:62px}.dash button.tp-person-row.chosen{border-color:#804369;background:#fcf7fa;border-radius:8px}
.tp-labels{font-size:12px;color:var(--muted);font-weight:650}.tp-person{min-width:0}.tp-person strong{overflow-wrap:anywhere}.tp-avatar{width:39px;height:39px;object-fit:cover;display:inline-grid;place-items:center;border-radius:10px;flex:none}.tp-avatar.initials{background:#f0e4ed;color:#663554;font-size:14px;font-weight:700}.tp-avatar.lg{width:76px;height:76px;border-radius:15px;font-size:25px}
.tp-status,.tp-badge,.tp-tags span,.tp-days span{padding:4px 9px;border-radius:6px;font-size:13px;width:fit-content}.tp-status,.tp-days .working{color:#375531;background:#e7f0df}.tp-status:before{content:'●';font-size:10px;padding-right:5px}.tp-status.inactive{background:#efeced;color:#766b73}.tp-detail{padding:22px}.tp-card-top{gap:15px;border-bottom:1px solid var(--line);padding-bottom:20px}.tp-card-top p{margin:2px 0 9px;color:var(--muted)}.tp-tags,.tp-days{display:flex;flex-wrap:wrap;gap:5px}.tp-tags span,.tp-days span{background:#f2edf1}.tp-days span.working{background:#e7f0df}.tp-detail>.primary{width:100%;margin:22px 0 0}
.tp-empty,.tp-intro,.tp-muted{color:var(--muted)}.tp-empty{padding:12px 20px 24px}.tp-intro{margin:2px 22px 7px;font-size:14px}.tp-scroll{overflow:auto;margin:0 17px 17px}
.tp table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;font-size:14px}.tp th,.tp td{padding:10px 12px;border-bottom:1px solid #e8e2e6;text-align:left}.tp thead th{background:#f5f1f4;font-weight:630}.tp-matrix :is(th,td):not(:first-child){text-align:center}.tp-matrix .tp-person{justify-content:center}.tp-matrix tbody th{font-weight:510}.tp-matrix tbody .tp-group{background:#efedf1;padding-block:8px;font-weight:650;color:#604b5b}.tp-matrix input,.tp-check input{width:18px;height:18px;accent-color:#562040;cursor:pointer}.tp-unassigned{display:block;color:#895b24;font-size:11px}
.tp .tp-week-nav{border:1px solid var(--line);border-radius:8px;gap:8px}.tp-week-nav button{border:0}.tp-week-nav strong{font-size:14px}.tp-zone{margin-inline-start:auto;color:#745966!important}
.tp-week td{padding:4px;border-left:1px solid #eee8eb;vertical-align:top}.tp-week .tp-shift{width:100%;height:100%;min-height:52px;display:grid;align-content:center;text-align:left;gap:1px;padding:7px;border:0;font-size:13px}.tp-shift.on{background:#eaf1e3}.tp-shift.off{background:#f5f2f4;color:#8a7e86}.tp-shift.away,.tp-badge{background:#f7ead7;color:#805928}.tp-shift small{color:#845f33}.tp-week th .tp-avatar,.tp-matrix .tp-avatar{width:28px;height:28px;border-radius:7px}
.tp-absence-row{display:grid;grid-template-columns:1.2fr 1fr .9fr 1fr;align-items:center;gap:10px;text-align:left}.dash .tp-absence-row{width:calc(100% - 28px);margin:0 14px 10px;min-height:58px;border:1px solid #e9e1e6;border-left:3px solid #b296aa}.tp-absence-edit .tp-form-body{padding:5px 21px 23px}
#tp-dialog{max-width:min(550px,94vw);width:100%;max-height:86dvh;padding:23px;border:1px solid var(--line);border-radius:13px;color:#3c2635}#tp-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.tp-form-body{display:grid;gap:14px}.tp-field{display:grid;gap:5px;font-size:13px;font-weight:600}.tp-field :is(input,select){width:100%;min-width:0;font-size:14px}.tp-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tp-photo-line{flex-wrap:wrap}.tp-photo-line input[type=file]{max-width:210px}.tp-check{font-size:14px}.tp-time{align-items:end;margin-bottom:6px}.tp-time label{flex:1}.tp-warning,.tp-clear{padding:11px 13px;font-size:13px;border-radius:8px}.tp-warning{background:#fff1df;color:#784a23}.tp-clear{background:#f5f3f4;color:#736873}.tp-warning summary,.dash .tp-link,.dash .tp-visit{background:none;border:0;padding:4px 0;text-align:left;color:inherit}.tp-visit{display:block}.tp .tp-err,#tp-error{color:#a13137}.tp #tp-msg:not(:empty){padding:8px 12px;border-radius:8px;background:#f2edf1}
.tp-mobile{display:none}
@media(max-width:900px){.tp-split{grid-template-columns:1.4fr 1fr;gap:12px}.tp .tp-person-row{grid-template-columns:1.2fr .9fr}.tp-person-row>:nth-child(2){display:none}.tp-absence-row{grid-template-columns:1fr 1fr}.tp-bar{gap:6px}}
@media(max-width:700px){.tp-split{grid-template-columns:1fr}.tp-mobile{display:block}.tp-wide{display:none!important}.tp-tabs{gap:14px}.tp-tabs a{padding:10px 0}.tp-tabs svg{display:none}.tp-head,.tp-bar{padding:13px 14px}.tp-actions button,.tp-bar button{padding:7px 9px}.tp-matrix th,.tp-week th{padding:8px}.tp-scroll{margin:0 9px 12px}.tp-zone{margin:0}.tp-week .tp-shift{font-size:14px}.tp-week td{width:55%}.tp-head{flex-wrap:wrap}.tp-person-row{min-height:50px}.tp-avatar.lg{width:62px;height:62px}.tp-detail{padding:16px}.tp-selected .tp-detail{scroll-margin:15px}.tp-absence-edit{scroll-margin:12px}}
.calendar-off{position:absolute;inset-block:0;overflow:hidden;white-space:nowrap;font-size:10px;color:#7e7078;padding:1px 2px;pointer-events:none;background:repeating-linear-gradient(125deg,#f1edefaa 0 4px,#e3dce188 4px 5px)}

.seat-price-dialog{box-sizing:border-box;width:min(440px,calc(100% - 28px));padding:22px;border:1px solid #ded3da;border-radius:12px;color:#392e38;background:white;font:14px/1.5 Inter,"Segoe UI",sans-serif}
.seat-price-dialog::backdrop{background:#321b3266}
.seat-price-dialog h2{font-size:18px;margin:0 0 8px}
.seat-price-dialog p{margin:8px 0 14px}
.seat-price-dialog dl{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:12px;margin:10px 0 16px;background:#f8f4f7;border-radius:6px}
.seat-price-dialog dd{margin:0;text-align:end;font-weight:650}
.seat-price-dialog div{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.seat-price-dialog button{border:1px solid #d8cbd4;background:white;border-radius:6px;padding:8px 12px;color:#49233e;font:inherit;cursor:pointer}
.seat-price-dialog button:last-child{background:#49233e;color:white}
