/* Additions only. The approved style.css is kept byte-for-byte unchanged. */
/* Closed native dialogs must never participate in layout or hit-testing.
   This makes the intended state explicit instead of relying only on UA CSS. */
dialog:not([open]){display:none!important;pointer-events:none!important}
.user-trigger{display:inline-flex;align-items:center;gap:10px;color:#dae6ff;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.13);border-radius:12px;padding:7px 11px;font:inherit;font-size:12px;min-height:44px;cursor:pointer}.user-trigger:hover{background:rgba(255,255,255,.10)}.user-avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#335a96;color:#f0f8ff;font-size:11px;letter-spacing:.5px}.field .popup-value{cursor:pointer;padding-right:32px;background-image:linear-gradient(45deg,transparent 45%,#a8ceff 45%,#a8ceff 55%,transparent 55%);background-size:8px 8px;background-repeat:no-repeat;background-position:right 16px center}.use-user{color:#a2d3ff;background:rgba(58,155,244,.09);border:1px solid rgba(122,184,242,.23);border-radius:9px;padding:10px 12px;margin-top:12px;font:inherit;font-size:12px;cursor:pointer}.use-user:hover{background:rgba(58,155,244,.17)}.use-user:disabled{opacity:.45;cursor:default}.date-trigger{width:100%;min-height:56px;margin-top:10px;border:1px solid transparent;border-radius:11px;background:rgba(255,255,255,.075);color:#98a8ce;padding:15px 16px;font:inherit;font-size:16px;font-weight:400;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;cursor:pointer}.date-trigger:hover{background:rgba(255,255,255,.105)}.date-trigger.has-date{color:#fff}.date-trigger svg{width:19px;height:19px;fill:none;stroke:#a9c3e8;stroke-width:1.5;flex-shrink:0}.date-trigger:focus-visible,.popup-value:focus-visible{outline:2px solid #9bd2ff;outline-offset:3px}.dialog-open{overflow:hidden}.uead-dialog{padding:0;border:1px solid rgba(172,196,246,.25);border-radius:24px;width:min(650px,calc(100vw - 32px));max-height:min(86vh,900px);background:linear-gradient(145deg,#1c3067,#152453);color:#f4f7ff;box-shadow:0 40px 120px rgba(0,0,0,.48);font:inherit;overflow:auto;color-scheme:dark}.uead-dialog::backdrop{background:rgba(3,10,30,.7);backdrop-filter:blur(7px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:27px 28px 22px;border-bottom:1px solid rgba(255,255,255,.1)}.dialog-head h2{font-size:24px;line-height:1.25;letter-spacing:-.6px;margin:7px 0 0;font-weight:600}.dialog-head p{margin:0;font-size:10px;letter-spacing:1.8px;color:#8ebfee}.dialog-close{font-size:25px;width:38px;height:38px;border:0;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.06);color:#cfddf6;cursor:pointer}.dialog-close:hover{background:rgba(255,255,255,.13)}#dialogBody{padding:24px 28px}.dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:18px;padding:19px 28px 23px;border-top:1px solid rgba(255,255,255,.1)}.dialog-footer:empty{display:none}.popup-search input,.year-search{box-sizing:border-box;font:inherit;font-size:16px;background:rgba(255,255,255,.075);color:white;border:1px solid rgba(255,255,255,.13);border-radius:11px;min-height:52px;padding:14px 16px;width:100%;outline:none}.popup-search input:focus,.year-search:focus{border-color:#8ac8ff;background:rgba(58,155,244,.12)}.popup-search input::placeholder,.year-search::placeholder{color:#a5b9dc}.popup-note{font-size:13px;line-height:1.75;color:#adbfdf;margin:14px 0 20px}.popup-note:first-child{margin-top:0}.popup-results{max-height:43vh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#637eaa transparent;padding-right:3px}.result-choice{display:flex;width:100%;align-items:center;gap:17px;text-align:left;justify-content:space-between;border:0;border-radius:11px;background:rgba(255,255,255,.045);color:#edf5ff;padding:17px 16px;margin:0 0 8px;min-height:72px;cursor:pointer;font:inherit}.result-choice:hover{background:rgba(87,157,239,.16)}.result-copy{display:flex;flex-direction:column;gap:8px;min-width:0}.result-copy strong{font-size:15px;line-height:1.45;font-weight:550;overflow-wrap:anywhere}.result-copy small{font-size:12px;color:#a7bcdf;line-height:1.6}.result-action{color:#91caff;font-size:20px;flex-shrink:0}.results-heading{font-size:13px;font-weight:600;letter-spacing:.2px;color:#b8cce9;margin:23px 0 13px}.results-heading:first-child{margin-top:0}.popup-error{font-size:14px;color:#ffbfce;line-height:1.7}.geo-breadcrumbs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:19px}.crumb{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#bee0ff;border-radius:8px;padding:9px 11px;font:inherit;font-size:12px;cursor:pointer}.crumb:hover{background:rgba(255,255,255,.1)}.geo-row{display:flex;align-items:stretch;gap:6px;margin-bottom:8px}.geo-row .result-choice{flex:1;margin:0;min-width:0}.geo-pick{align-self:stretch;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.025);color:#aedaff;font:inherit;font-size:12px;padding:10px 12px;cursor:pointer}.geo-pick:hover{background:rgba(100,174,248,.14)}.user-dialog{width:min(500px,calc(100vw - 32px))}.profile-details{display:grid;grid-template-columns:95px 1fr;gap:14px 15px;font-size:14px;line-height:1.65;margin:0 0 26px}.profile-details dt{color:#a6bddf}.profile-details dd{margin:0;color:#eff6ff;overflow-wrap:anywhere}.language-choices{display:flex;gap:9px}.language-choice{flex:1;min-height:48px;padding:12px 10px;font:inherit;font-size:14px;color:#d4e4ff;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.14);border-radius:10px;cursor:pointer}.language-choice[aria-pressed=true]{color:white;background:rgba(75,160,245,.19);border-color:#85c2ff}.date-dialog{width:min(620px,calc(100vw - 32px))}.date-preview{font-size:26px;letter-spacing:-.5px;text-align:center;color:#edf7ff;margin:8px 0 22px;line-height:1.4;font-variant-numeric:tabular-nums}.year-search{display:block;width:170px;margin:0 auto 23px;min-height:44px;padding:10px 13px;text-align:center;font-size:14px}.date-wheels{display:flex;gap:12px;isolation:isolate}.wheel-column{flex:1;min-width:0}.wheel-label{text-align:center;font-size:12px;color:#abc5e6;margin-bottom:11px}.date-wheel{height:220px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:6px;scrollbar-width:thin;scrollbar-color:#526b94 transparent;border-radius:12px;background:rgba(8,18,49,.18);outline:none}.date-wheel:focus-visible{box-shadow:0 0 0 2px #8cc9ff}.wheel-option{display:block;width:100%;height:44px;min-height:44px;border:0;border-radius:8px;background:none;color:#a9bbdb;font:inherit;font-size:15px;padding:8px 2px;text-align:center;cursor:pointer;font-variant-numeric:tabular-nums}.wheel-option[aria-selected=true]{color:#fff;font-weight:650;background:rgba(93,172,250,.12)}.wheel-option:hover{color:white;background:rgba(255,255,255,.06)}.date-notice{min-height:20px;margin:20px 0 0;font-size:12px;line-height:1.7;color:#b9d7fa;text-align:center}.date-notice:empty{margin-top:10px}.date-dialog .dialog-footer{gap:17px}.date-dialog .dialog-footer .primary{margin-left:auto}.uead-dialog button:focus-visible{outline:2px solid #9bd2ff;outline-offset:3px}@media(max-width:700px){.header-right{gap:10px}.user-trigger{padding:6px 8px}.user-trigger #userLabel{display:none}.uead-dialog{border-radius:20px;max-height:90dvh}.dialog-head{padding:23px 21px 20px}.dialog-head h2{font-size:22px}#dialogBody{padding:21px}.dialog-footer{padding:18px 21px;gap:12px}.popup-results{max-height:44dvh}.date-wheels{gap:8px}.wheel-option{font-size:14px}.profile-details{grid-template-columns:80px 1fr;gap:12px}.date-preview{font-size:24px}.date-dialog .dialog-footer{gap:10px;flex-wrap:wrap}.date-dialog .dialog-footer .primary{flex:1;min-width:150px}.geo-pick{font-size:11px;padding:8px}.result-copy strong{font-size:14px}}@media(max-width:380px){.header-right .text-button{font-size:10px;padding:10px;gap:8px}.date-dialog{width:calc(100vw - 16px)}.date-wheels{gap:5px}.wheel-option{font-size:12px}.dialog-head h2{font-size:20px}.language-choices{gap:6px}.language-choice{font-size:13px;padding:10px 6px}}

.date-wheel{position:relative;scroll-behavior:auto}.wheel-option[hidden]{display:none}.wheel-option[aria-selected=true]{box-shadow:inset 3px 0 #8cc9ff;background:rgba(93,172,250,.2)}
/* Shared spacious pickers and individually editable report entries. */
.date-dialog{height:min(850px,94dvh);max-height:94dvh;overflow:hidden}.date-dialog[open]{display:flex;flex-direction:column}.date-dialog #dialogBody{display:flex;flex-direction:column;flex:1;min-height:0;padding-top:18px;padding-bottom:12px}.date-dialog .date-wheels{flex:1;min-height:140px}.date-dialog .wheel-column{display:flex;flex-direction:column;min-height:0}.date-dialog .date-wheel{height:auto;flex:1;min-height:0}.date-dialog .date-preview{flex-shrink:0;margin:18px 0 0;padding-top:18px;border-top:1px solid #ffffff20;font-size:clamp(20px,3vw,28px)}.date-dialog .date-notice{min-height:0;margin:6px 0 0}.date-dialog .dialog-head,.date-dialog .dialog-footer{flex-shrink:0}.wheel-label{font-size:14px}.wheel-option{height:48px;min-height:48px;font-size:16px}.dialog-head p{font-size:12px;letter-spacing:.8px}.lookup-status{font-size:14px;line-height:1.6;color:#b5d9ff;margin:10px 0}.lookup-status:empty{display:none}.field input:disabled{opacity:.45;cursor:not-allowed}.field>.text-button{font-size:14px;margin-top:8px;text-align:left}.catalog-dialog{width:min(1200px,calc(100vw - 32px));height:94dvh;max-height:94dvh;overflow:hidden}.catalog-dialog[open]{display:flex;flex-direction:column}.catalog-dialog #dialogBody{display:flex;flex-direction:column;min-height:0;flex:1;gap:18px}.catalog-dialog .popup-search{flex-shrink:0}.catalog-folders{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.catalog-folders .crumb{font-size:14px;min-height:44px;padding:12px 18px}.crumb[aria-pressed=true]{border-color:#9bd2ff;background:#518cce33}.catalog-results{overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:12px;flex:1;min-height:0;padding:4px}.catalog-results .result-choice{margin:0;border:1px solid #ffffff1c;min-height:80px}.catalog-results strong{font-size:16px;font-weight:500;overflow-wrap:anywhere}.catalog-results [aria-pressed=true]{border-color:#98ccff;background:#4d90d733}.catalog-selection{display:flex;flex:1;gap:8px;flex-wrap:wrap;align-items:center}.catalog-selection .crumb{font-size:14px;min-height:44px}.catalog-dialog .dialog-footer{flex-wrap:wrap}.catalog-dialog .popup-note{margin:0;font-size:14px}.relation-card{border:1px solid #9ac3ff40;border-left:4px solid #88c6ff;border-radius:16px;background:#ffffff04;margin:24px 0;padding:24px;position:relative}.relation-card .review-head{padding:0 0 20px;margin:0 0 22px;border-bottom:1px solid #ffffff21;gap:12px;display:flex;align-items:center;flex-wrap:wrap}.relation-card h3{font-size:19px;line-height:1.4;margin:0;flex:1}.relation-card .field{margin:20px 0 0;display:block}.relation-card .open-choice-group{margin-top:0}.relation-card .country-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.relation-card .country-choices button{font:inherit;font-size:14px;text-align:left;min-height:48px;padding:12px;color:#dceaff;border:1px solid #ffffff26;border-radius:10px;background:#ffffff05;cursor:pointer}.relation-card .country-choices button[aria-pressed=true]{border-color:#a7d3ff;background:#548bcc38;color:white}.relation-card textarea{width:100%;box-sizing:border-box;min-height:110px}.relation-card .relation-summary{font-size:15px;line-height:1.7;color:#c4d8f4;margin:0;white-space:pre-line}.relation-card[data-collapsed=true]>:not(.review-head):not(.relation-summary){display:none}.relation-card[data-collapsed=true] .review-head{margin-bottom:12px}.relation-card:not([data-collapsed=true]) .relation-summary{display:none}#addEntity,#addAnimal{width:100%;padding:20px;min-height:64px;margin:12px 0 32px;border:1px dashed #a0c8ff80;border-radius:14px;font-size:16px}#entityRows:empty,#animalRows:empty{min-height:0}.relation-card button:focus-visible,.catalog-dialog button:focus-visible{outline:2px solid #a7d3ff;outline-offset:3px}@media(max-width:700px){.date-dialog{width:calc(100vw - 16px);height:96dvh;max-height:96dvh}.date-dialog .dialog-head{padding:16px 20px}.date-dialog .dialog-footer{padding:14px 20px}.date-dialog #dialogBody{padding:14px 16px}.catalog-dialog{width:calc(100vw - 12px);height:96dvh;max-height:96dvh;border-radius:16px}.catalog-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.catalog-dialog #dialogBody{padding:16px;gap:12px}.catalog-folders{gap:6px}.catalog-folders .crumb{padding:10px}.catalog-dialog .dialog-footer{padding:14px 16px;gap:10px}.catalog-selection{flex-basis:100%}.relation-card{padding:18px}.relation-card .country-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:400px){.catalog-results{grid-template-columns:1fr}.wheel-option{font-size:14px}.date-dialog .dialog-head h2{font-size:20px}}
.catalog-dialog .dialog-footer{max-height:38dvh;overflow:auto}@media(max-height:500px){.date-dialog{overflow:auto}.date-dialog #dialogBody{flex:none;height:290px}.date-dialog .date-wheels{min-height:130px}}




/* Shared selector polish: searchable choices remain visually separated and scale to long lists. */
.uead-dialog #dialogBody>.popup-search+.language-choices,
.uead-dialog #dialogBody>.popup-search+.popup-results,
.uead-dialog #dialogBody>.language-choices+.popup-results,
.uead-dialog #dialogBody>.picker-country-context+.popup-search,
.uead-dialog #dialogBody>.popup-country-quick+.popup-results{margin-top:12px}
.uead-dialog .language-choices{display:flex;flex-wrap:wrap;gap:8px}
.uead-dialog .language-choice{flex:1 1 120px;min-width:0}
.uead-dialog .popup-results>.result-choice:last-child{margin-bottom:0}
.picker-country-context{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid rgba(137,188,242,.18);border-radius:12px;background:rgba(63,126,205,.075)}
.picker-country-context-copy{display:grid;gap:3px;min-width:0}.picker-country-context-copy small{color:#7fa1cc;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.picker-country-context-copy strong{overflow:hidden;color:#eef6ff;font-size:13px;font-weight:620;text-overflow:ellipsis;white-space:nowrap}
.picker-country-change{flex:0 0 auto;border:0;border-radius:9px;background:rgba(255,255,255,.055);color:#a9d3ff;padding:9px 11px;font:inherit;font-size:11px;font-weight:600;cursor:pointer}.picker-country-change:hover{background:rgba(91,164,239,.14);color:#e8f5ff}
.popup-country-section{display:grid;gap:10px}.popup-country-section-title{margin:0;color:#7f9fc8;font-size:9px;font-weight:720;letter-spacing:.1em;text-transform:uppercase}.popup-country-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.popup-country-quick .language-choice{min-height:46px}.popup-country-list{margin-top:12px}.popup-country-list .result-choice{min-height:58px;padding:13px 14px}.popup-country-list .result-copy{gap:3px}.popup-country-list .result-copy strong{font-size:13px}.popup-country-list .result-copy small{font-size:10px}
/* Native browser confirm() is replaced with a dedicated UEAD decision dialog. */
.uead-decision-dialog{padding:0;border:1px solid rgba(165,194,238,.22);border-radius:20px;width:min(470px,calc(100vw - 28px));background:linear-gradient(145deg,#182b5d,#111f48);color:#f4f8ff;box-shadow:0 38px 110px rgba(0,0,0,.52);font:inherit;overflow:hidden;color-scheme:dark}.uead-decision-dialog::backdrop{background:rgba(2,8,25,.72);backdrop-filter:blur(7px)}.uead-decision-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 8px}.uead-decision-eyebrow{color:#79baff;font-size:9px;font-weight:750;letter-spacing:.14em}.uead-decision-close{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;background:rgba(255,255,255,.055);color:#c9d8ef;font:inherit;font-size:20px;cursor:pointer}.uead-decision-close:hover{background:rgba(255,255,255,.1)}.uead-decision-body{display:grid;grid-template-columns:42px minmax(0,1fr);gap:15px;padding:12px 20px 24px}.uead-decision-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(100,174,248,.11);color:#9ed1ff;font-size:17px;font-weight:800}.uead-decision-dialog.is-danger .uead-decision-icon{background:rgba(231,86,110,.12);color:#ff9bae}.uead-decision-body h2{margin:1px 0 8px;font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.25px}.uead-decision-body p{margin:0;color:#aebfdd;font-size:12px;line-height:1.65}.uead-decision-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:16px 20px 19px;border-top:1px solid rgba(255,255,255,.085);background:rgba(7,18,47,.22)}.uead-decision-actions .decision-confirm{background:#f4f6fb;color:#101b50}.uead-decision-dialog.is-danger .uead-decision-actions .decision-confirm{background:#ffe9ed;color:#681d2d}
@media(max-width:600px){.popup-country-quick{grid-template-columns:1fr 1fr}.picker-country-context{align-items:flex-start}.uead-decision-body{grid-template-columns:36px minmax(0,1fr);gap:12px}.uead-decision-icon{width:34px;height:34px}.uead-decision-actions{gap:10px}.uead-decision-actions .primary{min-width:130px}}


/* Destructive/confirmation actions are deliberately separated to avoid accidental clicks. */
.uead-decision-dialog:not(.is-alert) .uead-decision-actions{justify-content:space-between;gap:24px}
.uead-decision-dialog:not(.is-alert) .uead-decision-actions>.text-button{margin-right:auto}
.uead-decision-dialog:not(.is-alert) .uead-decision-actions>.decision-confirm{margin-left:auto}
.uead-decision-dialog.is-alert .uead-decision-actions{justify-content:flex-end}
/* Final account drawer: fixed shell, one scrollable body, non-overlapping footer. */
.uead-dialog.user-dialog[open]{
  position:fixed;
  inset:14px 14px 14px auto;
  width:min(500px,calc(100vw - 28px));
  height:calc(100dvh - 28px);
  max-height:calc(100dvh - 28px);
  margin:0;
  padding:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  overscroll-behavior:contain;
  border-radius:20px;
}
.user-dialog .dialog-head{
  position:relative;
  top:auto;
  z-index:4;
  flex:0 0 auto;
  padding:24px 24px 19px;
  background:linear-gradient(145deg,#1c3067,#152453);
}
.user-dialog #dialogBody{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:8px 24px 30px;
}
.user-dialog .popup-results,.user-dialog .user-menu-links{
  max-height:none!important;
  overflow:visible!important;
  overscroll-behavior:auto;
  padding-right:0;
}
.user-dialog .user-menu-section{padding:23px 0 25px;border-top:1px solid rgba(255,255,255,.105)}
.user-dialog .user-menu-section:first-child{border-top:0}
.user-dialog .user-menu-profile-section{padding-top:20px;padding-bottom:21px}
.user-dialog .user-menu-section-title{margin:0 0 15px;color:#8fc9ff;font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.user-dialog .profile-details{margin:0}
.user-dialog .language-choices{margin:0}
.user-dialog .user-menu-links{display:grid;grid-template-columns:1fr;gap:10px}
/* Account cards are direct children of the section, so the section itself must own the spacing. */
.user-dialog .user-menu-account-section{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;align-content:start!important}
.user-dialog .user-menu-links .result-choice,.user-dialog .user-menu-account-section>.result-choice{height:auto!important;min-height:64px;margin:0!important;align-items:flex-start;border:1px solid rgba(255,255,255,.085);border-radius:11px;background:rgba(255,255,255,.035)}
.user-dialog .user-menu-links .result-choice+.result-choice,.user-dialog .user-menu-account-section>.result-choice+.result-choice{margin-top:0!important}
.user-dialog .user-menu-links .result-choice:hover,.user-dialog .user-menu-account-section>.result-choice:hover{border-color:rgba(119,187,255,.24);background:rgba(75,145,230,.11)}
.user-dialog .dialog-footer{
  position:relative;
  bottom:auto;
  z-index:4;
  flex:0 0 auto;
  padding:16px 24px 19px;
  background:rgba(18,32,79,.98);
  backdrop-filter:blur(14px);
}
@media(max-width:700px){
  .uead-dialog.user-dialog[open]{
    inset:8px;
    width:auto;
    height:calc(100dvh - 16px);
    max-height:calc(100dvh - 16px);
    border-radius:18px;
  }
  .user-dialog #dialogBody{padding:6px 20px 27px}
  .user-dialog .user-menu-section{padding:20px 0 22px}
}

/* Profile switcher inside the account drawer. Mirrors the compact record navigation language. */
.user-dialog .user-menu-profile-switch-section{padding-top:18px}
.user-dialog .user-profile-switch-list{display:grid;gap:7px}
.user-dialog .user-profile-switch-item{display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:11px;width:100%;min-height:66px;padding:10px 11px;border:1px solid rgba(255,255,255,.085);border-radius:12px;background:rgba(255,255,255,.028);color:#dce9ff;text-align:left;font:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.user-dialog .user-profile-switch-item:hover:not(:disabled){border-color:rgba(112,183,244,.28);background:rgba(58,155,244,.075)}
.user-dialog .user-profile-switch-item[aria-current="page"]{border-color:rgba(111,183,244,.40);background:rgba(58,155,244,.12)}
.user-dialog .user-profile-switch-item:disabled{cursor:wait;opacity:.72}
.user-dialog .user-profile-switch-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:rgba(87,157,239,.14);color:#a9d7ff;font-size:13px;font-weight:750}
.user-dialog .user-profile-switch-copy{display:grid;gap:2px;min-width:0}
.user-dialog .user-profile-switch-copy small{color:#7fa8d5;font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.user-dialog .user-profile-switch-copy strong{overflow:hidden;color:#f1f6ff;font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.user-dialog .user-profile-switch-copy>span{overflow:hidden;color:#8fa6ca;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.user-dialog .user-profile-switch-state{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#8fc9ff;font-size:13px}
.user-dialog .user-profile-switch-item[aria-current="page"] .user-profile-switch-state{background:rgba(58,155,244,.12);color:#b9dfff}


.user-dialog .user-menu-language-section{display:grid;gap:10px}
.user-dialog .user-menu-language-trigger{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:12px;width:100%;min-height:62px;padding:11px 12px;border:1px solid rgba(255,255,255,.085);border-radius:12px;background:rgba(255,255,255,.03);color:#edf5ff;text-align:left;font:inherit;cursor:pointer;transition:background .16s ease,border-color .16s ease}
.user-dialog .user-menu-language-trigger:hover{border-color:rgba(112,183,244,.28);background:rgba(58,155,244,.075)}
.user-dialog .user-menu-language-copy{display:grid;gap:3px;min-width:0}.user-dialog .user-menu-language-copy small{overflow:hidden;color:#8098bf;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.user-dialog .user-menu-language-copy strong{color:#f1f6ff;font-size:12px;font-weight:650}.user-dialog .user-menu-language-action{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#8fc9ff;font-size:13px}
.uead-dialog.language-dialog{width:min(520px,calc(100vw - 32px));max-height:min(78dvh,760px);overflow:hidden}.uead-dialog.language-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.language-dialog #dialogBody{min-height:0;overflow:auto}.language-dialog .user-language-picker-list{max-height:none}.language-dialog .user-language-picker-item[aria-pressed=true]{border:1px solid rgba(111,183,244,.38);background:rgba(58,155,244,.11)}


/* Account appearance selector: same card language as the other account-menu actions,
   with the three theme choices kept inside one compact control. */
.user-dialog .user-menu-appearance-section{display:grid;gap:10px}
.user-dialog .user-menu-theme-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:62px;padding:10px 11px 10px 12px;border:1px solid rgba(255,255,255,.085);border-radius:12px;background:rgba(255,255,255,.03);color:#edf5ff;transition:background .16s ease,border-color .16s ease}
.user-dialog .user-menu-theme-control:hover{border-color:rgba(112,183,244,.22);background:rgba(58,155,244,.055)}
.user-dialog .user-menu-theme-copy{display:grid;gap:3px;min-width:0}
.user-dialog .user-menu-theme-copy small{overflow:hidden;color:#8098bf;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.user-dialog .user-menu-theme-copy strong{color:#f1f6ff;font-size:12px;font-weight:650}
.user-dialog .user-menu-theme-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(5,16,44,.34)}
.user-dialog .user-menu-theme-choice{min-width:72px;height:32px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#91a8cb;font:inherit;font-size:10px;font-weight:650;cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.user-dialog .user-menu-theme-choice:hover{background:rgba(255,255,255,.055);color:#e7f2ff}
.user-dialog .user-menu-theme-choice[aria-pressed="true"]{background:rgba(74,154,238,.18);color:#c7e5ff;box-shadow:inset 0 0 0 1px rgba(114,190,255,.26)}
@media(max-width:520px){
 .user-dialog .user-menu-theme-control{grid-template-columns:1fr;align-items:stretch}
 .user-dialog .user-menu-theme-segments{width:100%}
 .user-dialog .user-menu-theme-choice{min-width:0;padding:0 6px}
}
/* v11: structured custom authority creation inside the existing UEAD picker layer. */
.popup-create-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}.popup-create-field{display:block;font-size:12px;color:#b9c9e5}.popup-create-field:first-of-type{grid-column:1/-1}.popup-create-field input{display:block;width:100%;box-sizing:border-box;margin-top:8px;min-height:52px;padding:14px 15px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:rgba(255,255,255,.07);color:#fff;font:inherit;font-size:15px;outline:none}.popup-create-field input:focus{border-color:#8ac8ff;background:rgba(58,155,244,.12)}.popup-create-field input::placeholder{color:#9fb3d6}.popup-country-lock{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid rgba(255,255,255,.11);border-radius:11px;background:rgba(255,255,255,.04);font-size:13px;color:#aebfdd}.popup-country-lock strong{color:#eef6ff;font-weight:600}.identity-report-note{margin:-2px 0 24px}.additional-field .fields{align-items:start}.additional-field>.hint{max-width:820px;margin-top:-4px;margin-bottom:10px}@media(max-width:700px){.popup-create-form{grid-template-columns:1fr}.popup-create-field:first-of-type{grid-column:auto}.popup-country-lock{grid-column:auto}}
/* Shared dictation control for descriptive textarea fields */
.dictation-wrap{position:relative;display:block;width:100%}
.dictation-wrap>textarea{display:block;width:100%;padding-right:46px!important}
.dictation-button{position:absolute;top:8px;right:8px;width:32px;height:32px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:10px;background:color-mix(in srgb,var(--surface,#fff) 92%,transparent);color:inherit;display:grid;place-items:center;cursor:pointer;z-index:2;opacity:.72;transition:opacity .16s ease,transform .16s ease,background .16s ease}
.dictation-button:hover,.dictation-button:focus-visible{opacity:1;transform:translateY(-1px)}
.dictation-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dictation-button.is-listening{opacity:1;background:color-mix(in srgb,#ef4444 13%,var(--surface,#fff))}

/* ========================================================================
   UEAD shared tabs + modular animal warning layout fix
   2026-09-15
   ======================================================================== */

/* Animal warning badges are visual overlays only. They must never become a
   grid/flex item and therefore must never change the width of animal rows. */
.animal-list-warning{
  display:inline-grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#c93445!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:none!important;
  pointer-events:none!important;
  z-index:5!important;
}

/* Dashboard / own animal lists. The marker sits on the photo corner and is
   taken completely out of the animal-row grid. */
.animal-row-main{position:relative!important}
.animal-row-main>.animal-list-warning{
  position:absolute!important;
  left:46px!important;
  top:-5px!important;
  margin:0!important;
  float:none!important;
}

/* Professional search cards: warning does not consume copy width. */
.professional-animal-card{position:relative!important}
.professional-animal-warning{
  position:absolute!important;
  left:67px!important;
  top:7px!important;
  margin:0!important;
  float:none!important;
}

/* Stand-alone animal search result cards. */
.animal-result{position:relative!important}
.animal-search-warning{
  position:absolute!important;
  right:20px!important;
  top:54px!important;
  margin:0!important;
  float:none!important;
}

@media(max-width:640px){
  .animal-row-main>.animal-list-warning{left:41px!important;top:-4px!important}
  .professional-animal-warning{left:57px!important;top:6px!important}
  .animal-search-warning{right:17px!important;top:50px!important}
}

/* ------------------------------------------------------------------------
   Shared UEAD tab component
   Visual reference: official/professional dashboard top navigation.
   Existing tab logic, data attributes and JS are untouched; only presentation
   is unified here so new tabs can keep using their current behaviour.
   ------------------------------------------------------------------------ */
:where(
  .animal-view-switch,
  .professional-search-tabs,
  .dashboard-profile-tabs,
  .dashboard-report-tabs,
  .group-editor-tabs,
  .health-dialog-tabs
){
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  width:max-content!important;
  max-width:100%!important;
  padding:5px!important;
  border:1px solid rgba(255,255,255,.055)!important;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
  border-radius:12px!important;
  background:rgba(6,17,49,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin!important;
}

:where(
  .animal-view-switch,
  .professional-search-tabs,
  .dashboard-profile-tabs,
  .dashboard-report-tabs,
  .group-editor-tabs,
  .health-dialog-tabs
) > :is(a,button){
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-width:max-content!important;
  min-height:40px!important;
  padding:10px 14px!important;
  border:0!important;
  border-bottom:0!important;
  border-radius:9px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#aebdde!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.2!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  transition:background-color .16s ease,color .16s ease,box-shadow .16s ease!important;
}

:where(
  .animal-view-switch,
  .professional-search-tabs,
  .dashboard-profile-tabs,
  .dashboard-report-tabs,
  .group-editor-tabs,
  .health-dialog-tabs
) > :is(a,button):hover{
  background:rgba(255,255,255,.055)!important;
  color:#fff!important;
}

:where(
  .animal-view-switch,
  .professional-search-tabs,
  .dashboard-profile-tabs,
  .dashboard-report-tabs,
  .group-editor-tabs,
  .health-dialog-tabs
) > :is(
  a[aria-selected="true"],
  button[aria-selected="true"],
  button[aria-pressed="true"],
  a.active,
  button.active,
  .group-editor-tab.active,
  [aria-current="page"]
){
  background:rgba(58,155,244,.14)!important;
  box-shadow:inset 0 0 0 1px rgba(111,185,255,.38)!important;
  color:#fff!important;
}

/* Remove legacy underline/pill artefacts from nested tab labels while keeping
   counters and small index labels visible. */
:where(.dashboard-report-tabs,.health-dialog-tabs,.group-editor-tabs) > button>span{
  border-bottom:0!important;
}
:where(.animal-view-switch,.dashboard-profile-tabs,.dashboard-report-tabs) .view-count,
.dashboard-report-tabs button>b{
  display:inline-grid!important;
  place-items:center!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 6px!important;
  border:1px solid rgba(115,190,255,.24)!important;
  border-radius:999px!important;
  background:rgba(58,155,244,.10)!important;
  color:#83c8ff!important;
  font-size:9px!important;
  font-weight:700!important;
  line-height:1!important;
}

@media(max-width:700px){
  :where(
    .animal-view-switch,
    .professional-search-tabs,
    .dashboard-profile-tabs,
    .dashboard-report-tabs,
    .group-editor-tabs,
    .health-dialog-tabs
  ){
    width:100%!important;
    box-sizing:border-box!important;
    padding:4px!important;
    border-radius:11px!important;
  }

  :where(
    .animal-view-switch,
    .professional-search-tabs,
    .dashboard-profile-tabs,
    .dashboard-report-tabs,
    .group-editor-tabs,
    .health-dialog-tabs
  ) > :is(a,button){
    min-height:38px!important;
    padding:9px 11px!important;
    font-size:11px!important;
  }
}


/* Report: choose affected animals from UEAD or enter them manually. */
.report-animal-source-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:6px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(6,20,58,.34)}
.report-animal-source-tabs button{appearance:none;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);padding:10px 14px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.report-animal-source-tabs button.active{border-color:rgba(99,174,255,.34);background:rgba(52,124,219,.16);color:var(--text)}
.report-animal-source-panel[hidden]{display:none!important}.report-registry-results,.report-registry-selected{display:grid;gap:8px;margin:12px 0 20px}.report-registry-result,.report-registry-selected-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025);color:var(--text);text-align:left}.report-registry-result[aria-pressed=true]{border-color:rgba(99,174,255,.4);background:rgba(52,124,219,.11)}.report-registry-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.report-registry-copy small{color:var(--muted);font-size:10px}.report-selected-head{margin-top:18px}.group-editor-place-field{grid-column:1/-1}.group-editor-place-field .popup-value{cursor:pointer}


/* Linked professional settings: render only the operational sections they may edit. */
.animal-settings-form.linked-operational-only .settings-owner-only,
.group-settings-panel.linked-operational-only .settings-owner-only{display:none!important}


/* Archived records in auxiliary search/picker lists stay interactive, but use the inactive grey state. */
.result-choice.is-archive,
.report-registry-result.is-archive,
.report-registry-selected-row.is-archive,
.group-animal-result.is-archive,
.group-choice-card.is-archive{
  background:linear-gradient(135deg,rgba(145,152,164,.11),rgba(93,102,117,.06))!important;
  border-color:rgba(180,187,198,.28)!important;
  box-shadow:none!important;
  filter:saturate(.12);
}
.result-choice.is-archive:hover,
.report-registry-result.is-archive:hover,
.group-animal-result.is-archive:hover,
.group-choice-card.is-archive:hover{
  background:linear-gradient(135deg,rgba(153,160,172,.16),rgba(100,109,123,.085))!important;
  border-color:rgba(196,202,211,.4)!important;
}

.uead-photo-upload-host{position:relative!important}
.uead-photo-upload-state{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;gap:12px;padding:18px;border-radius:inherit;background:rgba(7,18,55,.82);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);color:#f3f7ff;text-align:left}
.uead-photo-upload-state[hidden]{display:none!important}
.uead-photo-upload-spinner{width:30px;height:30px;flex:0 0 30px;border:3px solid rgba(255,255,255,.2);border-top-color:#74c4ff;border-radius:50%;animation:uead-photo-spin .75s linear infinite}
.uead-photo-upload-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:5px}.uead-photo-upload-copy strong{font-size:13px;line-height:1.25;color:#fff}.uead-photo-upload-copy small{font-size:10px;color:#a9bddf;font-variant-numeric:tabular-nums}
.uead-photo-upload-progress{display:block;width:100%;height:4px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.12)}.uead-photo-upload-progress>span{display:block;width:0;height:100%;border-radius:inherit;background:#69c1ff;transition:width .14s ease}
.uead-photo-upload-state.is-done .uead-photo-upload-spinner{animation:none;border-color:#68d5a1;background:#68d5a1;box-shadow:inset 0 0 0 7px rgba(7,18,55,.92)}.uead-photo-upload-state.is-error{background:rgba(62,13,28,.9)}.uead-photo-upload-state.is-error .uead-photo-upload-spinner{animation:none;border-color:#ff708d;border-top-color:#ff708d}
@keyframes uead-photo-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.uead-photo-upload-spinner{animation-duration:1.8s}}
/* Registration submitter autofill + post-save privacy */
.use-submitter-row{display:flex;justify-content:flex-end;margin:-8px 0 24px}.use-submitter-row .use-user{margin-top:0}.registration-completion-privacy{margin:28px 0 24px;padding:22px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.035);text-align:left}.registration-privacy-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.registration-privacy-head h4{margin:5px 0 4px;color:#f0f5ff;font-size:20px}.registration-privacy-head p{margin:0!important;max-width:720px;color:#9fb2d7!important;font-size:12px;line-height:1.6}.completion-privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.completion-privacy-choice{min-height:82px}.completion-privacy-choice.wide{grid-column:1/-1}.completion-privacy-choice .small-radio{border-radius:5px}.completion-link-mode{margin:20px 0 0}.registration-privacy-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:18px}.completion-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:22px}.privacy-bulk-toggle{white-space:nowrap;min-height:42px;padding:10px 14px}.registration-completion-privacy .privacy-bulk-toggle{flex:0 0 auto}@media(max-width:720px){.registration-privacy-head{flex-direction:column}.completion-privacy-grid{grid-template-columns:1fr}.completion-privacy-choice.wide{grid-column:auto}.registration-privacy-actions{align-items:stretch;flex-direction:column}.registration-privacy-actions .primary{width:100%}.use-submitter-row{justify-content:stretch}.use-submitter-row .use-user{width:100%}}

/* ========================================================================
   Missing animal marker
   ------------------------------------------------------------------------
   The marker lives inside the existing photo box. It is absolutely
   positioned and therefore never becomes a grid/flex item or changes row
   dimensions. It can coexist with the separate red ! warning marker.
   ======================================================================== */
.animal-list-photo>.animal-missing-marker,
.professional-animal-photo>.animal-missing-marker,
.group-animal-result-photo>.animal-missing-marker{
  position:absolute!important;
  right:4px!important;
  bottom:4px!important;
  z-index:5!important;
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,218,205,.45)!important;
  border-radius:50%!important;
  background:#c95f46!important;
  color:#fff!important;
  line-height:1!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
.animal-missing-marker svg{
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Animal appearance step: photo first, then full-width appearance fields. */
.appearance-fields{display:grid;grid-template-columns:1fr;gap:18px;margin-top:24px}.appearance-fields>.field{width:100%;min-width:0}.appearance-marks-field textarea{width:100%;box-sizing:border-box}.history-document-head{align-items:flex-start}.history-document-head>div{min-width:0}.history-document-head .hint{margin:6px 0 0;max-width:720px;line-height:1.55}


/* Animal size and physical measurements */
.animal-measurement-head{margin-top:28px}.animal-measurement-head p{margin:6px 0 0;color:#91a4cb;font-size:12px;line-height:1.55}.animal-size-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.animal-size-choices .open-choice{min-width:0}.animal-size-choices .open-choice>span:last-child{display:flex;min-width:0;flex-direction:column;gap:3px}.animal-size-choices small{color:#91a4cb;font-size:10px;font-weight:500;line-height:1.35}.animal-size-choices .open-choice:has(input:checked) small{color:#cfe5ff}.animal-measurement-fields{margin-top:8px}.animal-measurement-fields input{font-variant-numeric:tabular-nums}@media(max-width:850px){.animal-size-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.animal-size-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Animal registration masthead: Draft tools on the left, account menu on the right. */
.animal-registration-masthead{position:relative}.animal-draft-header{display:flex;align-items:center}.animal-draft-menu{position:relative}.animal-draft-menu>summary{list-style:none}.animal-draft-menu>summary::-webkit-details-marker{display:none}.animal-draft-trigger{min-height:44px;padding:10px 0;color:#4d607d;gap:10px}.animal-draft-menu[open] .animal-draft-trigger{color:var(--blue)}.animal-draft-popover{position:absolute;z-index:90;top:calc(100% + 8px);right:0;left:auto;width:min(330px,calc(100vw - 28px));padding:8px;border:1px solid #dce4ef;border-radius:13px;background:#fff;box-shadow:0 20px 55px rgba(31,50,82,.18)}.animal-draft-action{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border:0;border-radius:9px;background:transparent;color:#14223d;text-align:left}.animal-draft-action:hover{background:#f0f4fb}.animal-draft-action>span:first-child{display:flex;min-width:0;flex-direction:column;gap:4px}.animal-draft-action strong{font-size:13px;font-weight:650}.animal-draft-action small{color:#6c7b93;font-size:11px;line-height:1.45}.animal-draft-action>span:last-child{color:#164ff0;font-size:18px}.animal-registration-masthead .header-right{margin-left:auto;display:flex;align-items:center;gap:12px}.animal-registration-masthead .brand{margin-left:0}@media(max-width:700px){.animal-registration-masthead{gap:13px;padding-left:18px;padding-right:18px}.animal-registration-masthead .brand{font-size:38px;letter-spacing:-3px;margin-left:0}.animal-registration-masthead .brand-caption{display:none}.animal-draft-trigger{font-size:12px}.animal-draft-popover{position:fixed;left:14px;top:76px;width:calc(100vw - 28px)}.animal-registration-masthead .header-right{gap:0}.animal-registration-masthead .user-trigger{min-width:44px;justify-content:center}}@media(max-width:430px){.animal-registration-masthead .brand{font-size:31px}.animal-draft-trigger>span:last-child{display:none}.animal-draft-trigger{font-size:11px}.animal-registration-masthead{gap:9px}}
/* Keep the state explicit in compact, photo-less record lists too. */
.result-choice.is-missing{
  border-color:rgba(216,112,83,.24)!important;
}
.result-choice.is-missing .result-copy small{
  color:#d9ad9f;
}
@media(max-width:640px){
  .animal-list-photo>.animal-missing-marker,
  .professional-animal-photo>.animal-missing-marker,
  .group-animal-result-photo>.animal-missing-marker{
    right:3px!important;
    bottom:3px!important;
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
  }
  .animal-missing-marker svg{width:11px;height:11px}
}
.professional-animal-privacy .missing-state-badge{
  background:rgba(190,72,49,.14)!important;
  color:#ffc8b8!important;
}

/* ========================================================================
   RECOVERY V3 — missing marker corner alignment
   Same size/right edge as the red warning marker, mirrored to bottom-right.
   ======================================================================== */
.animal-list-photo,
.professional-animal-photo,
.group-animal-result-photo{overflow:visible!important}
.animal-list-photo>img,
.professional-animal-photo>img,
.group-animal-result-photo>img{border-radius:inherit!important}
.animal-list-photo>.animal-missing-marker,
.professional-animal-photo>.animal-missing-marker,
.group-animal-result-photo>.animal-missing-marker{
  right:-11px!important;
  bottom:-5px!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
}
@media(max-width:640px){
  .animal-list-photo>.animal-missing-marker,
  .professional-animal-photo>.animal-missing-marker,
  .group-animal-result-photo>.animal-missing-marker{
    right:-10px!important;
    bottom:-4px!important;
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
  }
}


/* RECOVERY FINAL — Missing marker: same footprint/right edge as the warning,
   positioned at the lower photo corner. */
.animal-list-photo,.professional-animal-photo,.group-animal-result-photo{overflow:visible!important}
.animal-list-photo>.animal-missing-marker,
.professional-animal-photo>.animal-missing-marker,
.group-animal-result-photo>.animal-missing-marker{
  position:absolute!important;right:-11px!important;bottom:-5px!important;
  width:22px!important;height:22px!important;min-width:22px!important;margin:0!important;z-index:5!important
}
@media(max-width:640px){
  .animal-list-photo>.animal-missing-marker,
  .professional-animal-photo>.animal-missing-marker,
  .group-animal-result-photo>.animal-missing-marker{right:-10px!important;bottom:-4px!important;width:20px!important;height:20px!important;min-width:20px!important}
}
