/* Shared dialog surfaces; module-specific map/gallery geometry is preserved. */
body.resiro-common-workspace #overlay .aux-dialog{background:var(--work-paper);color:var(--work-ink);border:1px solid var(--work-line);border-radius:4px;box-shadow:0 14px 48px #10212e26}
body.resiro-common-workspace #overlay .aux-dialog>.modal-head{background:var(--work-soft);color:var(--work-ink);padding:14px 18px;gap:14px;align-items:center}
body.resiro-common-workspace #overlay .aux-dialog>.modal-head h2{font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.02em;min-width:0;overflow-wrap:anywhere;margin:0}
body.resiro-common-workspace #overlay .aux-dialog>.modal-head .icon-btn{flex:0 0 40px;width:40px;height:40px;color:var(--work-ink);background:var(--work-paper);border:1px solid var(--work-line);border-radius:4px}
body.resiro-common-workspace #overlay .aux-dialog>.modal-body{color:var(--work-ink);scrollbar-gutter:stable;overscroll-behavior:contain}
body.resiro-common-workspace #overlay .aux-dialog>.modal-foot{background:var(--work-paper);padding:12px 18px;flex-wrap:wrap;gap:8px}
body.resiro-common-workspace #overlay .aux-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),textarea,select){background:var(--work-paper);color:var(--work-ink);border-color:var(--work-line);box-shadow:none}
body.resiro-common-workspace #overlay .aux-dialog :is(input,textarea)::placeholder{color:var(--work-sub);opacity:1;font-weight:400}
body.resiro-common-workspace #overlay .aux-dialog :is(input[type=checkbox],input[type=radio]){accent-color:#087770;flex-shrink:0}
body.resiro-common-workspace #overlay .aux-dialog .form-message:not(:empty){padding:10px 12px;border-left:3px solid #b82742;background:#fcf0f2;color:#8e2037;border-radius:3px}
body.dark.resiro-common-workspace #overlay .aux-dialog .form-message:not(:empty){background:#392830;color:#ffb0bc}
body.resiro-common-workspace #overlay .aux-dialog :is(.multi,.multi-list label){border-radius:4px}
body.resiro-common-workspace #overlay .aux-dialog .multi-list label:hover{background:var(--work-hover)}
body.resiro-common-workspace #overlay .aux-dialog .aux-table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
body.resiro-common-workspace #overlay .aux-dialog .aux-table :is(th,td){padding:10px 12px;vertical-align:top;line-height:1.4}
body.resiro-common-workspace #overlay .aux-dialog .aux-table th{background:var(--work-soft);color:var(--work-sub);font-weight:600;font-size:12px;letter-spacing:.02em}
body.resiro-common-workspace #overlay .aux-dialog .aux-table td{font-size:14px;color:var(--work-ink)}
body.resiro-common-workspace #overlay .aux-dialog .aux-table tbody tr:hover{background:var(--work-hover)}
body.resiro-common-workspace #overlay .aux-dialog :is(.mfa-qr,img){max-width:100%}
body.resiro-common-workspace #overlay .aux-dialog :is(.mfa-secret,.recovery-codes){overflow-wrap:anywhere}
/* Profile retains existing fields, validation and security flows. */
body.resiro-common-workspace #overlay .account-modal{width:min(850px,calc(100vw - 32px))}
body.resiro-common-workspace #overlay .account-modal .modal-body{background:var(--work-paper);padding:18px}
body.resiro-common-workspace #overlay .account-hero{padding:0 0 16px;gap:12px;border-bottom:1px solid var(--work-line);margin-bottom:16px}
body.resiro-common-workspace #overlay .account-avatar{width:48px;height:48px;background:var(--work-soft);color:var(--work-key);border:1px solid var(--work-line);border-radius:4px;font-size:18px;font-weight:600}
body.resiro-common-workspace #overlay .account-eyebrow{font-size:11px;letter-spacing:.04em;color:var(--work-sub)}
body.resiro-common-workspace #overlay .account-hero h3{font-size:20px;margin:3px 0;font-weight:600;letter-spacing:-.02em}
body.resiro-common-workspace #overlay .account-hero p{font-size:13px;color:var(--work-sub)}
body.resiro-common-workspace #overlay .account-tabs{background:var(--work-soft);border:1px solid var(--work-line);border-radius:4px;padding:4px;margin-bottom:16px;gap:4px}
body.resiro-common-workspace #overlay .account-tabs .btn{border:1px solid transparent;border-radius:3px;min-height:42px;padding:8px;font-size:13px;font-weight:500;color:var(--work-sub);background:transparent;box-shadow:none}
body.resiro-common-workspace #overlay .account-tabs .btn.selected{border-color:var(--work-line);background:var(--work-paper);color:var(--work-ink);font-weight:600}
body.resiro-common-workspace #overlay .account-section{padding:16px;border:1px solid var(--work-line);background:var(--work-paper);border-radius:4px;margin-bottom:14px}
body.resiro-common-workspace #overlay .account-section-heading{margin-bottom:14px}
body.resiro-common-workspace #overlay .account-section h3{font-size:16px;font-weight:600;margin-bottom:5px}
body.resiro-common-workspace #overlay :is(.account-section-heading p,.account-toggle-row p,.account-details dt,.account-details dd small){color:var(--work-sub)}
body.resiro-common-workspace #overlay .account-details{gap:18px 24px}.account-details dd{font-variant-numeric:tabular-nums}
body.resiro-common-workspace #overlay .account-shortcuts{gap:10px}
body.resiro-common-workspace #overlay .account-shortcuts>button{padding:14px;border-radius:4px;background:var(--work-paper);border-color:var(--work-line);color:var(--work-ink)}
body.resiro-common-workspace #overlay .account-shortcuts>button:hover{background:var(--work-hover);border-color:var(--work-sub)}
body.resiro-common-workspace #overlay .account-shortcuts small{color:var(--work-sub);margin-top:3px}
body.resiro-common-workspace #overlay .account-shortcut-icon{color:var(--work-key)}
body.resiro-common-workspace #overlay .account-categories.multi{margin-top:16px;gap:8px}
body.resiro-common-workspace #overlay .account-category{padding:12px;border-radius:4px;border-color:var(--work-line);background:var(--work-paper)}
body.resiro-common-workspace #overlay .account-category:has(input:checked){background:var(--work-select);border-color:var(--work-key)}
body.resiro-common-workspace #overlay .account-category small{color:var(--work-sub)}
body.resiro-common-workspace #overlay .account-notice{border-radius:4px;background:#fff5e4;color:#82520c;border:1px solid #e8d7b9}
body.dark.resiro-common-workspace #overlay .account-notice{background:#3b3225;color:#f0c378;border-color:#735e3c}
body.resiro-common-workspace #overlay .aux-dialog :is(button,input,textarea,select,summary):focus-visible{outline:2px solid var(--work-key);outline-offset:3px}
@media(max-width:760px){
 body.resiro-common-workspace #overlay .aux-dialog{border-radius:4px;max-width:calc(100vw - 16px)}
 body.resiro-common-workspace #overlay .aux-dialog>.modal-head{padding:10px 12px;gap:8px}
 body.resiro-common-workspace #overlay .aux-dialog>.modal-head h2{font-size:18px}
 body.resiro-common-workspace #overlay .aux-dialog>.modal-foot{padding:10px 12px;gap:7px}
 body.resiro-common-workspace #overlay .aux-dialog .btn{min-height:44px;white-space:normal}
 body.resiro-common-workspace #overlay .aux-dialog :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px}
 body.resiro-common-workspace #overlay .account-modal{width:calc(100vw - 16px)}
 body.resiro-common-workspace #overlay .account-modal .modal-body{padding:12px}
 body.resiro-common-workspace #overlay .account-section{padding:12px}
 body.resiro-common-workspace #overlay .account-tabs{gap:2px;padding:3px}
 body.resiro-common-workspace #overlay .account-tabs .btn{font-size:12px;padding:7px 4px;flex-direction:column;line-height:1.3}
 body.resiro-common-workspace #overlay .account-tabs .btn svg{width:18px;height:18px}
 body.resiro-common-workspace #overlay .account-details,body.resiro-common-workspace #overlay .account-shortcuts,body.resiro-common-workspace #overlay .account-categories.multi{grid-template-columns:1fr}
 body.resiro-common-workspace #overlay .account-details{gap:14px}
 body.resiro-common-workspace #overlay .account-section .actions{display:flex;flex-wrap:wrap}
 body.resiro-common-workspace #overlay .aux-dialog .aux-table :is(th,td){min-width:100px}
}
@media print{body.resiro-common-workspace #overlay .aux-dialog .aux-table{display:table;overflow:visible}body.resiro-common-workspace #overlay .aux-dialog{box-shadow:none}}
body.resiro-common-workspace #overlay .aux-dialog.account-modal :is(.form-grid,.account-tabs,.account-section,.account-category){min-width:0;max-width:100%;box-sizing:border-box}
body.resiro-common-workspace #overlay .aux-dialog.account-modal .account-tabs .btn{min-width:0;flex:1 1 0;overflow-wrap:anywhere}
body.resiro-common-workspace #overlay .aux-dialog.account-modal .account-section{border-radius:4px!important}
body.resiro-common-workspace #overlay .aux-dialog .theme-option{border-radius:4px;background:var(--work-paper);border-color:var(--work-line);color:var(--work-ink);box-shadow:none;padding:14px}
body.resiro-common-workspace #overlay .aux-dialog .theme-option.selected{background:var(--work-select);border-color:var(--work-key)}
body.resiro-common-workspace #overlay .aux-dialog .theme-option small{color:var(--work-sub)}
body.resiro-common-workspace #overlay .aux-dialog .theme-swatch{border-radius:3px}
@media(max-width:600px){
 body.resiro-common-workspace #overlay .aux-dialog.account-modal .account-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 body.resiro-common-workspace #overlay .aux-dialog.account-modal .account-tabs .btn{flex-direction:row;justify-content:flex-start;padding:8px;font-size:12px;overflow-wrap:normal}
 body.resiro-common-workspace #overlay .aux-dialog.account-modal .account-tabs .btn svg{flex-shrink:0}
 body.resiro-common-workspace #overlay .aux-dialog.account-modal .account-category>span{min-width:0;overflow-wrap:anywhere}
 body.resiro-common-workspace #overlay .aux-dialog.account-modal .field{min-width:0}
}
body.resiro-common-workspace #overlay .aux-dialog.account-modal{display:flex;flex-direction:column}
body.resiro-common-workspace #overlay .aux-dialog.account-modal>.modal-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
body.resiro-common-workspace #overlay .aux-dialog.account-modal>.modal-head,body.resiro-common-workspace #overlay .aux-dialog.account-modal>.modal-foot{flex-shrink:0}
