/* Universal record control: restrained Crew Atlas review UI; system type remains unchanged. */
.atlas-duty-workspace-tools{display:flex;gap:.7rem;flex-wrap:wrap;margin:.75rem 0 1.15rem}
.atlas-duty-workspace-tools button{min-width:0}
.atlas-delete-dialog{color:inherit;background:#151f31;border:1px solid #34445b;border-radius:1rem;padding:1.25rem;max-width:min(93vw,570px);max-height:85dvh;overflow-y:auto;box-shadow:0 25px 70px #0009}
.atlas-delete-dialog::backdrop{background:#050c16bd;backdrop-filter:blur(3px)}
.atlas-delete-dialog h2{margin:0 0 .6rem;font-size:1.3rem}
.atlas-delete-dialog .atlas-delete-effects{border:1px solid #344257;border-radius:.8rem;padding:.65rem .85rem;margin:1rem 0;background:#1b293b}
.atlas-delete-dialog .atlas-delete-effect{margin:.45rem 0;color:#dce5f2;line-height:1.55}
.atlas-delete-dialog label{display:grid;gap:.45rem;line-height:1.4}
.atlas-delete-dialog select{width:100%}
.atlas-delete-dialog .atlas-delete-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1rem}
.atlas-delete-dialog .atlas-delete-actions button{flex:1;min-width:135px}
.atlas-delete-dialog button.danger,.atlas-managed-row button.danger,.atlas-import-cleanup button.danger{background:#3c2430;border:1px solid #a64c69;color:#ffccd5}
.atlas-delete-status{color:#ffb3ba;min-height:1em}
.atlas-record-controls{display:flex;gap:.6rem;flex-wrap:wrap;margin:.85rem 0}
.atlas-record-controls select,.atlas-record-controls input{flex:1 1 145px;min-width:0}
.atlas-record-manager-list{max-height:400px;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid #334155}
.atlas-managed-row{display:flex;gap:.55rem;align-items:center;justify-content:space-between;padding:.7rem .1rem;border-bottom:1px solid #29374c}
.atlas-managed-row>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:.88rem;color:#dbe6f5}
.atlas-managed-row button{flex:none;font-size:.85rem;white-space:nowrap}
.atlas-import-cleanup{border-top:1px solid #344357;margin-top:1rem;padding-top:1rem}
.atlas-import-cleanup label{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
@media(max-width:530px){.atlas-managed-row{flex-wrap:wrap}.atlas-managed-row>span{flex:1 0 100%}.atlas-delete-dialog{padding:1rem}.atlas-duty-workspace-tools button{width:100%}}
body.light .atlas-delete-dialog{background:#fff;color:#142138;border-color:#a7b4c4}
body.light .atlas-delete-dialog .atlas-delete-effects{background:#f2f5f9}
body.light .atlas-delete-dialog .atlas-delete-effect{color:#19283b}
body.light .atlas-managed-row>span{color:#19283b}
/* Context-specific record actions (no Settings detour). */
.atlas-record-context-menu{position:relative;display:inline-block;flex:none;margin-inline-start:auto;min-width:36px;vertical-align:middle}
/* The roster panel itself has a backdrop-filter stacking context. Raise only the
   panel with an open contextual menu above neighbouring timeline cards. */
#rosterList>.roster-nonflight-card:has(>.atlas-record-context-menu[open]){position:relative;z-index:31}
.atlas-record-context-menu>summary{list-style:none;cursor:pointer;min-width:38px;min-height:38px;display:flex;align-items:center;justify-content:center;border:1px solid #516079;border-radius:10px;background:transparent;color:inherit;font-weight:700}
.atlas-record-context-menu>summary::-webkit-details-marker{display:none}
.atlas-context-menu-options{display:grid;gap:6px;position:absolute;z-index:30;right:0;top:calc(100% + 3px);min-width:195px;padding:9px;border:1px solid #42546e;background:#172338;color:#edf4fb;border-radius:12px;box-shadow:0 14px 35px #0007}
.atlas-context-menu-options>button{width:100%;text-align:left;min-height:39px}
.atlas-archived-tray{margin:12px 0;border:1px solid #3c4e66;border-radius:11px;padding:8px 12px;max-width:100%}
.atlas-archived-tray>summary{cursor:pointer;font-size:.86rem;font-weight:600}
.atlas-calendar-context-tools{border:1px solid #46536a;border-radius:15px;padding:14px;margin:14px 0;background:rgba(43,59,81,.13)}
.atlas-calendar-context-tools h4{margin:0 0 5px}
.atlas-calendar-scope{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap;font-size:.83rem}
.atlas-calendar-scope select{max-width:265px}
.atlas-inline-record-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.atlas-inline-record-actions button{max-width:100%}
.atlas-outcome-corrections{margin-top:8px}
#calendar>.workflow-heading{margin-bottom:12px}
@media(max-width:560px){.atlas-inline-record-actions button{flex:1 1 100%}.atlas-context-menu-options{min-width:175px}.atlas-archived-tray .atlas-managed-row{flex-wrap:wrap}}
body.light .atlas-context-menu-options{background:#fff;color:#22354d;box-shadow:0 14px 35px #0002}
body.light .atlas-calendar-context-tools{background:#f6f8fb;border-color:#bdc6d4}
