/* Account: visible Voyages / Documents navigation and one featured trip. */
.atlas-space-page #accountWorkspace,
.atlas-space-page #hubHeading {
  --country-ink: #172b45;
  --country-muted: #58697d;
  --country-line: #dfe5eb;
  --country-gold: #a77f41;
  --country-cover-base: #193852;
  --country-cover-top: #688b96;
  min-width: 0;
}

.atlas-space-page #hubHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0;
}

.atlas-space-page #hubHeading::before { content: none; }
.atlas-space-page #hubHeading h1 {
  margin: 0;
  color: var(--country-ink);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.atlas-space-page #hubHeading .space-new {
  flex: none;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d4dce5;
  border-radius: 9px;
  background: #fff;
  color: var(--country-ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
}

.atlas-space-page #hubHeading .space-new:hover { border-color: #9baec2; }
.atlas-space-page #spaceNavigation.space-account-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 32px;
  row-gap: 0;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--country-line);
  background: transparent;
}

.atlas-space-page #spaceNavigation.space-account-navigation > button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 53px;
  margin-bottom: -1px;
  padding: 13px 4px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #5a6d84;
  font: 650 15px/1.5 var(--atlas-font, Manrope, sans-serif);
  cursor: pointer;
}

.atlas-space-page #spaceNavigation.space-account-navigation > button:hover { color: var(--country-ink); }
.atlas-space-page #spaceNavigation.space-account-navigation > button[aria-selected="true"] {
  border-bottom-color: var(--country-gold);
  color: var(--country-ink);
}

.atlas-space-page #spaceNavigation.space-account-navigation svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.atlas-space-page #atlasPreparations.space-country-overview {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.atlas-space-page .space-next-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 15px;
}

.atlas-space-page .space-next-heading-title {
  margin: 0;
  color: var(--country-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.atlas-space-page .space-next-trip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid #dce3ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20, 38, 60, .035);
}

.atlas-space-page :is(.space-next-photo, .space-trip-photo, .space-country-heading-photo) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, var(--country-cover-top), var(--country-cover-base));
}

.atlas-space-page :is(.space-next-photo, .space-trip-photo, .space-country-heading-photo)[data-country="THA"] {
  --country-cover-top: #719e88;
  --country-cover-base: #20575c;
}

.atlas-space-page :is(.space-next-photo, .space-trip-photo, .space-country-heading-photo)[data-country="JPN"] {
  --country-cover-top: #a78993;
  --country-cover-base: #35465e;
}

.atlas-space-page .space-country-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--country-image-position, center);
}

.atlas-space-page .space-country-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .65);
}

.atlas-space-page .space-photo-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(11, 25, 41, .8);
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
}

.atlas-space-page .space-photo-credit:hover {
  background: #12283f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.atlas-space-page .space-next-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 28px 32px;
}

.atlas-space-page .space-next-title {
  margin: 0 0 8px;
  color: var(--country-ink);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.atlas-space-page .space-country-dates {
  min-width: 0;
  margin: 0;
  color: var(--country-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.atlas-space-page .space-next-content > .space-country-dates {
  color: #4c6078;
  font-size: 16px;
  line-height: 1.55;
}

.atlas-space-page :is(.space-next-trip, .space-trip-row, .space-country-trip, .space-country-heading-copy) .space-order-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #eadcc5;
  border-radius: 999px;
  background: #fff7e9;
  color: #805821;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.atlas-space-page .space-next-content > .space-order-pill {
  margin-top: 12px;
  font-size: 12px;
}

.atlas-space-page :is(.space-next-trip, .space-trip-row, .space-country-trip, .space-country-heading-copy) .space-order-pill:is([data-status="ready_for_atlas"], [data-status="in_review"], [data-status="processing"]) {
  border-color: #d6e1ee;
  background: #f0f5fb;
  color: #3e6088;
}

.atlas-space-page :is(.space-next-trip, .space-trip-row, .space-country-trip, .space-country-heading-copy) .space-order-pill:is([data-status="paid"], [data-status="completed"]) {
  border-color: #d0e5d8;
  background: #edf7f1;
  color: #286342;
}

.atlas-space-page :is(.space-next-trip, .space-trip-row, .space-country-trip, .space-country-heading-copy) .space-order-pill:is([data-status="cancelled"], [data-status="refunded"], [data-status="deleting"]) {
  border-color: #dee4eb;
  background: #f1f4f7;
  color: #536478;
}

.atlas-space-page .space-next-actions { min-width: 0; max-width: 100%; margin-top: 20px; }
.atlas-space-page .space-country-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid var(--country-ink);
  border-radius: 9px;
  background: var(--country-ink);
  color: #fff;
  font: 650 14px/1.5 var(--atlas-font, Manrope, sans-serif);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.atlas-space-page .space-country-primary:hover {
  border-color: #284664;
  background: #284664;
}

.atlas-space-page .space-country-primary svg { flex: none; width: 18px; height: 18px; }
.atlas-space-page #nextTrip:not([hidden]) { margin-bottom: 30px; }
.atlas-space-page #atlasPreparationsList.space-trip-groups { display: block; min-width: 0; }
.atlas-space-page .space-trip-section { min-width: 0; }
.atlas-space-page .space-trip-section + .space-trip-section { margin-top: 28px; }
.atlas-space-page .space-list-heading {
  margin: 0 0 10px;
  color: var(--country-ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.015em;
}

.atlas-space-page .space-trip-list {
  display: block;
  min-width: 0;
  border-top: 1px solid var(--country-line);
}

.atlas-space-page .space-trip-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 105px;
  padding: 16px 0;
  border-bottom: 1px solid var(--country-line);
}

.atlas-space-page #spaceLegacyDtv .space-trip-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.atlas-space-page .space-trip-photo { width: 72px; height: 72px; border-radius: 10px; }
.atlas-space-page :is(.space-trip-photo, .space-country-heading-photo) .space-country-fallback { width: 28px; height: 28px; }
.atlas-space-page :is(.space-trip-photo, .space-country-heading-photo) .space-photo-credit {
  right: 5px;
  bottom: 5px;
  min-width: 34px;
  min-height: 24px;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 9px;
}

.atlas-space-page .space-trip-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.atlas-space-page .space-trip-details h3 {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  color: var(--country-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.atlas-space-page .space-trip-actions { display: flex; align-items: center; min-width: 0; }
/* An older whole-card rule hides this class; the explicit row action stays visible. */
.atlas-space-page .space-trip-row .space-trip-open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #fff;
  color: var(--country-ink);
  box-shadow: none;
  font: 600 13px/1.5 var(--atlas-font, Manrope, sans-serif);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.atlas-space-page .space-trip-row .space-trip-open:hover { border-color: #aebed0; background: #f0f4f8; }
.atlas-space-page .space-trip-open svg { flex: none; width: 17px; height: 17px; }
.atlas-space-page a.space-country-primary,.atlas-space-page a.space-trip-open{text-decoration:none}
.atlas-space-page .space-order-pill[data-status=private_signed]{background:#f8f3e9;color:#82612b;border-color:#e7d5b0}
.atlas-space-page .space-order-pill[data-status=private_draft]{background:#eef2f7;color:#46586d;border-color:#dce4ed}

/* People lead the document space; only the documents themselves need panels. */
.atlas-space-page #spacePanelDocuments .library-personal-space {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.atlas-space-page .library-traveler-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin: 0 0 24px;
}

.atlas-space-page .library-traveler-picker {
  display: flex;
  flex: 0 1 auto;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin: -6px 0;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #bdc9d6 transparent;
}

.atlas-space-page .library-traveler-button {
  display: flex;
  flex: 0 0 96px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 96px;
  min-width: 0;
  min-height: 120px;
  max-width: 96px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--country-muted);
  box-shadow: none;
  font: 600 13px/1.45 var(--atlas-font, Manrope, sans-serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.atlas-space-page .library-traveler-button:hover { background: transparent; color: var(--country-ink); }
.atlas-space-page .library-traveler-avatar {
  position: relative;
  display: block;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .15s ease;
}

.atlas-space-page .library-traveler-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.atlas-space-page .library-traveler-button:hover .library-traveler-avatar { box-shadow: 0 0 0 2px #c7d1dc; }
.atlas-space-page .library-traveler-button[aria-pressed="true"] { color: var(--country-ink); }
.atlas-space-page .library-traveler-button[aria-pressed="true"] .library-traveler-avatar {
  box-shadow: 0 0 0 2px var(--country-gold), 0 0 0 5px #faf5eb;
}

.atlas-space-page .library-traveler-button[aria-pressed="true"] .library-traveler-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 19px;
  height: 19px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--country-ink);
}

.atlas-space-page .library-traveler-button[aria-pressed="true"] .library-traveler-avatar::before {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 8px;
  z-index: 1;
  width: 7px;
  height: 4px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.atlas-space-page .library-traveler-name {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  min-height: 2.9em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.atlas-space-page .library-traveler-button[aria-pressed="true"] .library-traveler-name { font-weight: 700; }
.atlas-space-page .library-add-traveler {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 196px;
  min-width: 0;
  min-height: 44px;
  margin: 20px 0 0;
  padding: 10px 13px;
  border: 1px solid #d9e1e9;
  border-radius: 9px;
  background: #fff;
  color: #52667e;
  box-shadow: none;
  font: 600 13px/1.45 var(--atlas-font, Manrope, sans-serif);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.atlas-space-page .library-add-traveler:hover { border-color: #b79a69; background: #faf7f0; color: var(--country-ink); }
.atlas-space-page .library-add-traveler svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.atlas-space-page .library-personal-space .library-workspace { margin: 0; padding: 0; border: 0; }
.atlas-space-page .library-personal-space .library-body { min-width: 0; }
.atlas-space-page .library-personal-space .library-grid { gap: 14px; }
.atlas-space-page .library-personal-space .library-document {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--country-line);
  border-radius: 13px;
  background: #fff;
}

.atlas-space-page .library-document-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.atlas-space-page .library-document-cover {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  min-width: 0;
  min-height: 125px;
}

.atlas-space-page .library-document-cover img {
  display: block;
  width: 88px;
  height: 125px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px #15243b21);
}

.atlas-space-page .library-document-cover[data-kind="identity_card"] img { width: 96px; height: auto; }
.atlas-space-page .library-document-cover[data-country-label]:not([data-country-label=""])::after {
  content: attr(data-country-label);
  position: absolute;
  top: 19px;
  left: 13px;
  right: 9px;
  color: #ecd49d;
  font: 650 7px/1.4 var(--atlas-font, Manrope, sans-serif);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
  overflow-wrap: anywhere;
}

.atlas-space-page .library-document-cover[data-kind="passport"][data-country="FR"]::after { content: none; }
.atlas-space-page .library-document-cover[data-kind="identity_card"][data-country-label]::after {
  top: calc(50% - 20px);
  left: 37px;
  right: 6px;
  color: #28445b;
  font-size: 5.5px;
  letter-spacing: .015em;
  text-align: left;
}

.atlas-space-page .library-document-details { flex: 1; min-width: 0; }
.atlas-space-page .library-document-details h3 {
  margin: 0 0 5px;
  color: var(--country-ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.atlas-space-page .library-document-details > .library-muted { overflow-wrap: anywhere; }
.atlas-space-page .library-document-details .library-validity { margin: 7px 0 0; font-size: 12px; line-height: 1.5; }
.atlas-space-page .library-document-details > .library-warning { margin: 12px 0 0; font-size: 12px; line-height: 1.5; }
.atlas-space-page .library-document-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 16px;
}

.atlas-space-page .library-document-actions .library-button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
}

.atlas-space-page .library-document-actions .library-danger { border-color: transparent; background: transparent; color: #a13831; }
.atlas-space-page .library-document-actions .library-danger:hover { border-color: #e9cec9; background: #fff5f3; }
.atlas-space-page .library-button[data-locked="true"] { cursor: not-allowed; }
.atlas-space-page .library-document .library-history { margin-top: 16px; border-top: 1px solid #e8edf2; }
.atlas-space-page .library-document .library-history > summary { padding: 12px 0 0; }
.atlas-space-page .library-document .library-file { gap: 10px 20px; }
.atlas-space-page .library-document-file .library-document-summary { min-height: 0; }
.atlas-space-page .library-document-summary > .library-document-icon { flex: 0 0 64px; width: 64px; height: 80px; margin-inline: 16px; border-radius: 10px; background: #eff3f7; color: #45637c; }
.atlas-space-page .library-document-summary > .library-document-icon .library-icon { width: 32px; height: 32px; }
.atlas-space-page .library-preview-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: 92vh;
  padding: 22px;
  overflow: auto;
}

.atlas-space-page .library-preview-heading,
.atlas-space-page .identity-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.atlas-space-page .library-preview-heading h3,
.atlas-space-page .identity-editor-heading h3 { min-width: 0; margin: 0; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.atlas-space-page .library-preview-heading > .library-button,
.atlas-space-page .identity-editor-heading > .library-button { flex: none; }
.atlas-space-page .library-preview-body {
  min-width: 0;
  min-height: 180px;
  max-height: 68vh;
  overflow: auto;
  border: 1px solid #e0e6ed;
  border-radius: 9px;
  background: #f0f3f7;
}

.atlas-space-page .library-preview-body .library-preview-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 68vh; margin: 0 auto; object-fit: contain; }
.atlas-space-page .library-preview-pdf { display: block; width: 100%; height: 65vh; min-height: 300px; border: 0; background: #fff; }
.atlas-space-page .library-preview-body .library-preview-unavailable { box-sizing: border-box; display: grid; place-content: center; min-height: 180px; margin: 0; padding: 28px; font-size: 14px; line-height: 1.6; text-align: center; }
.atlas-space-page .library-preview-dialog > .library-dialog-actions { margin-top: 18px; }

/* A photo supplies identity details; recognized fields remain readable text. */
.atlas-space-page .identity-editor-dialog { width: min(760px, calc(100vw - 32px)); max-height: 92vh; padding: 24px; overflow: auto; }
.atlas-space-page .identity-editor-intro { margin: 0 0 18px; color: #586a7e; font-size: 13px; line-height: 1.6; }
.atlas-space-page .identity-editor-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.atlas-space-page .identity-editor-mode {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  padding: 12px;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  background: #fff;
  color: #52647a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.atlas-space-page .identity-editor-mode:has(input:checked) { border-color: #b29662; background: #fbf7ee; color: var(--country-ink); }
.atlas-space-page .identity-editor-mode input,
.atlas-space-page .identity-editor-consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #956e32; }
.atlas-space-page .identity-editor-mode span,
.atlas-space-page .identity-editor-consent span { min-width: 0; overflow-wrap: anywhere; }
.atlas-space-page .identity-editor-upload { overflow: hidden; }
.atlas-space-page .identity-editor-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.atlas-space-page .identity-editor-upload:has(input:disabled) { opacity: .55; cursor: wait; }
.atlas-space-page .identity-editor-upload input:disabled { cursor: wait; }
.atlas-space-page .identity-editor-upload:focus-within { outline: 3px solid #926a29; outline-offset: 3px; }
.atlas-space-page .identity-editor-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atlas-space-page .identity-editor-status { margin: 14px 0 0; color: #53677e; font-size: 13px; line-height: 1.6; }
.atlas-space-page .identity-editor-status:empty { display: none; }
.atlas-space-page .identity-editor-status[data-tone="error"] { color: #a13831; }
.atlas-space-page .identity-editor-status[data-tone="success"] { color: #365f40; }
.atlas-space-page .identity-editor-review { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; min-width: 0; margin-top: 22px; }
.atlas-space-page .identity-editor-review .identity-editor-preview { display: block; grid-column: 1; grid-row: 1; width: 100%; max-width: 100%; max-height: 260px; margin: 0; border-radius: 8px; background: #f0f3f6; object-fit: contain; }
.atlas-space-page .identity-editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 14px 16px; grid-column: 2; grid-row: 1; min-width: 0; margin: 0; }
.atlas-space-page .identity-editor-review:not(:has(> .identity-editor-preview)) .identity-editor-fields { grid-column: 1 / -1; }
.atlas-space-page .identity-editor-fields > div { min-width: 0; }
.atlas-space-page .identity-editor-fields dt { margin: 0 0 4px; color: #69778a; font-size: 11px; line-height: 1.5; }
.atlas-space-page .identity-editor-fields dd { margin: 0; color: var(--country-ink); font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.atlas-space-page .identity-editor-changes { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #e4e9ef; }
.atlas-space-page .identity-editor-changes > p { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.atlas-space-page .identity-editor-changes ul { margin: 0; padding-left: 18px; color: #586a7e; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.atlas-space-page .identity-editor-consent {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 9px;
  background: #f4f6f9;
  color: #41556e;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.atlas-space-page .identity-editor-consent input { margin-top: 2px; }
.atlas-space-page .identity-editor-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.atlas-space-page #tripSavedDocuments .library-select-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 24px;
  color: var(--country-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.atlas-space-page #tripSavedDocuments .library-select {
  display: block;
  width: min(100%, 480px);
  min-width: 0;
  max-width: 100%;
  min-height: 51px;
  padding: 11px 40px 11px 14px;
  border-color: #bdcbd9;
  color: var(--country-ink);
  font: 650 17px/1.5 var(--atlas-font, Manrope, sans-serif);
}

.atlas-space-page #spacePanelDocuments .library-file-actions {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}

.atlas-space-page #tripSavedDocuments.saved-documents {
  margin: 24px 0 0;
  padding: 26px;
  border-color: var(--country-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.atlas-space-page #tripSavedDocuments > h2 {
  margin: 0 0 9px;
  color: var(--country-ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.4;
}

.atlas-space-page #tripSavedDocuments .saved-document-actions .library-button { min-height: 44px; }

/* Destination detail keeps preparation and payment tools together. */
.atlas-space-page .space-country-workspace { min-width: 0; margin-bottom: 28px; }
.atlas-space-page .space-country-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 16px;
  padding: 8px 1px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #465b74;
  font: 600 13px/1.5 var(--atlas-font, Manrope, sans-serif);
  cursor: pointer;
}

.atlas-space-page .space-country-back:hover {
  color: var(--country-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.atlas-space-page .space-country-back svg { flex: none; width: 17px; height: 17px; }
.atlas-space-page .space-country-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.atlas-space-page .space-country-heading-photo { flex: none; width: 80px; height: 80px; border-radius: 12px; }
.atlas-space-page .space-country-heading-copy { min-width: 0; }
.atlas-space-page #countryTitle {
  margin: 0 0 6px;
  color: var(--country-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.atlas-space-page #countrySummary {
  margin: 0 0 8px;
  color: var(--country-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.atlas-space-page .space-country-navigation {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin: 20px 0 24px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--country-line);
  background: transparent;
}

.atlas-space-page .space-country-navigation > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 48px;
  margin-bottom: -1px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #617288;
  font: 600 13px/1.5 var(--atlas-font, Manrope, sans-serif);
  overflow-wrap: anywhere;
  cursor: pointer;
}

.atlas-space-page .space-country-navigation > button:hover { color: var(--country-ink); }
.atlas-space-page .space-country-navigation > button[aria-selected="true"] {
  border-bottom-color: var(--country-gold);
  color: var(--country-ink);
}

.atlas-space-page .space-country-navigation svg { flex: none; width: 17px; height: 17px; }
.atlas-space-page .space-country-trips { display: grid; gap: 10px; }
.atlas-space-page #countryNavigation[hidden] + #countryPanelJourneys > .space-country-trips { margin-top: 20px; }
.atlas-space-page .space-country-trip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--country-line);
}

.atlas-space-page .space-country-trip > div { min-width: 0; }
.atlas-space-page .space-country-trip :is(h3, strong) {
  display: block;
  margin: 0 0 7px;
  color: var(--country-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.atlas-space-page .space-country-trip :is(p, small) {
  margin: 4px 0;
  color: var(--country-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.atlas-space-page .space-country-resume {
  justify-self: start;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.atlas-space-page .space-country-new {
  justify-self: start;
  min-height: 44px;
  padding: 12px 0;
  color: #3c546e;
  font-size: 13px;
  line-height: 1.6;
  text-underline-offset: 4px;
}

.atlas-space-page .space-country-workspace .official-preparations {
  margin: 22px 0 0;
  border-color: var(--country-line);
  border-radius: 13px;
  box-shadow: none;
}

.atlas-space-page #countryPanelPayments .space-orders {
  margin: 0;
  padding: 24px;
  border-color: var(--country-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

.atlas-space-page #countryPanelPayments .space-order-card { min-width: 0; background: #fafbfc; }
.atlas-space-page #countryPanelPayments .space-order-card strong { overflow-wrap: anywhere; }
.atlas-space-page :is(#accountWorkspace, #hubHeading) :is(button, a, input, select, summary):focus-visible,
.atlas-space-page :is(#countryTitle, #hubHeroTitle):focus-visible {
  outline: 3px solid #926a29;
  outline-offset: 3px;
}

.atlas-space-page #accountWorkspace .space-photo-credit:focus-visible { outline-color: #fff; outline-offset: 1px; }
@media (max-width: 900px) {
  .atlas-space-page .space-next-content { padding: 26px; }
  .atlas-space-page .space-trip-row { gap: 15px; }
}

@media (max-width: 640px) {
  .atlas-space-page #hubHeading { gap: 12px; margin-bottom: 15px; }
  .atlas-space-page #hubHeading h1 { font-size: 28px; }
  .atlas-space-page #hubHeading .space-new { padding: 10px 12px; font-size: 12px; }
  .atlas-space-page #spaceNavigation.space-account-navigation { gap: 28px; margin-bottom: 25px; }
  .atlas-space-page #spaceNavigation.space-account-navigation > button { min-height: 51px; font-size: 14px; }
  .atlas-space-page .space-next-heading { margin-bottom: 14px; }
  .atlas-space-page .space-next-heading-title { font-size: 23px; }
  .atlas-space-page .space-next-trip { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 13px; }
  .atlas-space-page .space-next-content { padding: 23px 22px; }
  .atlas-space-page .space-next-title { font-size: 30px; }
  .atlas-space-page .space-next-content > .space-country-dates { font-size: 15px; }
  .atlas-space-page .space-next-photo { height: 160px; }
  .atlas-space-page #nextTrip:not([hidden]) { margin-bottom: 26px; }
  .atlas-space-page .space-trip-section + .space-trip-section { margin-top: 26px; }
  .atlas-space-page .space-trip-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; min-height: 97px; padding: 15px 0; }
  .atlas-space-page .space-trip-photo { width: 64px; height: 64px; border-radius: 8px; }
  .atlas-space-page .space-trip-details { gap: 5px 8px; }
  .atlas-space-page .space-trip-details h3 { font-size: 15px; }
  .atlas-space-page .space-trip-row .space-trip-open { gap: 7px; padding-inline: 9px; font-size: 12px; }
  .atlas-space-page .library-traveler-heading { gap: 8px; margin-bottom: 22px; }
  .atlas-space-page .library-traveler-picker { gap: 10px; }
  .atlas-space-page .library-traveler-button { flex-basis: 84px; width: 84px; max-width: 84px; min-height: 105px; gap: 8px; font-size: 12px; }
  .atlas-space-page .library-traveler-avatar { width: 64px; height: 64px; }
  .atlas-space-page .library-add-traveler { max-width: 160px; margin-top: 15px; padding: 9px 11px; font-size: 12px; }
  .atlas-space-page .library-personal-space .library-document { padding: 17px; }
  .atlas-space-page .library-document-summary { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 17px; }
  .atlas-space-page .library-document-cover { grid-column: 1; grid-row: 1 / 4; align-self: center; width: 72px; min-height: 103px; }
  .atlas-space-page .library-document-cover img { width: 72px; height: auto; }
  .atlas-space-page .library-document-cover[data-kind="identity_card"] img { width: 72px; }
  .atlas-space-page .library-document-cover[data-country-label]:not([data-country-label=""])::after { top: 16px; left: 7px; right: 6px; font-size: 6px; }
  .atlas-space-page .library-document-cover[data-kind="identity_card"][data-country-label]::after { top: calc(50% - 15px); left: 29px; right: 4px; font-size: 4px; }
  .atlas-space-page .library-document-details { display: contents; }
  .atlas-space-page .library-document-details h3 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 16px; }
  .atlas-space-page .library-document-details > .library-muted { grid-column: 2; grid-row: 2; align-self: center; margin: 0; font-size: 12px; }
  .atlas-space-page .library-document-details > .library-muted + .library-muted { grid-row: 3; align-self: start; }
  .atlas-space-page .library-document-details .library-validity { grid-column: 2; grid-row: 3; align-self: start; margin: 0; font-size: 11px; }
  .atlas-space-page .library-document-details > .library-warning { grid-column: 1 / -1; grid-row: 5; margin: 8px 0 0; }
  .atlas-space-page .library-document-summary > .library-document-icon { grid-column: 1; grid-row: 1 / 4; justify-self: center; align-self: center; width: 56px; height: 72px; margin: 0; }
  .atlas-space-page .library-document-actions { grid-column: 1 / -1; grid-row: 4; gap: 7px; margin-top: 12px; }
  .atlas-space-page .library-document-actions .library-button { flex: 0 1 auto; min-width: 0; padding: 9px 12px; }
  .atlas-space-page .library-preview-dialog { width: calc(100vw - 24px); padding: 14px; }
  .atlas-space-page .library-preview-heading { gap: 12px; margin-bottom: 14px; }
  .atlas-space-page .library-preview-heading h3 { font-size: 16px; }
  .atlas-space-page .identity-editor-dialog { width: calc(100vw - 24px); padding: 18px; }
  .atlas-space-page .identity-editor-heading { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  .atlas-space-page .identity-editor-heading h3 { font-size: 16px; }
  .atlas-space-page .identity-editor-modes { grid-template-columns: 1fr; }
  .atlas-space-page .identity-editor-mode { min-height: 44px; }
  .atlas-space-page .identity-editor-review { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .atlas-space-page .identity-editor-review .identity-editor-preview { grid-column: 1; grid-row: auto; max-height: 220px; }
  .atlas-space-page .identity-editor-fields { grid-column: 1; grid-row: auto; }
  .atlas-space-page .identity-editor-actions > .library-button { width: 100%; }
  .atlas-space-page #tripSavedDocuments .library-select { width: 100%; font-size: 16px; }
  .atlas-space-page #tripSavedDocuments.saved-documents { padding: 20px; }
  .atlas-space-page .space-country-hero { gap: 15px; }
  .atlas-space-page #countryTitle { font-size: 25px; }
  .atlas-space-page .space-country-navigation { gap: 22px; margin: 18px 0 20px; }
  .atlas-space-page .space-country-trip { gap: 12px; }
  .atlas-space-page #countryPanelPayments .space-orders { padding: 18px; }
  .atlas-space-page .space-country-workspace .space-section-heading { margin-inline: 0; }
}

@media (max-width: 380px) {
  .atlas-space-page #hubHeading { gap: 10px; }
  .atlas-space-page #hubHeading h1 { font-size: 26px; }
  .atlas-space-page #hubHeading .space-new { padding-inline: 10px; }
  .atlas-space-page .space-next-content { padding: 21px 18px; }
  .atlas-space-page .space-next-photo { height: 140px; }
  .atlas-space-page .space-trip-row { gap: 10px; }
  .atlas-space-page .space-trip-row .space-trip-open { gap: 5px; padding-inline: 7px; }
  .atlas-space-page .space-country-heading-photo { width: 72px; height: 72px; }
  .atlas-space-page .space-country-navigation { gap: 20px; }
  .atlas-space-page .space-country-navigation > button { padding-inline: 0; }
  .atlas-space-page .space-country-trip { grid-template-columns: minmax(0, 1fr); }
  .atlas-space-page .library-traveler-heading { gap: 5px; }
  .atlas-space-page .library-add-traveler { max-width: 150px; padding-inline: 9px; }
  .atlas-space-page .library-personal-space .library-document { padding: 15px; }
  .atlas-space-page .library-document-summary { gap: 4px 13px; }
  .atlas-space-page .library-document-actions { gap: 5px; }
  .atlas-space-page .library-document-actions .library-button { flex: 1 1 auto; padding-inline: 9px; }
  .atlas-space-page #tripSavedDocuments.saved-documents { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-space-page .space-country-primary,
  .atlas-space-page .space-trip-row .space-trip-open,
  .atlas-space-page .library-traveler-avatar,
  .atlas-space-page .library-add-traveler { transition: none; }
}

/* Legacy dossier photos stay accessible without pretending they are passports. */
.atlas-space-page .library-personal-space .library-unclassified{grid-column:1/-1;border:1px solid #e1e7ed;border-radius:13px;background:#fff;padding:21px 23px;min-width:0;}
.atlas-space-page .library-unclassified>h3{margin:0 0 7px;color:#172b45;font-size:17px;font-weight:650;}
.atlas-space-page .library-unclassified>p{margin:0 0 14px;font-size:13px;line-height:1.6;}
.atlas-space-page .library-unclassified-list{border-top:1px solid #e5eaf0;}
.atlas-space-page .library-unclassified-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:13px 0;border-bottom:1px solid #e5eaf0;min-width:0;}
.atlas-space-page .library-unclassified-row .library-file-info{flex:1 1 180px;min-width:0;}
.atlas-space-page .library-unclassified-row .library-file-info small{display:block;font-size:12px;line-height:1.6;}
.atlas-space-page .library-unclassified-row .library-file-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;}
.atlas-space-page .library-unclassified-row .library-button{min-height:40px;padding:8px 12px;border-radius:8px;font-size:12px;}
.atlas-space-page .library-unclassified>.library-danger{margin-top:13px;min-height:40px;background:transparent;border:0;color:#a13831;}
.atlas-space-page .library-unclassified-help{margin:10px 0 0!important;}
.atlas-space-page .library-unverified{padding:14px 0;display:flex;align-items:center;flex-wrap:wrap;gap:12px;}
.atlas-space-page .library-unverified .library-muted{margin:0;font-size:12px;}
.atlas-space-page .library-unverified .library-button{min-height:40px;font-size:12px;}
@media(max-width:640px){.atlas-space-page .library-personal-space .library-unclassified{padding:16px;}.atlas-space-page .library-unclassified-row{align-items:flex-start;}.atlas-space-page .library-unclassified-row .library-file-actions{width:100%;}}

/* Documents are organized by person, never by the trip where a copy was uploaded. */
.atlas-space-page .library-unclassified .library-unclassified-heading{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding-bottom:16px;
}
.atlas-space-page .library-unclassified .library-unclassified-heading h3{
  margin:0;color:#172b45;font-size:17px;font-weight:650;line-height:1.45;
}
.atlas-space-page .library-unclassified-row{
  display:grid;grid-template-columns:112px minmax(0,1fr);
  align-items:center;gap:16px;min-height:96px;padding:16px 0;
}
.atlas-space-page .library-unclassified-visual{
  position:relative;display:block;width:76px;height:67px;flex:none;
}
.atlas-space-page .library-unclassified-visual img{
  display:block;position:absolute;max-width:none;object-fit:contain;
  filter:drop-shadow(0 2px 3px rgba(12,28,48,.17));
}
.atlas-space-page .library-unclassified-booklet{
  width:42px;height:60px;left:3px;top:2px;
}
.atlas-space-page .library-unclassified-id-card{
  width:63px;height:40px;right:0;bottom:2px;
}
.atlas-space-page #spacePanelDocuments .library-delete-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-width:104px;min-height:44px;padding:10px 15px;
  border:1px solid #d8a09b;border-radius:8px;background:#fff8f7;
  color:#942f32;font-weight:700;font-size:13px;line-height:1.35;
  cursor:pointer;transition:border-color .14s ease,background .14s ease;
}
.atlas-space-page #spacePanelDocuments .library-delete-button:hover:not(:disabled){
  border-color:#b84e4a;background:#ffeded;color:#822428;
}
.atlas-space-page #spacePanelDocuments .library-delete-button:disabled{
  opacity:.52;cursor:not-allowed;
}
.atlas-space-page #spacePanelDocuments .library-delete-button svg{
  display:block;flex:none;width:17px;height:17px;fill:none;
  stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;
}
.atlas-space-page .library-unclassified-row .library-file-actions{
  display:flex;grid-column:2;min-width:0;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:9px;
}
.atlas-space-page .library-unclassified-row .library-file-info strong{
  display:block;min-width:0;overflow-wrap:anywhere;color:#172b45;font-size:14px;font-weight:650;
}
@media(max-width:640px){
  .atlas-space-page .library-unclassified .library-unclassified-heading{align-items:flex-start;}
  .atlas-space-page .library-unclassified-row{
    grid-template-columns:66px minmax(0,1fr);gap:9px 13px;
    padding:15px 0;
  }
  .atlas-space-page .library-unclassified-visual{width:66px;height:59px;}
  .atlas-space-page .library-unclassified-booklet{width:37px;height:54px;}
  .atlas-space-page .library-unclassified-id-card{width:55px;height:35px;}
  .atlas-space-page .library-unclassified-row .library-file-actions{
    grid-column:1/-1;justify-content:flex-start;width:100%;
    margin-top:4px;
  }
  .atlas-space-page .library-unclassified-row .library-file-actions .library-button{
    flex:1 1 125px;min-height:44px;
  }
}

/* A declared, verified-by-owner French identity card occupies the entire
   document thumbnail: never overlay a generic passport on top of a CNI. */
.atlas-space-page .library-unclassified-row{grid-template-columns:112px minmax(0,1fr);}
.atlas-space-page .library-unclassified-visual[data-known-type="identity_card"]{
  display:grid;place-items:center;width:110px;height:74px;
}
.atlas-space-page .library-unclassified-visual[data-known-type="passport"]{
  display:grid;place-items:center;width:92px;height:125px;
}
.atlas-space-page .library-unclassified-visual .library-unclassified-known-image{
  position:static;display:block;max-width:100%;max-height:100%;
  width:100%;height:100%;object-fit:contain;
}
.atlas-space-page .library-unclassified-row .library-file-info strong{
  font-size:16px;font-weight:650;color:#172b45;
}
.atlas-space-page .library-unclassified-row .library-file-info small{
  font-size:12px;line-height:1.55;color:#596b7d;
}
.atlas-space-page .library-unclassified-row .library-file-actions{
  max-width:100%;flex-wrap:wrap;justify-content:flex-start;
}
.atlas-space-page .library-unclassified-row .library-file-actions .library-delete-button{
  max-width:100%;font-size:12px;
}
@media(max-width:640px){
  .atlas-space-page .library-unclassified-row{grid-template-columns:85px minmax(0,1fr);}
  .atlas-space-page .library-unclassified-visual[data-known-type="identity_card"]{width:85px;height:57px;}
  .atlas-space-page .library-unclassified-visual[data-known-type="passport"]{width:68px;height:96px;}
}

/* A compact, explicit document type choice prevents a CNI PDF from inheriting
   an old passport-only metadata card. Keep the existing navy/gold design. */
.atlas-space-page .identity-editor-type-choice{
  display:grid;gap:8px;margin:16px 0;color:#1b2d45;font-weight:600;font-size:13px;
}
.atlas-space-page .identity-editor-type-label{font-size:13px;line-height:1.4;}
.atlas-space-page .identity-editor-kind-select{
  width:100%;min-height:44px;box-sizing:border-box;padding:10px 13px;
  border:1px solid #cdd7e1;border-radius:9px;background:#fff;
  color:#17263d;font:inherit;font-size:16px;
}
.atlas-space-page .identity-editor-kind-select:focus-visible{
  outline:2px solid #a18856;outline-offset:2px;
}

/* My Space: quiet secondary action under the traveler's existing documents. */
.atlas-space-page .library-personal-space .library-add-document-row{
 display:flex;align-items:center;justify-content:flex-start;
 margin-top:16px;padding-top:14px;border-top:1px solid #e8ecf1;
}
.atlas-space-page #spacePanelDocuments .library-add-document-row .library-new-document{
 flex:none;min-height:44px;padding:10px 15px;gap:9px;
 border:1px solid #d9e0e8;border-radius:9px;
 background:#fff;color:#26384e;
 font-weight:600;box-shadow:0 1px 2px #1a2e4308;
}
.atlas-space-page #spacePanelDocuments .library-add-document-row .library-new-document:hover:not(:disabled){
 border-color:#bcc7d2;background:#f8fafc;color:#17263d;
}
.atlas-space-page #spacePanelDocuments .library-add-document-row .library-new-document:focus-visible{
 outline:2px solid #9c834e;outline-offset:3px;
}
.atlas-space-page .library-add-document-row .library-new-document svg{
 flex:none;width:17px;height:17px;fill:none;stroke:currentColor;
 stroke-width:1.8;stroke-linecap:round;
}
/* The French identity artwork already includes its official-looking banner.
   The older country-label overlay obscured the recognisable face of the card. */
.atlas-space-page .library-document-cover[data-kind="identity_card"][data-country="FR"]::after{content:none;}
/* Foreign-country icons stay neutral; the actual issuing flag is a distinct cue. */
.atlas-space-page .library-document-cover img.library-document-country-flag{
 position:absolute;right:-4px;bottom:10px;width:28px!important;height:19px!important;
 z-index:1;object-fit:cover;border:2px solid #fff;border-radius:4px;
 box-shadow:0 2px 7px #16273b29;background:#fff;filter:none;
}
@media(max-width:640px){
 .atlas-space-page .library-personal-space .library-add-document-row{padding-top:12px;margin-top:14px;}
 .atlas-space-page #spacePanelDocuments .library-add-document-row .library-new-document{max-width:100%;}
 .atlas-space-page .library-document-cover img.library-document-country-flag{
  right:-5px;bottom:14px;width:23px!important;height:16px!important;
 }
}

.atlas-space-page .library-unclassified-visual img.library-unclassified-country-flag{
 position:absolute;z-index:2;right:-4px;bottom:3px;
 width:26px;height:18px;object-fit:cover;
 border:2px solid #fff;border-radius:4px;background:#fff;
 box-shadow:0 2px 7px #16273b29;filter:none;
}
@media(max-width:640px){
 .atlas-space-page .library-unclassified-visual img.library-unclassified-country-flag{
  width:22px;height:15px;right:-3px;bottom:1px;
 }
}


/* Quiet, local-only date cues: no implication that a visa was submitted. */
.atlas-space-page #hubStatus[data-tone="loading"] {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border: 1px solid #e5eaf0; border-radius: 12px;
  color: #26384e; background: #fff; line-height: 1.5;
}
.atlas-space-page #hubStatus[data-tone="loading"][hidden] { display: none; }
.atlas-space-page #hubStatus[data-tone="loading"]::before {
  content: ""; flex: none; width: 19px; height: 19px;
  border: 2px solid #e8e1d4; border-top-color: #9c834e; border-radius: 50%;
  animation: space-loading .9s linear infinite;
}
@keyframes space-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .atlas-space-page #hubStatus[data-tone="loading"]::before { animation: none; }
}

.atlas-space-page .space-trip-timing {
  margin: 9px 0 0;
  color: #53677d;
  font: 500 12px/1.5 var(--atlas-font, Manrope, sans-serif);
  overflow-wrap: anywhere;
}
.atlas-space-page .space-trip-timing[data-urgent="true"] { color: #815820; font-weight: 650; }
.atlas-space-page .space-trip-details > .space-trip-timing { flex-basis: 100%; }
.atlas-space-page .library-document-details .library-expiry-notice {
  margin: 9px 0 0;
  color: #865b21;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.atlas-space-page .library-document-details .library-expiry-notice[data-timing="expired"],
.atlas-space-page .library-document-details .library-expiry-notice[data-timing="today"] { color: #9a3d38; }
@media (max-width: 640px) {
  /* Document cards use display:contents on mobile; avoid colliding with actions. */
  .atlas-space-page .library-document-expiring .library-expiry-notice {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 11px 0 0;
  }
  .atlas-space-page .library-document-expiring .library-document-actions { grid-row: 5; }
  .atlas-space-page .library-document-expiring .library-document-details > .library-warning { grid-row: 6; }
}
