/* Identity documents live by traveler; trip files stay in Voyages. */
.atlas-space-page .space-doc-eyebrow{
 display:block;margin:0 0 7px;color:#9a753f;text-transform:uppercase;
 letter-spacing:.13em;font-size:10px;font-weight:800;line-height:1.35;
}
.atlas-space-page .space-identity-heading{
 margin:17px 0 14px;padding:0 2px;
}
.atlas-space-page .space-identity-heading h2{
 margin:0 0 7px;font-size:24px;font-weight:750;
 line-height:1.3;letter-spacing:-.025em;color:#1a3350;
}
.atlas-space-page .space-identity-heading p{
 margin:0;max-width:650px;color:#687d92;
 font-size:12px;line-height:1.55;
}
.atlas-space-page #spacePanelDocuments .traveler-library{
 margin-top:14px;
}
.atlas-space-page .space-trip-title-link{
 display:inline;text-align:left;margin:0;padding:0;border:0;background:none;
 color:inherit;font:inherit;letter-spacing:inherit;line-height:inherit;cursor:pointer;
}
.atlas-space-page .space-trip-title-link:hover{text-decoration:underline;text-underline-offset:3px}
.atlas-space-page .space-trip-title-link:focus-visible{outline:3px solid #b68d51;outline-offset:3px;border-radius:2px}
@media(max-width:640px){
 .atlas-space-page .space-identity-heading{margin-top:13px}
 .atlas-space-page .space-identity-heading h2{font-size:21px}
}

/* 18 Oct 2026: document-center inline add tiles. Presentation only; existing
   profile creation, document upload, identity checks and persistence stay intact. */
.atlas-space-page #spacePanelDocuments .library-add-traveler{
 display:flex;flex:0 0 96px;flex-direction:column;align-items:center;
 justify-content:flex-start;gap:9px;width:96px;max-width:96px;min-height:120px;
 margin:0;padding:4px;border:0;border-radius:12px;background:transparent;
 color:#52667e;box-shadow:none;text-align:center;
 font:600 13px/1.45 var(--atlas-font,Manrope,sans-serif);cursor:pointer;
}
.atlas-space-page #spacePanelDocuments .library-traveler-add-avatar{
 display:grid;place-items:center;box-sizing:border-box;
 border:1.5px dashed #9caec0;border-radius:50%;background:#f6f8fb;
 box-shadow:0 0 0 2px transparent;
}
.atlas-space-page #spacePanelDocuments .library-traveler-add-avatar svg{
 width:28px;height:28px;fill:none;stroke:#7d93a9;stroke-width:1.7;
 stroke-linecap:round;stroke-linejoin:round;
}
.atlas-space-page #spacePanelDocuments .library-add-traveler:hover:not(:disabled){
 background:transparent;color:#192f49;
}
.atlas-space-page #spacePanelDocuments .library-add-traveler:hover:not(:disabled) .library-traveler-add-avatar{
 background:#f9f6ee;border-color:#b09057;box-shadow:0 0 0 3px #f8f2e9;
}
.atlas-space-page #spacePanelDocuments .library-add-traveler:focus-visible{
 outline:2px solid #aa8549;outline-offset:3px;
}
.atlas-space-page #spacePanelDocuments .library-document-add-tile{
 display:flex;align-items:center;justify-content:flex-start;gap:24px;
 width:100%;min-height:170px;box-sizing:border-box;margin:0;
 padding:22px;border:1px dashed #b6c6d7;border-radius:13px;
 background:#fbfcfe;color:#243b55;box-shadow:none;text-align:left;
 font:650 16px/1.45 var(--atlas-font,Manrope,sans-serif);
 cursor:pointer;transition:border-color .15s ease,background .15s ease;
}
.atlas-space-page #spacePanelDocuments .library-document-add-cover{
 display:grid;place-items:center;flex:0 0 96px;width:96px;min-width:0;
 height:125px;
}
.atlas-space-page #spacePanelDocuments .library-document-add-cover svg{
 display:block;box-sizing:border-box;width:74px;height:94px;padding:23px 14px;
 border:1.5px dashed #c4b18c;border-radius:12px;background:#fff;
 fill:none;stroke:#a18452;stroke-width:1.7;stroke-linecap:round;
 stroke-linejoin:round;
}
.atlas-space-page #spacePanelDocuments .library-document-add-label{
 min-width:0;overflow-wrap:anywhere;font-size:16px;font-weight:650;
}
.atlas-space-page #spacePanelDocuments .library-document-add-tile:hover:not(:disabled){
 border-color:#b59762;background:#faf8f3;color:#182e49;
}
.atlas-space-page #spacePanelDocuments .library-document-add-tile:hover:not(:disabled) .library-document-add-cover svg{
 border-color:#ae8c51;background:#fffdfa;
}
.atlas-space-page #spacePanelDocuments .library-document-add-tile:focus-visible{
 outline:2px solid #aa8549;outline-offset:3px;
}
.atlas-space-page #spacePanelDocuments :is(.library-add-traveler,.library-document-add-tile):disabled{
 cursor:wait;opacity:.55;
}
/* The existing document art sits inside its own inset, never flush with the
   card's left border. Avoid changing the separate flag overlay. */
.atlas-space-page #spacePanelDocuments .library-document .library-document-cover{
 box-sizing:border-box;margin-inline:8px 4px;padding-inline:5px;
 justify-items:center;align-items:center;
}
.atlas-space-page #spacePanelDocuments .library-document .library-document-cover > img:not(.library-document-country-flag){
 display:block;max-width:100%;margin-inline:auto;object-fit:contain;
}
@media(max-width:640px){
 .atlas-space-page #spacePanelDocuments .library-add-traveler{
  flex-basis:84px;width:84px;max-width:84px;min-height:105px;gap:8px;font-size:12px;
 }
 .atlas-space-page #spacePanelDocuments .library-traveler-add-avatar{width:64px;height:64px}
 .atlas-space-page #spacePanelDocuments .library-document-add-tile{
  display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;
  gap:17px;min-height:132px;padding:17px;
 }
 .atlas-space-page #spacePanelDocuments .library-document-add-cover{
  width:72px;height:103px;
 }
 .atlas-space-page #spacePanelDocuments .library-document-add-cover svg{
  width:60px;height:78px;padding:18px 11px;
 }
 .atlas-space-page #spacePanelDocuments .library-document-add-label{font-size:14px}
 .atlas-space-page #spacePanelDocuments .library-document .library-document-cover{
  width:66px;min-width:0;max-width:66px;margin-inline:4px 2px;padding-inline:2px;
 }
}
@media(max-width:380px){
 .atlas-space-page #spacePanelDocuments .library-document-add-tile{gap:12px;padding:15px}
}
@media(prefers-reduced-motion:reduce){
 .atlas-space-page #spacePanelDocuments .library-document-add-tile{transition:none}
}

/* Screenshot QA (18 Oct): saved identity photos are in the legacy/unclassified
   Documents panel, NOT in .library-document-cover. Center their actual artwork
   and keep the new action inside this same panel, as its final full-width row. */
.atlas-space-page #spacePanelDocuments .library-document-add-tile{
 grid-column:1/-1;
 max-width:none;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-row{
 box-sizing:border-box;
 grid-template-columns:112px minmax(0,1fr);
 gap:18px;
 padding:18px 20px;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type]{
 display:grid;
 place-items:center;
 width:112px;
 max-width:112px;
 min-width:0;
 margin:0;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="passport"]{
 height:130px;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="identity_card"]{
 height:84px;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="passport"] .library-unclassified-known-image{
 display:block;
 position:static;
 width:88px;
 height:auto;
 max-width:100%;
 max-height:124px;
 margin:auto;
 object-fit:contain;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="identity_card"] .library-unclassified-known-image{
 display:block;
 position:static;
 width:96px;
 height:auto;
 max-width:100%;
 max-height:76px;
 margin:auto;
 object-fit:contain;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-document-add-tile{
 display:grid;
 grid-template-columns:112px minmax(0,1fr);
 grid-column:1/-1;
 gap:18px;
 width:100%;
 min-height:148px;
 margin:8px 0 0;
 padding:18px 20px;
 border:1px dashed #c7b48e;
 border-radius:13px;
 background:#fafbfd;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-document-add-cover{
 display:grid;
 place-items:center;
 width:112px;
 height:110px;
}
.atlas-space-page #spacePanelDocuments .library-unclassified-list .library-document-add-cover svg{
 width:74px;
 height:94px;
}
@media(max-width:640px){
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-row{
  grid-template-columns:72px minmax(0,1fr);
  gap:12px;
  padding:14px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type]{
  width:72px;
  max-width:72px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="passport"]{
  height:100px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="identity_card"]{
  height:58px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="passport"] .library-unclassified-known-image{
  width:60px;
  max-height:94px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-unclassified-visual[data-known-type="identity_card"] .library-unclassified-known-image{
  width:70px;
  max-height:54px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-document-add-tile{
  grid-template-columns:72px minmax(0,1fr);
  gap:12px;
  min-height:120px;
  padding:14px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-document-add-cover{
  width:72px;
  height:92px;
 }
 .atlas-space-page #spacePanelDocuments .library-unclassified-list .library-document-add-cover svg{
  width:60px;
  height:78px;
 }
}

.space-account-navigation .space-admin-tab{display:inline-flex;align-items:center;align-self:stretch;padding:14px 18px;color:#64748b;font-size:14px;font-weight:650;text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap}.space-account-navigation .space-admin-tab:hover,.space-account-navigation .space-admin-tab:focus-visible{color:#172b46;border-bottom-color:#b99555;background:#f8fafc}

/* Spacious account canvas; compact, professional traveler selection. */
.atlas-space-page .space-main{width:min(1600px,calc(100% - 64px));max-width:1600px;padding-top:36px}
.atlas-space-page #spacePanelDocuments .library-traveler-picker{gap:10px;padding:6px 0;align-items:center}
.atlas-space-page #spacePanelDocuments .library-traveler-button,.atlas-space-page #spacePanelDocuments .library-add-traveler{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:0 0 auto;width:auto;max-width:240px;min-height:54px;gap:10px;padding:8px 14px;border:1px solid #e1e6ed;border-radius:12px;background:#fff;box-shadow:none;text-align:left}
.atlas-space-page #spacePanelDocuments .library-traveler-button[aria-pressed=true]{border-color:#b89a65;background:#fbf8f2;color:#172b45}
.atlas-space-page #spacePanelDocuments .library-traveler-avatar{width:36px;height:36px;box-shadow:none;background:#f1f4f8}
.atlas-space-page #spacePanelDocuments .library-traveler-avatar::before,.atlas-space-page #spacePanelDocuments .library-traveler-avatar::after{display:none}
.atlas-space-page #spacePanelDocuments .library-traveler-name{display:block;min-height:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atlas-space-page #spacePanelDocuments .library-traveler-add-avatar{width:28px;height:28px;border:0;background:transparent}
.atlas-space-page #spacePanelDocuments .library-traveler-add-avatar svg{width:20px;height:20px}
.atlas-space-page #spacePanelDocuments .library-context-header{margin:24px 0 18px}
.atlas-space-page #spacePanelDocuments .library-delete-traveler{margin:0 0 0 auto;border-color:transparent;background:transparent;color:#7d5260}
@media(min-width:1800px){.atlas-space-page .space-main{width:min(1760px,calc(100% - 128px));max-width:1760px}}
@media(max-width:700px){.atlas-space-page .space-main{width:calc(100% - 32px);padding-top:24px}.atlas-space-page #spacePanelDocuments .library-traveler-button,.atlas-space-page #spacePanelDocuments .library-add-traveler{padding:8px 10px;min-height:52px}.atlas-space-page #spacePanelDocuments .library-delete-traveler{margin-left:0}.atlas-space-page .space-identity-heading h2{font-size:22px}}

/* Add people with a compact accessible control; keep destructive action last. */
.atlas-space-page #spacePanelDocuments .library-add-traveler{width:48px;max-width:48px;min-width:48px;height:48px;min-height:48px;flex:0 0 48px;justify-content:center;padding:0;border:1px dashed #b69a67;border-radius:50%;background:#fff;color:#8d6d38}
.atlas-space-page #spacePanelDocuments .library-add-traveler-label{display:none}
.atlas-space-page #spacePanelDocuments .library-traveler-add-avatar{width:44px;height:44px}
.atlas-space-page #spacePanelDocuments .library-traveler-add-avatar svg{width:22px;height:22px;stroke:#9b793e}
.atlas-space-page #spacePanelDocuments .library-add-traveler:hover:not(:disabled){background:#fbf8f1;border-color:#a9874d}
.atlas-space-page #spacePanelDocuments .library-delete-traveler{align-self:flex-end;min-height:38px;margin:18px 0 0 auto;padding:7px 12px;border:1px solid #e8e1df;border-radius:8px;background:transparent;color:#84666a;font-size:12px}
@media(max-width:700px){.atlas-space-page #spacePanelDocuments .library-delete-traveler{align-self:flex-end;margin:20px 0 0 auto;min-height:36px;padding:6px 10px;font-size:11px}}
.atlas-space-page .space-trips-loading{display:grid;gap:10px;max-width:720px;padding:18px 0}
.atlas-space-page .space-trips-loading[hidden]{display:none}
.atlas-space-page .space-trips-loading span{display:block;height:68px;border:1px solid #e6eaf0;border-radius:12px;background:linear-gradient(100deg,#f3f5f8 25%,#fff 42%,#f3f5f8 58%);background-size:220% 100%;animation:atlas-space-loading 1.6s ease-in-out infinite}
@keyframes atlas-space-loading{to{background-position-x:-220%}}
@media(prefers-reduced-motion:reduce){.atlas-space-page .space-trips-loading span{animation:none;background:#f3f5f8}}

/* Quiet traveler rail and one consistent card per identity document. */
.atlas-space-page .space-identity-heading{margin:22px 0 24px;padding:0}
.atlas-space-page .space-identity-heading h2{font-size:22px;font-weight:650;letter-spacing:-.025em}
.atlas-space-page #spacePanelDocuments .library-personal-space{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:start;gap:32px}
.atlas-space-page #spacePanelDocuments .library-traveler-heading{position:sticky;top:96px;margin:0;padding:0 20px 0 0;border-right:1px solid #edf0f3}
.atlas-space-page #spacePanelDocuments .library-traveler-picker{width:100%;margin:0;padding:0;flex-direction:column;align-items:stretch;gap:6px;overflow-x:visible}
.atlas-space-page #spacePanelDocuments .library-traveler-button{width:100%;max-width:none;min-height:46px;padding:7px 9px;gap:9px;border-color:transparent;border-radius:9px;background:transparent;font-weight:550}
.atlas-space-page #spacePanelDocuments .library-traveler-button:hover{background:#f5f7fa}
.atlas-space-page #spacePanelDocuments .library-traveler-button[aria-pressed=true]{border-color:#ebdfc8;background:#fbf8f2}
.atlas-space-page #spacePanelDocuments .library-traveler-avatar{flex:0 0 28px;width:28px;height:28px}
.atlas-space-page #spacePanelDocuments .library-traveler-avatar img{width:100%;height:100%;object-fit:contain}
.atlas-space-page #spacePanelDocuments .library-traveler-name{font-size:12px}
.atlas-space-page #spacePanelDocuments .library-add-traveler{align-self:flex-start;margin:7px 0 0 8px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;flex-basis:44px}
.atlas-space-page #spacePanelDocuments .library-traveler-add-avatar{flex-basis:28px;width:28px;height:28px}
.atlas-space-page #spacePanelDocuments .library-context-header{margin:0 0 18px}
.atlas-space-page #spacePanelDocuments .library-context-header h3{font-size:15px;font-weight:600}
.atlas-space-page #spacePanelDocuments .library-context-eyebrow{font-size:9px;letter-spacing:.08em;margin-bottom:5px}
.atlas-space-page #spacePanelDocuments .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending){position:relative;box-sizing:border-box;min-width:0;margin:0;padding:20px;border:1px solid #e1e6ed;border-radius:13px;background:#fff;box-shadow:0 3px 14px #172b4503;transition:border-color .2s ease,box-shadow .2s ease}
.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):hover{border-color:#e1e6ed;box-shadow:0 3px 14px #172b4503;transform:none}
.atlas-space-page #spacePanelDocuments .library-document-summary{gap:18px;min-height:134px}
.atlas-space-page #spacePanelDocuments .library-document-details h3{font-size:14px;font-weight:650}
.atlas-space-page #spacePanelDocuments .library-document-pending{display:grid;grid-template-columns:90px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;gap:12px 18px;min-height:176px}
.atlas-space-page #spacePanelDocuments .library-document-pending .library-unclassified-visual{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:90px;max-width:90px;min-height:106px}
.atlas-space-page #spacePanelDocuments .library-document-pending .library-unclassified-known-image{position:static;max-width:88px;max-height:120px;width:auto;height:auto;margin:auto;object-fit:contain}
.atlas-space-page #spacePanelDocuments .library-document-pending [data-known-type=identity_card] .library-unclassified-known-image{width:90px;height:auto}
.atlas-space-page #spacePanelDocuments .library-document-pending .library-file-info{grid-column:2;align-self:end}
.atlas-space-page #spacePanelDocuments .library-document-pending .library-file-info strong{font-size:14px;font-weight:650}
.atlas-space-page #spacePanelDocuments .library-document-pending .library-file-actions{grid-column:2;grid-row:2;align-self:start;width:auto;margin:0;gap:7px}
.atlas-space-page #spacePanelDocuments .library-document-pending .library-button{flex:0 1 auto;width:auto;min-height:38px;padding:8px 10px;font-size:11px}
.atlas-space-page #spacePanelDocuments .library-pending-explanation{font-size:11px;line-height:1.5}
.atlas-space-page #spacePanelDocuments .library-bulk-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
.atlas-space-page #spacePanelDocuments .library-bulk-actions .library-button{min-height:32px;font-size:11px;border-color:transparent;background:transparent}
.atlas-space-page #spacePanelDocuments .library-document-add-tile{grid-column:auto;display:flex;gap:18px;min-height:176px;padding:20px;border-color:#d7dee7;background:#fcfdfe}
.atlas-space-page #spacePanelDocuments .library-document-add-cover{flex-basis:90px;width:90px;height:106px}
.atlas-space-page #spacePanelDocuments .library-document-add-cover svg{width:50px;height:64px;padding:16px 10px;border-color:#d8c8a6;border-radius:8px}
.atlas-space-page #spacePanelDocuments .library-document-add-label{font-size:13px;font-weight:550}
.atlas-space-page #spacePanelDocuments .library-document-pending .library-soft{background:#f6f8fb;border-color:#dce3ec;color:#29405a;box-shadow:none}
.atlas-space-page #spacePanelDocuments .library-document-pending [data-cover-status]{color:#936f32;font-size:11px}
@media(max-width:1100px){.atlas-space-page #spacePanelDocuments .library-personal-space{grid-template-columns:146px minmax(0,1fr);gap:24px}.atlas-space-page #spacePanelDocuments .library-grid{grid-template-columns:1fr}}
@media(max-width:700px){
 .atlas-space-page .space-identity-heading{margin:18px 0}
 .atlas-space-page .space-identity-heading h2{font-size:20px}
 .atlas-space-page #spacePanelDocuments .library-personal-space{grid-template-columns:1fr;gap:18px}
 .atlas-space-page #spacePanelDocuments .library-traveler-heading{position:static;padding:0 0 14px;border-right:0;border-bottom:1px solid #edf0f3}
 .atlas-space-page #spacePanelDocuments .library-traveler-picker{flex-direction:row;align-items:center;overflow-x:auto}
 .atlas-space-page #spacePanelDocuments .library-traveler-button{width:auto;flex:0 0 auto;min-height:44px}
 .atlas-space-page #spacePanelDocuments .library-add-traveler{align-self:center;margin:0 0 0 4px}
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending,.library-document-add-tile){padding:16px;min-height:154px}
 .atlas-space-page #spacePanelDocuments .library-document-pending{grid-template-columns:70px minmax(0,1fr);gap:10px 14px}
 .atlas-space-page #spacePanelDocuments .library-document-pending .library-unclassified-visual{width:70px;max-width:70px;min-height:95px}
 .atlas-space-page #spacePanelDocuments .library-document-pending .library-unclassified-known-image{max-width:68px;max-height:96px}
 .atlas-space-page #spacePanelDocuments .library-document-pending .library-file-actions{grid-column:1/-1;grid-row:auto;gap:8px}
 .atlas-space-page #spacePanelDocuments .library-document-pending .library-button{min-height:44px;font-size:12px}
 .atlas-space-page #spacePanelDocuments .library-document-add-cover{flex-basis:70px;width:70px}
}
@media(prefers-reduced-motion:reduce){.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending){transition:none;transform:none}}

/* Open the document itself; actions remain separate from the decorative artwork. */
.atlas-space-page #spacePanelDocuments .library-document-open.library-button{
 position:relative;display:grid;place-items:center;gap:0;flex-shrink:0;
 padding:0;border:0;border-radius:8px;background:transparent;color:#8a6b38;
 box-shadow:none;cursor:pointer;transition:background .2s ease;
}
.atlas-space-page #spacePanelDocuments .library-document-title-button.library-button{
 display:inline-flex;justify-content:flex-start;max-width:calc(100% - 36px);min-width:0;
 min-height:28px;margin:0;padding:0;border:0;border-radius:3px;
 background:transparent;box-shadow:none;color:#172b46;font:inherit;
 line-height:1.45;text-align:left;white-space:normal;overflow-wrap:anywhere;
 cursor:pointer;transition:color .2s ease;
}
.atlas-space-page #spacePanelDocuments .library-document-open-cue{
 position:absolute;inset-inline-start:-4px;bottom:3px;z-index:2;
 display:grid;place-items:center;box-sizing:border-box;width:28px;height:28px;
 border:1px solid #e6d9bd;border-radius:50%;background:#fcf9f2;color:#94723c;
 box-shadow:0 2px 7px #172b4510;pointer-events:none;
 transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.atlas-space-page #spacePanelDocuments .library-document-open-cue svg{
 display:block;width:14px;height:14px;fill:none;stroke:currentColor;
 stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.atlas-space-page #spacePanelDocuments :is(.library-document-open,.library-document-title-button):focus-visible{
 outline:2px solid #a78145;outline-offset:4px;
}
.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):has(.library-document-open:focus-visible,.library-document-title-button:focus-visible){
 border-color:#c4aa7a!important;box-shadow:0 3px 16px #9c7b3910;
}
.atlas-space-page #spacePanelDocuments .library-delete-icon.library-delete-button{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;
 width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;
 margin:0;padding:0;border:1px solid transparent;border-radius:10px;
 background:transparent;color:#728195;box-shadow:none;
 transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.atlas-space-page #spacePanelDocuments .library-delete-icon.library-delete-button svg{
 width:18px;height:18px;stroke-width:1.55;
}
.atlas-space-page #spacePanelDocuments .library-delete-icon.library-delete-button:focus-visible{
 outline:2px solid #a78145;outline-offset:2px;background:#f5f7fa;color:#405570;
}
.atlas-space-page #spacePanelDocuments .library-document > .library-document-summary .library-document-actions > .library-delete-icon,
.atlas-space-page #spacePanelDocuments .library-document-pending > .library-file-actions > .library-delete-icon{
 position:absolute;top:8px;inset-inline-end:8px;
}
.atlas-space-page #spacePanelDocuments .library-document-actions:has(> .library-delete-icon:only-child){
 margin:0;min-height:0;
}
.atlas-space-page #spacePanelDocuments .library-document-pending [data-cover-status="saved"]{
 justify-self:start;max-width:100%;padding:3px 7px;border:1px solid #e5eaf0;
 border-radius:6px;background:#f5f7fa;color:#52677d;font-size:10px;line-height:1.45;
}
.atlas-space-page #spacePanelDocuments .library-document-details .library-expiry-notice{
 width:fit-content;max-width:100%;box-sizing:border-box;padding:4px 7px;
 border-radius:6px;background:#fbf5e9;color:#87612d;font-size:11px;
}
.atlas-space-page #spacePanelDocuments .library-document-details .library-expiry-notice:is([data-timing="expired"],[data-timing="today"]){
 background:#fbefed;color:#974940;
}
.atlas-space-page #spacePanelDocuments .library-bulk-actions .library-delete-all{
 color:#728195;font-weight:500;
}
@media(hover:hover) and (pointer:fine){
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):has(.library-document-open:hover,.library-document-title-button:hover){
  border-color:#c4aa7a!important;box-shadow:0 3px 16px #9c7b3910;
 }
 .atlas-space-page #spacePanelDocuments .library-document-title-button:hover{color:#8a6b38}
 .atlas-space-page #spacePanelDocuments .library-document-open:hover .library-document-open-cue{
  border-color:#cbb17f;background:#f6eddb;color:#7e602f;
 }
 .atlas-space-page #spacePanelDocuments .library-delete-icon.library-delete-button:hover:not(:disabled){
  border-color:transparent;background:#fbefed;color:#a04c43;
 }
 .atlas-space-page #spacePanelDocuments .library-bulk-actions .library-delete-all:hover:not(:disabled){
  background:#fbefed;color:#a04c43;border-color:transparent;
 }
}
@media(max-width:700px){
 .atlas-space-page #spacePanelDocuments .library-document-open-cue{width:25px;height:25px;inset-inline-start:-3px;bottom:0}
 .atlas-space-page #spacePanelDocuments .library-document-open-cue svg{width:13px;height:13px}
 .atlas-space-page #spacePanelDocuments .library-document > .library-document-summary .library-document-actions > .library-delete-icon,
 .atlas-space-page #spacePanelDocuments .library-document-pending > .library-file-actions > .library-delete-icon{top:5px;inset-inline-end:5px}
}
@media(prefers-reduced-motion:reduce){
 .atlas-space-page #spacePanelDocuments :is(.library-document-open,.library-document-title-button,.library-document-open-cue,.library-delete-icon){transition:none!important}
}

/* The identity collection shares the trips' subtle lift and single-pass sheen.
   Paint the sheen over document art only; text and controls stay fully legible. */
.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending){
 transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.atlas-space-page #spacePanelDocuments .library-document-open > img:not([class*="flag"]){
 transform-origin:center;
 transition:transform .32s cubic-bezier(.2,.7,.25,1),filter .32s ease;
}
.atlas-space-page #spacePanelDocuments .library-document-open::before{
 content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;
 background:linear-gradient(112deg,transparent 38%,#e5c98724 45%,#ffffffa6 50%,#e5c9871f 55%,transparent 62%);
 background-size:220% 100%;background-position:100% 0;
 opacity:0;pointer-events:none;
}
@keyframes atlas-identity-sheen{
 0%{background-position:100% 0;opacity:0}
 20%,65%{opacity:.8}
 100%{background-position:0 0;opacity:0}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):hover:not(:has(.library-delete-icon:hover)){
  transform:translateY(-2px);border-color:#cbb98f!important;box-shadow:0 9px 24px #172b4510;
 }
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):hover:not(:has(.library-delete-icon:hover)) .library-document-open > img:not([class*="flag"]){
  transform:scale(1.04);filter:drop-shadow(0 5px 5px #172b4512);
 }
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):hover:not(:has(.library-delete-icon:hover)) .library-document-open::before{
  animation:atlas-identity-sheen .72s ease-out both;
 }
}
@media(prefers-reduced-motion:no-preference){
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):has(.library-document-open:focus-visible,.library-document-title-button:focus-visible){
  transform:translateY(-2px);border-color:#cbb98f!important;box-shadow:0 9px 24px #172b4510;
 }
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):has(.library-document-open:focus-visible,.library-document-title-button:focus-visible) .library-document-open > img:not([class*="flag"]){
  transform:scale(1.04);filter:drop-shadow(0 5px 5px #172b4512);
 }
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):has(.library-document-open:focus-visible,.library-document-title-button:focus-visible) .library-document-open::before{
  animation:atlas-identity-sheen .72s ease-out both;
 }
 .atlas-space-page #spacePanelDocuments .library-document-open:active > img:not([class*="flag"]){transform:scale(1.02)}
}
@media(prefers-reduced-motion:reduce){
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending),
 .atlas-space-page #spacePanelDocuments .library-document-open > img:not([class*="flag"]){
  transition:none!important;transform:none!important;filter:none!important;
 }
 .atlas-space-page #spacePanelDocuments .library-document-open::before{content:none;animation:none!important}
}

/* The entire saved identity card opens its actual private preview. The quiet
   overlay is the ONLY keyboard preview target; delete/review/history stay above
   it and remain independent. No magnifying-glass decoration. */
.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending){position:relative}
.atlas-space-page #spacePanelDocuments .library-card-hitbox.library-button{
 position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;
 margin:0;padding:0;border:0;border-radius:13px;background:transparent;
 box-shadow:none;color:transparent;cursor:pointer;opacity:1;
}
.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending) :is(.library-document-actions,.library-file-actions,.library-history,.library-review-identity){position:relative;z-index:2}
.atlas-space-page #spacePanelDocuments .library-card-hitbox:focus-visible{
 outline:3px solid #b18a4c;outline-offset:-4px;
}
.atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):has(.library-card-hitbox:focus-visible){
 border-color:#cbb98f!important;box-shadow:0 9px 24px #172b4510;
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .atlas-space-page #spacePanelDocuments :is(.library-document,.library-document-pending):hover:not(:has(.library-delete-icon:hover)){
  transform:translateY(-2px);border-color:#cbb98f!important;box-shadow:0 9px 24px #172b4510;
 }
}
@media(prefers-reduced-motion:reduce){
 .atlas-space-page #spacePanelDocuments .library-card-hitbox{transition:none!important}
}
