/* REVISION 0.9.2.2 — dead declaration pruning; canonical later owners remain unchanged. */
/* REVISION 0.6.4.0 — responsive ownership layer.
   This file must remain the LAST stylesheet in agency/auth/artist layouts.
   It resolves conflicts between legacy mobile rules and newer workspace modules. */

/* REVISION 0.9.2.443 — the retired responsive-base shared-shell rules now live
   in the final responsive owner. Only declarations that were still effective are
   retained; rules already superseded by ui-foundation/theme ownership are gone. */
body.revision-v0911 .sidebar-close{display:none}

/* Keep account controls visible while long navigation remains independently scrollable. */
body.revision-v0911 .sidebar{height:100dvh}
body.revision-v0911 .sidebar-nav{flex:1 1 auto;min-height:0;overflow-y:auto}
body.revision-v0911 .sidebar-footer{flex:0 0 auto;margin-top:0}
body.revision-v0911 .sidebar-account-row{grid-template-columns:minmax(0,1fr) 44px;gap:6px;width:100%;min-width:0;box-sizing:border-box}
body.revision-v0911 .sidebar-account-row .account-settings-link{max-width:100%;justify-self:end;box-sizing:border-box}

@media(max-width:1024px) and (min-width:821px){
  body.revision-v0911 .sidebar-brand{height:var(--header-h)!important;min-height:var(--header-h)!important;padding:0 12px 0 16px!important;justify-content:space-between!important}
  body.revision-v0911 .sidebar-brand .brand-logo{width:164px!important;max-height:42px!important;object-fit:contain!important;object-position:left center!important}
  body.revision-v0911 .account{display:grid!important;justify-content:initial!important;padding:6px 8px 10px!important}
  body.revision-v0911 .account>div:last-of-type{display:block!important}
  body.revision-v0911 .logout-btn{font-size:12px!important;min-height:42px!important}
  body.revision-v0911 .topbar{gap:12px!important}
  body.revision-v0911 .mobile-brand{display:none!important}
  body.revision-v0911 .top-actions{grid-column:3;justify-self:end}
}

@media(max-width:1024px){
  body.revision-v0911.ui-locked .app-content{overflow:hidden!important}
  body.revision-v0911 .sidebar-close{flex:0 0 40px}
  body.revision-v0911 .sidebar-nav{scrollbar-width:thin}
  body.revision-v0911 .nav-section{margin:0!important;padding:8px 4px 6px;border-top:1px solid #122033}
  body.revision-v0911 .nav-section:first-child{border-top:0;padding-top:2px}
  body.revision-v0911 .nav-link{border:1px solid transparent!important}
  body.revision-v0911 .nav-link:hover{border-color:#172b42!important}
  body.revision-v0911 .nav-link.active{border-color:#213d5d!important}
  body.revision-v0911 .nav-link.active:before{display:none!important}
  body.revision-v0911 .nav-link .icon{width:18px!important;height:18px!important}
  body.revision-v0911 .nav-count{min-width:26px!important;padding:2px 7px!important;border-radius:2px!important}
  body.revision-v0911 .sidebar-footer{padding:10px 10px max(12px,env(safe-area-inset-bottom))!important}
  body.revision-v0911 .mobile-menu{grid-column:1}
}

@media(max-width:820px){
  body.revision-v0911 .sidebar{top:0!important;bottom:auto!important;padding-top:env(safe-area-inset-top)!important}
  body.revision-v0911 .sidebar-brand{height:58px!important;min-height:58px!important;padding:0 10px 0 14px!important;justify-content:space-between!important}
  body.revision-v0911 .sidebar-brand .brand-logo{width:156px!important;max-height:40px!important}
  body.revision-v0911 .account-role,body.revision-v0911 .account-version{font-size:12px!important}
}

/* Shared overflow safety */
html,body{max-width:100%;}
.app-shell,.app-main,.app-content,.page,.workspace-page,.panel,.workspace-section,.side-panel{min-width:0}
img,svg,video,canvas{max-width:100%}
.input,.select,.textarea{max-width:100%;min-width:0}
.table-primary,.table-secondary,.detail-value,.info-value,.panel-meta,.page-sub{overflow-wrap:anywhere}

@media(max-width:1024px){
  html,body{height:100%;overflow:hidden!important}
  body{min-height:100dvh}
  .app-shell,.app-main{width:100%;height:100dvh!important;min-height:100dvh!important}
  .app-shell{grid-template-columns:minmax(0,1fr)!important}
  .app-main{grid-column:1!important;grid-template-rows:var(--header-h) minmax(0,1fr)!important}
  .app-content{width:100%;height:100%;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto;scroll-padding-top:12px}
  .sidebar-collapse{display:none!important}
  .sidebar{position:fixed!important;inset:0 auto 0 0!important;z-index:80!important;width:min(88vw,348px)!important;height:100dvh!important;transform:translateX(-104%)!important;transition:transform .18s ease!important;overflow:hidden!important}
  .sidebar.open{transform:translateX(0)!important}
  .mobile-overlay{position:fixed!important;inset:0!important;z-index:75!important;height:100dvh!important;background:rgba(0,0,0,.66)!important}
  .mobile-overlay.open{display:block!important}
  .sidebar-close{display:grid!important;place-items:center!important}
  .sidebar-nav{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  .nav-label{display:block!important}
  .nav-link{justify-content:flex-start!important}
  .nav-link span:not(.icon-wrap){display:inline!important}
  .nav-count{display:inline-flex!important}
  .app-shell.sidebar-collapsed .nav-label{display:block!important}
  .app-shell.sidebar-collapsed .nav-link{justify-content:flex-start!important;padding-left:12px!important;padding-right:12px!important}
  .app-shell.sidebar-collapsed .nav-link span:not(.icon-wrap){display:inline!important}
  .app-shell.sidebar-collapsed .nav-count{display:inline-flex!important}
  .app-shell.sidebar-collapsed .sidebar-account{display:grid!important;justify-content:stretch!important}
  .app-shell.sidebar-collapsed .sidebar-account>div:last-child{display:block!important}
  .app-shell.sidebar-collapsed .logout-label{display:inline!important}

  .page,.workspace-page,.overview,.finance-workspace,.booking-index-page,.calendar-page,.booking-workspace{width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
  .page-head,.calendar-page-head{width:100%;min-width:0}
  .panel,.workspace-section,.side-panel,.info-card,.note-card{max-width:100%;min-width:0}

  /* Any desktop master/detail inspector becomes a fullscreen workspace. */
  .opp-shell,.request-shell,.crm-shell{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important}
  .opp-list-pane,.master-pane{min-height:0!important;border-right:0!important}
  .opp-list,.master-scroll{max-height:none!important;overflow:visible!important}
  .inspector,.finance-ledger-inspector{position:fixed!important;left:0!important;right:0!important;top:var(--header-h)!important;bottom:0!important;z-index:81!important;width:100%!important;height:auto!important;max-height:none!important;display:none!important;background:#07111c!important;border:0!important;overflow:hidden!important}
  .inspector.mobile-open,.finance-ledger-inspector.mobile-open{display:grid!important}
  .inspector-body,.finance-inspector-body{min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
  .mobile-close,.finance-mobile-close{display:grid!important;place-items:center!important}

  /* Keep popup menus above their cards instead of clipping them. */
  .panel,.workspace-section,.side-panel,.info-card,.note-card,.organization-contacts-panel,.organization-contact-list-tab,.org-contact-card{overflow:visible!important}
  .record-action-menu,.contact-action-menu,.document-action-menu,.column-filter{position:relative;z-index:20}
  .record-action-menu[open],.contact-action-menu[open],.document-action-menu[open],.column-filter[open]{z-index:160}

  /* Two-column forms stop before tablet width becomes cramped. */
  .form-grid,.deal-fields,.detail-grid,.info-grid,.finance-payment-form,.finance-edit-form{grid-template-columns:1fr!important}
  .form-group,.form-group.full{grid-column:auto!important;min-width:0!important}

  /* Dossier layouts use one readable column. */
  .lead-dossier-layout,.booking-layout,.booking-ops-hero,.ops-form-split,.overview-grid,.finance-split,.users-shell{grid-template-columns:1fr!important}
  .booking-side-column{position:static!important}

  /* Dense settings / tabs stay one-line scrollable. */
  .settings-tabs,.organization-tabs,.booking-tabs,.tabs,.detail-tabs,.inspector-tabs,.search-type-filters{overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;scrollbar-width:none!important;overscroll-behavior-x:contain!important}
  .settings-tabs::-webkit-scrollbar,.organization-tabs::-webkit-scrollbar,.booking-tabs::-webkit-scrollbar,.tabs::-webkit-scrollbar,.detail-tabs::-webkit-scrollbar,.inspector-tabs::-webkit-scrollbar,.search-type-filters::-webkit-scrollbar{display:none}
  .settings-tab,.organization-tab,.booking-tab,.tab,.search-type-filter{flex:0 0 auto!important;white-space:nowrap!important}

  /* Calendar: tablet/mobile uses agenda surface instead of squeezing desktop grids. */
  .planner-calendar-shell,.outlook-calendar-shell{grid-template-columns:1fr!important;min-height:0!important;overflow:visible!important}
  .calendar-sidebar-panel{border-right:0!important;border-bottom:1px solid rgba(55,83,116,.48)!important}
  .calendar-sidebar-panel .mini-calendar{display:none!important}
  .calendar-list-group{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:10px 0!important;scrollbar-width:none!important}
  .calendar-list-group::-webkit-scrollbar{display:none}
  .calendar-source-toggle{flex:0 0 auto!important;min-height:40px!important;padding:0 10px!important;border:1px solid rgba(55,83,116,.42)!important}
  .calendar-commandbar{position:sticky;top:0;z-index:10}
}

@media(max-width:820px){
  :root{--header-h:58px;--mobile-pad:12px;--workspace-gutter-x:12px}

  /* Header: fit reliably down to narrow phones. */
  .topbar{height:calc(var(--header-h) + env(safe-area-inset-top))!important;min-height:calc(var(--header-h) + env(safe-area-inset-top))!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:7px!important;padding:env(safe-area-inset-top) max(9px,env(safe-area-inset-right)) 0 max(9px,env(safe-area-inset-left))!important}
  .app-main{grid-template-rows:calc(var(--header-h) + env(safe-area-inset-top)) minmax(0,1fr)!important}
  .mobile-menu{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important}
  .mobile-brand{display:block!important;grid-column:2;width:min(112px,29vw)!important;max-height:34px!important;min-width:0!important;justify-self:start!important;object-fit:contain!important;object-position:left center!important}
  .search-trigger,.top-system-meta{display:none!important}
  .top-actions{grid-column:3!important;display:flex!important;align-items:center!important;justify-self:end!important;gap:5px!important;min-width:0!important}
  .top-actions .icon-btn,.top-actions .top-btn,.language-trigger{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;display:grid!important;place-items:center!important}
  .top-btn span,.language-name,.language-caret{display:none!important}
  .top-language-menu{position:relative!important}
  
  /* Main content always starts directly under the header. */
  .app-content{scroll-padding-top:0!important}
  .page,.workspace-page{padding:12px var(--mobile-pad) calc(32px + env(safe-area-inset-bottom))!important}
  body.revision-v0911 .app-content{scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom))}
  body.revision-v0911 .app-content::after{content:"";display:block;width:100%;height:calc(96px + env(safe-area-inset-bottom));flex:0 0 calc(96px + env(safe-area-inset-bottom));pointer-events:none}
  .booking-index-page,.booking-workspace,.calendar-page,.finance-workspace{padding-left:var(--mobile-pad)!important;padding-right:var(--mobile-pad)!important}
  .page-head,.calendar-page-head{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;min-height:0!important;margin:0 0 12px!important;padding:0 0 11px!important;align-items:start!important}
  .page-head>div:first-child,.calendar-page-head>div:first-child{min-width:0!important}
  .page-title{font-size:26px!important;line-height:1.1!important;overflow-wrap:anywhere!important}
  .page-sub{margin-top:6px!important;font-size:12.5px!important;line-height:1.45!important}
  .page-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0!important;width:100%!important}
  .page-actions>.btn,.page-actions>form,.page-actions>form>.btn{width:100%!important;min-width:0!important}
  .page-actions>.btn:only-child,.page-actions>form:only-child{grid-column:1/-1!important}

  /* Inputs: no iOS zoom and no overflow. */
  .input,.select,.textarea,.command-input,.search-results-input{font-size:16px!important;max-width:100%!important;min-width:0!important}
  .input,.select{height:46px!important}
  .textarea{min-height:112px!important}
  .btn{min-height:42px!important;max-width:100%}

  /* Panels keep compact mobile rhythm. */
  .panel-head,.workspace-section-head,.side-panel-head{min-height:0!important;height:auto!important;padding:11px 12px!important;gap:8px!important;align-items:flex-start!important;flex-wrap:wrap!important}
  .panel-body,.workspace-section{padding-left:12px!important;padding-right:12px!important}
  .workspace-section{padding-top:12px!important;padding-bottom:12px!important}
  .detail-grid,.lead-detail-grid,.show-overview-grid{gap:0!important}
  .info-row,.detail{min-width:0!important}
  
  /* Master lists are cards, not squeezed desktop tables. */
  .comm-head,.task-head,.users-head,.search-results-grid-head{display:none!important}
  .comm-row,.task-row,.user-row,.search-result-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;min-height:0!important;padding:12px!important}
  .comm-row>div:not(.comm-actions),.task-row>div,.user-row>div,.search-result-row>div{display:block!important;grid-column:1!important;min-width:0!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .comm-row>div[data-mobile-label]:before,.task-row>div[data-mobile-label]:before,.user-row>div[data-mobile-label]:before,.search-result-row>div[data-mobile-label]:before{content:attr(data-mobile-label)!important;display:block!important;margin-bottom:4px!important;color:#6f88a3!important;font-size:10px!important;font-weight:700!important;letter-spacing:.07em!important;text-transform:uppercase!important}
  .row-actions:not(.comm-actions),.search-result-action{display:flex!important;gap:7px!important;flex-wrap:wrap!important;padding-top:8px!important;border-top:1px solid #17283d!important}
  .row-actions .btn,.row-actions form,.search-result-action .btn{flex:1 1 130px!important;width:100%!important}

  /* Organization search toolbar stacks predictably. */
  .crm-toolbar:not(.rev-list-toolbar),.crm-toolbar-main:not(.rev-list-filter-form){display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important}
  .crm-toolbar-main .input,.crm-toolbar-main .select,.crm-toolbar-main .btn{width:100%!important;min-width:0!important}
  .crm-toolbar-count{white-space:normal!important;text-align:left!important}

  /* Excel-like filters stay at column level but become a compact horizontal strip. */
  .column-filter-toolbar{display:block!important}
  .compact-grid-search:not(.rev-list-filter-form){display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;gap:7px!important}
  .compact-grid-search:not(.rev-list-filter-form) .opp-search,.compact-grid-search:not(.rev-list-filter-form) .booking-search{grid-column:1/-1!important;width:100%!important;min-width:0!important}
  .compact-grid-search:not(.rev-list-filter-form) .btn{width:100%!important}
  .excel-grid-head,.booking-workspace-head.excel-grid-head{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;min-height:44px!important;padding:7px!important;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:none!important;scroll-snap-type:x proximity!important}
  .excel-grid-head::-webkit-scrollbar{display:none}
  .excel-grid-head>.column-filter-head{display:flex!important;flex:0 0 auto!important;width:auto!important;min-width:118px!important;scroll-snap-align:start!important}
  .excel-grid-head>.column-filter-head>span{font-size:10px!important}
  .column-filter>summary{width:28px!important;height:28px!important}
  .column-filter-popover{position:fixed!important;z-index:240!important;left:var(--mobile-pad)!important;right:var(--mobile-pad)!important;top:calc(var(--header-h) + env(safe-area-inset-top) + 8px)!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - var(--header-h) - env(safe-area-inset-top) - 24px)!important;overflow:auto!important;padding:12px!important}

  /* Leads / requests / bookings: summary first, context immediately visible. */
  #oppList .opp-row,#requestRows .opp-row{min-height:0!important;padding:12px 36px 12px 12px!important}
  .mobile-row-context,.booking-workspace-mobile-meta{display:flex!important;flex-wrap:wrap!important;gap:4px 8px!important;margin-top:7px!important;font-size:var(--rev-ui-font-xs)!important;line-height:1.4!important}

  /* Dossier headings/actions do not create a tall empty first screen. */
  .lead-dossier-head,.crm-page-head,.finance-page-head{margin-bottom:12px!important}
  .lead-primary-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .lead-primary-actions .btn,.lead-primary-actions form,.lead-primary-actions form .btn{width:100%!important}
  .lead-summary-grid,.organization-summary-grid,.booking-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .lead-summary-item,.booking-summary-card{min-width:0!important}

  /* Booking dossier tabs become the only horizontal scroller. */
  .booking-workspace{padding-top:8px!important}
  .booking-breadcrumbs{min-height:30px!important;margin-bottom:4px!important;overflow-x:auto!important;white-space:nowrap!important}
  .booking-hero{padding:8px 0 12px!important;gap:10px!important}
    .booking-tabs{margin-left:calc(var(--mobile-pad) * -1)!important;margin-right:calc(var(--mobile-pad) * -1)!important;padding-left:var(--mobile-pad)!important;padding-right:var(--mobile-pad)!important}
  .booking-layout{padding-top:10px!important;gap:12px!important}
  .booking-document-card{grid-template-columns:1fr!important;padding:12px!important}
  .booking-document-icon{display:none!important}
  .booking-document-actions{grid-column:1!important;display:flex!important;gap:7px!important;flex-wrap:wrap!important}
  .booking-document-actions>.btn{flex:1 1 140px!important}

  /* Finance becomes list -> fullscreen detail with no hidden horizontal canvas. */
  .finance-ledger-window{display:block!important;min-height:0!important}
  .finance-ledger-master{border-right:0!important;overflow:visible!important}
  .finance-ledger-columns{display:none!important}
  .finance-invoice-row{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;min-height:0!important;padding:12px!important}
  .finance-invoice-row>div{min-width:0!important}
  .finance-inspector-head{padding:10px 12px!important;min-height:60px!important}
  .finance-invoice-detail{padding:12px!important}
  .finance-inspector-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .finance-detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .finance-detail-actions .btn,.finance-detail-actions form,.finance-detail-actions form .btn{width:100%!important}

  /* Calendar on phones: compact filter drawer followed by mobile agenda. */
  .calendar-page{padding-top:10px!important}
  .calendar-sidebar-panel{padding:10px 0!important;background:transparent!important;border-bottom:1px solid rgba(55,83,116,.48)!important}
  .calendar-artist-filter{padding:0 0 9px!important}
  .calendar-list-group{padding:8px 0 0!important}
  .calendar-commandbar{position:sticky!important;top:0!important;z-index:15!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;min-height:58px!important;padding:8px 0!important;background:#07111c!important}
  .calendar-source-toggle{font-size:12px!important}
  .mobile-agenda-event{min-height:72px!important}
  .mobile-agenda-date span,.mobile-agenda-event span,.mobile-agenda-event small{font-size:12px!important;line-height:1.4!important}
  .mobile-agenda-event strong{font-size:13.5px!important}
  .calendar-period-title{font-size:18px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .calendar-view-switcher{grid-column:1/-1!important;width:100%!important;overflow-x:auto!important}
  .calendar-view-button{flex:1 1 auto!important;justify-content:center!important}
    .planner-month-view,.planner-week-scroll,.planner-agenda-view,.outlook-month-view,.outlook-week-view{display:none!important}
  .calendar-mobile-agenda{display:block!important}

  /* Drawers / modals: true mobile sheets, controls always reachable. */
  .drawer{inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;grid-template-rows:calc(58px + env(safe-area-inset-top)) minmax(0,1fr) auto!important;padding-top:0!important}
  .drawer-head{padding:env(safe-area-inset-top) 12px 0!important}
  .drawer-body{padding:12px!important;padding-bottom:calc(72px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .drawer-foot{padding:10px 12px max(10px,env(safe-area-inset-bottom))!important;gap:7px!important;flex-wrap:wrap!important}
  .drawer-foot .btn{flex:1 1 130px!important}
  .inline-modal{width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;margin:auto!important}
  .inline-modal-body{min-height:0!important;overflow-y:auto!important;padding:12px 12px calc(72px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .inline-modal-foot{display:flex!important;gap:7px!important;flex-wrap:wrap!important;padding:10px 12px max(10px,env(safe-area-inset-bottom))!important}
  .inline-modal-foot .btn{flex:1 1 130px!important}
  .confirm-dialog{width:calc(100vw - 24px)!important;grid-template-columns:1fr!important;padding:18px!important;border-radius:16px}
  .confirm-icon{display:none!important}
  .confirm-actions{grid-column:1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}


  /* CSV is desktop-only. */
  [data-csv-export],.csv-export-action{display:none!important}
}

@media(max-width:560px){
  :root{--mobile-pad:11px}
  .top-actions #notifications{display:none!important}
  .mobile-brand{width:min(104px,28vw)!important}
  .page-actions,.lead-primary-actions{grid-template-columns:1fr!important}
  .lead-summary-grid,.organization-summary-grid,.booking-summary-grid,.overview-kpis,.finance-inspector-metrics{grid-template-columns:1fr!important}
  .compact-grid-search{grid-template-columns:1fr!important}
  .compact-grid-search>*{grid-column:1!important;width:100%!important}
  .excel-grid-head>.column-filter-head{min-width:110px!important}
  .finance-detail-actions{grid-template-columns:1fr!important}
      .booking-document-actions{display:grid!important;grid-template-columns:1fr!important}
  .confirm-actions{grid-template-columns:1fr!important}
}

@media(max-width:390px){
  .mobile-brand{width:88px!important}
  .top-actions{gap:4px!important}
  .top-actions .icon-btn,.top-actions .top-btn,.language-trigger,.mobile-menu{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}
  .page-title{font-size:24px!important}
  .column-filter-popover{left:8px!important;right:8px!important}
}

/* Auth responsive ownership */
@media(max-width:860px){
  body:has(.auth-shell){height:auto!important;min-height:100dvh!important;overflow:auto!important}
  .auth-shell{display:block!important;min-height:100dvh!important}
  .auth-brand{display:none!important}
  .auth-main{min-height:100dvh!important;padding:calc(72px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom))!important;align-items:flex-start!important;justify-content:center!important}
  .auth-card{width:min(100%,480px)!important;max-width:480px!important;margin:0 auto!important;padding:22px!important}
  .auth-mobile-brand{display:flex!important;justify-content:flex-start!important;margin:0 0 18px!important}
  .auth-mobile-brand img{width:132px!important;max-height:42px!important}
  .auth-language-menu{top:calc(12px + env(safe-area-inset-top))!important;right:12px!important}
  .auth-language-popover{right:0!important;left:auto!important;width:min(210px,calc(100vw - 24px))!important}
}
@media(max-width:480px){
  .auth-main{padding-left:11px!important;padding-right:11px!important}
  .auth-card{padding:18px 14px!important}
  .auth-card h1{font-size:30px!important}
}

/* Artist portal responsive ownership */
@media(max-width:820px){
  body:has(.artist-shell){height:auto!important;min-height:100dvh!important;overflow:auto!important}
  .artist-shell{min-height:100dvh!important}
                  .artist-title{font-size:28px!important}  }

/* 0.7.3.17: mobile auth uses one undistorted brand mark */
@media(max-width:820px){
  .auth-mobile-brand{display:flex!important;align-items:center;justify-content:flex-start;min-height:54px}
    .auth-card-brand .auth-form-mark{display:none!important}
  .auth-card-brand{min-height:24px!important;margin-bottom:20px!important;padding-bottom:10px!important;justify-content:flex-start!important}
  .auth-card-brand .auth-version{margin-left:auto!important}
}

/* REVISION 0.7.3.18 — mobile auth/language positioning */
@media(max-width:820px){
  .auth-mobile-brand{margin-bottom:18px!important}
  .auth-language-popover{position:fixed!important;top:calc(56px + env(safe-area-inset-top))!important;right:10px!important;left:auto!important;transform:none!important;width:58px!important;min-width:58px!important;max-width:58px!important}
  .top-language-popover{position:fixed!important;top:calc(var(--header-h) + env(safe-area-inset-top) + 6px)!important;right:max(9px,env(safe-area-inset-right))!important;left:auto!important;transform:none!important;width:min(184px,calc(100vw - 18px))!important;max-width:calc(100vw - 18px)!important;z-index:1000!important}
}


/* REVISION 0.7.3.24 — mobile alignment and artist booking priority order */
@media(max-width:820px){
  .auth-mobile-brand{align-self:center!important}
  
  .overview-focus-grid{grid-template-columns:1fr!important;width:100%!important}
  .overview-focus-card{width:100%!important;min-width:0!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
  .overview-focus-card:last-child{border-bottom:0!important}
  .artist-booking-detail-grid{display:flex!important;flex-direction:column!important;gap:12px!important}
  .artist-booking-detail-grid>.artist-main-stack,.artist-booking-detail-grid>.artist-side-stack{display:contents!important}
  .artist-booking-detail-grid .artist-panel{width:100%!important;min-width:0!important}
            .artist-promoter-panel{display:none!important}
}

/* REVISION 0.7.3.25 — precise mobile auth alignment + artist full-width cards */
@media(max-width:820px){
  .auth-mobile-brand{position:fixed!important;top:calc(12px + env(safe-area-inset-top))!important;left:12px!important;right:auto!important;width:auto!important;max-width:calc(100vw - 86px)!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;transform:none!important;align-items:center!important;justify-content:flex-start!important;z-index:110!important}
  .auth-mobile-brand img{display:block!important;width:auto!important;height:auto!important;max-width:min(176px,48vw)!important;max-height:40px!important;margin:0!important;object-fit:contain!important;object-position:left center!important}
  .auth-language-menu{top:calc(12px + env(safe-area-inset-top))!important;right:12px!important}
  .auth-main{padding-top:calc(68px + env(safe-area-inset-top))!important}
  .artist-page,.artist-kpis,.artist-dashboard-grid,.artist-main-stack,.artist-side-stack,.artist-panel,.artist-kpi,.artist-list-section,.artist-detail-grid{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .artist-kpis{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .artist-kpi{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;margin:0!important}
}

/* 0.8.0 — extra breathing room on the narrowest supported agency viewport. */
@media(max-width:390px){
  .page,.workspace-page{padding-bottom:calc(38px + env(safe-area-inset-bottom))!important}
}

/* 0.9.5.1 - Agency Calendar uses a dedicated mobile Schedule; Artist Calendar keeps its established month-first flow. */
@media(max-width:820px){
  .artist-calendar-page .calendar-commandbar,
  .artist-calendar-page .calendar-context-bar,
  .artist-calendar-page .calendar-mobile-date-strip,
  .artist-calendar-page .planner-month-view,
  .artist-calendar-page .planner-calendar-shell[data-calendar-view="month"] .planner-month-view,
  .artist-calendar-page .planner-week-scroll,
  .artist-calendar-page .planner-agenda-view,
  .artist-calendar-page .calendar-mobile-agenda{display:none!important}
  .artist-calendar-page .calendar-mobile-month-workspace{display:block!important}

  .calendar-page .calendar-commandbar{display:grid}
  .calendar-page .calendar-context-bar{display:flex}
  .calendar-page .planner-month-view,
  .calendar-page .planner-week-scroll,
  .calendar-page .planner-agenda-view,
  .calendar-page .calendar-mobile-month-workspace{display:none}
  .calendar-page .calendar-mobile-agenda{display:block}
  .calendar-page .planner-calendar-shell[data-calendar-view="month"] .calendar-mobile-agenda{display:none}
  .calendar-page .planner-calendar-shell[data-calendar-view="month"] .calendar-mobile-month-workspace{display:block}
  .calendar-page .planner-calendar-shell[data-calendar-view="day"] .calendar-mobile-agenda{display:none}
  .calendar-page .planner-calendar-shell[data-calendar-view="day"] .planner-week-scroll{display:block}
}

/* 0.8.1.27 — accessible light appearance keeps ownership after mobile overrides. */
@media(max-width:1024px){
  html[data-theme="light"] .sidebar,
  html[data-theme="light"] .artist-sidebar{background:#fff!important;border-color:#788ca1!important}
  html[data-theme="light"] .mobile-menu{background:#fff!important;border-color:#788ca1!important;color:#2f4357!important}
}
@media(max-width:820px){
  html[data-theme="light"] .topbar,
  html[data-theme="light"] .artist-topbar{background:#fff!important;border-color:#788ca1!important}
  html[data-theme="light"] .drawer,
  html[data-theme="light"] .drawer-head,
  html[data-theme="light"] .drawer-foot{background:#fff!important;border-color:#788ca1!important}
  html[data-theme="light"] .modal-backdrop{background:rgba(39,52,66,.34)!important}
  html[data-theme="light"] .command{background:#fff!important;border-color:#788ca1!important}
  html[data-theme="light"] .inspector{background:#fff!important}
}

/* 0.8.1.45 — Artist Calendar aligns with the shared Artist Portal content gutter.
   The Artist app-content already owns horizontal spacing, so Calendar must not add a second gutter. */
@media(max-width:820px){
  .artist-calendar-page.calendar-page{padding:0!important}
}

/* 0.8.1.31 — Calendar owns the available workspace height on tablet/desktop. */
@media(min-width:821px){
  body.calendar-workspace-body{overflow:hidden!important}
  body.calendar-workspace-body .app-shell,
  body.calendar-workspace-body .app-main{height:100dvh!important;min-height:100dvh!important}
  body.calendar-workspace-body .app-content{height:100%;min-height:0!important;overflow:hidden!important}
  body.calendar-workspace-body .calendar-page{height:100%;min-height:0!important;max-width:none!important;margin:0!important;padding:10px 12px 12px!important;display:flex!important;flex-direction:column!important}
  body.calendar-workspace-body .artist-calendar-page{width:min(1460px,100%)!important;max-width:1460px!important;margin-left:auto!important;margin-right:auto!important;padding:0!important}
  body.calendar-workspace-body .calendar-flash{flex:0 0 auto}
  body.calendar-workspace-body .planner-calendar-shell{flex:1 1 auto;height:auto!important;min-height:0!important;max-height:none!important}
  body.calendar-workspace-body .calendar-main-panel{min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
  body.calendar-workspace-body .planner-month-view,
  body.calendar-workspace-body .planner-week-scroll,
  body.calendar-workspace-body .planner-agenda-view{min-height:0!important;overflow:auto!important}
  body.calendar-workspace-body .planner-week-scroll,
  body.calendar-workspace-body .planner-agenda-view{flex:1 1 auto!important;height:auto!important}
  body.calendar-workspace-body .planner-month-view{flex:1 1 auto!important}
}

/* 0.8.1.31 — keep light-theme ownership after responsive dark literals. */
@media(max-width:1024px){
  html[data-theme="light"] .app-content,
  html[data-theme="light"] .inspector,
  html[data-theme="light"] .finance-ledger-inspector{background:#eef2f6!important;color:#101820!important}
  html[data-theme="light"] .calendar-sidebar-panel,
  html[data-theme="light"] .calendar-source-toggle{background:#fff!important;border-color:#c7d2dc!important;color:#2f4357!important}
}
@media(max-width:820px){
  html[data-theme="light"] .page,
  html[data-theme="light"] .workspace-page{background:#eef2f6!important;color:#101820!important}
  html[data-theme="light"] .mobile-agenda-date,
  html[data-theme="light"] .mobile-agenda-event,
  html[data-theme="light"] .calendar-mobile-month-workspace,
  html[data-theme="light"] .calendar-mobile-day-panel{background:#fff!important;border-color:#c7d2dc!important;color:#101820!important}
  html[data-theme="light"] .mobile-agenda-date strong,
  html[data-theme="light"] .mobile-agenda-event strong{color:#101820!important}
  html[data-theme="light"] .mobile-agenda-date span,
  html[data-theme="light"] .mobile-agenda-event span,
  html[data-theme="light"] .mobile-agenda-event small{color:#3c5268!important}
}

/* 0.8.1.38 — artist booking show-information priority */
@media(max-width:820px){
  .artist-show-info-panel{order:1!important}
  .artist-show-notes-panel{order:2!important}
  .artist-travel-panel{order:3!important}
  .artist-documents-panel{order:4!important}
  .artist-contacts-panel{order:5!important}
  .artist-deal-panel{order:6!important}
  .artist-booking-expenses-panel{order:7!important}
}

/* ==========================================================================
   REVISION 0.9.1.2 — signed-in responsive ownership
   Breakpoint-only alignment remains in the final responsive stylesheet.
   Shared desktop visuals moved to ui-foundation-v073.css.
   ========================================================================== */
/* Tablet */
@media(max-width:1024px){
  html.revision-v0911{--header-h:58px;}
  html.revision-v0911 body.revision-v0911 .topbar{padding:0 12px!important;}
  html.revision-v0911 body.revision-v0911:not(.calendar-workspace-body) .page,
  html.revision-v0911 body.revision-v0911:not(.calendar-workspace-body) .workspace-page{padding:16px!important;}
  html.revision-v0911 body.revision-v0911 .booking-workspace{padding:14px 16px 24px!important;}
  body.revision-v0911 .booking-overview-grid-v3{grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr);}
  body.revision-v0911 .action-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* REVISION 0.9.1.3 — shell reachability at tablet widths */
@media(max-width:1024px){
  html.revision-v0911 body.revision-v0911 .mobile-menu{
    display:grid!important;place-items:center!important;width:40px!important;height:40px!important;
    min-width:40px!important;min-height:40px!important;padding:0!important;
    border:1px solid var(--rev-ui-border)!important;border-radius:var(--rev-ui-radius-control)!important;
    background:var(--rev-ui-surface)!important;color:var(--rev-ui-text-secondary)!important;
  }
  html.revision-v0911 body.revision-v0911:not(.artist-portal-body) .topbar{
    grid-template-columns:40px minmax(240px,1fr) auto!important;gap:10px!important;
  }
  html.revision-v0911 body.revision-v0911:not(.artist-portal-body) .top-system-meta{display:none!important;}
  html.revision-v0911 body.revision-v0911:not(.artist-portal-body) .search-trigger{width:100%;min-width:0!important;max-width:620px;}
  html.revision-v0911 body.revision-v0911 .sidebar-close{
    width:40px;height:40px;border:1px solid var(--rev-ui-border);border-radius:var(--rev-ui-radius-control);
    background:var(--rev-ui-surface);color:var(--rev-ui-text-secondary);
  }
}

/* Mobile/tablet stack */
@media(max-width:820px){
  body.revision-v0911{font-size:14px;}
  html.revision-v0911 body.revision-v0911 .topbar{padding-left:max(9px,env(safe-area-inset-left))!important;padding-right:max(9px,env(safe-area-inset-right))!important;}
  html.revision-v0911 body.revision-v0911 .page-head{align-items:flex-start!important;gap:10px!important;}
  html.revision-v0911 body.revision-v0911 .page-title{font-size:24px!important;}
  html.revision-v0911 body.revision-v0911 .page-sub{font-size:var(--rev-ui-font-xs)!important;}
  html.revision-v0911 body.revision-v0911 .btn,
  html.revision-v0911 body.revision-v0911 .btn.small,
  html.revision-v0911 body.revision-v0911 .input,
  html.revision-v0911 body.revision-v0911 .select{min-height:44px!important;}
  html.revision-v0911 body.revision-v0911 .input,
  html.revision-v0911 body.revision-v0911 .select{height:44px!important;}
  body.revision-v0911 .workspace-filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;padding:9px;}
  body.revision-v0911 .workspace-filter-bar>*{min-width:0;max-width:none;width:100%;}
  html.revision-v0911 body.revision-v0911 .workspace-filter-bar .module-search-wrap{grid-column:1/-1!important;min-width:0!important;}
  body.revision-v0911 .artist-filter-dropdown{max-width:none;}
  body.revision-v0911 .artist-multifilter-summary{height:44px;min-height:44px;}
  body.revision-v0911 .artist-multifilter-menu{position:fixed;left:10px;right:10px;top:auto;bottom:10px;width:auto;max-height:min(560px,72vh);border-radius:10px;z-index:1000;}
  body.revision-v0911 .artist-filter-options{max-height:40vh;}
  body.revision-v0911 .booking-header-topline{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;}
  html.revision-v0911 body.revision-v0911 .booking-header-title-row{display:flex;flex-wrap:wrap;align-items:center!important;}
  html.revision-v0911 body.revision-v0911 .booking-header-title-row h1{font-size:23px!important;}
  body.revision-v0911 .booking-header-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
  html.revision-v0911 body.revision-v0911 .booking-summary-item{border-bottom:1px solid var(--rev93-border)!important;}
  
  body.revision-v0911 .booking-overview-primary-column,
  body.revision-v0911 .booking-overview-context-column{display:contents;}
  body.revision-v0911 .booking-overview-main-card{order:1;}
  body.revision-v0911 .booking-venue-card-v3{order:2;}
  body.revision-v0911 .booking-contact-card-v3{order:3;}
  body.revision-v0911 .booking-notes-card-v3{order:4;}
  body.revision-v0911 .booking-overview-keyfacts{grid-template-columns:1fr;gap:7px;}
  body.revision-v0911 .booking-overview-keyfacts>div{border:1px solid var(--rev93-border);border-radius:var(--rev-ui-radius-control);}
  html.revision-v0911 body.revision-v0911 .booking-simple-map-v3{height:210px!important;}
  html.revision-v0911 body.revision-v0911 .crm-wizard-form .form-grid{grid-template-columns:1fr!important;}
  html.revision-v0911 body.revision-v0911 .crm-wizard-form .form-group{grid-column:1/-1!important;}
  html.revision-v0911 body.revision-v0911 .drawer{width:100%!important;max-width:none!important;border-left:0!important;}
  body.revision-v0911 .overview-daily-grid,
  body.revision-v0911 .overview-secondary-grid{grid-template-columns:1fr;}
}

@media(max-width:520px){
  html.revision-v0911 body.revision-v0911:not(.calendar-workspace-body) .page,
  html.revision-v0911 body.revision-v0911:not(.calendar-workspace-body) .workspace-page{padding:12px!important;}
  html.revision-v0911 body.revision-v0911 .booking-workspace{padding:10px 12px 20px!important;}
  html.revision-v0911 body.revision-v0911 .page-head{margin-bottom:11px!important;padding-bottom:11px!important;}
  html.revision-v0911 body.revision-v0911 .page-title{font-size:22px!important;}
  body.revision-v0911 .action-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  body.revision-v0911 .action-summary-card{min-height:84px;padding:11px;}
  body.revision-v0911 .action-summary-card>strong{font-size:22px;}
  body.revision-v0911 .workspace-filter-bar{grid-template-columns:1fr;}
  body.revision-v0911 .workspace-filter-bar>*{grid-column:1/-1;}
  body.revision-v0911 .booking-header-topline{grid-template-columns:1fr;}
  body.revision-v0911 .booking-header-tools{justify-self:start;}
  body.revision-v0911 .booking-manage-trigger{min-width:0;}
  body.revision-v0911 .booking-header-summary{grid-template-columns:1fr 1fr;}
  html.revision-v0911 body.revision-v0911 .booking-summary-item{padding:9px 10px!important;}
  html.revision-v0911 body.revision-v0911 .booking-primary-tabs{margin-left:-2px!important;margin-right:-2px!important;}
  body.revision-v0911 .booking-primary-tab{padding:0 9px;}
  body.revision-v0911 .booking-clean-card-head{padding:12px;}
  html.revision-v0911 body.revision-v0911 .booking-overview-keyfacts,
  html.revision-v0911 body.revision-v0911 .booking-venue-address-v3,
  html.revision-v0911 body.revision-v0911 .booking-contact-lines-v3,
  html.revision-v0911 body.revision-v0911 .booking-note-list-v3{padding-left:12px!important;padding-right:12px!important;}
  html.revision-v0911 body.revision-v0911 .booking-simple-map-v3{margin-left:12px;margin-right:12px;height:190px!important;}
  body.revision-v0911 .action-center-row{grid-template-columns:1fr;gap:7px;}
  body.revision-v0911 .action-due,
  body.revision-v0911 .action-open{justify-self:start;text-align:left;}
}

/* REVISION 0.9.1.5 — list/filter breakpoint ownership */
@media(max-width:1024px){
  body.revision-v0911 .rev-list-toolbar{grid-template-columns:1fr;align-items:stretch;}
  body.revision-v0911 .rev-list-count{justify-self:start;white-space:normal;}
}
@media(max-width:820px){
  body.revision-v0911 .rev-list-filter-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:8px;}
  body.revision-v0911 .rev-list-filter-form>*{min-width:0;max-width:none;width:100%;}
  body.revision-v0911 .rev-list-search{grid-column:1/-1;min-width:0;}
  body.revision-v0911 .rev-list-filter-trigger{width:100%;min-height:44px;}
  body.revision-v0911 .rev-list-filter-popover{position:fixed;left:10px;right:10px;top:auto;bottom:10px;width:auto;max-height:min(560px,72vh);overflow:auto;}
  body.revision-v0911 .rev-list-pagination{position:sticky;bottom:0;z-index:3;justify-content:center;}
  body.revision-v0911 .rev-list-pagination-summary{display:none;}
}
@media(max-width:520px){
  body.revision-v0911 .rev-list-filter-form{grid-template-columns:1fr;}
  body.revision-v0911 .rev-list-filter-form>*{grid-column:1/-1;}
  body.revision-v0911 .rev-list-filter-popover{max-height:68vh;}
  body.revision-v0911 .rev-list-pagination{padding:8px;}
  body.revision-v0911 .rev-list-page{min-width:38px;height:38px;}
}


/* REVISION 0.9.1.6 — Organizations responsive ownership */
@media(max-width:1024px){
  body.revision-v0911 .organization-overview-layout{grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);}
}
@media(max-width:820px){
  body.revision-v0911 .organization-dossier-nav{align-items:flex-start;flex-direction:column;}
  body.revision-v0911 .organization-dossier-head{align-items:flex-start;}
  body.revision-v0911 .organization-primary-actions{width:100%;justify-content:flex-start;}
  body.revision-v0911 .organization-overview-layout{grid-template-columns:1fr;}
  body.revision-v0911 .organization-overview-main,
  body.revision-v0911 .organization-overview-side{display:contents;}
  body.revision-v0911 .organization-current-work{order:1;}
  body.revision-v0911 .organization-primary-contact-card{order:2;}
  body.revision-v0911 .organization-information-card{order:3;}
  body.revision-v0911 .organization-activity-section{order:4;}
  body.revision-v0911 .organization-communication-card{order:5;}
  body.revision-v0911 .organization-contract-preferences{order:6;}
  body.revision-v0911 .organization-history-section{order:7;}
  body.revision-v0911 .organization-contact-list-tab .org-contact-card{grid-template-columns:1fr;}
  body.revision-v0911 .organization-contact-list-tab .org-contact-actions{flex-direction:row;justify-content:flex-start;flex-wrap:wrap;}
}
@media(max-width:520px){
  body.revision-v0911 .organization-primary-actions{display:grid;grid-template-columns:1fr 1fr;}
  body.revision-v0911 .organization-primary-actions .btn{width:100%;justify-content:center;}
  body.revision-v0911 .organization-work-row{grid-template-columns:minmax(0,1fr) 16px;}
  body.revision-v0911 .organization-work-row>span:nth-child(2){display:none;}
  body.revision-v0911 .organization-contact-list-tab .org-contact-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;}
  body.revision-v0911 .organization-contact-list-tab .org-contact-actions>.btn,
  body.revision-v0911 .organization-contact-list-tab .org-contact-actions>details{width:100%;}
  body.revision-v0911 .organization-contact-list-tab .org-contact-actions>details>summary{justify-content:center;}
  body.revision-v0911 .organization-document-actions{justify-content:flex-start;}
}

/* REVISION 0.9.1.7 — Leads responsive ownership */
@media(max-width:820px){
  body.revision-v0911 .lead-operational-focus{align-items:stretch;flex-direction:column;gap:12px;padding:14px;}
  body.revision-v0911 .lead-operational-focus>.btn{width:100%;justify-content:center;}
  body.revision-v0911 .lead-status-filter{min-width:0;}
}
@media(max-width:620px){
  body.revision-v0911 .lead-context-strip{grid-template-columns:1fr;}
  body.revision-v0911 .lead-context-strip .lead-summary-item{border-right:0;}
}

/* REVISION 0.9.5.7 — centered compact brand control without header overlap. */
.sidebar-brand-mark{display:none;}
@media(min-width:1025px){
  body.revision-v0911 .app-shell.sidebar-collapsed,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed{grid-template-columns:78px minmax(0,1fr);}
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-brand,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .sidebar-brand{
    width:100%;
    overflow:hidden;
    padding-left:0;
    padding-right:0;
    justify-content:center;
  }
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-brand-trigger,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed [data-artist-sidebar-brand]{
    display:grid;
    place-items:center;
    width:44px;
    min-width:44px;
    height:44px;
    overflow:hidden;
    border-radius:10px;
    cursor:pointer;
  }
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-brand .brand-logo,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .sidebar-brand .brand-logo{display:none;}
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-brand-mark,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .sidebar-brand-mark{
    display:block;
    width:24px;
    min-width:24px;
    max-width:24px;
    height:24px;
    object-fit:contain;
  }
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-collapse,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .sidebar-collapse{display:none;}
}

/* REVISION 0.9.3.14 — Organizations use the same collapsed mobile filter pattern. */
body.revision-v0911 .organization-mobile-filter-form{display:none;}
@media(max-width:820px){
  body.revision-v0911 .organization-crm-workspace .organization-desktop-filter-form{display:none;}
  body.revision-v0911 .organization-crm-workspace .organization-mobile-filter-form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin-bottom:12px;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-search,
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-drawer{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-drawer>summary{list-style:none;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-drawer>summary::-webkit-details-marker{display:none;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-trigger{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:44px;box-sizing:border-box;cursor:pointer;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-drawer:not([open])>.mobile-list-filter-panel{display:none;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-drawer[open]>.mobile-list-filter-panel{display:grid;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-panel{grid-template-columns:minmax(0,1fr);gap:10px;width:100%;max-width:100%;min-width:0;margin-top:8px;padding:11px;border:1px solid var(--rev93-border);border-radius:10px;background:var(--rev93-surface);box-sizing:border-box;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-panel>label{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:2px;}
  body.revision-v0911 .organization-crm-workspace .mobile-list-filter-actions .btn,
  body.revision-v0911 .organization-crm-workspace .organization-mobile-browse-actions .btn{width:100%;min-width:0;justify-content:center;box-sizing:border-box;}
}

/* REVISION 0.9.1.8 — Booking Requests responsive ownership */
@media(max-width:820px){
  body.revision-v0911 .request-operational-focus{align-items:stretch;flex-direction:column;gap:12px;padding:14px;}
  body.revision-v0911 .request-operational-focus>.btn{width:100%;justify-content:center;}
}
@media(max-width:620px){
  body.revision-v0911 .request-context-strip{grid-template-columns:1fr;}
  body.revision-v0911 .request-context-strip .lead-summary-item{border-right:0;}
}

/* REVISION 0.9.1.22 — booking deal responsive consistency */
@media(max-width:820px){
  body.revision-v0911 .booking-deal-group{padding:12px;}
  body.revision-v0911 .booking-simple-deal .booking-simple-more-body{grid-template-columns:1fr;}
}

/* REVISION 0.9.1.20 — Request dossier polish responsive ownership */
@media(max-width:820px){
  
  body.revision-v0911 .request-detail-grid{grid-template-columns:1fr;}
  body.revision-v0911 .request-detail-grid .detail.full{grid-column:auto;}
}

/* REVISION 0.9.1.9 — Bookings index responsive ownership */
@media(max-width:1100px){
  body.revision-v0911 .booking-index-page .booking-workspace-head,
  body.revision-v0911 .booking-index-page .booking-workspace-row{grid-template-columns:minmax(240px,1.55fr) 54px minmax(130px,.8fr) 118px minmax(140px,.85fr) 112px;gap:12px;}
}
@media(max-width:820px){
  body.revision-v0911 .booking-index-page .booking-workspace-head{display:none;}
  body.revision-v0911 .booking-index-page .booking-workspace-row{display:block;position:relative;min-height:0;padding:13px 78px 13px 13px;}
  body.revision-v0911 .booking-index-page .booking-workspace-row>div:not(.booking-workspace-primary):not(.country-flag-grid-cell){display:none;}
  body.revision-v0911 .booking-index-page .booking-workspace-row>.country-flag-grid-cell{position:absolute;right:38px;top:13px;width:34px;height:30px;}
  body.revision-v0911 .booking-index-page .booking-workspace-row:after{content:"›";position:absolute;right:13px;top:50%;transform:translateY(-50%);color:var(--rev93-muted);font-size:22px;}
  body.revision-v0911 .booking-index-page .booking-index-title,
  body.revision-v0911 .booking-index-page .booking-index-organization,
  body.revision-v0911 .booking-index-page .booking-index-venue{white-space:normal;overflow:visible;text-overflow:clip;}
  body.revision-v0911 .booking-index-page .booking-workspace-mobile-meta{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-top:10px;padding-top:10px;border-top:1px solid var(--rev93-border);}
  body.revision-v0911 .booking-index-page .booking-mobile-fact{display:grid;gap:2px;min-width:0;}
  body.revision-v0911 .booking-index-page .booking-mobile-fact>b{color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:750;}
  body.revision-v0911 .booking-index-page .booking-mobile-fact>span{color:var(--rev93-text-soft);font-size:var(--rev-ui-font-xs);line-height:1.35;overflow-wrap:anywhere;}
}
@media(max-width:520px){
  body.revision-v0911 .booking-index-page .booking-workspace-mobile-meta{grid-template-columns:1fr 1fr;}
}


/* REVISION 0.9.1.10 — booking dossier responsive ownership */
@media(max-width:820px){
  body.revision-v0911 .booking-header-meta{margin-top:6px;}
  body.revision-v0911 .booking-overview-grid-v3{grid-template-columns:1fr;}
}
@media(max-width:520px){
  body.revision-v0911 .booking-header-meta{gap:4px;font-size:var(--rev-ui-font-xs);}
}

/* REVISION 0.9.1.23 — booking full-width workspace breakpoint ownership */
@media(max-width:820px){
  body.revision-v0911 .planning-order-hint{align-items:flex-start;flex-direction:column;gap:7px;}
  body.revision-v0911 [data-travel-order-status]{margin-left:0;}
  body.revision-v0911 .planning-row-actions{grid-column:3;flex-wrap:wrap;justify-content:flex-start;}
  body.revision-v0911 .booking-documents-intro{align-items:flex-start;flex-direction:column;gap:10px;}
  body.revision-v0911 .booking-documents-primary-actions{width:100%;justify-content:flex-start;}
  body.revision-v0911 .booking-documents-summary{grid-template-columns:1fr;}
  body.revision-v0911 .booking-documents-summary>div{border-left:0;border-top:1px solid var(--rev93-border);}
  body.revision-v0911 .booking-documents-summary>div:first-child{border-top:0;}
}
@media(max-width:520px){
  body.revision-v0911 .planning-row-actions{grid-column:2;}
  body.revision-v0911 .planning-reorder-controls{width:100%;}
  body.revision-v0911 .booking-documents-primary-actions{display:grid;grid-template-columns:1fr;}
  body.revision-v0911 .booking-documents-primary-actions .btn{width:100%;justify-content:center;}
}

/* REVISION 0.9.1.11 — create-flow and wizard breakpoint ownership */
@media(max-width:620px){
  body.revision-v0911 .quick-new-primary{grid-template-columns:1fr;}
  body.revision-v0911 .quick-new-option.is-primary{min-height:74px;}
  body.revision-v0911 .crm-create-context{grid-template-columns:1fr;gap:7px;}
  body.revision-v0911 .crm-create-context-kind{justify-self:start;}
  body.revision-v0911 .crm-wizard-progress{align-items:flex-start;flex-direction:column;gap:9px;}
  body.revision-v0911 .crm-wizard-progress>strong{margin-left:0;text-align:left;white-space:normal;}
  body.revision-v0911 .crm-wizard-progress-track{width:100%;}
  body.revision-v0911 .crm-wizard-progress-track>i{flex:1 1 auto;min-width:18px;}
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot .btn.primary{grid-column:1/-1;min-width:0;}
}

/* REVISION 0.9.1.12 — manual task register breakpoint ownership */
@media(max-width:820px){
  .revision-v0911 .task-register-toolbar .rev-list-filter-form{grid-template-columns:1fr 1fr;}
  .revision-v0911 .task-register-toolbar .rev-list-search{grid-column:1/-1;}
  .revision-v0911 .task-register-toolbar .artist-filter-dropdown{min-width:0;max-width:none;}
  .revision-v0911 .task-register-toolbar .select{width:100%;min-width:0;}
}
@media(max-width:520px){
  .revision-v0911 .task-register-toolbar .rev-list-filter-form{grid-template-columns:1fr;}
  .revision-v0911 .task-register-toolbar .rev-list-filter-form>*{grid-column:1/-1;}
}

/* REVISION 0.9.1.13 — Calendar, Finance and Agreements responsive ownership */
@media(max-width:820px){
  .revision-v0911 [data-workspace-role="agreements"] .agreement-result-meta.rev-list-count{justify-content:flex-start}
  .revision-v0911 [data-workspace-role="agreements"] .agreement-filter-form.rev-list-filter-form{align-items:stretch}
  .revision-v0911 [data-workspace-role="finance"] .finance-filter-section.rev-list-toolbar{margin-bottom:10px}
}

/* REVISION 0.9.1.14 — Artists and Artist Portal responsive ownership */
@media(max-width:1024px){
  body.revision-v0911 .artists-workspace-v2[data-workspace-role="artists"] .artist-record-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
  body.revision-v0911 .artists-workspace-v2[data-workspace-role="artists"] .artist-roster-nav-head span,
  body.revision-v0911 .artists-workspace-v2[data-workspace-role="artists"] .artist-roster-copy span,
  body.revision-v0911 .artists-workspace-v2[data-workspace-role="artists"] .artist-roster-count,
  body.revision-v0911 .artists-workspace-v2[data-workspace-role="artists"] .artist-record-status,
  body.revision-v0911 .artists-workspace-v2[data-workspace-role="artists"] .artist-record-kpis span,
  body.revision-v0911 .artist-overview-page[data-workspace-role="artist-overview"] .artist-panel-head p,
  body.revision-v0911 .artist-overview-page[data-workspace-role="artist-overview"] .artist-next-show-date span,
  body.revision-v0911 .artist-overview-page[data-workspace-role="artist-overview"] .artist-next-show-facts small,
  body.revision-v0911 .artist-overview-page[data-workspace-role="artist-overview"] .artist-kpi>span{font-size:var(--rev-ui-font-xs)!important}
  body.revision-v0911 .artist-overview-page[data-workspace-role="artist-overview"] .artist-task-list{grid-template-columns:1fr}
  body.revision-v0911 .artist-overview-page[data-workspace-role="artist-overview"] .artist-task-list .artist-compact-row{border-right:0}
  body.revision-v0911 .artist-next-show-empty{align-items:stretch;flex-direction:column;padding:13px}
  body.revision-v0911 .artist-next-show-empty .btn{width:100%;justify-content:center}
}

/* REVISION 0.9.1.15 — coarse-pointer touch target ownership. */
@media (pointer:coarse){
  .revision-v0911 body.revision-v0911 :where(.btn,.icon-btn,.top-btn,.language-trigger,.mobile-menu,.sidebar-close,.sidebar-collapse,.account-settings-link,.drawer-close,.command-close,.rev-list-page,.booking-primary-tab,.calendar-view-button,.column-filter>summary){min-width:44px;min-height:44px}
  .revision-v0911 body.revision-v0911 :where(.top-language-option,.record-menu-action,.logout-btn){min-height:44px}
  body:has(.auth-shell) :where(button,.auth-language-trigger,.auth-language-option){min-height:44px}
}

/* REVISION 0.9.1.17 — Overview artist filter popover viewport containment. */
@media(min-width:821px){
  .revision-v0911 .overview-page-head{position:relative;z-index:20;overflow:visible}
  .revision-v0911 .overview-artist-filter{position:relative;z-index:21}
}

/* REVISION 0.9.1.18 — specificity hardening for Overview artist filter anchoring.
   The shared foundation owns left:0 at specificity (0,3,2). This Overview-only
   selector uses four classes, so left:auto really wins without adding !important
   or increasing the full html/body scoped-selector debt budget. */
@media(min-width:821px){
  body.revision-v0911 .overview-page-head .overview-artist-filter .artist-multifilter-menu{left:auto;right:0;width:min(280px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
}

/* REVISION 0.9.1.24 — organization cleanup responsive ownership */
@media(max-width:1024px){
  body.revision-v0911 .organization-overview-clean{grid-template-columns:1fr}
}
@media(max-width:620px){
  body.revision-v0911 .organization-hero-card{display:grid;gap:12px;padding:14px!important;align-items:flex-start!important}
  body.revision-v0911 .organization-contacts-clean .organization-contact-list-tab{padding:8px}
  body.revision-v0911 .organization-contacts-clean .org-contact-card{padding:12px}
  body.revision-v0911 .organization-contacts-clean .org-contact-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
}


/* REVISION 0.9.1.25 — organization/profile responsive ownership */
@media(max-width:1100px){
  body.revision-v0911 .organization-overview-clean{grid-template-columns:1fr;}
  body.revision-v0911 .organization-contacts-clean .organization-contact-list-tab{grid-template-columns:1fr;}
}
@media(max-width:820px){
  body.revision-v0911 .organization-hero-meta{display:grid;grid-template-columns:1fr;}
  body.revision-v0911 .organization-hero-meta>span{border-right:0;border-bottom:1px solid var(--rev93-border);}
  body.revision-v0911 .organization-hero-meta>span:last-child{border-bottom:0;}
  body.revision-v0911 .organization-contacts-clean .org-contact-data{grid-template-columns:1fr;}
  body.revision-v0911 .organization-contacts-clean .org-contact-actions{justify-content:flex-start;}
}
@media(max-width:520px){
  body.revision-v0911 .organization-contacts-clean .org-contact-card-v2{grid-template-columns:36px minmax(0,1fr);padding:12px;}
  body.revision-v0911 .organization-profile-avatar,
  body.revision-v0911 .org-contact-avatar{width:36px;height:36px;border-radius:9px;}
  body.revision-v0911 .organization-contacts-clean .org-contact-actions{display:grid;grid-template-columns:1fr 1fr;}
  body.revision-v0911 .organization-contacts-clean .org-contact-actions>.btn,
  body.revision-v0911 .organization-contacts-clean .org-contact-actions>.record-action-menu{width:100%;}
}


/* REVISION 0.9.1.26 — organization dossier v3 responsive ownership */
@media(max-width:1050px){
  body.revision-v0911 .organization-dossier-v3 .organization-overview-clean{grid-template-columns:1fr;}
  body.revision-v0911 .organization-dossier-v3 .org-contact-row-v3{grid-template-columns:42px minmax(0,1fr) minmax(180px,.9fr) auto;}
  body.revision-v0911 .organization-dossier-v3 .org-contact-row-v3 .org-contact-channel:nth-of-type(2){display:none;}
}
@media(max-width:820px){
  body.revision-v0911 .organization-header-top{display:grid;grid-template-columns:1fr;}
  body.revision-v0911 .organization-header-top .organization-primary-actions{justify-content:flex-start;}
  body.revision-v0911 .organization-summary-strip{grid-template-columns:1fr;}
  body.revision-v0911 .organization-summary-strip>div{border-right:0;border-bottom:1px solid var(--rev93-border);}
  body.revision-v0911 .organization-summary-strip>div:last-child{border-bottom:0;}
  body.revision-v0911 .organization-dossier-v3 .org-contact-row-v3{grid-template-columns:38px minmax(0,1fr) auto;gap:10px;}
  body.revision-v0911 .organization-dossier-v3 .org-contact-channel{grid-column:2/-1;}
  body.revision-v0911 .organization-dossier-v3 .org-contact-row-v3 .org-contact-channel:nth-of-type(2){display:grid;}
  body.revision-v0911 .organization-dossier-v3 .org-contact-actions{grid-column:2/-1;justify-content:flex-start;}
}
@media(max-width:560px){
  body.revision-v0911 .organization-dossier-v3 .org-contact-row-v3{grid-template-columns:36px minmax(0,1fr);}
  body.revision-v0911 .organization-dossier-v3 .org-contact-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;}
  body.revision-v0911 .organization-dossier-v3 .org-contact-actions>.btn,
  body.revision-v0911 .organization-dossier-v3 .org-contact-actions>.record-action-menu{width:100%;}
}

/* REVISION 0.9.2.8 — CRM dossier and Organization list breakpoint alignment */
@media(max-width:1280px){
  body.revision-v0911 .organization-list-head,
  body.revision-v0911 .organization-result-row{grid-template-columns:minmax(240px,1.7fr) 56px minmax(160px,1fr) 82px 82px 88px 20px;gap:12px;}
}
@media(max-width:1024px){
  body.revision-v0911 .lead-dossier-header{align-items:flex-start;flex-direction:column;gap:10px;}
  body.revision-v0911 .lead-dossier-header .lead-primary-actions{width:100%;}
  body.revision-v0911 .organization-list-head,
  body.revision-v0911 .organization-result-row{grid-template-columns:minmax(220px,1.6fr) 50px minmax(150px,1fr) 76px 76px 82px 18px;gap:10px;}
}
@media(max-width:820px){
  body.revision-v0911 .lead-dossier-header{padding:12px;}
  body.revision-v0911 .request-overview-panel{padding:12px;gap:9px;}
  body.revision-v0911 .organization-list-head{display:none;}
  body.revision-v0911 .organization-result-row{grid-template-columns:minmax(0,1fr) 44px 18px;gap:8px 10px;}
  body.revision-v0911 .organization-result-row>.organization-country-flag{grid-column:2;grid-row:1;align-self:center;}
  body.revision-v0911 .organization-result-row>.organization-result-arrow{grid-column:3;grid-row:1/-1;}
}

/* REVISION 0.9.2.13 — organization venue and profile action breakpoint ownership */
@media(max-width:820px){
  body.revision-v0911 .organization-profile-head-actions{justify-content:flex-start;}
  body.revision-v0911 .organization-venue-card{grid-template-columns:1fr;gap:10px;padding:12px;}
  body.revision-v0911 .organization-venue-actions{justify-self:start;}
}

/* REVISION 0.9.2.13 R3 — organization profile alignment */
@media(max-width:560px){
  body.revision-v0911 .organization-dossier-v3 .organization-profile-section{padding:12px;}
  body.revision-v0911 .organization-dossier-v3 .organization-primary-contact-empty{align-items:flex-start;flex-direction:column;}
  body.revision-v0911 .organization-dossier-v3 .organization-primary-contact-empty .btn{width:100%;justify-content:center;}
  body.revision-v0911 .organization-dossier-v3 .organization-profile-facts-v2>div{grid-template-columns:1fr;gap:3px;min-height:0;padding:8px 0;}
}


/* REVISION 0.9.2.442 — canonical mixed-domain mobile typography ownership. */
@media(max-width:820px){
  .panel-meta,.help,.inspector-label,.section-eyebrow,.calendar-kicker,.kpi-label,.action-card-copy,.note-title,.booking-summary-card span,.health-label,.ops-snapshot-label,.ops-snapshot-detail,.ops-area-chip,.ops-health-meta,.record-status,.timeline-meta,.advancing-command-meta,.advancing-contact-role,.advancing-section-meta,.advancing-item-title small,.advancing-savebar span{font-size:12px!important;line-height:1.45!important;}
  .label{font-size:12px!important;}
  .ops-record-meta,.ops-record-route,.ops-record-notes,.timeline-body>p,.advancing-item-title strong{font-size:12px!important;line-height:1.5!important;}
  .required-mark,.timeline-date,.action-sub,.command-group,.command-meta,.command-kind,.crm-label,.artist-chip,.visibility-badge,.status-chip,.priority-chip,.booking-breadcrumbs,.booking-status-badge,.ops-chip,.eyebrow{font-size:12px!important;line-height:1.4!important;}
}

/* REVISION 0.9.2.442 — compact booking process status mobile */
@media(max-width:520px){
  body.revision-v0911 .booking-process-status-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-height:44px}
  body.revision-v0911 .booking-process-status-copy{display:grid;gap:2px}
  body.revision-v0911 .booking-process-toggle{min-height:44px;width:max-content}
}

/* REVISION 0.9.7.38 — Lead detail responsive hierarchy. */
@media(min-width:821px) and (max-width:1100px){
  body.revision-v0911 .lead-premium-header{align-items:center;flex-direction:row;}
  body.revision-v0911 .lead-premium-header .lead-primary-actions{width:auto;}
}
@media(max-width:820px){
  body.revision-v0911 .lead-premium-header{gap:13px;padding:15px;}
  body.revision-v0911 .lead-premium-header .lead-primary-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;}
  body.revision-v0911 .lead-header-badges{width:auto;}
  body.revision-v0911 .lead-relationship-summary{grid-template-columns:1fr;}
  body.revision-v0911 .lead-summary-column+.lead-summary-column{border-top:1px solid var(--rev93-border);border-left:0;}
  
}
@media(max-width:620px){
  body.revision-v0911 .lead-premium-header .lead-primary-actions{width:100%;}
  body.revision-v0911 .lead-premium-header .lead-manage-menu{margin-left:auto;}
  body.revision-v0911 .lead-next-action-panel{align-items:stretch;flex-direction:column;gap:12px;padding:14px;}
  body.revision-v0911 .lead-next-action-panel>.btn{width:100%;justify-content:center;}
  body.revision-v0911 .lead-summary-column{padding:14px;}
  body.revision-v0911 .lead-opportunity-summary dl>div{grid-template-columns:1fr;gap:3px;}
  body.revision-v0911 .lead-commercial-grid{grid-template-columns:1fr;gap:12px;}
  body.revision-v0911 .lead-overview-section{padding:14px;}
  body.revision-v0911 .lead-section-heading{align-items:flex-start;flex-direction:column;gap:4px;}
}

/* REVISION 0.9.2.409 — lead dossier responsive ownership. */
@media(max-width:820px){
  body.revision-v0911 .lead-dossier-tabs{margin-inline:-2px;border-radius:10px;scroll-snap-type:x proximity}
  body.revision-v0911 .lead-dossier-tab{min-width:104px;scroll-snap-align:start}
  body.revision-v0911 .lead-contact-columns,body.revision-v0911 .lead-booking-context{grid-template-columns:1fr;padding-left:14px;padding-right:14px}
}
@media(max-width:520px){
  body.revision-v0911 .lead-contact-facts>div{grid-template-columns:1fr;gap:3px}
  body.revision-v0911 .lead-dossier-tab{min-width:96px;padding-inline:12px}
}

/* REVISION 0.9.2.410 — lead detail priority layout responsive ownership. */
@media(max-width:1024px){
  body.revision-v0911 .lead-dossier-page:not(.request-dossier-page) .lead-summary-strip-v2{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.revision-v0911 .lead-priority-grid{grid-template-columns:1fr;}
}
@media(max-width:620px){
  body.revision-v0911 .lead-dossier-page:not(.request-dossier-page) .lead-summary-strip-v2{grid-template-columns:1fr;padding:7px;}
  body.revision-v0911 .lead-dossier-page:not(.request-dossier-page) .lead-summary-strip-v2 .lead-summary-item{min-height:0;}
  body.revision-v0911 .lead-contact-focus{grid-template-columns:1fr;grid-template-areas:"label" "copy" "channels";align-items:start;padding:14px;}
  body.revision-v0911 .lead-contact-focus-channels{justify-items:start;text-align:left;}
  body.revision-v0911 .lead-contact-focus-email{justify-content:flex-start;}
  body.revision-v0911 .lead-priority-grid .lead-operational-focus{align-items:stretch;flex-direction:column;gap:12px;padding:14px;}
  body.revision-v0911 .lead-priority-grid .lead-operational-focus>.btn{width:100%;justify-content:center;}
}

/* REVISION 0.9.2.413 — mobile UX consolidation.
   Keep the established desktop information architecture; on phone widths reduce
   navigation noise, shorten secondary actions and keep operational context readable. */
@media(max-width:820px){
  body.revision-v0911 .desktop-copy{display:none}
  body.revision-v0911 .mobile-copy{display:inline}

  /* Organization mobile: list-first. The prospecting map remains a desktop tool. */
  body.revision-v0911 .organization-crm-workspace .organization-view-switch,
  body.revision-v0911 .organization-crm-workspace .organization-map-desktop-link{display:none}
  body.revision-v0911 .organization-result-team{display:none}
  body.revision-v0911 .organization-result-primary-contact,
  body.revision-v0911 .organization-result-open-work{min-width:0}
  body.revision-v0911 .organization-result-open-work{display:flex;align-items:center;gap:6px}
  body.revision-v0911 .organization-result-open-work:before{content:attr(data-label);flex:0 0 auto;color:var(--rev93-muted);font-size:12px;font-weight:700;letter-spacing:.035em;text-transform:uppercase}
  body.revision-v0911 .organization-result-open-work strong,
  body.revision-v0911 .organization-result-open-work small{display:inline;margin:0}
  body.revision-v0911 .organization-result-open-work small:before{content:" · "}
  body.revision-v0911 .organization-secondary-details>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 2px;font-size:12px}

  /* Horizontal navigation remains one deliberate, thumb-friendly scroller. */
  body.revision-v0911 .settings-tabs,
  body.revision-v0911 .organization-tabs,
  body.revision-v0911 .booking-primary-tabs,
  body.revision-v0911 .lead-dossier-tabs{scroll-snap-type:x proximity;scroll-padding-inline:8px}
  body.revision-v0911 .settings-tab,
  body.revision-v0911 .organization-tab,
  body.revision-v0911 .booking-primary-tab,
  body.revision-v0911 .lead-dossier-tab{scroll-snap-align:start}

  /* Long machine/user supplied values must never force horizontal page scroll. */
  body.revision-v0911 :where(.detail-value,.setting-value,.organization-contact-profile-v2,.org-contact-channel,.lead-contact-focus-email,.booking-contact-lines-v3,.artist-record-meta) :where(a,strong,span,small){overflow-wrap:anywhere;word-break:break-word}

  /* Mobile headers/actions should read as actions, never as a squeezed desktop toolbar. */
  body.revision-v0911 .page-actions>details,
  body.revision-v0911 .lead-primary-actions>details{min-width:0;width:100%}
  body.revision-v0911 .page-actions>details>summary,
  body.revision-v0911 .lead-primary-actions>details>summary{width:100%;justify-content:center}

  /* Panel metadata stays readable on handheld screens. */
  body.revision-v0911 .panel-meta,
  body.revision-v0911 .help,
  body.revision-v0911 .field-optional{line-height:1.5}

  /* Artist Portal: prevent header action collisions without hiding context. */
  body.revision-v0911 .artist-panel-head,
  body.revision-v0911 .artist-panel-head-actions{min-width:0;flex-wrap:wrap}
}

@media(max-width:560px){
  /* Per-page is a desktop density control; 25-row pagination is sufficient on phones. */
  body.revision-v0911 .crm-per-page,
  body.revision-v0911 .rev-list-per-page{display:none}

  /* Organization rows keep decision information without becoming mini dossiers. */
  body.revision-v0911 .organization-result-row{padding-top:12px;padding-bottom:12px}
  body.revision-v0911 .organization-result-primary-contact{grid-template-columns:1fr;gap:2px}
  body.revision-v0911 .organization-result-primary-contact:before{font-size:12px}
  body.revision-v0911 .organization-result-primary-contact small:before{content:""}
  body.revision-v0911 .organization-result-flags{margin-top:2px}

  /* Filters/actions stack into a consistent one-thumb flow. */
  body.revision-v0911 .rev-list-filter-form>.btn,
  body.revision-v0911 .rev-list-filter-form>a.btn{width:100%;justify-content:center}

  /* Dossier tabs stay usable at 320–390px without microscopic labels. */
  body.revision-v0911 .organization-tab,
  body.revision-v0911 .booking-primary-tab,
  body.revision-v0911 .lead-dossier-tab{min-height:44px}
}

/* REVISION 0.9.2.414 — night booking schedule responsive ownership. */
@media(max-width:1100px){
  body.revision-v0911 .booking-night-grid,body.revision-v0911 .booking-night-grid-edit{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.revision-v0911 .booking-night-grid-edit .booking-night-date-field,body.revision-v0911 .booking-night-grid-edit .booking-night-toggle-field,body.revision-v0911 .booking-night-grid-edit .booking-night-start-field,body.revision-v0911 .booking-night-grid-edit .booking-night-set-field,body.revision-v0911 .booking-night-grid-edit .booking-night-set-end-field{grid-column:auto}
  body.revision-v0911 .booking-night-grid-edit .booking-night-duration-field{grid-column:1/-1}
}
@media(max-width:620px){
  body.revision-v0911 .booking-night-schedule{padding:10px}
  body.revision-v0911 .booking-night-grid,body.revision-v0911 .booking-night-grid-edit{grid-template-columns:1fr}
  body.revision-v0911 .booking-night-grid-edit .booking-night-duration-field{grid-column:auto}
  body.revision-v0911 .booking-night-switch{min-height:44px}
}

/* REVISION 0.9.2.457 — Leads mobile simplification, aligned with Artist Portal card rhythm. */
body.revision-v0911 .lead-mobile-filter-form,
body.revision-v0911 .lead-mobile-card{display:none;}

@media(max-width:820px){
  body.revision-v0911 .lead-grid-page .lead-desktop-filter-form{display:none!important;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-form{display:grid;gap:8px;width:100%;}
  body.revision-v0911 .lead-grid-page .lead-mobile-search{width:100%;min-width:0;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-drawer{width:100%;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-drawer>summary{list-style:none;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-drawer>summary::-webkit-details-marker{display:none;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-trigger{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;cursor:pointer;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-panel{display:grid;gap:10px;margin-top:8px;padding:11px;border:1px solid var(--rev93-border);border-radius:10px;background:var(--rev93-surface);}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-panel>label,
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-group{display:grid;gap:5px;min-width:0;margin:0;padding:0;border:0;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-group legend{padding:0;margin:0 0 3px;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .lead-grid-page .lead-mobile-artist-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;max-height:148px;overflow:auto;padding:8px;border:1px solid var(--rev93-border);border-radius:8px;background:var(--rev93-surface-subtle);}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-checks{display:grid;gap:7px;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:2px;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-actions .btn{width:100%;justify-content:center;}
  body.revision-v0911 .lead-grid-page .excel-grid-head{display:none!important;}
  body.revision-v0911 .lead-grid-page .lead-grid-shell{border:0!important;background:transparent!important;overflow:hidden!important;}
  body.revision-v0911 .lead-grid-page #oppList{display:grid;gap:9px;}
  body.revision-v0911 .lead-grid-page #oppList .lead-grid-row{padding:13px 40px 13px 13px!important;border:1px solid var(--rev93-border)!important;border-radius:10px;background:var(--rev93-surface);box-shadow:0 4px 16px rgba(0,0,0,.08);}
  body.revision-v0911 .lead-grid-page #oppList .lead-grid-row:hover,
  body.revision-v0911 .lead-grid-page #oppList .lead-grid-row:focus-visible{border-color:var(--rev93-border-strong)!important;background:var(--rev93-surface-hover)!important;}
  body.revision-v0911 .lead-grid-page #oppList .opp-meta{display:none;}
  body.revision-v0911 .lead-grid-page .lead-mobile-card{display:grid;gap:8px;margin-top:6px;min-width:0;}
  body.revision-v0911 .lead-grid-page .lead-mobile-card-flag{position:absolute;top:14px;right:38px;display:flex;width:28px;height:20px;align-items:center;justify-content:center;}
  body.revision-v0911 .lead-grid-page .lead-mobile-location{padding-right:30px;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);line-height:1.4;overflow-wrap:anywhere;}
  body.revision-v0911 .lead-grid-page .lead-mobile-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;color:var(--rev93-text-soft);font-size:var(--rev-ui-font-xs);line-height:1.35;}
  body.revision-v0911 .lead-grid-page .lead-mobile-tags>span{display:inline-flex;align-items:center;min-width:0;}
  body.revision-v0911 .lead-grid-page .lead-mobile-tags>span:not(:last-child):after{content:"·";margin-left:7px;color:var(--rev93-muted);}
  body.revision-v0911 .lead-grid-page .lead-mobile-artist{font-weight:700;color:var(--rev93-text);}
  body.revision-v0911 .lead-grid-page .lead-mobile-next-action{display:flex;align-items:baseline;gap:6px;min-width:0;padding-top:7px;border-top:1px solid var(--rev93-border);}
  body.revision-v0911 .lead-grid-page .lead-mobile-next-action>span{color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .lead-grid-page .lead-mobile-next-action>strong{min-width:0;color:var(--rev93-text-soft);font-size:var(--rev-ui-font-xs);font-weight:700;overflow-wrap:anywhere;}
  body.revision-v0911 .lead-grid-page .lead-list-toolbar .rev-list-count{margin-top:1px;}
}

@media(max-width:520px){
  body.revision-v0911 .lead-grid-page .lead-mobile-artist-options{grid-template-columns:1fr;}
  body.revision-v0911 .lead-grid-page .lead-mobile-filter-actions{grid-template-columns:1fr 1fr;}
}

/* REVISION 0.9.2.458 — Leads mobile width containment for narrow iPhone viewports. */
@media(max-width:820px){
  body.revision-v0911 .lead-grid-page .lead-list-toolbar,
  body.revision-v0911 .lead-grid-page .lead-grid-shell,
  body.revision-v0911 .lead-grid-page #oppList{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .lead-grid-page #oppList{grid-template-columns:minmax(0,1fr);overflow:hidden;}
  body.revision-v0911 .lead-grid-page #oppList .lead-grid-row{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;}
  body.revision-v0911 .lead-grid-page #oppList .lead-grid-row>div:nth-child(2),
  body.revision-v0911 .lead-grid-page .lead-mobile-card{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .lead-grid-page .opp-title,
  body.revision-v0911 .lead-grid-page .lead-mobile-location,
  body.revision-v0911 .lead-grid-page .lead-mobile-tags,
  body.revision-v0911 .lead-grid-page .lead-mobile-next-action{max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word;}
}

/* REVISION 0.9.2.459 — Bookings mobile filters and status hierarchy. */
body.revision-v0911 .booking-mobile-filter-form{display:none;}
body.revision-v0911 .request-mobile-filter-form{display:none;}

@media(max-width:820px){
  body.revision-v0911 .booking-index-page .booking-desktop-filter-form{display:none!important;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-form{display:grid;gap:8px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .booking-index-page .booking-mobile-search,
  body.revision-v0911 .booking-index-page .booking-mobile-filter-drawer{width:100%;max-width:100%;min-width:0;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-drawer>summary{list-style:none;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-drawer>summary::-webkit-details-marker{display:none;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-trigger{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;cursor:pointer;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-panel{display:grid;gap:10px;margin-top:8px;padding:11px;border:1px solid var(--rev93-border);border-radius:10px;background:var(--rev93-surface);box-sizing:border-box;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-panel>label,
  body.revision-v0911 .booking-index-page .booking-mobile-filter-group{display:grid;gap:5px;min-width:0;margin:0;padding:0;border:0;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-group legend{padding:0;margin:0 0 3px;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .booking-index-page .booking-mobile-artist-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;max-height:148px;overflow:auto;padding:8px;border:1px solid var(--rev93-border);border-radius:8px;background:var(--rev93-surface-subtle);}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:2px;}
  body.revision-v0911 .booking-index-page .booking-mobile-filter-actions .btn{width:100%;justify-content:center;}
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-stage-badge{width:max-content;max-width:100%;min-height:26px;padding:3px 8px;font-size:var(--rev-ui-font-xs);line-height:1.2;border-radius:var(--rev-ui-radius-pill);}
  body.revision-v0911 .booking-index-page .booking-mobile-decision{display:block;margin-top:3px;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);line-height:1.35;}
}

@media(max-width:520px){
  body.revision-v0911 .booking-index-page .booking-mobile-artist-options{grid-template-columns:1fr;}
}

/* REVISION 0.9.7.41 — Requests use the same compact mobile filter drawer as Leads and Bookings. */
@media(max-width:820px){
  body.revision-v0911 .request-grid-page .request-desktop-filter-form{display:none;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .request-grid-page .request-mobile-search,
  body.revision-v0911 .request-grid-page .request-mobile-filter-drawer{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-drawer>summary{list-style:none;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-drawer>summary::-webkit-details-marker{display:none;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-trigger{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:44px;box-sizing:border-box;cursor:pointer;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-drawer:not([open])>.request-mobile-filter-panel{display:none;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-drawer[open]>.request-mobile-filter-panel{display:grid;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-panel{grid-template-columns:minmax(0,1fr);gap:10px;width:100%;max-width:100%;min-width:0;margin-top:8px;padding:11px;border:1px solid var(--rev93-border);border-radius:10px;background:var(--rev93-surface);box-sizing:border-box;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-panel>label,
  body.revision-v0911 .request-grid-page .request-mobile-filter-group{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0;margin:0;padding:0;border:0;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-group legend{padding:0;margin:0 0 3px;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .request-grid-page .request-mobile-artist-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;max-height:148px;overflow:auto;padding:8px;border:1px solid var(--rev93-border);border-radius:8px;background:var(--rev93-surface-subtle);box-sizing:border-box;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:2px;}
  body.revision-v0911 .request-grid-page .request-mobile-filter-actions .btn{width:100%;min-width:0;justify-content:center;}
  body.revision-v0911 .request-grid-page .request-context-grid-head{display:none;}
}

@media(max-width:520px){
  body.revision-v0911 .request-grid-page .request-mobile-artist-options{grid-template-columns:1fr;}
}


/* REVISION 0.9.2.460 — mobile filter parity, overview artist picker reachability and CRM wizard footer. */
@media(max-width:820px){
  /* Overview-specific mobile dropdown ownership is refined in 0.9.2.461 below. */

  /* Leads and Bookings intentionally share one mobile filter shell. */
  body.revision-v0911 .lead-grid-page .mobile-list-filter-form,
  body.revision-v0911 .booking-index-page .mobile-list-filter-form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .lead-grid-page .mobile-list-search,
  body.revision-v0911 .booking-index-page .mobile-list-search,
  body.revision-v0911 .lead-grid-page .mobile-list-filter-drawer,
  body.revision-v0911 .booking-index-page .mobile-list-filter-drawer{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-drawer>summary,
  body.revision-v0911 .booking-index-page .mobile-list-filter-drawer>summary{list-style:none;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-drawer>summary::-webkit-details-marker,
  body.revision-v0911 .booking-index-page .mobile-list-filter-drawer>summary::-webkit-details-marker{display:none;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-trigger,
  body.revision-v0911 .booking-index-page .mobile-list-filter-trigger{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:44px;box-sizing:border-box;cursor:pointer;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-panel,
  body.revision-v0911 .booking-index-page .mobile-list-filter-panel{grid-template-columns:minmax(0,1fr);gap:10px;width:100%;max-width:100%;min-width:0;margin-top:8px;padding:11px;border:1px solid var(--rev93-border);border-radius:10px;background:var(--rev93-surface);box-sizing:border-box;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-panel>label,
  body.revision-v0911 .booking-index-page .mobile-list-filter-panel>label,
  body.revision-v0911 .lead-grid-page .mobile-list-filter-group,
  body.revision-v0911 .booking-index-page .mobile-list-filter-group{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0;margin:0;padding:0;border:0;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-group legend,
  body.revision-v0911 .booking-index-page .mobile-list-filter-group legend{padding:0;margin:0 0 3px;color:var(--rev93-muted);font-size:var(--rev-ui-font-xs);font-weight:650;}
  body.revision-v0911 .lead-grid-page .mobile-list-artist-options,
  body.revision-v0911 .booking-index-page .mobile-list-artist-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;max-height:148px;overflow:auto;padding:8px;border:1px solid var(--rev93-border);border-radius:8px;background:var(--rev93-surface-subtle);box-sizing:border-box;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-actions,
  body.revision-v0911 .booking-index-page .mobile-list-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:2px;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-actions .btn,
  body.revision-v0911 .booking-index-page .mobile-list-filter-actions .btn{width:100%;min-width:0;justify-content:center;}

  /* Mobile booking status uses the same lifecycle colors as desktop; generic fact text must not flatten it. */
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-mobile-status-badge{display:inline-flex;width:max-content;max-width:100%;min-height:26px;align-items:center;padding:3px 8px;border:1px solid var(--rev93-border-strong);border-radius:var(--rev-ui-radius-pill);font-size:var(--rev-ui-font-xs);font-weight:800;line-height:1.2;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;}
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-mobile-status-badge.confirmed{border-color:#2e6c50;background:#0d281f;color:#8bd5ac;}
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-mobile-status-badge.option{border-color:#6f5b2d;background:#261f0d;color:#e7ca80;}
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-mobile-status-badge.cancelled,
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-mobile-status-badge.lost{border-color:#6c3843;background:#251017;color:#e79bab;}
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-mobile-status-badge.completed,
  body.revision-v0911 .booking-index-page .booking-mobile-status-fact .booking-mobile-status-badge.expired{border-color:#42576c;background:#101b26;color:#9eb2c7;}

  /* REVISION 0.9.2.461 — mobile dropdown placement, collapsed booking filters and sidebar account reachability. */
  /* Overview artist selection behaves like a dropdown over the page, never as a bottom sheet. */
  body.revision-v0911 .overview-page-head{position:relative;z-index:30;overflow:visible;}
  body.revision-v0911 .overview-page-head .overview-artist-filter{position:relative;z-index:31;width:100%;min-width:0;overflow:visible;}
  body.revision-v0911 .overview-page-head .overview-artist-filter .artist-filter-dropdown{position:relative;width:100%;max-width:none;min-width:0;overflow:visible;}
  body.revision-v0911 .overview-page-head .overview-artist-filter .artist-filter-dropdown .artist-multifilter-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);bottom:auto;width:100%;max-width:100%;max-height:min(360px,55dvh);z-index:1200;}
  body.revision-v0911 .overview-page-head .overview-artist-filter .artist-filter-options{max-height:min(240px,38dvh);}

  /* Details content is explicitly hidden until the user opens Filters. */
  body.revision-v0911 .lead-grid-page .mobile-list-filter-drawer:not([open])>.mobile-list-filter-panel,
  body.revision-v0911 .booking-index-page .mobile-list-filter-drawer:not([open])>.mobile-list-filter-panel{display:none;}
  body.revision-v0911 .lead-grid-page .mobile-list-filter-drawer[open]>.mobile-list-filter-panel,
  body.revision-v0911 .booking-index-page .mobile-list-filter-drawer[open]>.mobile-list-filter-panel{display:grid;}

  /* Coarse-pointer 44px touch targets must fit inside the sidebar footer grid. */
  body.revision-v0911 .sidebar-account-row,
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-account-row{grid-template-columns:minmax(0,1fr) 44px;gap:6px;width:100%;min-width:0;box-sizing:border-box;justify-items:stretch;}
  body.revision-v0911 .sidebar-account-row .sidebar-account{min-width:0;}
  body.revision-v0911 .sidebar-footer{overflow:hidden;}
  body.revision-v0911 .sidebar-account-row .sidebar-account{width:100%;max-width:100%;padding-left:4px;padding-right:2px;box-sizing:border-box;}
  body.revision-v0911 .sidebar-account-row .account-copy{min-width:0;overflow:hidden;}
  body.revision-v0911 .sidebar-account-row .account-settings-link,
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-account-row .account-settings-link{width:44px;min-width:44px;max-width:44px;height:44px;margin-top:0;justify-self:end;box-sizing:border-box;}
  body.revision-v0911 .sidebar-account-row .account-settings-link .icon{width:13px;height:13px;}
}

/* REVISION 0.9.2.462 — canonical Booking mobile filter ownership and visible lifecycle status. */

body.revision-v0911 .booking-index-page .booking-mobile-title-row .booking-index-title{display:block;}
body.revision-v0911 .booking-index-page .booking-mobile-card-status{display:none;}

@media(max-width:820px){
  /* Only the collapsed mobile filter form may render on handheld Booking screens. */
  /* Status is decision-critical on mobile: keep one colored badge next to the booking title. */
  body.revision-v0911 .booking-index-page .booking-mobile-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0;}
  
  body.revision-v0911 .booking-index-page .booking-mobile-card-status{display:inline-flex;flex:0 0 auto;max-width:46%;margin-top:1px;}
  body.revision-v0911 .booking-index-page .booking-workspace-mobile-meta .booking-mobile-status-fact{display:none;}
}

@media(max-width:620px){
  body.revision-v0911 .lead-grid-page .mobile-list-artist-options,
  body.revision-v0911 .booking-index-page .mobile-list-artist-options{grid-template-columns:minmax(0,1fr);}
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="1"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="1"] .btn,
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="1"] .btn.primary{grid-column:auto;min-width:0;width:100%!important;margin:0;}
}

/* REVISION 0.9.6.8 — one shared column track per desktop result grid. */
@media(min-width:821px){
  body.revision-v0911 .organization-list-head,
  body.revision-v0911 .organization-result-row{grid-template-columns:minmax(0,2fr) 52px minmax(0,1.15fr) minmax(72px,.6fr) minmax(72px,.6fr) minmax(80px,.68fr) 18px;column-gap:clamp(8px,.85vw,14px);padding-left:clamp(12px,1.2vw,16px);padding-right:clamp(12px,1.2vw,16px);box-sizing:border-box;width:100%;}
  body.revision-v0911 .request-context-grid-head,
  body.revision-v0911 .request-context-grid-row{grid-template-columns:28px minmax(0,2fr) 50px minmax(0,1.15fr) minmax(96px,.8fr) minmax(96px,.78fr) minmax(90px,.72fr)!important;column-gap:clamp(8px,.85vw,14px);padding-left:clamp(12px,1.2vw,16px);padding-right:clamp(12px,1.2vw,16px);box-sizing:border-box;width:100%;}
  body.revision-v0911 .lead-grid-page .artist-context-grid-head,
  body.revision-v0911 .lead-grid-page .artist-context-grid-row{grid-template-columns:28px minmax(0,1.75fr) 48px minmax(0,.95fr) minmax(68px,.55fr) minmax(86px,.75fr) minmax(0,.9fr) minmax(92px,.76fr) minmax(96px,.85fr)!important;column-gap:clamp(7px,.75vw,12px);padding-left:clamp(12px,1.2vw,16px);padding-right:clamp(12px,1.2vw,16px);box-sizing:border-box;width:100%;}
  body.revision-v0911 .lead-grid-page .artist-context-grid-head>div:nth-child(7),
  body.revision-v0911 .lead-grid-page .artist-context-grid-row>div:nth-child(7),
  body.revision-v0911 .request-context-grid-head>div:nth-child(7),
  body.revision-v0911 .request-context-grid-row>div:nth-child(7){display:block;}
  body.revision-v0911 .booking-index-page .booking-workspace-head,
  body.revision-v0911 .booking-index-page .booking-workspace-row{grid-template-columns:minmax(0,2fr) 52px minmax(0,1fr) minmax(104px,.76fr) minmax(128px,.95fr) minmax(92px,.68fr);column-gap:clamp(8px,.85vw,14px);padding-left:clamp(12px,1.2vw,16px);padding-right:clamp(12px,1.2vw,16px);box-sizing:border-box;width:100%;}
  body.revision-v0911 .organization-list-head>span:nth-child(2),
  body.revision-v0911 .organization-result-row>.country-flag-grid-cell,
  body.revision-v0911 .request-context-grid-head>div:nth-child(3),
  body.revision-v0911 .request-context-grid-row>div:nth-child(3),
  body.revision-v0911 .lead-grid-page .artist-context-grid-head>div:nth-child(3),
  body.revision-v0911 .lead-grid-page .artist-context-grid-row>div:nth-child(3),
  body.revision-v0911 .booking-index-page .booking-workspace-head>div:nth-child(2),
  body.revision-v0911 .booking-index-page .booking-workspace-row>div:nth-child(2){justify-self:center;text-align:center;}
  body.revision-v0911 .request-context-grid-head>div:last-child,
  body.revision-v0911 .request-context-grid-row>div:last-child,
  body.revision-v0911 .booking-index-page .booking-workspace-head>div:last-child,
  body.revision-v0911 .booking-index-page .booking-workspace-row>div:last-child{justify-self:stretch;text-align:right;}
}

@media(min-width:1025px){
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-footer,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .sidebar-footer{padding-left:8px;padding-right:8px;overflow:hidden;}
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-account-row,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .sidebar-account-row{display:grid;grid-template-columns:1fr;gap:6px;width:100%;justify-items:center;}
  body.revision-v0911 .app-shell.sidebar-collapsed .sidebar-account,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .sidebar-account{display:grid;width:44px;min-width:44px;height:44px;padding:0;place-items:center;}
  body.revision-v0911 .app-shell.sidebar-collapsed .account-settings-link,
  body.revision-v0911 .artist-app-shell.sidebar-collapsed .account-settings-link{width:36px;min-width:36px;max-width:36px;height:36px;margin:0;justify-self:center;}
}

/* REVISION 0.9.6.5 - mobile booking-request wizard containment. */
@media(max-width:820px){
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer{width:auto!important;overflow:hidden;}
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-body{overflow-x:hidden;scrollbar-gutter:auto;}
  body.revision-v0911 .crm-wizard-form,
  body.revision-v0911 .crm-wizard-step,
  body.revision-v0911 .crm-wizard-form .form-grid,
  body.revision-v0911 .crm-wizard-form .form-group:not(.crm-request-date-field),
  body.revision-v0911 .crm-wizard-form .place-search,
  body.revision-v0911 .crm-wizard-form .place-search-row{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .crm-wizard-form .input,
  body.revision-v0911 .crm-wizard-form .select,
  body.revision-v0911 .crm-wizard-form .textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
  body.revision-v0911 .crm-wizard-form .field-label-row{align-items:flex-start;flex-wrap:wrap;gap:5px 10px;min-width:0;}
  body.revision-v0911 .crm-wizard-form .field-label-row .label{flex:1 1 150px;min-width:0;}
  body.revision-v0911 .crm-wizard-form .field-inline-action{flex:0 1 auto;max-width:100%;white-space:normal;text-align:right;}
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="2"],
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="3"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="2"] .btn,
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="3"] .btn{min-width:0;width:100%;margin:0;}
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="2"] [data-request-save],
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="2"] [data-crm-option-next],
  body.revision-v0911 .drawer-backdrop.crm-wizard-open .drawer-foot[data-crm-wizard-step="3"] [data-request-option-submit]{grid-column:1/-1;}
}

@media(max-width:1100px){
  body.revision-v0911 .access-invitation-head{display:none;}
}

/* REVISION 0.9.6.6 - final mobile request wizard overrides. */
@media(max-width:820px){
  body.revision-v0911 .crm-wizard-form .form-group.crm-request-date-field{justify-self:start;width:min(100%,220px);max-width:220px;}
  body.revision-v0911 .crm-wizard-form [data-crm-step="3"]{min-width:0;width:100%;overflow:hidden;}
  body.revision-v0911 .crm-wizard-form [data-crm-step="3"] .booking-night-schedule{width:100%;min-width:0;padding:12px;box-sizing:border-box;overflow:hidden;}
  body.revision-v0911 .crm-wizard-form [data-crm-step="3"] .booking-night-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:11px;width:100%;min-width:0;}
  body.revision-v0911 .crm-wizard-form [data-crm-step="3"] .booking-night-grid>.form-group{grid-column:1;width:100%;min-width:0;}
  body.revision-v0911 .crm-wizard-form [data-crm-step="3"] .booking-night-switch{width:100%;min-width:0;box-sizing:border-box;justify-content:flex-start;}
  body.revision-v0911 .crm-wizard-form [data-crm-step="3"] .booking-night-preview{max-width:100%;overflow-wrap:anywhere;}
  #confirmBackdrop[data-confirm-context="request-delete"] .confirm-copy h2{font-size:20px;line-height:1.25;}
  #confirmBackdrop[data-confirm-context="request-delete"] .confirm-copy p{font-size:14px;line-height:1.5;}
}

/* REVISION 0.9.6.38 — desktop communications inbox */
.communications-workspace>.panel{overflow:hidden}
.communications-workspace .comm-head,
.communications-workspace .comm-row{grid-template-columns:minmax(320px,1.65fr) minmax(170px,.72fr) minmax(230px,.9fr) minmax(250px,auto);gap:22px;padding-left:20px;padding-right:20px}
.communications-workspace .comm-head{min-height:42px;background:var(--surface2);border-color:var(--line)}
.communications-workspace .comm-actions-label{text-align:right}
.communications-workspace .comm-row{min-height:96px;padding-top:14px;padding-bottom:14px;border-color:var(--line);transition:background .14s ease}
.communications-workspace .comm-row:hover{background:var(--surface2)}
.communications-workspace .comm-message,
.communications-workspace .comm-context,
.communications-workspace .comm-delivery{min-width:0}
.communications-workspace .comm-message .table-primary{font-size:13px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.communications-workspace .comm-link-context{margin-top:5px;color:var(--soft);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.communications-workspace .comm-preview{margin-top:5px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.communications-workspace .comm-context{display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.communications-workspace .comm-context .artist-chip-list{max-height:59px;overflow:hidden}
.communications-workspace .comm-muted{color:var(--muted);font-size:12px}
.communications-workspace .comm-delivery{display:flex;flex-direction:column;gap:9px}
.communications-workspace .comm-recipient{max-width:100%;color:var(--text);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.communications-workspace .comm-delivery-meta{display:flex;align-items:center;gap:9px;min-width:0}
.communications-workspace .comm-date{color:var(--muted);font-family:var(--rev-mono);font-size:12px;white-space:nowrap}
.communications-workspace .comm-actions{display:grid;grid-template-columns:repeat(2,minmax(92px,1fr));justify-content:stretch;align-content:center;gap:7px}
.communications-workspace .comm-actions>.btn,
.communications-workspace .comm-actions>form,
.communications-workspace .comm-actions>form>.btn{width:100%;min-width:0}
.communications-workspace .comm-actions>.btn,
.communications-workspace .comm-actions>form>.btn{justify-content:center}

@media(max-width:1180px) and (min-width:821px){
  .communications-workspace .comm-head,
  .communications-workspace .comm-row{grid-template-columns:minmax(270px,1.45fr) minmax(145px,.68fr) minmax(205px,.88fr) minmax(205px,auto);gap:15px;padding-left:16px;padding-right:16px}
  .communications-workspace .comm-actions{grid-template-columns:1fr}
}

@media(max-width:820px){
  .communications-workspace .comm-row{display:block;padding:15px}
  .communications-workspace .comm-row>div{margin-top:13px}
  .communications-workspace .comm-row>.comm-message{margin-top:0}
  .communications-workspace .comm-context,.communications-workspace .comm-delivery{display:flex}
  .communications-workspace .comm-context{gap:8px}
  .communications-workspace .comm-delivery{gap:8px}
  .communications-workspace .comm-context::before,.communications-workspace .comm-delivery::before{content:attr(data-mobile-label);display:block;margin-bottom:1px;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
  .communications-workspace .comm-preview{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .communications-workspace .comm-row>.comm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:13px;border-top:1px solid var(--line)}
  .communications-workspace .comm-row>.comm-actions::before{display:none;content:none}
}

/* REVISION 0.9.7.60 — Bookings index: final column alignment ownership.
   This stylesheet is loaded last, so the result is not dependent on page-specific
   CSS order or inline emergency overrides. Country stays centred and Fee right-aligned. */
body.revision-v0911 .booking-index-page .booking-workspace-head > div,
body.revision-v0911 .booking-index-page .booking-workspace-row > div {
  min-width: 0;
  text-align: left;
}
body.revision-v0911 .booking-index-page .booking-workspace-primary {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: center;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
  text-align: left;
}
body.revision-v0911 .booking-index-page .booking-mobile-title-row {
  width: 100%;
  min-width: 0;
  text-align: left;
}
body.revision-v0911 .booking-index-page .booking-index-title,
body.revision-v0911 .booking-index-page .booking-index-organization,
body.revision-v0911 .booking-index-page .booking-index-venue,
body.revision-v0911 .booking-index-page .booking-index-artist,
body.revision-v0911 .booking-index-page .booking-index-date,
body.revision-v0911 .booking-index-page .booking-index-status {
  justify-self: stretch;
  text-align: left;
}
@media(min-width:821px){
  body.revision-v0911 .booking-index-page .booking-mobile-title-row {
    display: block;
  }
  body.revision-v0911 .booking-index-page .booking-workspace-head > div:nth-child(2),
  body.revision-v0911 .booking-index-page .booking-workspace-row > div:nth-child(2) {
    justify-self: center;
    text-align: center;
  }
  body.revision-v0911 .booking-index-page .booking-workspace-head > div:last-child,
  body.revision-v0911 .booking-index-page .booking-workspace-row > div:last-child {
    justify-self: stretch;
    text-align: right;
  }
}
@media(max-width:820px){
  body.revision-v0911 .booking-index-page .booking-workspace-primary {
    display: block;
    width: 100%;
  }
  body.revision-v0911 .booking-index-page .booking-mobile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  body.revision-v0911 .booking-index-page .booking-mobile-title-row .booking-index-title {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    text-align: left;
  }
  body.revision-v0911 .booking-index-page .booking-index-organization,
  body.revision-v0911 .booking-index-page .booking-index-venue {
    width: 100%;
    text-align: left;
  }
}

/* REVISION 0.9.7.123 — final breakpoint ownership for shared record lists. */
@media(max-width:820px){
  body.revision-v0911 .rev-list-empty{min-height:220px;padding:32px 18px;}
  body.revision-v0911 .rev-list-toolbar{row-gap:9px;}
  body.revision-v0911 .rev-list-pagination{flex-wrap:wrap;row-gap:9px;}
}
@media(max-width:420px){
  body.revision-v0911 .rev-list-empty{min-height:200px;padding:28px 14px;}
  body.revision-v0911 .rev-list-empty-description{max-width:32ch;}
  body.revision-v0911 .rev-list-empty-reset{width:100%;max-width:240px;}
}
