.client-forbidden{display:none!important}
#settings-team{max-width:1200px}
#settings-team>.dialog-error{margin-bottom:20px}
.team-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.65fr);gap:24px;align-items:start}
.team-layout:has(>.team-invite-panel[hidden]){grid-template-columns:1fr}
.team-lists{display:grid;gap:20px;min-width:0}
.team-card-heading{display:flex;align-items:center;gap:13px}
.team-card-heading .creator-help{margin:4px 0 0}
.team-symbol,.team-avatar{display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:#f0ebfb;color:#8060bd;width:40px;height:40px}
.team-symbol svg{width:23px;height:23px}
.team-role-help{font-size:11px;line-height:1.8;color:#92849f;margin:12px 0 0;min-height:40px}
.team-invite-note{font-size:10px;line-height:1.8;color:#a094ac;margin:16px 0 0;text-align:center}
.team-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #eee8f4}
.team-row:last-child{border-bottom:0;padding-bottom:0}
.team-avatar{width:34px;height:34px;font-size:11px;font-weight:600;border-radius:9px}
.team-person{flex:1;min-width:140px;overflow-wrap:anywhere}
.team-row strong{font-size:12px;font-weight:600}
.team-row small{display:block;color:#94869f;font-size:10px;line-height:1.7;margin-top:5px;overflow-wrap:anywhere}
.team-member-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;padding-left:46px}
.team-member-actions .field{margin:0;flex:1;min-width:105px;max-width:175px}
.team-member-actions .button{white-space:nowrap}
.team-revoke{font-size:10px;color:#9c7188;min-height:36px}
.team-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 10px 20px;gap:10px}
.team-empty-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f6f2fc;color:#b2a1c6;font-size:22px;margin-bottom:5px}
.team-empty strong{font-size:12px;font-weight:550;color:#756583}
.team-empty p,.team-empty-note{font-size:11px;line-height:1.8;color:#a094ac}
.team-empty-note{padding-top:18px}
.team-audit summary,.team-permissions summary{font-size:12px;font-weight:550;color:#887496;cursor:pointer}
#team-audit-list{max-height:320px;overflow:auto}
.team-permissions{margin:22px 0 0;padding:0 2px}
.team-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:22px}
.team-role-grid strong{font-size:12px;color:#736181}
.team-role-grid p{font-size:11px;color:#94869f;line-height:1.8;margin-top:6px}
.team-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#post-review-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:28px;background:#fff}
#post-review-dialog>.settings-heading{padding-bottom:20px;border-bottom:1px solid #eee8f4}
#approval-detail{padding-top:20px}
.review-post-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.review-post-heading h3{font-size:18px;font-weight:600;margin:0;overflow-wrap:anywhere}
.review-post-heading .pill{font-size:10px}
.approval-target h3{font-size:13px;font-weight:600;margin:0}
#post-review-dialog .approval-caption{color:#625370;line-height:1.8}
.approval-history{border-top:1px solid #eee8f4;padding-top:18px;margin-top:24px}
.approval-history summary,.approval-edit summary{font-size:12px;color:#887496;cursor:pointer}
#post-review-dialog .dialog-actions{margin-top:20px}
#post-review-dialog .dialog-actions .button{margin:0}
.calendar-status-icon.awaiting_approval{color:#ab791d;background:#fcf0d6}
.calendar-status-icon.client_rejected{color:#b45567;background:#fdecef}
.calendar-status-icon.client_approved{color:#34815c;background:#e2f3e9}
@media(max-width:1000px){.team-layout{grid-template-columns:1fr}.team-invite-panel{max-width:none}#team-invite-form{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:0 18px}#team-invite-form .team-role-help,#team-invite-form>.button{grid-column:1/-1}.team-role-help{min-height:0}.team-invite-note{text-align:left}}
@media(max-width:600px){#team-invite-form{display:block}.team-layout,.team-lists{gap:16px}.team-member-actions{padding-left:0}.team-member-actions .field{max-width:none}.team-role-grid{grid-template-columns:1fr}.team-invitation .team-person{min-width:calc(100% - 50px)}#settings-team .field input,#settings-team .field select,#post-review-dialog .field input,#post-review-dialog .field textarea{font-size:16px}#post-review-dialog{padding:20px}.review-post-heading{align-items:flex-start;flex-direction:column}}
.approval-media{margin:16px 0}.approval-media img,.approval-media video{display:block;max-width:100%;max-height:480px;object-fit:contain;margin:auto}.approval-target{border-top:1px solid var(--border,#e6e2eb);padding:16px 0}.approval-caption,.approval-feedback,.approval-history{white-space:pre-wrap;overflow-wrap:anywhere}.approval-feedback{margin:16px 0;padding:16px;border-left:3px solid #7c4dce;background:#f7f4fb}.approval-edit{margin:24px 0}.approval-edit summary{cursor:pointer}.approval-edit .field{margin:16px 0}.approval-history{font-size:13px}
.approval-crop{display:block;position:relative;overflow:hidden;aspect-ratio:4/5;max-width:360px;margin:auto}.approval-crop img{position:absolute;max-width:none;max-height:none;object-fit:fill}.status.awaiting_approval,.status.client_rejected{color:#8146b7}

.delivery-review-icon{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px;border-radius:8px}.delivery-review-icon:hover{background:#f2edfa}
