/* RG-L360-MOBILE-20261111 (owner complaint 11 Nov 2026): the lead / client 360 window on a phone was congested.
   Names cut with "...", header badges overlapping each other, a dark "Share with Team Leader" label floating over the text,
   table headings broken in the middle of a word, the action bar cut off at the right edge, a floating button over the content.
   Presentation only. Every rule below applies ONLY while the 360 window is open on a screen up to 900 px wide: rg-l360-mobile.js puts the
   class "rgml" on <html> then, and removes it when the window closes or the screen gets wider. Desktop is untouched.
   Rollback: remove the one <link> to this file and the one <script> for rg-l360-mobile.js. No data, no handler, no guard is changed. */
@media (max-width: 900px) {
  html.rgml { --rgml-bar: 76px; }

  /* ---------- one scroll: the header scrolls away with the content so the work area gets the whole screen; the tab bar stays pinned ---------- */
  html.rgml body #detail-panel.lead360-on { overflow-x: hidden !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html.rgml body #detail-panel.lead360-on .lead360-root { flex: 0 0 auto; height: auto; min-height: 100%; }
  html.rgml body #detail-panel.lead360-on .lead360-body { display: block; height: auto; overflow: visible !important; }
  html.rgml body #detail-panel.lead360-on .lead360-right { overflow: visible; }

  /* ---------- header: one wrapping flow (avatar, name, badges, status flags), then the Convert button, then place and advisor ---------- */
  html.rgml body #detail-panel.lead360-on .lead360-head { position: relative !important; z-index: 40 !important; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; }
  html.rgml body #detail-panel.lead360-on .lead360-ident { flex: 0 0 auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px; min-width: 0; width: 100%; padding: 0; box-sizing: border-box; }
  html.rgml body #detail-panel.lead360-on .lead360-ident-text,
  html.rgml body #detail-panel.lead360-on .lead360-name-row,
  html.rgml body #detail-panel.lead360-on .lead360-chips,
  html.rgml body #detail-panel.lead360-on .rgpv-hdr { display: contents !important; }
  html.rgml body #detail-panel.lead360-on .lead360-head #dm-av,
  html.rgml body #detail-panel.lead360-on .lead360-head .dm-av { width: 40px !important; height: 40px !important; min-width: 40px; flex: 0 0 40px; font-size: 13px !important; border-radius: 12px !important; margin: 0 4px 0 0; }
  /* the name takes the rest of its line (the close button sits at the right edge), wraps onto a second line, is never cut */
  html.rgml body #detail-panel.lead360-on .lead360-head #dm-name,
  html.rgml body #detail-panel.lead360-on .lead360-head .dm-hname { display: block; flex: 0 0 calc(100% - 40px - 4px - 6px - 54px); width: calc(100% - 40px - 4px - 6px - 54px); max-width: calc(100% - 40px - 4px - 6px - 54px); min-width: 0; margin-right: 54px; box-sizing: border-box; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; word-break: normal; hyphens: none; font-size: 18px !important; line-height: 1.22 !important; }
  /* badges and status flags: same size, one tidy wrapping row; a long id wraps inside its own badge instead of running under its neighbour */
  html.rgml body #detail-panel.lead360-on .lead360-head .lead360-chip,
  html.rgml body #detail-panel.lead360-on .rgpv-hdr > .rgpv-flag,
  html.rgml body #detail-panel.lead360-on .rgpv-hdr > .rgpv-pill { max-width: 100%; min-width: 0; box-sizing: border-box; margin: 0 !important; white-space: normal !important; overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.3; padding: 4px 10px; min-height: 26px; display: inline-flex; align-items: center; flex: 0 1 auto; }
  /* CONVERT CLIENT: a real full-width button in its own row */
  html.rgml body #detail-panel.lead360-on .rgpv-hdr > .rgpv-flag.conv { flex: 1 1 100%; width: 100%; justify-content: center; text-align: center; min-height: 44px !important; font-size: 13px !important; letter-spacing: .02em; border-radius: 12px; padding: 8px 14px !important; }
  html.rgml body #detail-panel.lead360-on .lead360-meta { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; font-size: 12px; min-width: 0; }
  html.rgml body #detail-panel.lead360-on .lead360-meta span { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  html.rgml body #detail-panel.lead360-on .lead360-head .nll-hero-x { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
  html.rgml body #detail-panel.lead360-on .lead360-head .nll-hero-x .nll-prog-hero { margin-left: 0; }
  html.rgml body #detail-panel.lead360-on .lead360-qa [onclick*="closeDetail"] { position: fixed !important; top: calc(4px + env(safe-area-inset-top, 0px)) !important; right: 8px !important; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
  /* once the header has scrolled away, a slim bar keeps the client name and the Close button in view; the tab bar pins right under it */
  html.rgml #rgml-top { display: none; }
  html.rgml.rgml-scrolled #rgml-top { display: flex; position: fixed; left: 0; right: 0; top: 0; z-index: 29; min-height: 52px; box-sizing: border-box; align-items: center; padding: env(safe-area-inset-top, 0px) 62px 0 14px; background: var(--nl-surface, #fff); border-bottom: 1px solid var(--nl-gold-line, rgba(201, 162, 39, .6)); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); color: var(--nl-fg, #0A1628); font: 700 14px/1.2 system-ui, "Segoe UI", Roboto, Arial, sans-serif; overflow-wrap: break-word; word-break: normal; }
  /* dark pages (root, Super Admin): the slim bar is dark too, so the white Close icon stays visible */
  html.rgml.rgml-scrolled:not(.nl-on) #rgml-top, html.rgml.rgml-scrolled.nl-on body.sa-body #rgml-top { background: #0A1628; color: #F5F1E6; }
  html.rgml.rgml-scrolled body #detail-panel.lead360-on .lead360-tabbar { top: calc(52px + env(safe-area-inset-top, 0px)); }
  html.rgml body #detail-panel.lead360-on { scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px)); }

  /* ---------- the in-flow action row (Share with Team Leader, Alerts, monitor pill): normal buttons, two per row ---------- */
  html.rgml body #detail-panel.lead360-on #rgml-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; box-sizing: border-box; }
  html.rgml body #detail-panel.lead360-on #rgml-actions:empty { display: none; }
  html.rgml body #detail-panel.lead360-on #rgml-actions > button,
  html.rgml #rgml-actions > #crmMonSharePill,
  html.rgml #rgml-actions > #crmMonLeadPill {
    position: static !important; inset: auto !important; transform: none !important; z-index: auto !important; float: none !important;
    flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 44px; box-sizing: border-box; margin: 0 !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px !important;
    font: 700 13px/1.25 system-ui, "Segoe UI", Roboto, Arial, sans-serif !important; text-align: center; white-space: normal !important; overflow-wrap: break-word;
    border-radius: 12px !important; box-shadow: none !important; cursor: pointer;
    background: var(--nl-surface2, #fff) !important; color: var(--nl-fg, #0A1628) !important; border: 1px solid var(--nl-gold-line, rgba(201, 162, 39, .7)) !important;
  }
  html.rgml #rgml-actions > #crmMonLeadPill.warn { background: #E9C46A !important; color: #141414 !important; }
  html.rgml #rgml-actions > #crmMonSharePill.off { opacity: .95; }
  html.rgml #rgml-actions > #rgml-hubproxy b { flex: 0 0 auto; white-space: nowrap; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #C0392B; color: #fff; font: 700 11px/20px Arial, sans-serif; text-align: center; }
  html.rgml #rgml-actions > #rgml-hubproxy b[hidden] { display: none; }
  html.rgml #rgml-actions > #rgml-hubproxy.rgml-crit { border-color: #E5484D !important; }

  /* ---------- floating launchers: never over the window content ---------- */
  html.rgml:not(.rgml-hub) #rgHub { visibility: hidden !important; pointer-events: none !important; }
  html.rgml #rgfgDock, html.rgml #hl-wrap, html.rgml #rgitFab, html.rgml #rgftBtn, html.rgml #rgftPanel,
  html.rgml .rgapp-bn, html.rgml .rgapp-install, html.rgml #rwiLaunch, html.rgml .rgwa-launch, html.rgml .rgsc-fab, html.rgml #rgwd-pill, html.rgml #rgfu-pill, html.rgml #rgcol-pill { visibility: hidden !important; pointer-events: none !important; }

  /* ---------- bottom action bar: five equal buttons, never clipped ---------- */
  html.rgml body #detail-panel.lead360-on .lead360-qa { position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; z-index: 60 !important; background: var(--nl-surface, #FFFDF6); border-top: 1px solid var(--nl-gold-line, rgba(201, 162, 39, .55)); box-shadow: 0 -16px 34px rgba(0, 0, 0, .35); order: 99; -webkit-mask-image: none !important; mask-image: none !important; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; overflow: visible !important; scroll-snap-type: none; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  html.rgml body #detail-panel.lead360-on .lead360-qa > * { min-width: 0; flex: none; order: 0 !important; }
  html.rgml body #detail-panel.lead360-on .lead360-qa .lead360-menu-wrap { display: block; position: static; min-width: 0; }
  html.rgml body #detail-panel.lead360-on .lead360-qa .dm-hbtn,
  html.rgml body #detail-panel.lead360-on .lead360-qa .lead360-qbtn { display: flex !important; flex-direction: column !important; align-items: center; justify-content: center; gap: 3px !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 56px !important; padding: 0 2px !important; font-size: 11px !important; white-space: nowrap; overflow: hidden; }
  html.rgml body #detail-panel.lead360-on .lead360-qa .lead360-edit,
  html.rgml body #detail-panel.lead360-on .lead360-qa .lead360-vacb { display: none !important; }
  /* pages without the new-look shell (the root page) have a dark header with white-on-dark buttons: the bar is dark as well */
  html.rgml:not(.nl-on) body #detail-panel.lead360-on .lead360-qa { background: #0A1628; border-top: 1px solid rgba(201, 162, 39, .6); }
  html.rgml body #detail-panel.lead360-on .lead360-qa .lead360-qbtn > i.ti-chevron-down { display: none; }
  html.rgml body #detail-panel.lead360-on .lead360-qa [onclick*="closeDetail"] { grid-column: auto; }
  html.rgml body #detail-panel.lead360-on .lead360-body { padding-bottom: calc(var(--rgml-bar, 76px) + env(safe-area-inset-bottom, 0px) + 16px) !important; }
  html.rgml body #detail-panel.lead360-on .lead360-menu { bottom: calc(var(--rgml-bar, 76px) + env(safe-area-inset-bottom, 0px) + 8px); max-height: calc(100vh - var(--rgml-bar, 76px) - env(safe-area-inset-bottom, 0px) - 20px); max-height: calc(100dvh - var(--rgml-bar, 76px) - env(safe-area-inset-bottom, 0px) - 20px); overflow-y: auto; overscroll-behavior: contain; }

  /* ---------- summary cards: two per row, whole words, nothing cut ---------- */
  html.rgml body #detail-panel.lead360-on .lead360-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 10px 10px 2px; }
  html.rgml body #detail-panel.lead360-on .lead360-cell { flex: none; min-width: 0; box-sizing: border-box; padding: 8px 10px; }
  html.rgml body #detail-panel.lead360-on .lead360-cell-k,
  html.rgml body #detail-panel.lead360-on .lead360-cell-v,
  html.rgml body #detail-panel.lead360-on .lead360-cell-s { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; word-break: normal; }
  html.rgml body #detail-panel.lead360-on .lead360-cell-s { display: block !important; }

  /* ---------- tab bar: whole labels, scrolls sideways with a fade on the side that has more ---------- */
  html.rgml body #detail-panel.lead360-on .lead360-tabbar { overflow: hidden; }
  html.rgml body #detail-panel.lead360-on .lead360-tabs { scroll-snap-type: x proximity; scroll-padding: 0 12px; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
  html.rgml body #detail-panel.lead360-on .lead360-tabs.rgml-at-start { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%); }
  html.rgml body #detail-panel.lead360-on .lead360-tabs.rgml-at-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%); }
  html.rgml body #detail-panel.lead360-on .lead360-tabs.rgml-at-start.rgml-at-end { -webkit-mask-image: none; mask-image: none; }
  html.rgml body #detail-panel.lead360-on .lead360-tabbar .dm-tab { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; min-height: 46px; padding: 0 12px; font-size: 12.5px !important; gap: 5px; }
  html.rgml body #detail-panel.lead360-on .lead360-tabbar .dm-tab i { font-size: 15px; }
  html.rgml body #detail-panel.lead360-on .lead360-more > button { min-height: 46px; min-width: 56px; padding: 0 12px; white-space: nowrap; font-size: 12.5px; }

  /* ---------- status text of the upload boxes (written inline by the page: one line, ellipsis) shows whole ---------- */
  html.rgml body #detail-panel.lead360-on .lead360-panes [id^="tp-stat-"], html.rgml body #detail-panel.lead360-on .lead360-panes [id^="dm-docstat-"] { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; min-width: 0; font-size: 11px !important; line-height: 1.35; }

  /* ---------- tables become stacked cards (label: value); headings are never broken in the middle of a word ---------- */
  html.rgml body #detail-panel.lead360-on .lead360-panes th,
  html.rgml body #detail-panel.lead360-on .lead360-panes td { word-break: normal; overflow-wrap: break-word; hyphens: none; }
  html.rgml body #detail-panel.lead360-on table.rgml-cards { display: block; width: 100% !important; border: 0; border-collapse: separate; }
  html.rgml body #detail-panel.lead360-on table.rgml-cards > thead { display: none; }
  html.rgml body #detail-panel.lead360-on table.rgml-cards > tbody { display: block; }
  html.rgml body #detail-panel.lead360-on table.rgml-cards > tbody > tr { display: block; margin: 0 0 8px; padding: 6px 12px; border: 1px solid rgba(127, 127, 127, .28); border-radius: 12px; background: rgba(127, 127, 127, .05); }
  html.rgml body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td { display: grid; grid-template-columns: minmax(78px, 34%) minmax(0, 1fr); gap: 8px; align-items: start; width: auto !important; padding: 5px 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; background: transparent !important; }
  html.rgml body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td::before { content: attr(data-l); font: 700 10.5px/1.5 system-ui, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; overflow-wrap: break-word; }
  html.rgml body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td[data-l=""]::before { content: none; }
  html.rgml body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td[data-l=""] { grid-template-columns: minmax(0, 1fr); }

  /* a grid cell may shrink below the width of its widest field instead of pushing the screen wider */
  html.rgml body #detail-panel.lead360-on .lead360-panes [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  html.rgml body #detail-panel.lead360-on .lead360-panes [style*="grid-template-columns"] > * { min-width: 0; }
  html.rgml body #detail-panel.lead360-on .lead360-panes input, html.rgml body #detail-panel.lead360-on .lead360-panes select, html.rgml body #detail-panel.lead360-on .lead360-panes textarea { max-width: 100%; box-sizing: border-box; }

  /* the file name of an uploaded document wraps under its buttons instead of being cut with three dots */
  html.rgml body #detail-panel.lead360-on .lead360-panes div:has(> [id^="dm-docstat-"]) { flex-wrap: wrap; }
  html.rgml body #detail-panel.lead360-on .lead360-panes [id^="dm-docstat-"] { flex: 1 1 100% !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; font-size: 11px !important; line-height: 1.35; }

  /* ---------- buttons and fields inside the panes: a comfortable touch size ---------- */
  html.rgml body #detail-panel.lead360-on .lead360-panes button,
  html.rgml body #detail-panel.lead360-on .lead360-panes .dm-btn,
  html.rgml body #detail-panel.lead360-on .lead360-panes .dm-btn-p,
  html.rgml body #detail-panel.lead360-on .lead360-panes .dm-inp,
  html.rgml body #detail-panel.lead360-on .lead360-panes input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  html.rgml body #detail-panel.lead360-on .lead360-panes select { min-height: 44px; }
  html.rgml body #detail-panel.lead360-on .lead360-panes button { min-width: 44px; }
  html.rgml body #detail-panel.lead360-on .lead360-collapse { min-width: 44px !important; min-height: 44px !important; }
  html.rgml body #detail-panel.lead360-on .lead360-panes a.lead360-btn, html.rgml body #detail-panel.lead360-on .lead360-panes a.dm-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
}
@media (max-width: 359px) {
  html.rgml body #detail-panel.lead360-on .lead360-qa { gap: 4px; padding-left: 6px; padding-right: 6px; }
  html.rgml body #detail-panel.lead360-on .lead360-qa .dm-hbtn,
  html.rgml body #detail-panel.lead360-on .lead360-qa .lead360-qbtn { font-size: 10.5px !important; }
}
/* phone held sideways: a slimmer bottom bar so the work area keeps its height */
@media (max-width: 900px) and (max-height: 460px) and (orientation: landscape) {
  html.rgml body #detail-panel.lead360-on .lead360-qa { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  html.rgml body #detail-panel.lead360-on .lead360-qa .dm-hbtn,
  html.rgml body #detail-panel.lead360-on .lead360-qa .lead360-qbtn { height: 44px !important; flex-direction: row; gap: 6px !important; }
  html.rgml.rgml-scrolled #rgml-top { min-height: 44px; }
  html.rgml.rgml-scrolled body #detail-panel.lead360-on .lead360-tabbar { top: calc(44px + env(safe-area-inset-top, 0px)); }
}
@media print { #rgml-actions { display: none !important; } }

/* ==== GENERATED by scripts/l360-mobile/lift-sa.cjs (Super Admin specificity lift): do not edit below ==== */
@media (max-width: 900px) {
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on { overflow-x: hidden !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-root { flex: 0 0 auto; height: auto; min-height: 100%; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-body { display: block; height: auto; overflow: visible !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-right { overflow: visible; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head { position: relative !important; z-index: 40 !important; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-ident { flex: 0 0 auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px; min-width: 0; width: 100%; padding: 0; box-sizing: border-box; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-ident-text,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-name-row,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-chips,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .rgpv-hdr { display: contents !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head #dm-av,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head .dm-av { width: 40px !important; height: 40px !important; min-width: 40px; flex: 0 0 40px; font-size: 13px !important; border-radius: 12px !important; margin: 0 4px 0 0; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head #dm-name,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head .dm-hname { display: block; flex: 0 0 calc(100% - 40px - 4px - 6px - 54px); width: calc(100% - 40px - 4px - 6px - 54px); max-width: calc(100% - 40px - 4px - 6px - 54px); min-width: 0; margin-right: 54px; box-sizing: border-box; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; word-break: normal; hyphens: none; font-size: 18px !important; line-height: 1.22 !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head .lead360-chip,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .rgpv-hdr > .rgpv-flag,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .rgpv-hdr > .rgpv-pill { max-width: 100%; min-width: 0; box-sizing: border-box; margin: 0 !important; white-space: normal !important; overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.3; padding: 4px 10px; min-height: 26px; display: inline-flex; align-items: center; flex: 0 1 auto; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .rgpv-hdr > .rgpv-flag.conv { flex: 1 1 100%; width: 100%; justify-content: center; text-align: center; min-height: 44px !important; font-size: 13px !important; letter-spacing: .02em; border-radius: 12px; padding: 8px 14px !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-meta { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; font-size: 12px; min-width: 0; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-meta span { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head .nll-hero-x { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-head .nll-hero-x .nll-prog-hero { margin-left: 0; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa [onclick*="closeDetail"] { position: fixed !important; top: calc(4px + env(safe-area-inset-top, 0px)) !important; right: 8px !important; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
  html.rgml.rgml-scrolled.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabbar { top: calc(52px + env(safe-area-inset-top, 0px)); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on { scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px)); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on #rgml-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; box-sizing: border-box; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on #rgml-actions:empty { display: none; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on #rgml-actions > button {
    position: static !important; inset: auto !important; transform: none !important; z-index: auto !important; float: none !important;
    flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 44px; box-sizing: border-box; margin: 0 !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px !important;
    font: 700 13px/1.25 system-ui, "Segoe UI", Roboto, Arial, sans-serif !important; text-align: center; white-space: normal !important; overflow-wrap: break-word;
    border-radius: 12px !important; box-shadow: none !important; cursor: pointer;
    background: var(--nl-surface2, #fff) !important; color: var(--nl-fg, #0A1628) !important; border: 1px solid var(--nl-gold-line, rgba(201, 162, 39, .7)) !important;
  }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa { position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; z-index: 60 !important; background: var(--nl-surface, #FFFDF6); border-top: 1px solid var(--nl-gold-line, rgba(201, 162, 39, .55)); box-shadow: 0 -16px 34px rgba(0, 0, 0, .35); order: 99; -webkit-mask-image: none !important; mask-image: none !important; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; overflow: visible !important; scroll-snap-type: none; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa > * { min-width: 0; flex: none; order: 0 !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .lead360-menu-wrap { display: block; position: static; min-width: 0; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .dm-hbtn,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .lead360-qbtn { display: flex !important; flex-direction: column !important; align-items: center; justify-content: center; gap: 3px !important; width: 100% !important; min-width: 0 !important; max-width: none !important; height: 56px !important; padding: 0 2px !important; font-size: 11px !important; white-space: nowrap; overflow: hidden; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .lead360-edit,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .lead360-vacb { display: none !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .lead360-qbtn > i.ti-chevron-down { display: none; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa [onclick*="closeDetail"] { grid-column: auto; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-body { padding-bottom: calc(var(--rgml-bar, 76px) + env(safe-area-inset-bottom, 0px) + 16px) !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-menu { bottom: calc(var(--rgml-bar, 76px) + env(safe-area-inset-bottom, 0px) + 8px); max-height: calc(100vh - var(--rgml-bar, 76px) - env(safe-area-inset-bottom, 0px) - 20px); max-height: calc(100dvh - var(--rgml-bar, 76px) - env(safe-area-inset-bottom, 0px) - 20px); overflow-y: auto; overscroll-behavior: contain; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 10px 10px 2px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-cell { flex: none; min-width: 0; box-sizing: border-box; padding: 8px 10px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-cell-k,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-cell-v,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-cell-s { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; word-break: normal; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-cell-s { display: block !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabbar { overflow: hidden; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabs { scroll-snap-type: x proximity; scroll-padding: 0 12px; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabs.rgml-at-start { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabs.rgml-at-end { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 100%); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabs.rgml-at-start.rgml-at-end { -webkit-mask-image: none; mask-image: none; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabbar .dm-tab { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; min-height: 46px; padding: 0 12px; font-size: 12.5px !important; gap: 5px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabbar .dm-tab i { font-size: 15px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-more > button { min-height: 46px; min-width: 56px; padding: 0 12px; white-space: nowrap; font-size: 12.5px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes [id^="tp-stat-"],
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes [id^="dm-docstat-"] { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; min-width: 0; font-size: 11px !important; line-height: 1.35; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes th,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes td { word-break: normal; overflow-wrap: break-word; hyphens: none; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards { display: block; width: 100% !important; border: 0; border-collapse: separate; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards > thead { display: none; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards > tbody { display: block; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards > tbody > tr { display: block; margin: 0 0 8px; padding: 6px 12px; border: 1px solid rgba(127, 127, 127, .28); border-radius: 12px; background: rgba(127, 127, 127, .05); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td { display: grid; grid-template-columns: minmax(78px, 34%) minmax(0, 1fr); gap: 8px; align-items: start; width: auto !important; padding: 5px 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; background: transparent !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td::before { content: attr(data-l); font: 700 10.5px/1.5 system-ui, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; overflow-wrap: break-word; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td[data-l=""]::before { content: none; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on table.rgml-cards > tbody > tr > td[data-l=""] { grid-template-columns: minmax(0, 1fr); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes [style*="grid-template-columns"] > * { min-width: 0; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes input,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes select,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes textarea { max-width: 100%; box-sizing: border-box; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes div:has(> [id^="dm-docstat-"]) { flex-wrap: wrap; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes [id^="dm-docstat-"] { flex: 1 1 100% !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; font-size: 11px !important; line-height: 1.35; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes button,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes .dm-btn,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes .dm-btn-p,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes .dm-inp,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes select { min-height: 44px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes button { min-width: 44px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-collapse { min-width: 44px !important; min-height: 44px !important; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes a.lead360-btn,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-panes a.dm-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
}
@media (max-width: 359px) {
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa { gap: 4px; padding-left: 6px; padding-right: 6px; }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .dm-hbtn,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .lead360-qbtn { font-size: 10.5px !important; }
}
@media (max-width: 900px) and (max-height: 460px) and (orientation: landscape) {
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .dm-hbtn,
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa .lead360-qbtn { height: 44px !important; flex-direction: row; gap: 6px !important; }
  html.rgml.rgml-scrolled.nl-on body.sa-body #detail-panel.lead360-on .lead360-tabbar { top: calc(44px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 900px) {
  html.rgml.nl-on body.sa-body #detail-panel.lead360-on .lead360-qa { background: #0A1628; border-top: 1px solid rgba(201, 162, 39, .6); }
}
