/* Account lifecycle uses the existing document-workspace tokens and controls. */
body.workspace .access-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:24px;align-items:center;border:1px solid var(--sms-line);border-inline-start:3px solid var(--sms-action);padding:24px;margin-block:20px;background:var(--sms-paper);border-radius:var(--sms-card-radius)}
body.workspace .access-intro h2{font-size:18px;margin:0 0 8px}
body.workspace .access-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0;margin:0;list-style:none;text-align:center;position:relative}
body.workspace .access-journey::before{content:'';position:absolute;top:24px;inset-inline:16%;height:1px;background:var(--sms-line);transform-origin:left;animation:access-connect 1200ms ease-out both}
html[dir=rtl] body.workspace .access-journey::before{transform-origin:right}
body.workspace .access-journey li{display:grid;justify-items:center;align-content:start;gap:12px;font-size:12px;font-weight:600;color:var(--sms-secondary);animation:access-arrive 360ms ease-out both}
body.workspace .access-journey li:nth-child(2){animation-delay:180ms}
body.workspace .access-journey li:nth-child(3){animation-delay:360ms}
body.workspace .journey-icon{position:relative;width:48px;height:48px;border-radius:12px;background:var(--sms-selection);border:1px solid var(--sms-line);display:grid;place-items:center;color:var(--sms-action)}
body.workspace .journey-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@keyframes access-arrive{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes access-connect{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){body.workspace .access-journey li,body.workspace .access-journey::before{animation:none}}
body.workspace .access-intro p{margin:0;max-width:640px}
body.workspace .access-intro a{flex-shrink:0}
body.workspace .access-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:16px;align-items:end}
body.workspace .access-filters label{display:grid;gap:8px;margin:0}
body.workspace .access-list{display:grid;gap:12px;margin-block:20px}
body.workspace .access-account{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.5fr) minmax(190px,.6fr);gap:20px;align-items:start;padding:20px;border:1px solid var(--sms-line);border-radius:var(--sms-card-radius);background:var(--sms-paper)}
body.workspace .access-account h2{font-size:18px;font-weight:700;margin:0 0 4px;overflow-wrap:anywhere}
body.workspace .access-email{direction:ltr;unicode-bidi:isolate;text-align:start;overflow-wrap:anywhere;color:var(--sms-secondary);font-size:14px}
body.workspace .access-identity .permission-summary{max-width:none;margin:12px 0 0}
body.workspace .access-actions{display:grid;gap:8px;min-width:0}
body.workspace .access-actions button{white-space:normal}
body.workspace .access-danger{color:var(--sms-danger)}
body.workspace .access-state{display:grid;gap:8px;justify-items:start;min-width:0}
body.workspace .access-badge{padding:4px 8px;border-radius:6px;font-size:12px;font-weight:700;background:var(--sms-inset);color:var(--sms-secondary)}
body.workspace .access-badge.active{color:var(--sms-success)}
body.workspace .access-badge.locked,body.workspace .access-badge.expired{color:var(--sms-danger)}
body.workspace .access-badge.pending{color:var(--sms-wait)}
body.workspace :is(#link-dialog,#recovery-dialog,#state-dialog){width:min(620px,calc(100vw - 24px))}
body.workspace #setup-link{width:100%;resize:vertical;overflow-wrap:anywhere;text-align:left;font:13px/1.7 Consolas,monospace;min-height:100px}
body.workspace #link-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:8px}
body.workspace #link-dialog .field-grid{margin-block:16px}
body.workspace #share-email{text-decoration:none;text-align:center;display:inline-flex;align-items:center;justify-content:center}
body.workspace #access-signin{margin-block:24px}
@media(max-width:1000px){body.workspace .access-intro{grid-template-columns:1fr}body.workspace .access-account{grid-template-columns:minmax(0,1fr) minmax(160px,.6fr)}body.workspace .access-actions{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body.workspace .access-intro{padding:16px;gap:20px}body.workspace .access-intro a{padding-inline:0;margin-block-start:8px}body.workspace .access-filters{grid-template-columns:1fr;gap:12px}body.workspace .access-account{grid-template-columns:1fr;gap:16px;padding:16px}body.workspace .access-state{grid-row:2}body.workspace .access-actions{grid-template-columns:1fr}body.workspace #link-dialog .dialog-actions>*{width:100%}body.workspace .access-journey{gap:8px}body.workspace .access-journey li{font-size:11px}}
