/* Shared profile presentation across all seven tabs; no record semantics changed. */
.ds-workspace .am-profile-shell{max-width:1200px;margin-inline:auto;font-family:var(--ws-font,AISInter,AISArabic,system-ui,sans-serif);font-size:16px;line-height:1.6;color:#0f172a;--am-border:#e2e8f0;--am-ink:#0f172a}
.ds-workspace .am-profile-shell h1{font-size:32px!important;font-weight:600!important;line-height:1.25;color:#0f172a!important}
.ds-workspace .am-profile-shell h2{font-size:20px!important;font-weight:600!important;line-height:1.3;margin:0 0 20px;color:#0f172a!important}
.ds-workspace .am-profile-shell h3{font-size:18px!important;font-weight:600!important;line-height:1.3}
.ds-workspace .am-profile-shell p{font-size:16px!important;line-height:1.6;color:#475569}
.ds-workspace .am-profile-shell small{font-size:14px!important;font-weight:400!important;line-height:1.5;color:#64748b}
.ds-workspace .am-profile-shell :is(b,strong){font-weight:600;font-variant-numeric:tabular-nums}
.ds-workspace .am-profile-shell .aw-hero{padding:24px;background:#fff!important;border:1px solid #e2e8f0;border-radius:16px;box-shadow:none;gap:24px;margin-bottom:16px;color:#0f172a}
.am-profile-shell .aw-identity{gap:20px}
.am-profile-title-row{display:flex;align-items:center;gap:12px}
.am-profile-title-row h1{margin:0!important}
.ds-workspace .am-profile-shell .am-profile-actions>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;list-style:none;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;cursor:pointer}
.am-profile-actions>summary::-webkit-details-marker{display:none}
.am-profile-actions>summary span{font-size:28px;line-height:1}
.am-profile-action-item{cursor:pointer}
.am-profile-shell details.am-profile-actions:not([open])>div{display:none!important;visibility:hidden!important;pointer-events:none!important}
.am-profile-shell details.am-profile-actions[open]>div{display:grid!important;visibility:visible!important;pointer-events:auto!important}
.am-profile-shell details.am-profile-actions>div[popover]{position:fixed;inset:auto!important;left:var(--profile-menu-left,12px)!important;top:var(--profile-menu-top,12px)!important;margin:0!important;height:max-content!important;min-height:0!important;max-height:calc(100vh - 24px);align-content:start;grid-auto-rows:max-content;overflow-y:auto;box-sizing:border-box}
.am-profile-shell details.am-profile-actions>div[popover]:not(:popover-open){display:none!important;visibility:hidden!important;pointer-events:none!important}
.am-profile-shell .am-profile-actions>div{inset-inline-start:0;inset-inline-end:auto;width:240px;max-width:calc(100vw - 48px);padding:6px;gap:2px;z-index:30;margin-top:6px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 24px #0f172a14;box-sizing:border-box}
.ds-workspace .am-profile-shell .am-profile-actions>div .am-profile-action-item{display:flex;width:100%;min-height:44px;align-items:center;justify-content:flex-start;text-align:start;background:#fff!important;color:#334155!important;border:0!important;box-shadow:none!important;padding:10px 12px!important;white-space:normal;border-radius:7px!important;font:500 14px/1.5 var(--ws-font,AISInter,AISArabic,system-ui,sans-serif)!important;letter-spacing:normal;text-transform:none}
.ds-workspace .am-profile-shell .am-profile-actions>div .am-profile-action-item:hover{background:#eef2ff!important;color:#4338ca!important}
.ds-workspace .am-profile-shell .am-profile-actions>div .am-profile-action-item:focus-visible{background:#eef2ff!important;color:#4338ca!important;outline:2px solid #4f46e5!important;outline-offset:-2px}
.ds-workspace .am-profile-shell .am-profile-actions>summary:hover,.ds-workspace .am-profile-shell .am-profile-actions[open]>summary{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}
/* The native popover keeps the same quiet-indigo design as the workspace. */
.ds-workspace .am-profile-shell .am-profile-actions>div[popover]{width:220px;padding:6px;gap:0;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 6px 20px #0f172a14;font-family:var(--ws-font,AISInter,AISArabic,system-ui,sans-serif);text-align:start}
.ds-workspace .am-profile-shell .am-profile-actions>div[popover] .am-profile-action-item{min-height:36px;padding:7px 10px!important;border-radius:6px!important;font-size:14px!important;font-weight:500!important;line-height:1.5!important;color:#0f172a!important;transition:background-color .12s ease,color .12s ease}
@media(pointer:coarse){.ds-workspace .am-profile-shell .am-profile-actions>div[popover] .am-profile-action-item{min-height:44px}}
.ds-workspace .am-profile-shell .am-profile-actions>div[popover] .am-profile-action-item:is(:hover,:focus-visible){background:#eef2ff!important;color:#4338ca!important}
.ds-workspace .am-profile-shell .am-profile-actions>div .am-profile-action-item{text-transform:capitalize}
.ds-workspace .am-profile-shell .am-profile-actions>summary:focus-visible{outline:2px solid #4f46e5;outline-offset:3px}
.ds-workspace .am-profile-shell .am-profile-actions>div[popover]::backdrop{background:transparent}
@media(prefers-reduced-motion:reduce){.ds-workspace .am-profile-shell .am-profile-actions>div[popover] .am-profile-action-item{transition:none}}
@media(max-width:600px){.am-profile-shell .am-profile-actions>div{inset-inline-start:auto;inset-inline-end:0}}
.ds-workspace .am-profile-shell .aw-hero p{font-size:18px!important;margin-block:6px;font-weight:500}
.ds-workspace .am-profile-shell .aw-hero .aw-badge{background:#eef2ff;color:#4338ca}
.ds-workspace .am-profile-shell .aw-hero .am-profile-health{background:#eef2ff;color:#4338ca}
.ds-workspace .am-profile-shell .aw-tabs{position:static;display:flex;overflow-x:auto;flex-wrap:nowrap;gap:6px;background:#fff!important;border:1px solid #e2e8f0;border-radius:12px;padding:6px;margin-block:24px;scrollbar-width:thin}
.ds-workspace .am-profile-shell .aw-tabs button{flex:0 0 auto;padding:12px 16px;min-height:44px;font:500 14px/1.4 var(--ws-font,AISInter,AISArabic,system-ui,sans-serif)!important;border:0;border-radius:8px;background:transparent;color:#475569}
.ds-workspace .am-profile-shell .aw-tabs button.active{background:#eef2ff!important;color:#4338ca!important;box-shadow:inset 0 -2px #4f46e5;font-weight:600!important}
.ds-workspace .am-profile-shell :is(.aw-card,.animal-lifetime-cost-summary,.loss-panel){background:#fff!important;border:1px solid #e2e8f0!important;border-radius:16px;padding:24px;box-shadow:none!important}
.ds-workspace .am-profile-shell .aw-two{gap:24px;align-items:start}
.am-profile-shell .aw-facts{gap:20px 24px}
.ds-workspace .am-profile-shell .aw-facts>div{padding:12px 0;border-bottom:1px solid #f1f5f9;min-width:0}
.ds-workspace .am-profile-shell .aw-facts b{display:block;font-size:16px!important;line-height:1.5;margin-top:6px;overflow-wrap:anywhere;color:#0f172a}
.ds-workspace .am-profile-shell .aw-event{padding-block:18px;border-color:#e2e8f0;font-size:16px;line-height:1.6}
.am-profile-shell .aw-event p{margin-block:8px}
.am-profile-shell>.loss-panel{width:100%;max-width:none;box-sizing:border-box;margin:24px 0 0}
.am-profile-shell .loss-panel .vw-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:0;margin:0 0 20px}
.ds-workspace .am-profile-shell .loss-panel .vw-section-head h2{margin:0 0 8px}
.am-profile-shell .loss-panel .vw-section-head p{margin:0}
.am-profile-shell .loss-panel .aw-actions{gap:10px;flex-shrink:0}
.am-profile-shell .loss-card{background:#f8fafc;border-color:#e2e8f0;border-inline-start-color:#c7d2fe;padding:20px;border-radius:12px}
.ds-workspace .am-profile-shell .loss-note{font-size:14px!important;line-height:1.6;background:#fffbeb;color:#92400e;border:1px solid #fde68a;border-radius:12px;padding:16px;margin-bottom:0}
@media(max-width:800px){.am-profile-shell .loss-panel .vw-section-head{flex-direction:column}.am-profile-shell .loss-panel .aw-actions{flex-shrink:1}}
.ds-workspace .am-profile-shell .aw-event small{color:#64748b}
.ds-workspace .am-profile-shell :is(.btn,.am-more summary){min-height:44px;font:500 14px/1.5 var(--ws-font,AISInter,AISArabic,system-ui,sans-serif)!important;border-radius:9px}
.am-profile-shell .am-more summary{background:#fff;border-color:#cbd5e1}
.am-profile-shell .am-more>div{border:1px solid #e2e8f0;box-shadow:0 12px 28px #0f172a14}
.am-profile-shell :is(button,input,select,summary):focus-visible{outline:3px solid #c7d2fe!important;outline-offset:3px}
.ds-workspace .am-profile-shell .am-link{font-size:14px;font-weight:600;color:#4338ca}
.ds-workspace .am-profile-shell :is(.am-feeding-summary,.am-context-note){background:#eef2ff;border:1px solid #c7d2fe;color:#334155;border-radius:12px;padding:20px;font-size:14px;line-height:1.6}
.am-profile-shell .am-feeding-summary strong{color:#4338ca}
.ds-workspace .am-profile-shell .aw-bar{background:#6366f1;border-radius:6px 6px 0 0}
.ds-workspace .am-profile-shell :is(.am-history-filter,.am-document-filter){padding:20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;gap:16px;margin-block:20px}
.am-profile-shell .am-history-filter{display:grid;grid-template-columns:2fr 1fr 1fr 1fr}
.ds-workspace .am-profile-shell :is(.am-history-filter label,.am-document-filter){font-size:14px;font-weight:500;color:#334155}
.ds-workspace .am-profile-shell :is(input,select){font:400 16px/1.5 var(--ws-font,AISInter,AISArabic,system-ui,sans-serif)!important;min-height:48px;width:100%;box-sizing:border-box;background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px}
.am-profile-shell .am-history-filter label{min-width:0}
.am-profile-shell .aw-document-grid{gap:20px}
.am-profile-shell .am-documents-header{display:flex;align-items:center;gap:16px;flex-wrap:nowrap;margin-bottom:16px}
.ds-workspace .am-profile-shell .am-documents-header h2{margin:0;margin-inline-end:auto;flex-shrink:0}
.am-profile-shell .am-documents-header .aw-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;margin:0}
.ds-workspace .am-profile-shell .am-documents-header .am-document-filter{display:flex;align-items:center;gap:12px;white-space:nowrap;margin:0;padding:0;background:none;border:0;max-width:none;flex-shrink:0}
.am-profile-shell .am-documents-header .am-document-filter select{width:150px}
.am-profile-shell .am-documents-header button{white-space:nowrap}
@media(max-width:900px){.am-profile-shell .am-documents-header{flex-wrap:wrap}.am-profile-shell .am-documents-header h2{flex-basis:100%}.am-profile-shell .am-documents-header .aw-actions{flex-wrap:wrap}}
.ds-workspace .am-profile-shell .aw-document-card{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#fff;box-shadow:none}
.ds-workspace .am-profile-shell .aw-document-name{font-size:16px;font-weight:600;color:#4338ca;overflow-wrap:anywhere}
.am-profile-shell .aw-document-copy{padding:18px}
.am-profile-shell .aw-document-thumb img{object-fit:contain;background:#f8fafc}
.ds-workspace .am-profile-shell .animal-lifetime-cost-summary-head{align-items:flex-start;gap:20px;padding-bottom:20px;border-bottom-color:#e2e8f0;text-align:start}
.ds-workspace .am-profile-shell .animal-lifetime-cost-summary-head>div{display:grid;gap:8px;min-inline-size:0}
.ds-workspace .am-profile-shell .animal-lifetime-cost-summary-head .management-kicker{display:block;margin:0;padding:0;font-size:14px!important;font-weight:500!important;line-height:1.5;color:#475569;text-transform:none;letter-spacing:0}
.ds-workspace .am-profile-shell .animal-lifetime-cost-summary-head h2{margin:0!important;padding:0;font-size:20px!important;font-weight:600!important;line-height:1.3;letter-spacing:0}
.ds-workspace .am-profile-shell .animal-lifetime-cost-summary-head p{margin:0!important;padding:0;font-size:16px!important;font-weight:400;line-height:1.5;max-inline-size:70ch;color:#475569}
.ds-workspace .am-profile-shell .animal-lifetime-cost-summary-head>.status{margin:0;align-self:flex-start}
.ds-workspace .am-profile-shell .animal-lifetime-cost-total{background:#eef2ff;border:1px solid #c7d2fe;border-radius:12px;padding:24px;color:#334155}
.ds-workspace .am-profile-shell .animal-lifetime-cost-total b{font-size:32px!important;line-height:1.25;font-weight:600!important;color:#4338ca;font-variant-numeric:tabular-nums}
.ds-workspace .am-profile-shell .animal-lifetime-cost-total.pending b{font-size:20px!important}
.animal-sale-cost-measures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:16px}
.animal-sale-cost-measures article{padding:20px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;min-width:0;font-family:var(--ws-font,AISInter,AISArabic,system-ui,sans-serif);text-align:start;box-shadow:none}
.ds-workspace .am-profile-shell .animal-sale-cost-measures h3{font-size:18px!important;font-weight:600!important;line-height:1.3!important;margin:0 0 12px!important;color:#0f172a}
.ds-workspace .am-profile-shell .animal-sale-cost-measures strong{display:block;font-size:28px!important;font-weight:600!important;line-height:1.3;font-variant-numeric:tabular-nums;color:#0f172a}
.ds-workspace .am-profile-shell .animal-sale-cost-measures strong[dir="auto"]{font-size:16px!important;font-weight:400!important;line-height:1.5;color:#475569}
.ds-workspace .am-profile-shell .animal-sale-cost-measures strong{overflow-wrap:anywhere}
.ds-workspace .am-profile-shell .animal-sale-cost-measures p{font-size:14px!important;font-weight:400;line-height:1.5!important;color:#475569;margin:12px 0 0!important;max-width:70ch}
.animal-sale-cost-measures [data-outcome]>span{display:block;font-size:14px;margin-top:6px;font-weight:500}
.ds-workspace .am-profile-shell .animal-sale-cost-measures [data-outcome="profit"] :is(strong,span){color:#15803d}
.ds-workspace .am-profile-shell .animal-sale-cost-measures [data-outcome="loss"] :is(strong,span){color:#dc2626}
@media(max-width:700px){.animal-sale-cost-measures{grid-template-columns:1fr}}
.ds-workspace .am-profile-shell .animal-lifetime-cost-total>span{font-size:18px!important;font-weight:600!important;line-height:1.3}
.ds-workspace .am-profile-shell .animal-lifetime-cost-total .animal-lifetime-cost-duration{display:block;margin-top:6px;color:#2563eb!important;font-size:14px!important;font-weight:500!important;line-height:1.5;font-variant-numeric:tabular-nums}
.ds-workspace .am-profile-shell .animal-lifetime-cost-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:transparent;border:0}
.ds-workspace .am-profile-shell .animal-lifetime-cost-item{grid-area:auto!important;position:static;box-shadow:none;border-top:3px solid #c7d2fe!important}
.ds-workspace .am-profile-shell .animal-lifetime-cost-item b{display:block;font-size:20px!important;font-weight:600!important;line-height:1.4;color:#0f172a!important;margin-top:8px}
.ds-workspace .am-profile-shell .animal-lifetime-cost-summary:after{display:none}
.ds-workspace .am-profile-shell .animal-lifetime-cost-note{background:#f8fafc;border-inline-start:3px solid #c7d2fe;color:#475569;font-size:13px!important;font-weight:400;line-height:1.5!important;text-align:start;margin:16px 0 0!important;padding:12px 16px;border-radius:8px;box-sizing:border-box;width:100%}
.ds-workspace .am-profile-shell .animal-lifetime-cost-breakdown>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:18px}
.ds-workspace .am-profile-shell :is(th,td){padding:14px 16px;font-size:14px;line-height:1.5;border-color:#e2e8f0;font-variant-numeric:tabular-nums}
.ds-workspace .am-profile-shell th{font-weight:600;background:#f8fafc;color:#475569}
@media(max-width:700px){.ds-workspace .am-profile-shell .animal-lifetime-cost-breakdown{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.am-profile-shell .am-history-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ds-workspace .am-profile-shell h1{font-size:28px!important}.ds-workspace .am-profile-shell .aw-two{grid-template-columns:minmax(0,1fr)}.ds-workspace .am-profile-shell :is(.aw-hero,.aw-card,.animal-lifetime-cost-summary,.loss-panel){padding:18px}.am-profile-shell .aw-hero{flex-wrap:wrap}.am-profile-shell .am-history-filter{grid-template-columns:minmax(0,1fr)}.am-profile-shell .animal-lifetime-cost-breakdown{grid-template-columns:minmax(0,1fr)}}
