/* K-MIRACLE Membership Core 4.34.55 — Mobile accessibility and carousel stability.
   Scoped to membership components; does not modify public website navigation or desktop grids.
   Native vertical scrolling is preferred. Only genuinely wide tables are horizontally scrollable. */

@media screen and (max-width: 900px), screen and (max-device-width: 900px) {
  /* Shared component boundaries, without clipping touch/zoom content. */
  :is(.kms5,.km428-directory,.km428-experts,.kmmc-v3-shell,#km-contents-root,.kmmc-market-app,.kmmc-market-modal,.kmmc-v4-member-store,.kmmc-ao-wrap,.kmmc-admin) {
    max-width:100% !important; min-width:0 !important;
    --kmmc-copy-size:18px; --kmmc-font-floor:17px;
    -webkit-text-size-adjust:100%; text-size-adjust:100%;
  }
  :is(.kms5,.km428-directory,.kmmc-v3-shell,#km-contents-root,.kmmc-market-app,.kmmc-market-modal,.kmmc-v4-member-store,.kmmc-ao-wrap,.kmmc-admin) :is(img,video,iframe) {
    max-width:100%;
  }
  :is(.kms5,.km428-directory,.kmmc-v3-shell,#km-contents-root,.kmmc-market-app,.kmmc-v4-member-store,.kmmc-ao-wrap) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    max-width:100%;min-width:0;font-size:17.5px !important;
  }
  :is(.kms5,.km428-directory,.kmmc-v3-shell,#km-contents-root,.kmmc-market-app,.kmmc-v4-member-store) :is(button,[role="button"],input[type="submit"]) {
    touch-action:manipulation;
  }

  /* Experts: mobile type sizes and directory baseline; carousel override below. */
  body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory),
  :is(#km-experts-page .km428-directory,.km428-directory){
    --km428-copy:16px !important;--kmmc-copy-size:16px !important;
    --kmmc-font-floor:16px !important;font-size:16px !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) > .kms421-shell {
    width:calc(100% - 24px) !important;max-width:100% !important;margin:auto !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) .km428-controls {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;padding:12px !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) .kms421-types {
    display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batches {
    display:block !important;width:100% !important;max-width:100% !important;
  }
  body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid,
  :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid,
  :is(#km-experts-page .km428-directory,.km428-directory) .km428-profile-grid {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    grid-auto-flow:row !important;align-items:stretch !important;
    gap:14px !important;width:100% !important;max-width:100% !important;
    min-width:0 !important;margin:0 0 14px !important;padding:0 !important;
    overflow:visible !important;scroll-snap-type:none !important;
  }
  body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch > .km428-profile-card,
  :is(#km-experts-page .km428-directory,.km428-directory) .km428-profile-grid > .km428-profile-card {
    display:flex !important;flex:initial !important;flex-basis:auto !important;
    width:100% !important;max-width:100% !important;min-width:0 !important;
    margin:0 !important;scroll-snap-align:none !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) .km428-profile-card .kms421-card-copy h3 {
    font-size:18px !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) .km428-profile-card .kms421-name-en {
    font-size:16px !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) .kms421-card-admin-form .km427-admin-action {
    font-size:14.5px !important;min-height:42px !important;height:auto !important;padding:8px 4px !important;
  }
  :is(#km-experts-page .km428-directory,.km428-directory) .kms421-card-admin.is-pinned .kms421-card-admin-form {
    grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(32px,.6fr)) repeat(2,minmax(0,.9fr)) !important;
  }
  .km428-experts .kms421-directory-hero h1{font-size:24px !important;}
  .km428-experts .kms421-directory-hero h2{font-size:18px !important;}
  .km428-experts .kms421-directory-hero p{font-size:16px !important;}
  :is(#km-experts-page .km428-directory,.km428-directory) .km428-request-status,
  :is(#km-experts-page .km428-directory,.km428-directory) .km428-statusbar {
    flex-wrap:wrap !important;white-space:normal !important;
  }

  /* Expert profile dialog: real scroll surface, no locked internal panels. */
  dialog.kms5.kms421-profile-dialog.km425-profile-dialog,
  dialog.kms5.kms421-profile-dialog {
    position:fixed !important;inset:0 !important;
    width:calc(100% - 12px) !important;max-width:calc(100% - 12px) !important;
    height:auto !important;max-height:calc(100vh - 12px) !important;
    max-height:calc(100dvh - 12px) !important;
    margin:auto !important;padding:0 !important;
    border-radius:12px !important;
    overflow-x:hidden !important;overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y pinch-zoom !important;overscroll-behavior-y:contain;
  }
  dialog.kms5.kms421-profile-dialog :is(.kms421-dialog-body,[data-kms421-detail]) {
    width:100% !important;min-width:0 !important;max-width:100% !important;
    height:auto !important;max-height:none !important;
    overflow:visible !important;padding:0 !important;
  }
  dialog.kms5.kms421-profile-dialog .kms421-dialog-toolbar {
    position:sticky !important;top:0 !important;z-index:20 !important;
    padding:8px 13px !important;background:#fff !important;
  }
  dialog.kms5.kms421-profile-dialog .kms421-dialog-toolbar button {
    min-width:42px !important;min-height:42px !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet.km425-sheet.km425-sheet.km425-sheet {
    --km425-copy:16px !important;--kmmc-copy-size:16px !important;
    --kmmc-help-size:16px !important;--kmmc-font-floor:16px !important;
    width:100% !important;max-width:100% !important;min-width:0 !important;
    padding:14px !important;overflow:visible !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-profile-hero {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-profile-info {
    height:auto !important;max-height:none !important;min-width:0 !important;
    overflow:visible !important;padding:13px !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-profile-facts {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:8px !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-profile-facts > div {
    display:grid !important;grid-template-columns:minmax(88px,32%) minmax(0,1fr) !important;
    gap:9px !important;min-width:0 !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-deck-track {
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;width:100% !important;max-width:100% !important;
    overflow:visible !important;scroll-snap-type:none !important;
    touch-action:pan-y pinch-zoom !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-deck-track > .km425-box {
    width:100% !important;max-width:100% !important;min-width:0 !important;
    flex:none !important;grid-column:1 !important;height:auto !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-box-body,
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-info-card {
    height:auto !important;max-height:none !important;overflow:visible !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet :is(table,pre) {
    display:block;max-width:100% !important;overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet :is(p,li,dd,span,a) {
    overflow-wrap:anywhere;word-break:normal;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-profile-info h2{
    font-size:23.8px !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-box > h3{
    font-size:18px !important;
  }
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-lines > li,
  dialog.kms5.kms421-profile-dialog .km425-sheet .km425-lines > li :is(span,b,strong,em) {
    font-size:17.5px !important;line-height:1.65 !important;
  }

  /* Profile details linked directly (not in a dialog) follow the same mobile rules. */
  .km425-sheet.km425-sheet.km425-sheet.km425-sheet{
    --km425-copy:16px !important;--kmmc-help-size:16px !important;
    --kmmc-font-floor:16px !important;
    width:100% !important;max-width:100% !important;min-width:0 !important;
  }
  .km425-sheet.km425-sheet .km425-profile-hero{
    grid-template-columns:minmax(0,1fr) !important;
  }
  .km425-sheet.km425-sheet .km425-profile-facts{grid-template-columns:minmax(0,1fr) !important;}
  .km425-sheet.km425-sheet .km425-profile-info{
    height:auto !important;max-height:none !important;overflow:visible !important;
  }
  .km425-sheet.km425-sheet .km425-deck-track{
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    overflow:visible !important;gap:12px !important;
  }
  .km425-sheet.km425-sheet .km425-deck-track > .km425-box{
    width:100% !important;max-width:100% !important;flex:none !important;
  }
  .km425-sheet.km425-sheet .km425-box-body{
    max-height:none !important;overflow:visible !important;
  }

  /* Profile editor and native admin popup: single column, scrollable, no zoom trap. */
  .km431-admin-profile-dialog {
    max-width:calc(100% - 12px) !important;width:calc(100% - 12px) !important;
    max-height:calc(100dvh - 12px) !important;overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;
  }
  .km431-admin-mode{grid-template-columns:minmax(0,1fr) !important;}
  .km431-admin-form-host{min-width:0;padding:12px !important;}

  /* Member portal (profile / content / media / My Page). */
  .kmmc-v3-shell{
    display:block !important;width:calc(100% - 16px) !important;
    max-width:calc(100% - 16px) !important;min-height:0 !important;
    margin:8px auto !important;overflow:visible !important;border-radius:16px !important;
  }
  .kmmc-v3-shell .kmmc-v3-sidebar{
    width:100% !important;max-width:100% !important;
    padding:14px !important;border-radius:16px 16px 0 0;
  }
  .kmmc-v3-shell .kmmc-v3-sidebar nav{
    display:flex !important;flex-direction:row !important;
    gap:8px !important;overflow-x:auto !important;overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;scrollbar-width:thin;
    touch-action:pan-x pinch-zoom;
  }
  .kmmc-v3-shell .kmmc-v3-sidebar nav a{
    flex:0 0 auto !important;min-height:44px !important;white-space:nowrap !important;
  }
  .kmmc-v3-shell :is(.kmmc-v3-main,.kmmc-v3-content){min-width:0 !important;max-width:100% !important;}
  .kmmc-v3-shell .kmmc-v3-topbar{flex-wrap:wrap !important;padding:16px !important;}
  .kmmc-v3-shell .kmmc-v3-content{padding:12px !important;}
  .kmmc-v3-shell :is(.kmmc-v3-grid,.kmmc-v3-grid.two,.kmmc-v3-grid.four,.kmmc-v3-fields,.kmmc-v3-facts){
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
  }
  .kmmc-v3-shell .kmmc-v3-kpis{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .kmmc-v3-shell .kmmc-v3-card{min-width:0 !important;padding:14px !important;}
  .kmmc-v3-shell :is(.kmmc-v3-table-scroll,.kmmc-v3-table-wrap,.kms5-table-scroll){
    max-width:100%;overflow-x:auto !important;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;
  }
  .kmmc-v3-shell :is(table,.kmmc-v3-table){max-width:none;}

  /* Contents / programs and member forms. */
  #km-contents-root :is(.kmmc-contents-grid,.kmmc-service-grid,.kmmc-contents-form-grid),
  .kms5 :is(.kms5-fields.two,.kms5-fields-grid,.kms5-form-grid) {
    grid-template-columns:minmax(0,1fr) !important;
  }
  #km-contents-root,
  #km-contents-root :is(.kmmc-contents-menu,.kmmc-contents-list,.kmmc-service-list){max-width:100% !important;min-width:0 !important;}
  :is(#km-contents-root,.kms5,.kmmc-v3-shell,.kmmc-market-app) :is(.kms5-table-scroll,.kmmc-table-scroll,.kmmc-table-wrap){
    overflow-x:auto !important;max-width:100% !important;
    -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;
  }
  .kms5 :is(.kms5-btn,.kms5-button,button[type=submit]){min-height:44px;}
  /* Administrator K-MIRACLE lists and buttons remain usable on phones. */
  .kmmc-admin :is(.kmmc-admin-actions,.kmmc-toolbar,.kmmc-button-row,.tablenav){
    display:flex;flex-wrap:wrap;gap:8px;min-width:0;
  }
  .kmmc-admin :is(.kmmc-admin-table,.kmmc-table-scroll,.kmmc-admin-table-wrap){
    max-width:100% !important;overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;
  }
  .kmmc-admin table{
    display:block;max-width:100% !important;overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .kmmc-admin :is(input:not([type=checkbox]):not([type=radio]),textarea,select){
    max-width:100%;font-size:17.5px !important;
  }

  .kmmc-market-modal .kmmc-market-modal-card{
    max-width:calc(100% - 12px) !important;
    max-height:calc(100dvh - 12px) !important;
    overflow-y:auto !important;touch-action:pan-y pinch-zoom;
  }
}

/* Mobile-only profile layout fallback when a phone requests a desktop viewport.
   This class is applied only on physical phone devices within K-MIRACLE pages. */
html.kmmc-mobile-device body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid,
html.kmmc-mobile-device :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid {
  display:grid !important;grid-template-columns:minmax(0,1fr) !important;
  overflow:visible !important;width:100% !important;gap:14px !important;
}
html.kmmc-mobile-device body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch > .km428-profile-card,
html.kmmc-mobile-device :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch > .km428-profile-card {
  width:100% !important;max-width:100% !important;flex:none !important;
}
@media (prefers-reduced-motion: reduce){
  :is(.km428-directory,.kmmc-v3-shell,.km425-sheet) * {scroll-behavior:auto !important;}
}


/* v4.34.55 — ONE expert per swipe. Each 20-item directory page now has
   one server-rendered batch; the batch alone is the horizontal track.
   The grid wrapper and all desktop templates are unchanged. */
@media screen and (max-width:900px),screen and (max-device-width:900px){
 body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid,
 :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid {
   display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
   align-items:stretch!important;gap:0!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   overflow-x:auto!important;overflow-y:hidden!important;
   scroll-snap-type:x mandatory!important;overscroll-behavior-x:contain!important;
   padding:2px 0 8px!important;margin:0!important;
   -webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;
   touch-action:pan-x pan-y pinch-zoom!important;
 }
 :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch::-webkit-scrollbar{display:none!important}
 body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch>.km428-profile-card,
 :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch>.km428-profile-card {
   display:flex!important;flex-direction:column!important;
   flex:0 0 100%!important;width:100%!important;max-width:100%!important;
   min-width:100%!important;margin:0!important;
   scroll-snap-align:start!important;scroll-snap-stop:always!important;
   height:auto!important;align-self:stretch!important;
 }
 .km428-directory .km428-card-copy{padding:13px 11px 14px!important}
 .km428-directory .km428-profile-card :is(.kms421-card-expertise,.km428-organization){overflow-wrap:anywhere!important;}
 .km428-directory .km4355-carousel-controls{
   display:flex!important;align-items:center!important;justify-content:center!important;
   gap:13px!important;padding:12px 0 16px!important;margin:0!important;max-width:100%!important;
 }
 .km428-directory .km4355-carousel-controls button{
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   min-width:48px!important;min-height:44px!important;padding:8px 14px!important;
   border:1px solid #d9e3ee!important;border-radius:11px!important;background:#fff!important;
   font-size:17.5px!important;color:#173451!important;cursor:pointer!important;
   touch-action:manipulation!important;
 }
 .km428-directory .km4355-carousel-controls button:disabled{opacity:.34!important;cursor:default!important}
 .km428-directory .km4355-carousel-controls button:focus-visible{outline:2px solid #2e6f9e!important;outline-offset:3px!important}
 .km428-directory .km4355-carousel-count{font-size:16px!important;min-width:74px!important;text-align:center!important;color:#294b6e!important;font-variant-numeric:tabular-nums!important}
 .km428-directory .km4355-carousel-hint{font-size:14.5px!important;text-align:center!important;color:#5e7289!important;margin:-6px 0 17px!important}
 .km428-directory .kms421-card-admin-form .km427-admin-action{font-size:14.5px!important}
 .kmmc-v3-shell .kmmc-v3-sidebar nav a,
 .kmmc-v3-shell .kmmc-v3-card,
 #km-contents-root :is(label,p,li,button),
 .kms5 :is(.kms5-btn,.kms5-button,button[type=submit]){font-size:16px!important}
}
/* Legacy desktop-width viewport on a real phone: still one-card carousel. */
html.kmmc-mobile-device body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid,
html.kmmc-mobile-device :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch.km428-profile-grid{
 display:flex!important;flex-flow:row nowrap!important;gap:0!important;
 overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;
 touch-action:pan-x pan-y pinch-zoom!important;
}
html.kmmc-mobile-device body.kmmc-public-experts :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch>.km428-profile-card,
html.kmmc-mobile-device :is(#km-experts-page .km428-directory,.km428-directory) .km429-profile-batch>.km428-profile-card{
 display:flex!important;flex:0 0 100%!important;width:100%!important;min-width:100%!important;max-width:100%!important;
 scroll-snap-align:start!important;
}
html.kmmc-mobile-device .km428-directory .km4355-carousel-controls{display:flex!important}
@media screen and (min-width:901px){
 html:not(.kmmc-mobile-device) .km428-directory .km4355-carousel-controls,
 html:not(.kmmc-mobile-device) .km428-directory .km4355-carousel-hint{display:none!important}
}


/* v4.34.56 — FINAL MOBILE FIX: expert cards are ONE horizontal scroll track.
   Applied after the legacy mobile grid and dialog compatibility declarations.
   Scope tightly to the expert directory and the expert profile dialog. */
@media screen and (max-width:900px),screen and (max-device-width:900px){
  html body .km428-directory .km429-profile-batches[data-km429-profile-batches]{
    display:block!important;max-width:100%!important;min-width:0!important;
    overflow:visible!important;
  }
  html body .km428-directory .km429-profile-batches .km429-profile-batch.km428-profile-grid[data-kms421-track]{
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
    grid-template-columns:none!important;grid-auto-flow:unset!important;
    align-items:stretch!important;gap:0!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    padding:0 0 8px!important;margin:0!important;
    scroll-snap-type:x mandatory!important;scroll-padding-inline:0!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;touch-action:pan-x pan-y pinch-zoom!important;
  }
  html body .km428-directory .km429-profile-batches .km429-profile-batch[data-kms421-track]::-webkit-scrollbar{display:none!important;}
  html body .km428-directory .km429-profile-batches .km429-profile-batch[data-kms421-track] > .km428-profile-card{
    display:flex!important;flex-direction:column!important;
    flex:0 0 100%!important;width:100%!important;min-width:100%!important;
    max-width:100%!important;margin:0!important;
    scroll-snap-align:start!important;scroll-snap-stop:always!important;
    align-self:stretch!important;
  }
  html body .km428-directory .km4355-carousel-controls{
    display:flex!important;visibility:visible!important;align-items:center!important;
    justify-content:center!important;gap:14px!important;margin:8px 0 0!important;
    padding:8px!important;min-height:64px!important;
  }

  /* Expert PROFILE popup: the four detail cards slide SIDEWAYS, never stack/overlap.
     Long career text is independently scrollable VERTICALLY inside its active card. */
  html body dialog.kms421-profile-dialog .km425-profile-sheet .km425-deck-track[data-km425-track],
  html body .kms421-detail-standalone .km425-profile-sheet .km425-deck-track[data-km425-track]{
    display:flex!important;grid-template-columns:none!important;grid-auto-flow:unset!important;
    flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;
    position:relative!important;gap:0!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow-x:auto!important;overflow-y:hidden!important;
    padding:0 0 7px!important;margin:0!important;
    scroll-snap-type:x mandatory!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y pinch-zoom!important;
    scrollbar-width:none!important;
  }
  html body dialog.kms421-profile-dialog .km425-profile-sheet .km425-deck-track[data-km425-track]::-webkit-scrollbar,
  html body .kms421-detail-standalone .km425-profile-sheet .km425-deck-track[data-km425-track]::-webkit-scrollbar{display:none!important;}
  html body dialog.kms421-profile-dialog .km425-profile-sheet .km425-deck-track[data-km425-track] > .km425-box[data-km425-card],
  html body .kms421-detail-standalone .km425-profile-sheet .km425-deck-track[data-km425-track] > .km425-box[data-km425-card]{
    display:flex!important;flex-direction:column!important;
    position:relative!important;float:none!important;transform:none!important;
    grid-area:auto!important;grid-column:auto!important;
    flex:0 0 100%!important;width:100%!important;max-width:100%!important;
    min-width:100%!important;min-height:0!important;height:auto!important;
    margin:0!important;align-self:stretch!important;
    scroll-snap-align:start!important;scroll-snap-stop:always!important;
    padding:17px!important;
  }
  html body dialog.kms421-profile-dialog .km425-profile-sheet .km425-box[data-km425-card] > h3,
  html body .kms421-detail-standalone .km425-profile-sheet .km425-box[data-km425-card] > h3{
    display:block!important;position:static!important;flex:0 0 auto!important;
    width:100%!important;white-space:normal!important;
    line-height:1.4!important;margin:0 0 12px!important;
    padding:0 0 11px!important;
  }
  html body dialog.kms421-profile-dialog .km425-profile-sheet .km425-box[data-km425-card] > .km425-box-body,
  html body .kms421-detail-standalone .km425-profile-sheet .km425-box[data-km425-card] > .km425-box-body{
    display:block!important;position:relative!important;flex:1 1 auto!important;
    min-width:0!important;min-height:0!important;
    max-height:clamp(250px,48dvh,480px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    padding:0 5px 4px 0!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y pinch-zoom!important;
    overflow-wrap:anywhere!important;word-break:normal!important;
  }
  html body dialog.kms421-profile-dialog .km425-profile-sheet .km425-deck-nav,
  html body .kms421-detail-standalone .km425-profile-sheet .km425-deck-nav{
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex-wrap:nowrap!important;margin:12px 0 4px!important;
    position:relative!important;z-index:2!important;gap:8px!important;
  }
  html body dialog.kms421-profile-dialog .kms421-dialog-body,
  html body dialog.kms421-profile-dialog .km425-profile-sheet{
    overflow-x:hidden!important;max-width:100%!important;
  }
  html body dialog.kms421-profile-dialog .kms421-dialog-body{overflow-y:visible!important;}
  html body dialog.kms421-profile-dialog .km425-profile-sheet .km425-deck{
    display:block!important;position:relative!important;min-width:0!important;
    margin-top:18px!important;
  }
}
/* Some phones request a desktop viewport. Only the real-phone class opts into this fallback. */
html.kmmc-mobile-device body .km428-directory .km429-profile-batch[data-kms421-track]{
  display:flex!important;flex-flow:row nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;gap:0!important;
}
html.kmmc-mobile-device body .km428-directory .km429-profile-batch[data-kms421-track] > .km428-profile-card{
  flex:0 0 100%!important;width:100%!important;min-width:100%!important;max-width:100%!important;
}
html.kmmc-mobile-device body dialog.kms421-profile-dialog .km425-profile-sheet .km425-deck-track[data-km425-track]{
  display:flex!important;flex-flow:row nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;gap:0!important;height:auto!important;
}
html.kmmc-mobile-device body dialog.kms421-profile-dialog .km425-profile-sheet .km425-deck-track[data-km425-track] > .km425-box[data-km425-card]{
  flex:0 0 100%!important;width:100%!important;min-width:100%!important;max-width:100%!important;
}
