@layer stone-city {
  @media screen and (max-width: 760px), screen and (max-width: 960px) and (max-height: 540px) {
    html[data-hub-theme] #root > .app-shell {
      box-sizing: border-box;
      padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
    }

    html[data-hub-theme] #root:has(> .welcome-screen) {
      grid-template-columns: minmax(0, 1fr);
      padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
               max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }
    html[data-hub-theme] #root > .welcome-screen,
    html[data-hub-theme] .welcome-screen :is(.access-card, .access-identity > div, .access-request, .welcome-actions) {
      min-inline-size: 0;
      max-inline-size: 100%;
      box-sizing: border-box;
      overflow-wrap: anywhere;
    }
    html[data-hub-theme] .welcome-screen :is(button, .btn, input) {
      max-inline-size: 100%;
      box-sizing: border-box;
    }
    html[data-hub-theme] .welcome-screen :is(button, .btn) {
      white-space: normal;
      min-height: 44px;
    }
    html[data-hub-theme] .welcome-screen input { font-size: 16px; }

    body:has(> .guide-header) {
      box-sizing: border-box;
      padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    html[data-hub-theme] body > .guide-header {
      box-sizing: border-box;
      width: 100% !important;
      max-width: 100% !important;
      margin-inline: 0 !important;
      padding: max(16px, env(safe-area-inset-top)) 16px 16px !important;
    }
    body > .guide-header .guide-tools { gap: 8px 16px; }
    body > .guide-header .guide-tools :is(button, a) {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
    }
    body > .hub-agent-help {
      box-sizing: border-box;
      width: 100%;
      max-width: 100%;
      padding: 12px;
    }
    html[data-hub-theme] body > .hub-agent-help > .hub-help-panel { padding: 14px !important; }
    body > .hub-agent-help .hub-help-panel table { width: 100%; min-width: 0; table-layout: fixed; }
    body > .hub-agent-help .hub-help-panel :is(th, td) { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
    body > .hub-agent-help .hub-help-panel th { width: 35%; }
  }
}

/* The native route links, date picker and account actions occupy the same shell on
   narrow phones and short landscape screens. The page owns vertical scrolling. */
.hub-phone-action-label { display: none; }
@layer stone-city {
@media screen and (max-width:760px), screen and (max-width:960px) and (max-height:540px) and (orientation:landscape) {
  html:has(.hub-nav-bottom) {
    --hub-mobile-nav-offset: 64px;
    scroll-padding-block-end: calc(var(--hub-mobile-nav-offset) + env(safe-area-inset-bottom,0px) + 8px);
  }
  html .app-shell .hub-flow-sidebar { display: none !important; }
  html .app-shell .main-shell {
    box-sizing: border-box;
    min-inline-size: 0;
    width: 100% !important;
    margin-left: 0 !important;
    padding-bottom: calc(var(--hub-mobile-nav-offset,64px) + env(safe-area-inset-bottom,0px) + 12px) !important;
  }

  /* A natural-height grid replaces the fixed header and its clipped flex items. */
  html .app-shell .main-shell .topbar {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto auto !important;
    grid-template-areas: "brand brand status" "period period period" "log refresh signout";
    align-items: center !important;
    justify-content: stretch !important;
    gap: 8px !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    position: relative;
    box-sizing: border-box;
    padding: calc(10px + env(safe-area-inset-top,0px)) 12px 10px !important;
  }
  html .app-shell .topbar .topbar-right { display: contents !important; }
  html .app-shell .topbar .breadcrumb {
    grid-area: brand;
    display: grid !important;
    grid-template-columns: 36px minmax(0,1fr);
    align-content: center;
    align-items: center;
    gap: 2px 9px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  html .app-shell .topbar .breadcrumb .brand-logo-mobile {
    display: inline-flex !important;
    grid-row: 1 / span 2;
    width: 36px !important;
    height: 36px !important;
    align-items: center;
    justify-content: center;
  }
  html .app-shell .topbar .breadcrumb > :is(span:not(.brand-logo-mobile),strong) {
    display: block !important;
    grid-column: 2;
    min-width: 0;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
  }
  html .app-shell .topbar .breadcrumb > span:not(.brand-logo-mobile) { font-size: .91rem !important; font-weight: 650; }
  html .app-shell .topbar .breadcrumb > strong { font-size: .77rem !important; font-weight: 500; }
  html .app-shell .topbar .breadcrumb > svg, html .app-shell .topbar .topbar-divider { display: none !important; }
  html .app-shell .topbar .sync-state {
    grid-area: status;
    justify-self: end;
    display: inline-flex !important;
    max-width: 9em;
    gap: 5px !important;
    align-items: center;
    line-height: 1.25;
    white-space: normal !important;
    font-size: .75rem !important;
  }

  html .app-shell .topbar .hub-global-picker {
    grid-area: period;
    display: grid !important;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
    grid-template-areas: "select dates";
    gap: 6px 10px !important;
    align-items: center;
    min-width: 0;
    max-width: 100%;
  }
  html .app-shell .hub-global-picker:has(.hub-edit-range) { grid-template-areas: "select edit" "dates dates"; }
  html .app-shell .hub-global-select {
    grid-area: select;
    position: relative;
    display: flex !important;
    box-sizing: border-box;
    min-width: 0 !important;
    min-height: 44px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  html .app-shell .hub-global-select > svg { left: 9px; width: 15px; pointer-events: none; }
  html .app-shell .hub-global-select .hub-select-chevron { right: 10px; }
  html .app-shell .topbar .hub-global-select select {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 19px 7px 29px !important;
    font-size: 16px !important;
    font-weight: 550;
    letter-spacing: -.02em;
    text-transform: none !important;
  }
  html .app-shell .hub-global-picker .hub-phone-applied-range {
    grid-area: dates;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    color: var(--sc-sub,CanvasText) !important;
    font-size: .77rem !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  html .app-shell .hub-global-picker .hub-edit-range {
    grid-area: edit;
    justify-self: start;
    padding: 6px 10px !important;
    min-height: 44px;
    max-width: none !important;
  }
  .hub-phone-period-caption { display: block; font-weight: 650; }
  html .app-shell .topbar .hub-log-action { grid-area: log; }
  html .app-shell .topbar .hub-phone-refresh { grid-area: refresh; }
  html .app-shell .topbar .hub-phone-signout { grid-area: signout; }
  html .app-shell .topbar :is(.hub-log-action,.hub-phone-refresh,.hub-phone-signout) {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    min-height: 44px !important;
    min-width: 44px !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 5px !important;
    padding: 7px 9px !important;
    font-size: .82rem !important;
    line-height: 1.25;
    text-transform: none !important;
    white-space: normal !important;
  }
  html .app-shell .topbar :is(.hub-log-action,.hub-phone-refresh,.hub-phone-signout) svg { flex: none; width: 16px; height: 16px; }
  html .app-shell .topbar :is(.hub-log-action span,.hub-phone-action-label) {
    display: inline !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
  }

  /* The secondary navigation also exposes the existing signed-in profile shortcut. */
  html .app-shell .hub-nav-utility {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px 8px;
    padding: 3px 12px !important;
    border-block-end: 1px solid var(--sc-line,currentColor);
  }
  html .app-shell .hub-phone-profile {
    display: flex;
    flex: 1 1 6rem;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    text-decoration: none;
    text-transform: none;
    line-height: 1.25;
    overflow-wrap: anywhere;
    color: var(--sc-sub,LinkText) !important;
  }
  .hub-phone-profile span { font-size: .75rem; }
  .hub-phone-profile strong { font-size: .82rem; color: var(--sc-gold-light,LinkText); }
  html .app-shell .hub-nav-utility .hub-nav-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
  html .app-shell .hub-nav-utility .hub-flow-nav-link {
    display: inline-flex !important;
    min-height: 44px !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 4px !important;
    padding: 6px !important;
    width: auto !important;
    font-size: .78rem !important;
    text-transform: none !important;
  }
  html .app-shell .hub-nav-utility .hub-flow-nav-link svg { width: 16px; height: 16px; }
  html .app-shell .hub-nav-bottom {
    position: fixed !important;
    inset: auto 0 0 !important;
    z-index: 40;
    box-sizing: border-box;
    display: grid !important;
    align-items: center;
    min-height: calc(60px + env(safe-area-inset-bottom,0px)) !important;
    padding: 3px max(4px,env(safe-area-inset-right,0px)) calc(3px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px)) !important;
    background: var(--sc-solid,Canvas) !important;
    border-block-start: 1px solid var(--sc-edge,CanvasText);
  }
  html .app-shell .hub-nav-bottom .hub-nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0,1fr);
    gap: 2px;
    padding: 0;
    margin: 0;
  }
  html .app-shell .hub-nav-bottom .hub-nav-list:has(> li:nth-child(5)) {
    grid-template-columns: minmax(0,.98fr) minmax(0,1.21fr) minmax(0,.9fr) minmax(0,.92fr) minmax(0,1fr);
  }
  html .app-shell .hub-nav-bottom .hub-nav-list > li { min-width: 0; }
  html .app-shell .hub-nav-bottom .hub-flow-nav-link {
    display: flex !important;
    box-sizing: border-box;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    height: 100%;
    width: 100%;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 3px 1px !important;
    gap: 3px !important;
    font-size: clamp(.7rem,2.85vw,.8125rem) !important;
    line-height: 1.18 !important;
    text-align: center !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  html .app-shell .hub-nav-bottom .hub-flow-nav-link > span {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  html .app-shell .hub-nav-bottom .hub-flow-nav-link svg { width: 18px; height: 18px; flex: none; }
  html .app-shell .toast { bottom: calc(var(--hub-mobile-nav-offset,64px) + env(safe-area-inset-bottom,0px) + 8px) !important; }
  html .app-shell .hub-phone-profile:focus-visible { outline: 2px solid var(--sc-gold-light,Highlight); outline-offset: 2px; }

  /* Bound the dialog to the usable viewport. Its content can scroll independently
     when the software keyboard opens or the available landscape height is short. */
  html .app-shell :is(.hub-period-dialog,.hub-story-dialog),
  html .app-shell .modal-backdrop > .modal {
    box-sizing: border-box;
    max-width: min(100%,calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    scroll-padding: 12px;
  }
  html .app-shell .modal-backdrop {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    overflow: auto;
    padding: max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px)) !important;
  }
  html .app-shell .hub-period-dialog { width: min(29rem,calc(100vw - 24px)); }
  html .app-shell .hub-period-dialog-inner { padding: 16px !important; }
  html .app-shell :is(.hub-period-dialog-title,.modal-heading) { align-items: flex-start; gap: 8px; }
  html .app-shell :is(.hub-period-dialog-title,.modal-heading) h2 { min-width: 0; overflow-wrap: anywhere; }
  html .app-shell :is(.hub-period-dialog-title,.modal-heading) .icon-button { flex: none; min-width: 44px !important; min-height: 44px !important; }
  html .app-shell .hub-global-dates { display: grid; grid-template-columns: minmax(0,1fr); margin: 0; }
  html .app-shell .hub-global-dates :is(label,input,button) { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
  html .app-shell .hub-global-dates input { display: block; width: 100%; min-height: 44px; font-size: 16px !important; }

  /* Editable forms reflow within their cards. Saved history keeps each reported field. */
  html #hub-main :is(.entry-layout,.settings-grid,.hub-agent-help) { max-width: 100%; min-width: 0; }
  html #hub-main :is(.entry-layout,.settings-grid) { grid-template-columns: minmax(0,1fr) !important; }
  html #hub-main :is(.entry-main,.entry-side,.entry-main > .panel,.personal-summary,.settings-panel,.import-panel,.hub-subteam-admin,.approvals-panel,.hub-help-panel,.hub-profile-history) { min-width: 0; }
  html #hub-main .entry-side .entry-help { display: block !important; }
  html #hub-main :is(.entry-main,.entry-main > .panel) { overflow: visible !important; }
  html #hub-main :is(.entry-person,.entry-source,.entry-total,.source-fact,.entry-side .personal-stats,.hub-profile-pagination,.hub-profile-pagination > div,.settings-actions,.approval-actions,.hub-help-actions,.hub-hierarchy-row-actions,.modal-actions,.hub-archive-actions) { flex-wrap: wrap !important; }
  html #hub-main :is(.entry-person,.entry-source,.entry-total,.hub-profile-history,.settings-grid,.hub-hierarchy-person,.hub-archive-person,.hub-help-panel) :is(p,h2,h3,small,strong,label,summary) { overflow-wrap: anywhere; }
  html #hub-main :is(.entry-main,.entry-side,.settings-grid,.hub-subteam-admin,.hub-official-targets,.hub-profile-history,.hub-join-form,.hub-agent-help,.hub-daily-agent-prompt) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px;
    font-size: 16px !important;
  }
  html #hub-main :is(.entry-layout,.hub-agent-help,.hub-subteam-admin,.approvals-panel,.hub-profile-history,.settings-grid,.hub-archive-panel,.hub-daily-agent-prompt) :is(.btn,.text-button,summary) {
    min-height: 44px !important;
    max-width: 100%;
    white-space: normal !important;
  }
  html #hub-main :is(.hub-hierarchy-heading,.hub-hierarchy-row,.hub-hierarchy-person,.hub-archive-summary) { min-width: 0; flex-wrap: wrap; }
  html #hub-main :is(.hub-hierarchy-form,.hub-join-fields,.hub-profile-history-filter) > .field { min-width: 0; }
  html #hub-main :is(.hub-hierarchy-form,.settings-grid .form-grid,.hub-join-form) :is(.field,fieldset,select) { max-width: 100%; min-width: 0; }
  html #hub-main .table-scroll:has(.roster-table) {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
  }
  html #hub-main .roster-table :is(.agent-link,.text-button,.btn) { min-height: 44px; }

  /* FAQ definition rows read vertically as needed, with the labels and content intact. */
  html #hub-main .hub-agent-help .hub-help-table-scroll { max-width: 100%; min-width: 0; overflow: auto; }
  html #hub-main .hub-agent-help table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
  html #hub-main .hub-agent-help :is(td,th) { box-sizing: border-box; white-space: normal !important; min-width: 0 !important; overflow-wrap: anywhere; }
  html #hub-main .hub-agent-help th { width: 34%; }
  html #hub-main .hub-help-question summary { min-height: 44px; line-height: 1.5; }
  html #hub-main .hub-help-actions .btn { min-width: 0; white-space: normal !important; }
  html #hub-main .hub-profile-mobile-list :is(dt,dd,header span,header strong) { min-width: 0; overflow-wrap: anywhere; }
  html #hub-main .hub-flow-actions :is(.date-control,.btn) { max-width: 100% !important; min-width: 0; }
  html #hub-main .hub-flow-actions .date-control {
    display: flex !important; align-items: center; flex-wrap: wrap;
    gap: 6px; box-sizing: border-box;
  }
  html #hub-main .hub-flow-actions .date-control input { min-width: 0 !important; max-width: 100%; font-size: 16px !important; }

  /* Keep the real submit/reset controls and live status above the measured nav. */
  html #hub-main .entry-main .entry-actions {
    position: sticky !important;
    bottom: calc(var(--hub-mobile-nav-offset,64px) + env(safe-area-inset-bottom,0px)) !important;
    z-index: 5;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) !important;
    align-items: stretch !important;
    gap: 6px;
    min-width: 0;
    padding: 6px !important;
    border: 1px solid var(--sc-edge,currentColor) !important;
    border-radius: 12px;
    background: var(--sc-solid,Canvas) !important;
  }
  html #hub-main .entry-main .entry-actions > div { display: contents !important; }
  html #hub-main .entry-main .entry-actions :is(.btn.primary,.text-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 7px 5px !important;
    box-sizing: border-box;
    white-space: normal !important;
    font-size: .81rem !important;
    line-height: 1.25 !important;
    text-transform: none;
  }
  html #hub-main .entry-actions .hub-desktop-reset-label { display: inline !important; }
  html #hub-main .entry-actions .hub-mobile-reset-label { display: none !important; }
  html #hub-main .entry-actions > div > small {
    position: absolute; right: 6px; bottom: 100%;
    padding: 2px 5px; background: var(--sc-solid,Canvas) !important; color: var(--sc-text,CanvasText);
  }
  html #hub-main .entry-main :is(input,select,textarea) { scroll-margin-block-end: calc(var(--hub-mobile-nav-offset,64px) + 68px + env(safe-area-inset-bottom,0px)); }
}
@media screen and (max-width:480px) {
  html #hub-main .hub-flow-header :is(.hub-flow-actions,.hub-flow-actions > .date-control) { justify-content: flex-start; }
  html #hub-main .entry-main .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html #hub-main :is(.hub-hierarchy-form,.hub-join-fields,.hub-profile-history-filter,.hub-help-grid,.hub-help-steps) { grid-template-columns: minmax(0,1fr) !important; }
  html #hub-main .hub-hierarchy-row-actions { justify-content: flex-start; }
  html #hub-main .hub-agent-help .hub-help-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  html #hub-main .hub-help-table-scroll :is(td,th) { padding: 10px 7px !important; }
}
@media screen and (max-width:360px) {
  html #hub-main .entry-main .form-grid { grid-template-columns: minmax(0,1fr) !important; }
  html .app-shell .topbar { grid-template-columns: minmax(0,1fr) auto auto !important; }
  html .app-shell .topbar :is(.hub-log-action,.hub-phone-refresh,.hub-phone-signout) { padding-inline: 6px !important; }
}
@media screen and (min-width:620px) and (max-width:760px), screen and (min-width:761px) and (max-width:960px) and (max-height:540px) and (orientation:landscape) {
  html .app-shell .main-shell .topbar {
    grid-template-columns: minmax(100px,1.1fr) minmax(180px,1.65fr) auto auto auto !important;
    grid-template-areas: "brand period log refresh signout" "status period log refresh signout";
    gap: 3px 9px !important;
  }
  html .app-shell .topbar .sync-state { justify-self: start; max-width: none; }
}
@media screen and (orientation:landscape) and (max-width:960px) and (max-height:540px) {
  html .app-shell .main-shell .hub-nav-utility { padding-block: 0 !important; }
  html .app-shell .hub-nav-bottom { min-height: calc(48px + env(safe-area-inset-bottom,0px)) !important; }
  html .app-shell .hub-nav-bottom .hub-flow-nav-link { flex-direction: row !important; min-height: 44px !important; gap: 5px !important; }
  html .app-shell .hub-nav-bottom .hub-flow-nav-link > span { font-size: .8rem !important; }
}
@media print { .hub-phone-action-label,.hub-phone-profile { display: none !important; } }
}

@layer stone-city {
.hub-phone-cell-label,.hub-phone-scroll-tools,.team-hub-selector .hub-phone-choice-text {display:none!important}

@media screen and (max-width:760px), screen and (max-width:960px) and (max-height:540px) {
  /* One real table row per person, including the row addressed by #my-rank. */
  html #hub-main :is(.table-scroll,.team-hub-table-wrap):has(.hub-phone-standings) {
    display:block;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;padding-inline:0!important;box-sizing:border-box;
  }
  html #hub-main table.hub-phone-standings {
    display:block!important;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important;
    table-layout:auto!important;white-space:normal!important;overflow:visible!important;text-align:start;
  }
  html #hub-main .hub-phone-standings thead {
    position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;
    margin:0!important;padding:0!important;border:0!important;white-space:nowrap!important;
  }
  html #hub-main .hub-phone-standings :is(tbody,tfoot):not([hidden]) {display:block!important;width:100%;min-width:0}
  html #hub-main .hub-phone-standings tbody[hidden] {display:none!important}
  html #hub-main .hub-phone-standings :is(tbody,tfoot)>tr {
    box-sizing:border-box;display:grid!important;grid-template-columns:36px minmax(0,1fr) minmax(0,1fr) 44px;
    align-items:start;gap:8px 4px;padding:14px 2px!important;margin:0!important;width:100%;min-width:0;
    border-bottom:1px solid var(--sc-line,#78666b)!important;
  }
  html #hub-main .hub-phone-standings :is(tbody,tfoot)>tr>:is(td,th) {
    position:static!important;display:block!important;box-sizing:border-box;min-width:0!important;width:auto!important;max-width:100%!important;
    margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;text-overflow:clip!important;
    white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;text-align:start!important;line-height:1.4;
    background:transparent!important;
  }
  html #hub-main .hub-phone-standings :is(tbody,tfoot)>tr>[data-phone-label] {
    display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:1px;
    grid-column:span 2;font-size:15px!important;font-variant-numeric:tabular-nums;
  }
  html #hub-main .hub-phone-standings .hub-phone-cell-label {
    display:block!important;max-width:100%;font-size:12px!important;line-height:1.4!important;letter-spacing:.015em!important;
    font-weight:500;text-transform:none!important;color:var(--sc-muted,#c6bdb2)!important;
  }
  html #hub-main .hub-phone-standings tbody>tr[data-hub-rank-agent]>td:nth-child(1),
  html #hub-main .hub-phone-standings tbody>tr[data-phone-person]>td:nth-child(1) {grid-column:1;grid-row:1;align-self:center}
  html #hub-main .hub-phone-standings tbody>tr[data-hub-rank-agent]>td:nth-child(2) {grid-column:2/4;grid-row:1;align-self:center}
  html #hub-main .hub-phone-standings tbody>tr[data-hub-rank-agent]>td:last-child {grid-column:4;grid-row:1;justify-self:end}
  html #hub-main .hub-phone-standings tbody>tr[data-phone-person]>th[scope=row] {grid-column:2/-1;grid-row:1;align-self:center}
  html #hub-main .hub-phone-standings .agent-link {
    width:100%;min-height:44px!important;min-width:0;display:flex!important;align-items:center;gap:5px;
    padding:0!important;text-align:start;white-space:normal!important;
  }
  html #hub-main .hub-phone-standings .agent-link>span,
  html #hub-main .hub-phone-standings .agent-link strong {
    min-width:0!important;max-width:100%;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere;
  }
  html #hub-main .hub-phone-standings .agent-link strong {font-size:15px!important;line-height:1.35}
  html #hub-main .hub-phone-standings .agent-link .avatar {flex:none}
  html #hub-main .hub-phone-standings .icon-button {width:44px!important;height:44px!important}
  html #hub-main .hub-phone-standings :is(.status-pill,.reported-days,.team-hub-reported,.team-hub-partial-label) {
    max-width:100%;white-space:normal!important;overflow-wrap:anywhere;
  }
  html #hub-main .hub-phone-standings tr>:is(td,th)[colspan],
  html #hub-main .hub-phone-standings tfoot>tr>:nth-child(2) {grid-column:1/-1}
  html #hub-main .hub-phone-standings tfoot>tr>:empty {display:none!important}
  html #hub-main .hub-phone-standings .hub-unreported-control {padding:4px 0!important}
  html #hub-main .hub-phone-standings .hub-unreported-toggle {text-align:start;white-space:normal!important}
  html #hub-main .hub-phone-standings .hub-rank-arrival {border-radius:8px;background:rgb(216 178 115 / 10%)!important}

  /* Use the five existing ranked identities and their exact amounts in source order. */
  html #hub-main .hub-elite {width:100%;max-width:100%;min-width:0;box-sizing:border-box}
  html #hub-main .hub-elite .hub-elite-header {display:block;margin:0;padding:0 0 10px!important;min-width:0}
  html #hub-main .hub-elite :is(.hub-elite-header h2,.hub-elite-dates,.hub-elite-summary strong) {overflow-wrap:anywhere;white-space:normal!important}
  html #hub-main .hub-elite .hub-elite-stage {
    display:flex!important;flex-direction:column;align-items:stretch;gap:0;list-style:none;
    margin:0!important;padding:0!important;width:100%;min-width:0;border:0!important;
  }
  html #hub-main .hub-elite .hub-elite-stage::after {display:none}
  html #hub-main .hub-elite .hub-elite-place {display:block!important;position:relative;box-sizing:border-box;width:100%;min-width:0;border-top:1px solid var(--sc-line,#78666b)}
  html #hub-main .hub-elite .hub-elite-place .hub-elite-identity {
    display:grid!important;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;justify-items:start;
    box-sizing:border-box;gap:1px 8px;width:100%!important;min-width:0!important;min-height:56px;padding:8px 4px 8px 8px!important;text-align:start;
  }
  html #hub-main .hub-elite .hub-elite-position {display:block!important;grid-column:1;grid-row:1/3;max-width:100%;font-size:12px!important;line-height:1.3;text-align:center;align-self:center;overflow-wrap:anywhere;white-space:normal!important;color:var(--sc-gold-light,#f7dfab)!important}
  html #hub-main .hub-elite .hub-elite-name,html #hub-main .hub-elite .hub-elite-amount {
    display:block!important;grid-column:2;max-width:100%!important;min-height:0!important;height:auto!important;
    overflow:visible!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere;text-align:start;
  }
  html #hub-main .hub-elite .hub-elite-name {grid-row:1;font-size:16px!important;line-height:1.35;text-transform:none!important}
  html #hub-main .hub-elite .hub-elite-amount {grid-row:2;font-size:15px!important;line-height:1.35;color:var(--sc-gold-light,#f7dfab)!important}
  html #hub-main .hub-elite :is(.hub-elite-medal,.hub-elite-initials,.hub-elite-stage-note) {display:none!important}
  html #hub-main .hub-elite .hub-elite-platform {position:absolute;inset:9px auto 9px 0;pointer-events:none;width:3px;height:auto!important;border-radius:2px;background:var(--tier-fill)}
  html #hub-main .hub-elite .hub-elite-bar {display:none!important}
  html #hub-main .hub-elite .hub-elite-summary {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));padding:12px 0 0!important;gap:12px 8px}
  html #hub-main .hub-elite .hub-elite-summary>div {min-width:0;padding:0!important;border:0!important}
  html #hub-main .hub-elite :is(.hub-elite-tie,.hub-elite-stage-note) {padding-inline:0!important}

  html #hub-main :is(.table-panel .table-controls,.table-panel .panel-heading,.daily-report-summary,.daily-report-pagination,.hub-production-heading,.team-hub-section-heading) {
    max-width:100%;min-width:0;flex-wrap:wrap!important;align-items:flex-start;
  }
  html #hub-main :is(.table-panel .table-controls,.table-panel .table-search,.team-hub-search,.daily-report-heading-copy,.hub-production-heading-copy,.daily-report-page-controls) {box-sizing:border-box;max-width:100%;min-width:0!important}
  html #hub-main :is(.table-panel .search-field,.table-panel input,.team-hub-search input) {max-width:100%!important;min-width:0!important}
  html #hub-main :is(.hub-production-report,.daily-report-page-controls button,.team-hub-search button) {min-height:44px!important}
  html #hub-main .hub-production-heading .hub-production-report {width:auto!important;max-width:100%;min-width:0;white-space:normal!important}
  html #hub-main :is(.hub-production-meta,.hub-chart-footer,.hub-chart-readout) {display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:6px 12px;min-width:0}
  html #hub-main :is(.hub-production-meta>*,.hub-chart-tooltip,.hub-chart-readout>*,.hub-chart-footer>*) {max-width:100%;min-width:0;white-space:normal!important;overflow-wrap:anywhere}
  html #hub-main .hub-chart-footer {justify-content:space-between}
  html #hub-main .hub-production-chart {max-width:100%!important;min-width:0}
  html #hub-main :is(.hub-chart-scroll,.daily-report-table-wrap) {
    box-sizing:border-box;display:block;width:100%!important;max-width:100%!important;min-width:0!important;
    overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-color:var(--sc-muted,#c6bdb2) var(--sc-solid,#302326);scrollbar-width:thin;
  }
  html #hub-main .hub-chart-bars {box-sizing:border-box;gap:2px;width:max(100%,calc(var(--hub-chart-days) * 48px))!important;min-width:100%!important}
  html #hub-main .hub-chart-day {box-sizing:border-box;min-width:44px!important;flex:1 0 44px!important}
  html #hub-main .hub-chart-date {display:block!important;line-height:1.4!important;font-size:12px!important}
  html #hub-main .hub-phone-scroll-tools:not([hidden]) {
    display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px;gap:4px;align-items:center;
    margin:8px 0;font-size:13px!important;line-height:1.35;color:var(--sc-sub,#e1d9cc)!important;
  }
  html #hub-main .hub-phone-scroll-tools button {
    display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:9px;padding:0!important;
    background:var(--sc-control,#342a2c)!important;border:1px solid var(--sc-edge,#85737a)!important;color:var(--sc-gold-light,#f7dfab)!important;font-size:20px!important;line-height:1;
  }
  html #hub-main .hub-phone-scroll-tools button:disabled {opacity:.5}
  html #hub-main .daily-report-table {font-size:14px!important;min-width:max-content!important;table-layout:auto}
  html #hub-main .daily-report-table :is(th,td) {padding:10px!important;min-width:94px!important;max-width:160px!important;box-sizing:border-box;white-space:normal!important}
  html #hub-main .daily-report-table :is(th,td).daily-report-date {width:95px!important;min-width:95px!important;max-width:95px!important;line-height:1.35;z-index:2;background:var(--sc-solid,#302326)!important;left:0!important}
  html #hub-main .daily-report-table .daily-report-date :is(small,strong,span) {white-space:normal!important;overflow-wrap:anywhere}
  html #hub-main :is(.daily-report-pagination,.daily-report-page-controls,.daily-report-coverage,.daily-report-heading) {flex-wrap:wrap;min-width:0;gap:8px}
  html #hub-main .daily-report-table [scope=col] {font-size:12px!important;line-height:1.35}

  html #hub-main :is(.overview-middle,.hub-global-trending,.team-hub-insights,.team-hub-workspace,.ratio-grid,.hub-global-kpis,.team-hub-kpis) {min-width:0}
  html #hub-main :is(.overview-middle,.averages-grid,.team-hub-insights) {grid-template-columns:minmax(0,1fr)!important}
  html #hub-main :is(.hub-global-kpis,.team-hub-kpis,.ratio-grid,.team-hub-rates) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,8.75rem),1fr))!important;
  }
  html #hub-main :is(.hub-global-kpis .hero-metric,.team-hub-kpis>.team-hub-kpi-total) {grid-column:1/-1!important}
  html #hub-main :is(.metric-card,.team-hub-kpi,.team-hub-kpi-label,.average-hero,.hub-org-targets,.ratio,.team-hub-rates>div,.source-bar,.team-hub-averages>div) {box-sizing:border-box;min-width:0;max-width:100%}
  html #hub-main :is(.metric-label,.metric-number,.metric-foot,.team-hub-kpi-label,.team-hub-kpi-value,.team-hub-kpi>p,.team-hub-rates small,.average-hero,.ratio-grid strong,.hub-scope-note,.hub-company-label,.team-hub-selector,.hub-team-parent,.team-hub-count,.source-bar strong) {white-space:normal!important;overflow-wrap:anywhere}
  html #hub-main .team-hub .team-hub-members {grid-template-columns:minmax(0,1fr)!important}
  html #hub-main .team-hub .team-hub-members>li {box-sizing:border-box;min-width:0!important;max-width:100%;display:grid!important;grid-template-columns:minmax(0,1fr)!important;row-gap:4px;padding-inline:0!important}
  html #hub-main .team-hub .team-hub-members>li>p {grid-column:1/-1;min-width:0;margin-inline:0!important;white-space:normal!important;overflow-wrap:anywhere}
  html #hub-main .team-hub-person {display:flex!important;align-items:flex-start!important;min-width:0;max-width:100%;width:100%;box-sizing:border-box;gap:6px}
  html #hub-main .team-hub-person>.team-hub-avatar,html #hub-main .team-hub-person>.hub-roster-number {flex:none}
  html #hub-main .team-hub-person>span:last-child {
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;
    flex:1 1 0;min-width:0!important;max-width:100%;overflow:visible!important;
  }
  html #hub-main .team-hub-person :is(strong,.team-hub-member-tags,.team-hub-member-tags>span) {box-sizing:border-box;min-width:0!important;max-width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
  html #hub-main .team-hub-person .team-hub-member-tags {display:flex!important;flex-wrap:wrap;gap:3px}
  html #hub-main .team-hub-person .team-hub-member-tags>span {display:inline-flex;align-items:center;line-height:1.3;gap:2px}
  html #hub-main :is(.team-hub-toolbar,.hub-scope-toolbar,.hub-team-relationships,.team-hub-selector,.hub-subteam-links) {max-width:100%;min-width:0}
  html #hub-main .team-hub-selector {display:grid!important;grid-template-columns:minmax(0,1fr);width:100%;position:relative}
  html #hub-main .team-hub-selector>select,.app-shell #hub-main .team-hub-selector>.hub-phone-choice-text {grid-row:2;grid-column:1;min-width:0!important;max-width:100%}
  html #hub-main .team-hub-selector>select {opacity:0;z-index:1;height:100%!important;width:100%!important;cursor:pointer}
  html #hub-main .team-hub-selector .hub-phone-choice-text {
    display:block!important;box-sizing:border-box;min-height:44px;padding:11px 30px 11px 9px;position:relative;
    white-space:normal!important;overflow-wrap:anywhere;font-size:14px!important;line-height:1.4;text-transform:none;
    color:var(--sc-text,#faf5ec)!important;border:1px solid var(--sc-edge,#85737a);border-radius:9px;background:var(--sc-control,#342a2c);
  }
  html #hub-main .team-hub-selector .hub-phone-choice-text::after {content:'⌄';position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-50%);font-size:16px}
  html #hub-main .team-hub-selector>select:focus-visible+.hub-phone-choice-text {outline:2px solid var(--sc-gold,#e6c48a);outline-offset:2px}

  html #hub-main .team-hub dialog.hub-story-dialog {
    box-sizing:border-box;width:calc(100% - 16px)!important;max-width:650px!important;max-height:calc(100vh - 16px)!important;max-height:calc(100dvh - 16px)!important;
    margin:auto!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:auto;
  }
  html #hub-main .hub-story-dialog .hub-story-header {display:flex!important;position:relative;inset:auto;align-items:flex-start;padding:12px!important;gap:8px}
  html #hub-main .hub-story-dialog .hub-story-close {min-width:44px!important;min-height:44px!important;flex:none}
  html #hub-main .hub-story-dialog .hub-story-heading {min-width:0;max-width:100%}
  html #hub-main .hub-story-dialog .hub-story-layout {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:12px!important}
  html #hub-main .hub-story-dialog .hub-story-preview {min-width:0;min-height:0!important;align-self:start}
  html #hub-main .hub-story-dialog .hub-story-preview img {
    display:block!important;object-fit:contain!important;width:auto!important;height:auto!important;max-width:100%!important;
    max-height:min(40vh,335px)!important;max-height:min(40dvh,335px)!important;margin:auto;
  }
  html #hub-main .hub-story-dialog .hub-story-placeholder {width:auto!important;max-height:min(40dvh,335px)!important;min-height:80px!important;align-self:center}
  html #hub-main .hub-story-dialog .hub-story-options {min-width:0;padding:0!important}
  html #hub-main .hub-story-dialog :is(.hub-story-context,.hub-story-date,.hub-story-toggle,.hub-story-options>p,.hub-story-heading h2) {
    overflow-wrap:anywhere;max-width:100%;white-space:normal!important;line-height:1.4;
  }
  html #hub-main .hub-story-dialog .hub-story-downloads {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:6px}
  html #hub-main .hub-story-dialog :is(.hub-story-toggle,.hub-story-download,.hub-story-native-share) {box-sizing:border-box;min-height:44px!important}
}
@media screen and (min-width:580px) and (max-width:960px) and (max-height:540px) {
  html #hub-main .hub-story-dialog .hub-story-layout {grid-template-columns:minmax(115px,.75fr) minmax(0,1.4fr)!important;align-items:start}
  html #hub-main .hub-story-dialog .hub-story-preview img {max-height:65dvh!important}
}
@media (forced-colors:active) {
  html #hub-main :is(.hub-phone-scroll-tools button,.hub-phone-choice-text) {color:ButtonText!important;background:ButtonFace!important;border:1px solid ButtonText!important}
}
}
