.detail-sheet-toggle{display:none}
@media(max-width:800px){
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail){
    --card-max-height:calc(100dvh - 190px);bottom:93px!important;top:auto!important;transform:none!important;
    max-height:calc(100dvh - 190px)!important;overflow:visible!important;
    transition:max-height .25s ease;
  }
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail) .detail-sheet-toggle{
    display:flex;align-items:center;justify-content:center;gap:8px;flex:none;
    width:100%;height:30px;padding:0;border:0;background:transparent;color:var(--muted);
    font:inherit;font-size:10px;touch-action:none;cursor:ns-resize;
  }
  .detail-sheet-toggle i{width:28px;height:3px;border-radius:3px;background:currentColor;opacity:.5}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail) .index-card-navigation{margin:0 16px 8px}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail) :is(.person-card-content,.brand-card-content){overflow:visible;flex:none}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded] :is(.person-reading,.budget-note,.brand-card-source,.retailer-detail-compare,.geo-caveat,.detail-top,.brand-card-kicker){display:none}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded] :is(.persona-title-row,.brand-card-title){margin:4px 0 10px}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded] :is(.person-budget>strong,.brand-card-stat strong){font-size:44px;line-height:1.05;letter-spacing:-2px}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded] .person-budget{margin:4px 0 8px;display:flex;align-items:baseline;gap:8px}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded] .person-budget>span:last-child{font-size:11px;max-width:125px}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded] .budget-country-row{margin:0;padding:6px 0 0}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded] :is(.overview-copy p,.overview-copy>small,.geo-invitation,.geo-comparison-title){display:none}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded=true]{height:auto!important;overflow:visible!important;overscroll-behavior:contain}
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded=true] .detail-sheet-toggle{position:sticky;top:0;z-index:5;background:var(--panel);border-radius:16px 16px 0 0}
  #index-dialog #experience #brand-feature .brand-detail-card{min-height:0;max-height:none;flex:none}
  #index-dialog #experience #brands-view[data-brand-type=shops] #brand-rail{bottom:auto!important}
}
@media(prefers-reduced-motion:reduce){#index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail){transition:none}}
@media(max-width:800px){
  #index-dialog #experience #context-description{display:none}
}
/* The sheet owns a single surface. Its header never scrolls over the content. */
@media(max-width:800px){
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail){
    display:flex!important;flex-direction:column;gap:0;padding:0!important;
    left:16px!important;right:16px!important;width:auto!important;
    background:var(--index-card-background)!important;
    backdrop-filter:var(--index-card-blur)!important;-webkit-backdrop-filter:var(--index-card-blur)!important;
    border:1px solid var(--line);border-radius:18px;
  }
  #index-dialog #experience .detail-sheet-header{flex:none;padding:0 16px 10px;background:transparent;border-bottom:1px solid var(--line)}
  #index-dialog #experience .detail-sheet-header .index-card-navigation{margin:0!important;padding:0!important;background:transparent!important}
  #index-dialog #experience .detail-sheet-header .detail-sheet-toggle{position:static!important;background:transparent!important;height:28px}
  #index-dialog #experience .detail-sheet-body{min-height:0;padding:14px 16px 16px;overflow:hidden;border-radius:0 0 18px 18px}
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail)[data-sheet-expanded=true]{overflow:visible!important}
  #index-dialog #experience [data-sheet-expanded=true]>.detail-sheet-body{flex:0 1 auto;overflow-y:auto;overscroll-behavior:contain}
  #index-dialog #experience .detail-sheet-body :is(.person-card-content,.brand-card-content,.overview-copy,.geo-overview-copy,.brand-detail-card){padding:0!important;margin:0;max-height:none!important;background:transparent!important;backdrop-filter:none!important;overflow:visible!important}
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail) .card-ribbon{width:78px;height:78px;right:-6.42px;top:-6.42px}
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail) .persona-title-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail) .persona-title-row h3{font-size:22px;line-height:1.2}
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail) .person-budget{display:flex;gap:10px;align-items:baseline}
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail) .person-budget>span:last-child{max-width:145px;font-size:11px;line-height:1.45}
  #index-dialog #experience .detail-sheet-body :is(.budget-unit-switch,.budget-unit-selector){flex-shrink:0}
  #index-dialog #experience #brands-view[data-brand-type=shops]:has(#brand-feature[data-sheet-expanded=true]) #brand-rail{visibility:hidden;pointer-events:none}
}
@media(max-width:800px){
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail){z-index:60}
}
@media(max-width:800px){
  #index-dialog #experience .detail-sheet-body .brand-detail-card{border:0!important;box-shadow:none!important;border-radius:0!important}
}
@media(max-width:800px){
  #index-dialog #experience .detail-sheet-body .budget-units{background:rgb(0 0 0 / 16%);border:1px solid var(--line);box-shadow:none}
  #index-dialog #experience .detail-sheet-body .budget-units button{background:transparent;color:var(--muted);box-shadow:none}
  #index-dialog #experience .detail-sheet-body .budget-units button[aria-pressed=true]{background:color-mix(in srgb,var(--text) 12%,transparent);color:var(--text);border-color:var(--line)}
}
/* Expanding a sheet only gives it more height; it shows the same content as the compact card. */
@media(max-width:800px){
  #index-dialog #experience .detail-sheet-toggle i{display:block}
  #index-dialog #experience .detail-sheet-toggle svg{width:18px;height:18px;transition:transform .2s}
  #index-dialog #experience [data-sheet-expanded=true] .detail-sheet-toggle svg{transform:rotate(180deg)}
}
@media(max-width:800px){
}

/* Shared compact summary: heading, identity and key figure; supporting copy expands. */
@media(max-width:800px){
  #index-dialog .experience .experience-head .index-navigation #people-fullscreen .close-label{display:none}
  #index-dialog .experience .experience-head .index-navigation #people-fullscreen{width:36px;min-width:36px;padding:0;justify-content:center}
  #index-dialog #experience .detail-sheet-body :is(.overview-copy,.geo-overview-copy){display:block}
  #index-dialog #experience .detail-sheet-body :is(.overview-copy h3,.geo-heading,.brand-card-title h3,.persona-title-row h3){display:block;font-size:22px;line-height:1.2;letter-spacing:-.6px;max-width:none;margin:8px 0 12px}
  #index-dialog #experience .detail-sheet-body :is(.overview-copy .eyebrow,.geo-overview-copy>.eyebrow){display:block}
  #index-dialog #experience .detail-sheet-body :is(.overview-stat,.geo-overview-mark){display:block;position:static;font-size:44px;line-height:1.05;letter-spacing:-2px;margin:12px 0}
  #index-dialog #experience .detail-sheet-body :is(.overview-stat,.geo-overview-mark) small{display:inline;font-size:16px;letter-spacing:0}
  #index-dialog #experience .detail-sheet-body .geo-overview-title-row{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0}
  #index-dialog #experience .detail-sheet-body :is(.geo-person-label,.geo-person-choice){display:flex}
  #index-dialog #experience .detail-sheet-body :is(.brand-card-logo,.persona-title-icon,.geo-country-flag){width:26px;height:26px;flex:none}
  #index-dialog #experience .detail-sheet-body :is(.detail-top,.brand-card-kicker){display:block}
}

@media(max-width:800px){
  #index-dialog #experience #geo-detail .detail-sheet-body .geo-overview-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;margin:8px 0 12px}
  #index-dialog #experience #geo-detail .geo-overview-title-row .geo-heading{margin:0;min-width:0;font-size:20px}
  #index-dialog #experience #geo-detail .geo-overview-title-row .budget-units{margin:0;align-self:start;justify-self:end}
  #index-dialog #experience #geo-detail .geo-overview-title-row .budget-units button{font-size:9px;padding:5px 7px}
  #index-dialog #experience #person-detail .detail-sheet-body .persona-title-row h3{display:flex;align-items:center;gap:8px;min-width:0}
  #index-dialog #experience #person-detail .detail-sheet-body .persona-title-row h3>span:last-child{min-width:0}
}

/* Mobile sheets use one close action; scene controls handle browsing. */
@media(max-width:800px){
  #index-dialog #experience .detail-sheet-header{position:static;padding:0 16px;height:42px;display:flex;align-items:center}
  #index-dialog #experience .detail-sheet-header .detail-sheet-toggle{height:42px;padding:0 44px}
  /* The close sits on the title line, under the bow, as a bare icon with a 32px target. */
  #index-dialog #experience .detail-sheet-header .index-card-navigation{position:absolute;right:9px;top:67px;z-index:3;display:flex;justify-content:flex-end;width:32px;min-height:32px;border:0}
  #index-dialog #experience .detail-sheet-header .index-card-navigation>:not(button:first-child){display:none}
  #index-dialog #experience .detail-sheet-header .index-card-navigation>button:first-child{margin:0;width:32px;height:32px;flex-basis:32px;border:0;border-radius:50%;color:var(--secondary)}
  #index-dialog #experience .detail-sheet-header .index-card-navigation>button:first-child:hover{color:var(--text)}
  #index-dialog #experience .detail-sheet-header .index-card-navigation>button:first-child svg{width:20px;height:20px}
  #index-dialog #experience :is(#person-detail,#geo-detail,#brand-feature,#assistant-detail):has(.index-card-navigation) .card-ribbon{top:-7.67px;width:96px;height:96px;left:auto;right:-7.67px;transform:none;pointer-events:none}
  #index-dialog #experience #person-detail[data-sheet-expanded] .detail-top{display:flex}
  #index-dialog #experience #brand-feature:has(.index-card-navigation) .brand-card-title{padding-right:36px}
  /* The title shares its line with the close only; the unit switch always gets its own line, left-aligned. */
  #index-dialog #experience :is(#person-detail,#geo-detail,#assistant-detail):has(.detail-sheet-header .index-card-navigation) .detail-sheet-body .persona-title-row{flex-wrap:wrap;justify-content:flex-start;row-gap:12px}
  #index-dialog #experience :is(#person-detail,#geo-detail,#assistant-detail):has(.detail-sheet-header .index-card-navigation) .detail-sheet-body .persona-title-row>h3{flex:1 0 100%;box-sizing:border-box;padding-right:40px;margin:0}
  #index-dialog #experience :is(#person-detail,#geo-detail,#assistant-detail):has(.detail-sheet-header .index-card-navigation) .detail-sheet-body .persona-title-row>.budget-units{margin:0}
}

/* Compact overview cards pair the headline and key figure on one row. */
@media(max-width:800px){
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .overview-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:start}
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .overview-copy>*{grid-column:1/-1;min-width:0}
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .overview-copy>.eyebrow{grid-column:1/-1}
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .overview-copy>h3{grid-column:1;grid-row:2;margin:0}
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .overview-copy>.overview-stat{grid-column:2;grid-row:2;margin:0;white-space:nowrap;text-align:right}
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .overview-copy>button{grid-column:1/-1;justify-self:start;margin-top:8px}
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .retailer-overview>.overview-stat small{display:block;font-size:11px;margin-top:4px}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-copy>.eyebrow{grid-column:1;grid-row:1;align-self:center}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-title-row{display:contents}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-heading{grid-column:1;grid-row:2;margin:0}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-mark{grid-column:2;grid-row:2;margin:0;text-align:right}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-mark small{display:block;font-size:11px;margin-top:4px}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-title-row .budget-units{grid-column:2;grid-row:1;justify-self:end}
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-controls{grid-column:1/-1}
}
@media(max-width:360px) and (max-height:700px){
  #index-dialog #experience .detail-sheet-header{height:34px;padding-bottom:6px}
  #index-dialog #experience .detail-sheet-header .detail-sheet-toggle{height:34px}
  #index-dialog #experience .detail-sheet-body{padding:10px 13px 12px}
  #index-dialog #experience [data-sheet-expanded]>.detail-sheet-body .overview-copy>h3{font-size:19px;line-height:1.15}
}

/* A full-size recipient picker avoids the tiny browser-native menu on phones. */
.geo-person-trigger{display:none}
@media(max-width:800px){
  #index-dialog #experience #geo-detail #geo-person:has(+ .geo-person-trigger){display:none}
  #index-dialog #experience #geo-detail .geo-person-trigger{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    flex:1;min-width:0;min-height:44px;padding:6px 2px;border:0;background:transparent;
    color:var(--text);font:inherit;font-size:14px;text-align:left;cursor:pointer;
  }
  #index-dialog #experience #geo-detail .geo-person-trigger::after{
    content:'';width:7px;height:7px;flex:none;margin-right:3px;
    border-right:1px solid currentColor;border-bottom:1px solid currentColor;
    transform:translateY(-2px) rotate(45deg);opacity:.8;
  }
  #index-dialog #experience #geo-detail .geo-person-trigger:is(:hover,:focus-visible){color:var(--red);font-weight:600;outline:none;box-shadow:none}
  #index-dialog #experience #geo-detail .geo-person-trigger+svg{display:none}
  #index-dialog #experience #geo-detail .geo-person-choice:is(:hover,:focus-within){border-color:var(--line)}
}
#mobile-recipient-dialog{
  position:fixed;top:auto;right:16px;bottom:max(16px,env(safe-area-inset-bottom));left:16px;
  width:min(420px,calc(100vw - 32px));max-width:none;max-height:min(70dvh,620px);
  margin:0 auto;padding:18px 14px 14px;overflow:hidden;
  border:1px solid var(--line);border-radius:18px;
  background:var(--panel);color:var(--text);box-shadow:0 20px 70px #0009;
}
#mobile-recipient-dialog::backdrop{background:rgb(0 0 0 / 55%)}
#mobile-recipient-dialog .mobile-recipient-title{margin:0 4px 10px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
#mobile-recipient-dialog .mobile-recipient-options{display:grid;max-height:calc(min(70dvh,620px) - 60px);overflow-y:auto;overscroll-behavior:contain}
#mobile-recipient-dialog .mobile-recipient-options button{
  min-height:48px;padding:10px 14px;border:0;border-radius:8px;background:transparent;
  color:var(--secondary);font:inherit;font-size:15px;text-align:left;cursor:pointer;
}
#mobile-recipient-dialog .mobile-recipient-options button:is(:hover,:focus-visible,[aria-current=true]){
  color:var(--text);font-weight:600;outline:none;box-shadow:none;
}
/* Mobile overview of People: the per-recipient ranking is the sheet's detail, shown once expanded. */
@media(max-width:800px){
  #index-dialog #experience #people-view #person-detail[data-sheet-expanded=false] .people-overview :is(.people-ranking-head,.people-ranking,.people-ranking-more,.people-ranking-empty,.budget-country-row){display:none}
}
/* The full ranking is the sheet's detail: hidden while compact, always open once expanded. */
@media(max-width:800px){
  #index-dialog #experience #brand-feature[data-sheet-expanded=false] .full-brand-ranking{display:none}
  #index-dialog #experience #brand-feature .full-brand-ranking>summary{pointer-events:none;cursor:default;list-style:none}
  #index-dialog #experience #brand-feature .full-brand-ranking>summary::-webkit-details-marker{display:none}
  #index-dialog #experience #brand-feature .full-brand-ranking>summary::marker{content:''}
}
/* Expand/collapse animation: the script animates --sheet-height between the two measured heights. */
@property --sheet-height{syntax:'<length>';inherits:false;initial-value:0px}
@media(max-width:800px){
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-animating]{height:var(--sheet-height)!important;transition:none}
  #index-dialog #experience [data-sheet-animating]>.detail-sheet-body{overflow:hidden!important}
}
/* Each sheet's detail (rankings, rank, compare) shows only once the sheet is expanded. */
.sheet-only{display:none}
@media(max-width:800px){
  #index-dialog #experience :is(#people-view #person-detail,#geolocation-view #geo-detail,#brands-view #brand-feature,#assistants-view #assistant-detail)[data-sheet-expanded=false] :is(.person-compare,.budget-rank,.sheet-only){display:none!important}
  #index-dialog #experience :is(#person-detail,#geo-detail,#assistant-detail)[data-sheet-expanded=true] .sheet-only{display:block}
  #index-dialog #experience #person-detail .people-ranking-more>summary{display:none}
  #index-dialog #experience #geo-detail .geo-overview-copy>.sheet-only{grid-column:1/-1;min-width:0}
  #index-dialog #experience .sheet-ranking-title{margin:16px 0 4px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;font-weight:600;color:var(--text)}
  #index-dialog #experience .sheet-ranking{list-style:none;margin:0;padding:0;font-size:12px}
  #index-dialog #experience .sheet-ranking li{display:grid;grid-template-columns:22px 22px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--line)}
  #index-dialog #experience .sheet-ranking li:last-child{border-bottom:0}
  #index-dialog #experience .sheet-ranking li>span:first-child{color:var(--muted);font-variant-numeric:tabular-nums}
  #index-dialog #experience .sheet-ranking :is(img,.race-row-icon,svg){width:18px;height:auto;max-height:18px;display:block}
  #index-dialog #experience .sheet-ranking b{min-width:0;font-weight:600;overflow-wrap:anywhere}
  #index-dialog #experience .sheet-ranking b+span{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}
  #index-dialog #experience .sheet-ranking small{color:var(--muted);font-size:10px}
  #index-dialog #experience .sheet-ranking button{all:unset;display:contents;cursor:pointer}
  #index-dialog #experience .sheet-ranking li:has(button):hover b{color:#ffaaa4}
}
/* Two-country comparison: its own title line, shared with the close, on phones only. */
.geo-comparison-heading{display:none}
@media(max-width:800px){
  #index-dialog #experience #geo-detail .detail-sheet-body .geo-comparison-heading{display:flex;padding-top:10px}
  #index-dialog #experience #geo-detail .geo-comparison-heading h3{margin:14px 0 14px;font-size:22px;line-height:1.2;font-weight:500}
  #index-dialog #experience #geo-detail .geo-comparison-heading h3 em{font-style:normal;color:var(--red)}
}
/* Assistants on phones: logo and name on one centred line, the amount and its unit switch left-aligned like the other tabs. */
@media(max-width:800px){
  #index-dialog #experience #assistant-detail .detail-sheet-body .persona-title-row h3{display:flex;align-items:center;gap:12px;min-width:0}
  #index-dialog #experience #assistant-detail .detail-sheet-body .persona-title-row{padding-top:10px}
  #index-dialog #experience #assistant-detail .detail-sheet-body .persona-title-row h3 .race-logo{width:26px;height:26px;box-sizing:border-box}
  #index-dialog #experience #assistant-detail .detail-sheet-body .race-amount-row{align-items:flex-start}
  #index-dialog #experience #assistant-detail .detail-sheet-body .race-amount-row>*{align-self:flex-start!important}
  #index-dialog #experience #assistant-detail .detail-sheet-body .race-amount-row .overview-stat{text-align:left}
}
/* One unit switch on phones: same size everywhere, on the line of the figures it changes, at the right. */
.sheet-unit{display:none}
@media(max-width:800px){
  #index-dialog #experience .detail-sheet-body .budget-units{display:inline-flex!important;flex:none!important;width:auto!important;max-width:100%;margin:0!important;padding:3px!important;gap:2px!important;border-radius:999px!important;align-self:center!important}
  #index-dialog #experience .detail-sheet-body .budget-units button{font-size:11px!important;line-height:1.2!important;padding:6px 10px!important;height:auto!important;min-height:0!important;border-radius:999px!important;white-space:nowrap}
  /* People and Geolocation with a selection: the copy beside the amount replaces the one in the title row. */
  #index-dialog #experience :is(#person-detail,#geo-detail) .detail-sheet-body .persona-title-row>.budget-units{display:none!important}
  #index-dialog #experience :is(#person-detail,#geo-detail) .detail-sheet-body .persona-budget-region{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
  #index-dialog #experience :is(#person-detail,#geo-detail) .detail-sheet-body .persona-budget-region>*{grid-column:1/-1}
  #index-dialog #experience :is(#person-detail,#geo-detail) .detail-sheet-body .persona-budget-region>.person-budget{grid-column:1;flex-wrap:wrap;row-gap:2px}
  #index-dialog #experience :is(#person-detail,#geo-detail) .detail-sheet-body .persona-budget-region>.sheet-unit{display:block;grid-column:2;grid-row:2;justify-self:end;align-self:start}
  /* Assistants: the amount on the left, the switch on the right of the same line. */
  #index-dialog #experience #assistant-detail .detail-sheet-body .race-amount-row{flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:12px}
  #index-dialog #experience #assistant-detail .detail-sheet-body .race-amount-row>:first-child{align-self:center!important}
  /* Geolocation overview: no amount, so the switch takes the right of the eyebrow's line. */
  #index-dialog #experience #geo-detail[data-sheet-expanded] .geo-overview-title-row .budget-units{grid-column:1/-1!important;grid-row:1!important;justify-self:end!important}
  /* Geolocation comparison: the switch on the right of the "A gift for" line, above the two amounts. */
  #index-dialog #experience #geo-detail .detail-sheet-body:has(.geo-comparison-heading){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
  #index-dialog #experience #geo-detail .detail-sheet-body:has(.geo-comparison-heading)>*{grid-column:1/-1}
  #index-dialog #experience #geo-detail .detail-sheet-body:has(.geo-comparison-heading)>.geo-person-label{grid-column:1}
  #index-dialog #experience #geo-detail .detail-sheet-body:has(.geo-comparison-heading)>.geo-unit-row{grid-column:2;grid-row:2;justify-self:end;margin:0}
  /* People overview: the ranking's label on the left, the switch on its right. */
  #index-dialog #experience #person-detail .people-ranking-head{flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between}
  #index-dialog #experience #person-detail .people-ranking-head>span{flex:1 1 auto!important;min-width:0}
}

/* Assistants on phones: the collapsed card keeps the answer (title and amount) and leaves the
   course in view; the recipient and market choices come with the expanded card. */
@media(max-width:800px){
  #index-dialog #experience #assistant-detail:not([data-sheet-expanded=true]) .budget-country-row{display:none}
  #index-dialog #experience #assistant-detail .race-overview h3{font-size:20px;line-height:1.18}
}
/* Phones: the tab bar uses the screen's width, with larger type and touch targets. */
@media(max-width:520px){
  #index-dialog .experience .experience-head .index-navigation{width:calc(100vw - 24px);max-width:none;box-sizing:border-box;min-height:48px}
  #index-dialog .experience .experience-head .index-navigation .view-tabs{flex:1 1 auto;justify-content:space-between;min-width:0}
  #index-dialog .experience .experience-head .index-navigation .view-tabs button{flex:0 1 auto;font-size:clamp(10px,3.1vw,13px);padding:10px clamp(3px,1.2vw,7px)}
  #index-dialog .experience .experience-head .index-navigation #people-fullscreen{width:40px;min-width:40px;height:40px}
}
