.account-panel { max-width: 720px; padding: 20px; }
.account-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.account-identity h2, .account-identity p { margin: 0 0 4px; overflow-wrap: anywhere; }
.account-photo { display: grid; place-items: center; flex: 0 0 72px; height: 72px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 50%; font-size: 24px; font-weight: 600; overflow: hidden; }
.account-photo img, .profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-panel .auth-form { max-width: 520px; }
.account-panel .form-field input[type="file"] { max-width: 100%; height: auto; }
.account-panel .form-field input[type="checkbox"] { justify-self: start; }
.service-foreign { background: var(--surface-soft); color: var(--muted); }
.service-foreign .compact-state, .service-foreign .dense-service-status { background: var(--pill); color: var(--ink); border-color: var(--line); }
.job-v2-service.service-foreign { background: var(--surface-soft); color: var(--muted); }
@media (max-width: 520px) { .account-panel { padding: 16px; } .account-identity { align-items: flex-start; } }
/* Shared account access matrix and navigation. */
.access-matrix { margin: 16px 0; padding: 0; border: 0; min-width: 0; }
.access-matrix legend { font-weight: 650; font-size: 15px; }
.access-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.access-parent, .access-children label { display: flex; align-items: center; gap: 9px; }
.access-children { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 10px 0 0 26px; }
.access-matrix input[type="checkbox"] { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
.add-user-circle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--success); color: var(--surface); }
.add-user-circle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.add-user-circle:hover { filter: brightness(.9); }
.header-users { display: flex; gap: 6px; align-items: center; color: inherit; padding: 5px 9px; border-radius: 8px; }
.header-users:hover { background: rgb(255 255 255 / .12); }
.header-users svg { width: 17px; height: 17px; }
.nav-group { padding: 0; border: 0; }
.nav-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.nav-group > summary::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); margin-right: 8px; }
.nav-group[open] > summary::after { transform: rotate(45deg); }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 50%; background: #2457c5; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; margin-left: auto; }
@media (max-width: 600px) { .access-children { display: grid; gap: 12px; } }
.task-overview tr.is-complete { color: var(--muted); background: var(--surface-soft); }
.task-overview .is-complete td:nth-child(2) { text-decoration: line-through; }
.task-checkbox { display: grid; place-items: center; width: 23px; height: 23px; min-height: 23px; padding: 2px; background: var(--surface); border: 1px solid var(--control-line); color: var(--success); border-radius: 5px; }
.task-checkbox svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.chat-workers { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.chat-workers [aria-current] { font-weight: 700; text-decoration: underline; }
.chat-messages { list-style: none; margin: 12px 0; padding: 0; max-height: 55vh; overflow: auto; }
.chat-messages li { padding: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.chat-messages li.is-own { background: var(--accent-soft); }
.chat-messages li > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.chat-messages p { margin: 6px 0 0; white-space: normal; }
.chat-compose { display: grid; gap: 8px; }
.chat-compose button { justify-self: start; }
