/* density: account — merged into lists-density.css before commit */

/* ── Top bar: the profile chip no taller than the nav (account-chrome-17) ── */
@media (pointer:fine){
  .who{padding:2px 5px 2px 2px;gap:7px}
  .who .av{width:28px;height:28px}
}
@media (pointer:fine) and (max-width:1180px){.who .tag{display:none}}

/* ── Notifications dialog: tighter rows (account-chrome-3) ── */
.note-list{gap:5px}
.note-list .note{padding:7px 10px;gap:9px;align-items:center}
.note-list .note .ic{width:24px;height:24px;border-radius:6px;font-size:12px}
.note-list .note .ic:not(.approved):not(.declined):not(.removed):not(.sent){background:var(--paper-2,var(--sag-selected));color:var(--muted)}
.note-list .note .tx b{font-size:13px;line-height:1.3}
.note-list .note .tx span{margin-top:0;line-height:1.35}
.note-list .note .new{margin-top:0}
@media (max-width:720px){
  .modal-ft:has(#note-clear){flex-direction:row;flex-wrap:wrap}
  .modal-ft:has(#note-clear) .btn{flex:1 1 0}
  .modal-ft:has(#note-clear) #note-all{order:-1;flex:1 1 100%}
}


/* ── Push setup strip on a phone: icon beside the title (account-chrome-15) ── */
@media (max-width:720px){
  .push-setup{display:grid;grid-template-columns:28px minmax(0,1fr);gap:6px 10px;align-items:start}
  .push-setup-icon{width:28px;height:28px}
  .push-setup-copy{min-width:0}
  .push-setup-actions{grid-column:1/-1;width:auto;padding-left:38px}
}

/* ── Account page ── */
/* Profile on a phone (account-chrome-14) */
@media (max-width:650px){
  .account-profile{padding:12px;gap:10px}
  .account-avatar{width:48px;height:48px}
  .account-profile-copy h1{font-size:20px}
  .account-role{grid-column:2;justify-self:start;margin-top:0;padding:4px 8px;font-size:12px}
}

/* Cards: the tall devices card spans two rows so the right column fills (account-chrome-2) */
@media (min-width:921px){
  .account-grid{grid-template-rows:auto 1fr}
  .account-grid>.account-card:first-child{grid-row:span 2}
}

/* Signed-in devices: a short scroll box of compact rows (account-chrome-1) */
.account-device-list{max-height:232px;overflow-y:auto;overscroll-behavior:contain;gap:4px;padding-right:2px}
.account-device{padding:5px 9px;border-radius:8px}
@media (min-width:921px){.account-device-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* No blank band where no push button applies (account-chrome-12) */
.account-actions:empty{display:none}
.account-subhead{margin:12px 0 2px;padding-top:12px}

/* Account actions: mouse-sized (account-chrome-11); the rules button sized to its words (5) */
@media (pointer:fine){
  .account-action{min-height:32px;border-radius:8px;padding:0 12px}
  .account-card .account-actions{margin-top:10px;gap:6px}
}
.account-card .account-actions>.btn{width:auto;flex:none;padding:0 14px}
/* Account actions look like every other secondary button: white, 600 weight (round 2) */
.account-action:not(.primary){background:var(--sag-surface,var(--sag-surface));border-color:var(--line);color:var(--sag-text,var(--ink));box-shadow:var(--sag-shadow-1)}
.account-action:not(.primary):hover:not(:disabled){background:var(--sag-hover,var(--sag-hover))}
.account-action{font-size:13px;font-weight:600;white-space:nowrap}
.account-action.danger{color:var(--sag-risk-fg)}
@media (pointer:coarse){.account-action{min-height:44px;border-radius:8px}}

/* Device rows say their whole "last used" line; it wraps instead of "just n…" (round 2) */
.account-device-copy b,.account-device-copy span{white-space:normal;overflow:visible;text-overflow:clip}

/* Rules dialog and other review forms: mouse-sized fields (account-chrome-9) */
@media (pointer:fine){
  .modal .review-field{margin:10px 0;gap:4px;font-size:13px}
  .modal .review-field input,.modal .review-field select{padding:6px 10px;font-size:13px}
  .modal .review-field select{padding-right:28px}
}

/* Org chart: smaller cards on desktop; the phone list is left alone (account-chrome-8) */
@media (min-width:721px){
  .org-person{width:128px;padding:6px 6px 7px}
  .org-avatar{width:40px;height:40px;font-size:15px;border-width:3px}
  .org-name{margin-top:4px;font-size:13px}
  .org-role{font-size:12px}
  .org-chart ul ul,.org-chart li{padding-top:20px}
  .org-chart li::before,.org-chart li::after,.org-chart ul ul::before{height:20px}
}

/* Team roster: device chips readable (account-chrome-6). The script already
   caps them at four plus "+N"; the row grows to hold them, so the "+N" chip
   never hangs out of its row into the next person's (round 2). */
.team-roster td.device-cell .person-devices{align-content:flex-start;row-gap:4px}
.person-device{font-size:11px!important}
.team-roster th[aria-sort]{padding:0}

/* Manage access: the drawn chevron every select uses, not a typed "⌄" (round 2) */
.access-trigger::after{content:'';flex:0 0 12px;width:12px;height:12px;transform:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2363696C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/12px 12px no-repeat}
.access-trigger{white-space:nowrap}
@media (pointer:fine){
  .access-trigger{height:34px;border-radius:8px;font-size:13px;box-shadow:none}
  .access-options{top:calc(100% + 4px)}
  .access-options.up{top:auto;bottom:calc(100% + 4px)}
}
@media (pointer:coarse){.access-trigger{height:44px;border-radius:8px}}

/* Add team member row: one height (account-chrome-10) */
.team-add-row .btn.btn-sm{align-self:stretch;height:auto;min-height:0}
.account-team .hint{font-size:12px;line-height:1.45;color:var(--muted)}
.account-team .team-add>.hint{margin-top:6px}
@media (pointer:fine){
  .team-add-row input{padding:6px 10px}
  .team-add-row .access-trigger{min-height:32px}
}

/* Document Control duty pills: the font rule in index.html is invalid and dropped (account-chrome-7) */
.document-duty{font-family:inherit;font-size:12px;font-weight:650;line-height:1.1;padding:5px 10px}
.document-access-person{padding-top:7px;padding-bottom:7px}
/* Selected is the graphite selected state, not the amber "waiting" colour (round 2) */
.document-duty{background:var(--sag-surface);border-color:var(--line);color:var(--ink-2)}
.document-duty[aria-pressed="true"]{background:var(--sag-primary,var(--sag-primary));border-color:var(--sag-primary,var(--sag-text));color:var(--sag-on-primary);box-shadow:none}
@media (pointer:fine){.document-duty{min-height:30px;padding:0 12px}}
@media (pointer:coarse){.document-duty{min-height:44px;padding:0 14px}}

/* Scanners (account-chrome-13) */
#scanners-block .block-hd h3{display:none}
#scanners-block>.block{margin-top:8px!important}
.account-scanners .more-block summary{padding:10px 16px}

/* ── Touch: 44px targets in the top bar and on the Account page (round 2) ──
   The glyphs keep their size; the buttons grow around them. Sign out keeps a
   clear gap from the bell so a near miss does not sign anybody out. */
@media (pointer:coarse){
  .topbar .icon-btn{width:44px;height:44px}
  .topbar .lang button{min-width:44px;min-height:44px;padding:0 8px}
  .topbar #btn-out{margin-left:10px}
  .account-copy{width:44px;height:44px;flex-basis:44px}
  .account-back-btn{width:44px;min-width:44px;height:44px;min-height:44px}
  #account-phone-edit{min-height:44px;padding:0 14px}
  #account-language button{min-height:44px;min-width:44px}
}

/* ── Names and emails are never cut to "…" (round 2): they wrap at any
   character when the column is too narrow for them, which only a phone is. ── */
.team-person-copy b,.team-person-copy span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.account-line:has(.account-email) .account-email{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
/* Duty toggles are controls: the 8px control radius, not a status pill */
.document-duty{border-radius:8px}

/* F: a label is as wide as its word ("TELEPON" broke in the middle at 46px). */
.account-line-key{flex:0 0 auto;min-width:46px;white-space:nowrap}
