/* Team management uses the customer-account layout; actions remain permission driven. */
.qv-team-page,
.qv-team-page #wrapper,
.qv-team-page .w1,
.qv-team-page .w2 { background: #f0efed; }
.qv-team-workspace { box-sizing: border-box; max-width: 1440px; margin: 0 auto 80px; padding: 0 28px; color: #171717; }
.qv-team-workspace svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.qv-team-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 82px; padding: 14px 0; box-sizing: border-box; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); border-bottom: 1px solid #e9e9e9; }
.qv-team-head h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 0; font-weight: 750; letter-spacing: -.03em; }
.qv-team-back { display: inline-flex; align-items: center; gap: 7px; color: #657083; font-size: 12px; text-decoration: none; }
.qv-team-back:hover { color: #171717; }
.qv-team-back svg { width: 13px; height: 13px; flex-basis: 13px; }
.qv-team-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 28px; margin-top: 30px; }
.qv-team-content { min-width: 0; }
.qv-team-summary,
.qv-team-group { box-sizing: border-box; background: #fff; border: 1px solid rgba(12, 12, 12, .04); border-radius: 16px; box-shadow: 0 3px 13px rgba(0, 0, 0, .06); }
.qv-team-summary { padding: 20px; min-width: 0; }
.qv-team-account { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 13px; border: 1px solid #d7d7d7; border-radius: 8px; font-size: 13px; font-weight: 700; }
.qv-team-account svg { color: #f58a0c; }
.qv-team-identity { padding: 18px 0; text-align: center; }
.qv-team-monogram { display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 14px; background: #0c0c0c; color: #ff9a24; font-size: 32px; font-weight: 800; }
.qv-team-identity h2 { margin: 0; color: #171717; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.qv-team-identity p { margin: 3px 0 0; font-size: 11px; color: #697486; }
.qv-team-summary-person { display: flex; align-items: center; gap: 10px; padding: 12px 4px; color: #171717; text-decoration: none; border-bottom: 1px solid #efefef; }
.qv-team-summary-person:last-child { border-bottom: 0; }
.qv-team-summary-person:is(a):hover { background: #faf8f5; border-radius: 8px; }
.qv-team-summary-person-copy { flex: 1; min-width: 0; }
.qv-team-summary-person strong,
.qv-team-summary-nav strong { display: block; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.qv-team-summary-person small,
.qv-team-summary-nav small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.5; color: #697486; }
.qv-team-summary-person .qv-team-last-seen { color: #767c87; }
.qv-team-summary-avatar { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border-radius: 50%; background: #f5f4f2; color: #555; font-size: 12px; font-weight: 700; }
.qv-team-summary-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-team-summary-person > svg,
.qv-team-summary-nav > svg { width: 12px; height: 12px; flex: 0 0 12px; color: #858b96; }
.qv-team-summary-nav { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 16px 4px; color: #171717; text-decoration: none; border-top: 1px solid #efefef; border-bottom: 1px solid #efefef; border-radius: 8px; }
.qv-team-summary-nav > span:nth-child(2) { flex: 1; min-width: 0; }
.qv-team-summary-nav:hover { background: #faf8f5; }
.qv-team-view-all { display: block; padding: 12px 4px; font-size: 12px; color: #596678; }
.qv-team-meta { margin: 12px 0 0; }
.qv-team-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 11px; }
.qv-team-meta dt { color: #697486; }
.qv-team-meta dd { margin: 0; text-align: right; color: #414956; font-weight: 600; }
.qv-team-button,
.qv-team-dialog button { box-sizing: border-box; font: inherit; cursor: pointer; border: 1px solid #d7d7d7; border-radius: 9px; padding: 11px 16px; background: #fff; color: #171717; line-height: 1.35; min-height: 44px; }
.qv-team-button:hover { background: #f5f4f2; }
.qv-team-workspace a:focus-visible,
.qv-team-button:focus-visible,
.qv-team-dialog button:focus-visible { outline: 2px solid #ba6300; outline-offset: 3px; }
.qv-team-button.qv-team-primary,
.qv-team-dialog .qv-team-primary { background: #0c0c0c; color: #fff; border-color: #0c0c0c; font-weight: 700; }
.qv-team-head .qv-team-primary { border-radius: 999px; padding-inline: 20px; font-size: 13px; white-space: nowrap; }
.qv-team-button:disabled,
.qv-team-dialog button:disabled { opacity: .55; cursor: wait; }
.qv-team-group { margin-bottom: 16px; padding: 0 8px 8px; overflow: hidden; scroll-margin-top: 90px; }
.qv-team-group h2 { font-size: 15px; line-height: 1.4; font-weight: 700; margin: 0; padding: 20px 16px 8px; }
.qv-team-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid #efefef; }
.qv-team-row:last-child { border-bottom: 0; }
.qv-team-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f5f4f2; color: #171717; font-weight: 700; font-size: 14px; flex: 0 0 38px; }
.qv-team-person { min-width: 150px; flex: 1; }
.qv-team-person strong { display: block; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.qv-team-person small { display: block; color: #697486; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; margin-top: 3px; }
.qv-team-role { border-radius: 6px; background: #f5f4f2; color: #626a77; font-size: 11px; line-height: 1.5; padding: 4px 9px; white-space: nowrap; }
.qv-team-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.qv-team-row-actions .qv-team-button { font-size: 12px; padding: 8px 13px; }
.qv-team-row-actions .qv-team-icon-button { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 8px; border: 0; border-radius: 50%; background: #f5f4f2; }
.qv-team-icon-button svg { width: 15px; height: 15px; }
.qv-team-button.qv-team-danger { color: #bc2936; }
.qv-team-row-actions .qv-team-icon-button.qv-team-danger { background: #fff1f2; }
.qv-team-row-actions .qv-team-icon-button.qv-team-danger:hover { background: #ffe2e5; }
.qv-team-button.qv-team-cancel-invite { background: #d92d3b; border-color: #d92d3b; color: #fff; font-weight: 600; }
.qv-team-button.qv-team-cancel-invite:hover { background: #b9222e; }
.qv-team-invitations .qv-team-avatar { background: #fff3e0; color: #a55300; }
.qv-team-role.qv-team-role-warning { background: #fff0e5; color: #9e430c; }
.qv-team-message { border-radius: 10px; padding: 13px 16px; margin: 0 0 16px; background: #f3f6f3; color: #285038; line-height: 1.5; }
.qv-team-message.is-error { background: #fff3ee; color: #993b26; }
.qv-team-empty { padding: 16px; color: #697486; font-size: 13px; line-height: 1.6; margin: 0; }
.qv-team-help { font-size: 13px; color: #697486; margin-top: 20px; line-height: 1.7; }
.qv-team-dialog { box-sizing: border-box; border: 0; border-radius: 20px; width: calc(100% - 32px); max-width: 490px; padding: 28px; color: #171717; box-shadow: 0 20px 90px #0003; font-family: inherit; }
.qv-team-dialog::backdrop { background: #16161680; backdrop-filter: blur(3px); }
.qv-team-dialog h2 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
.qv-team-dialog p { line-height: 1.6; color: #697486; margin: 0 0 22px; }
.qv-team-dialog label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 7px; }
.qv-team-dialog input,
.qv-team-dialog select { box-sizing: border-box; width: 100%; height: 48px; border: 1px solid #d5d8de; border-radius: 10px; background: #fff; padding: 11px 13px; font: inherit; color: #171717; }
.qv-team-dialog select { appearance: auto; }
.qv-team-dialog small { display: block; color: #697486; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.qv-team-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.qv-team-dialog .qv-team-message { margin-top: 18px; }
.qv-team-dialog [hidden],
[data-customer-team] [hidden] { display: none !important; }
@media (max-width: 1050px) {
    .qv-team-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 850px) {
    .qv-team-workspace { padding: 0 20px; }
    .qv-team-layout { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
    .qv-team-summary { display: flex; align-items: center; gap: 20px; padding: 16px 20px; }
    .qv-team-account { flex-shrink: 0; }
    .qv-team-identity { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 0; min-width: 0; text-align: left; }
    .qv-team-monogram { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; border-radius: 10px; font-size: 23px; }
    .qv-team-identity h2 { align-self: end; }
    .qv-team-summary-people, .qv-team-summary-nav, .qv-team-meta { display: none; }
}
@media (max-width: 640px) {
    .qv-team-workspace { padding: 0 14px; }
    .qv-team-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding-block: 16px; }
    .qv-team-head h1 { font-size: 23px; }
    .qv-team-head .qv-team-primary { font-size: 12px; padding-inline: 14px; }
    .qv-team-summary { flex-wrap: wrap; gap: 14px; }
    .qv-team-account { min-height: 38px; font-size: 12px; }
    .qv-team-identity { flex: 1 1 170px; }
    .qv-team-row { padding: 14px 10px; gap: 10px; }
    .qv-team-person { min-width: 0; flex-basis: calc(100% - 48px); }
    .qv-team-row > .qv-team-role { margin-left: 48px; }
    .qv-team-row-actions { padding-left: 48px; width: 100%; justify-content: flex-start; box-sizing: border-box; }
    .qv-team-row-actions .qv-team-icon-button { width: 44px; height: 44px; min-height: 44px; }
    .qv-team-group h2 { padding: 18px 10px 6px; }
    .qv-team-dialog { padding: 24px; }
}
