.team-auth-card { width: min(100%, 420px); padding: 34px 28px; border: 1px solid #e3e7ed; border-radius: 22px; background: #fff; box-shadow: 0 18px 55px #152f4d0d; }
.team-auth-logo { display: block; width: min(100%, 250px); height: auto; margin: 0 0 28px; }
.team-eyebrow { color: #a76d04; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.team-auth-card h1 { margin: 10px 0; font-size: 24px; line-height: 1.35; }
.team-auth-description, .team-auth-help { color: #64748b; line-height: 1.7; font-size: 13px; }
.team-auth-help { margin: 14px 0 0; }
.team-auth-card form, .team-invite-form, .team-password-form { display: grid; gap: 16px; margin-top: 24px; }
.team-auth-card label, .team-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.team-auth-card input, .team-dialog input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #142337; font: inherit; font-size: 16px; }
.team-auth-card input:focus, .team-dialog input:focus { outline: 2px solid #f0bc42; outline-offset: 2px; }
.team-auth-card .btn { width: 100%; }
.team-text-button { min-height: 40px; padding: 8px 0; border: 0; background: none; color: #536179; font: inherit; font-size: 13px; cursor: pointer; }
.team-auth-card > .team-text-button { margin-top: 16px; }
.team-dialog { box-sizing: border-box; width: min(600px, calc(100% - 24px)); max-height: 88dvh; padding: 0; border: 1px solid #dfe5ed; border-radius: 18px; color: #142337; box-shadow: 0 22px 80px #14233730; }
.team-dialog::backdrop { background: #12203188; }
.team-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #e2e8f0; }
.team-dialog h2 { margin: 0; font-size: 19px; }
.team-dialog-body { padding: 8px 22px 24px; }
.team-dialog p { line-height: 1.7; overflow-wrap: anywhere; }
.team-dialog [role="status"].error { color: #b42318; }
.team-invite-url { font-size: 12px !important; font-weight: 400; }
#teamInviteLink:not(:empty), .team-member-link:not(:empty) { display: grid; gap: 10px; padding: 16px 0; }
.team-member { padding: 18px 0; border-top: 1px solid #e2e8f0; }
.team-member > div:first-child { display: grid; gap: 6px; overflow-wrap: anywhere; }
.team-member span { font-size: 13px; color: #64748b; }
.team-status { font-weight: 600; }
.team-member-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.team-member-actions .btn { width: auto; min-width: 0; padding: 9px 12px; font-size: 13px; }
.team-danger { color: #b42318 !important; }
.unit-data-status { margin: 0 0 16px; color: #536179; font-size: 13px; line-height: 1.6; }
.unit-data-status:empty { display: none; }
.container.app-shell-active, body.app-device-mode .container.app-shell-active { max-width: 720px; }
.container.app-shell-active .top-bar, body.app-device-mode .container.app-shell-active .top-bar { width: auto; margin-left: 0; }
.top-bar .brand-logo, body.app-device-mode .top-bar .brand-logo { width: 300px; max-width: 100%; height: auto; }
.calculator-account-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #dfe5ed; }
.calculator-account-user { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.calculator-account-user strong { overflow-wrap: anywhere; }
.calculator-account-user > span { color: #64748b; white-space: nowrap; }
.calculator-account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.calculator-account-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 12px; border: 1px solid #dfe5ed; border-radius: 9px; background: #fff; color: #142337; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.calculator-account-btn:hover { background: #eff6ff; border-color: #a7c3eb; }
.calculator-account-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.calculator-account-bar svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calculator-support-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.team-password-actions { display: flex; justify-content: flex-end; gap: 10px; }
.team-password-actions .btn { width: auto; }
#teamPasswordForm > p:first-child { margin: 0; color: #64748b; font-size: 13px; }
#menuTeamBtn { display: none; }
.calculator-admin #menuTeamBtn { display: inline-flex; }
.calculator-private-shield #appShell, .calculator-private-shield .team-dialog { visibility: hidden; }
[data-install-app][hidden] { display: none !important; }
@media (max-width: 480px) { .team-auth-card { padding: 26px 20px; border-radius: 18px; } .team-dialog > header { padding: 14px 16px; } .team-dialog-body { padding: 6px 16px 20px; } }
@media (max-width: 600px) { .calculator-account-user { width: 100%; } .calculator-account-actions { width: 100%; } .calculator-account-btn { min-height: 44px; padding: 8px 10px; font-size: 12px; } }
@media (max-width: 768px) { .top-bar .brand-logo, body.app-device-mode .top-bar .brand-logo { width: clamp(210px, 58vw, 260px); } }
