/* Xtream only. Screen layout fixes; no accounting, persistence, or print changes. */
@media screen {
  .primary-topbar .top-brand { justify-content:flex-start; gap:10px; min-width:0; }
  .primary-topbar .top-brand .xtream-logo { width:56px; height:56px; max-width:100%; max-height:100%; flex:0 0 56px; object-fit:contain; margin:0; }
  .primary-topbar .audiocore-name { min-width:0; }
  .primary-topbar .audiocore-name strong,.primary-topbar .audiocore-name small { max-width:100%; }
  .gift-card-workspace { grid-template-columns:minmax(0,1fr); min-width:0; }
  .inventory-workspace { grid-template-columns:minmax(0,1fr); }
  .inventory-workspace > *, .commerce-heading > * { min-width:0; max-width:100%; }
  .invoice-heading-actions { flex-wrap:wrap; }
  .gift-card-workspace > *, .gift-card-grid > *, .gift-card-panel > *, .gift-card-panel label { min-width:0; max-width:100%; }
  .gift-card-panel input,.gift-card-panel select { min-width:0; max-width:100%; }
  .gift-card-table { min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
  .gift-card-panel h2,.gift-card-panel p,.gift-card-panel small { overflow-wrap:anywhere; }
  .inventory-editor-body { grid-template-columns:minmax(0,1fr); min-width:0; }
  .inventory-editor-body > *, .inventory-editor-body label { min-width:0; }
  .inventory-editor-body input,.inventory-editor-body select,.inventory-editor-body textarea { min-width:0; max-width:100%; box-sizing:border-box; }
  .inventory-editor-body small { white-space:normal; overflow-wrap:anywhere; }
  .inventory-editor > footer,.sales-editor > footer { flex-wrap:wrap; flex-shrink:0; }
  .inventory-editor > footer button,.sales-editor > footer button { height:auto; min-height:42px; white-space:normal; line-height:1.3; padding:9px 12px; overflow-wrap:anywhere; }
  .nav-account-menu { max-width:calc(100vw - 24px); }
  .nav-account-menu header span,.nav-account-menu strong { min-width:0; overflow-wrap:anywhere; }
  .kiosk-brand img,.portal-header .brand img { object-fit:contain; max-width:100%; }
  .portal-header .brand { min-width:0; gap:16px; }
  .portal-header .brand img { width:68px; height:68px; flex:0 0 68px; }
  .portal-header .brand > span { min-width:0; }
  .kiosk-brand img { width:100px; height:100px; flex:0 0 100px; }
}
@media screen and (max-width:1320px) {
  .primary-topbar .top-brand .xtream-logo { width:46px; height:46px; flex-basis:46px; }
  .primary-topbar .horizontal-nav { justify-content:flex-start; }
}
@media screen and (max-width:900px) {
  .gift-card-grid { grid-template-columns:minmax(0,1fr); }
}
@media screen and (max-width:600px) {
  .portal-header .brand img { width:54px; height:54px; flex-basis:54px; }
  .kiosk-brand img { width:72px; height:72px; flex-basis:72px; }
  .primary-topbar { grid-template-columns:52px minmax(0,1fr); }
  .primary-topbar .top-brand { width:52px; min-width:0; }
  .primary-topbar .top-brand .audiocore-name,.primary-topbar .top-brand .brand-separator { display:none; }
  .primary-topbar .nav-utilities { min-width:0; gap:4px; }
  .gift-card-form-header { flex-wrap:wrap; align-items:flex-start; gap:12px; }
  .gift-card-lookup > div { flex-wrap:wrap; }
  .gift-card-lookup input { width:100%; flex:1 1 160px; }
  .gift-card-panel > header { flex-wrap:wrap; gap:10px; }
  .inventory-editor > footer,.sales-editor > footer { display:flex; gap:6px; padding:10px; overflow:visible; }
  .inventory-editor > footer button,.sales-editor > footer button { flex:1 1 100px; min-width:0; max-width:100%; }
}

/* Logo sizing: survives asynchronously inserted shared stylesheets. */
@media screen {
 .kiosk-page .kiosk-brand > img { width:100px; height:100px; max-width:100%; max-height:100px; object-fit:contain; flex:0 0 100px; }
 .kiosk-page .kiosk-footer > img { width:80px; height:80px; object-fit:contain; flex:0 0 80px; }
}
@media screen and (max-width:600px) {
 .kiosk-page .kiosk-brand > img { width:72px; height:72px; max-height:72px; flex-basis:72px; }
 .kiosk-page .kiosk-footer > img { width:64px; height:64px; flex-basis:64px; }
}
