/* Shared report surfaces composed from the supplied Figma kit and native controls. */
@layer lunora-grid {
 body.lunora-admin-v3 .rpt-page{--rpt-border:#f1f3f9;--rpt-muted:#8b8d97;--rpt-ink:#45464e;}
 body.lunora-admin-v3 .rpt-page>.page-header{align-items:flex-start;gap:12px;min-height:40px;margin-bottom:12px;flex-wrap:wrap;}
 body.lunora-admin-v3 .rpt-page>.page-header .page-title{font:500 22px/30px Inter,Arial,sans-serif!important;color:#45464e;letter-spacing:0;}
 body.lunora-admin-v3 .rpt-page .rpt-intro{font:400 13px/20px Inter,Arial,sans-serif;color:#737784;max-width:88ch;margin:6px 0 0;}
 body.lunora-admin-v3 .rpt-page .rpt-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#8b8d97;font:400 12px/18px Inter,Arial,sans-serif;margin:0 0 16px;}
 body.lunora-admin-v3 .rpt-page .rpt-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 16px!important;margin:0 0 16px!important;border:0;border-radius:12px!important;background:#fff!important;min-width:0;}
 body.lunora-admin-v3 .rpt-toolbar>form{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;max-width:100%;}
 body.lunora-admin-v3 .rpt-toolbar :is(.v9-period-form,.overview-period-form){align-items:center!important;gap:10px!important;}
 body.lunora-admin-v3 .rpt-toolbar :is(input,select,.lac-select-trigger,.lcal-trigger){max-width:100%;}
 body.lunora-admin-v3 .rpt-toolbar .rpt-report-field{display:flex;align-items:center;gap:10px;flex:none;max-width:100%;font:400 12px/18px Inter,Arial,sans-serif;color:#737784;}
 body.lunora-admin-v3 .rpt-report-field>select{width:232px;max-width:100%;}
 body.lunora-admin-v3 .rpt-page .rpt-back{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
 body.lunora-admin-v3 .rpt-back>.v13-icon{width:16px!important;height:16px!important;flex:0 0 16px;}
 body.lunora-admin-v3 .rpt-content{min-width:0;}
 body.lunora-admin-v3 .rpt-native-store[hidden]{display:none!important;}
 body.lunora-admin-v3 .rpt-metrics:not(.lg-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin-bottom:16px;}
 body.lunora-admin-v3 .rpt-summary-card{min-width:0;border:0!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;}
 body.lunora-admin-v3 .rpt-summary-card :is(.stat-label,.stat-card-label,.lmc-title-content){font:400 14px/20px Inter,Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#8b8d97!important;}
 body.lunora-admin-v3 .rpt-summary-card :is(.stat-val,.stat-card-value,.lmc-value){font:500 20px/30px Inter,Arial,sans-serif!important;color:#45464e!important;letter-spacing:0!important;}
 body.lunora-admin-v3 .rpt-summary-card .rpt-note{margin-top:6px;font-size:11px;line-height:16px;}
 body.lunora-admin-v3 .rpt-card{min-width:0;border:0!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;}
 body.lunora-admin-v3 .rpt-card>.card-header{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:56px;padding:16px 20px;border:0;background:transparent!important;}
 body.lunora-admin-v3 .rpt-card .card-title{font:500 15px/22px Inter,Arial,sans-serif!important;min-width:0;overflow-wrap:anywhere;flex:1 1 auto;color:#45464e;}
 body.lunora-admin-v3 .rpt-card>.card-body{padding:0 20px 20px;min-width:0;min-height:0;}
 body.lunora-admin-v3 .rpt-chart-card>.card-body{display:flex;flex-direction:column;flex:1 1 0;}
 body.lunora-admin-v3 .rpt-plot{position:relative;flex:1 1 0;min-height:140px;min-width:0;}
 body.lunora-admin-v3 .rpt-chart-card :is(.chart-wrap,.chart-wrap-lg,.chart-wrap-xl){height:100%!important;min-height:140px!important;flex:1 1 0;position:relative;}
 body.lunora-admin-v3 #app .rpt-chart-card #retention-grid{flex:1 1 0!important;min-height:0!important;height:auto!important;align-items:stretch!important;}
 body.lunora-admin-v3 #app .rpt-chart-card #retention-grid .ret-bar{height:100%!important;min-height:0!important;gap:6px!important;}
 body.lunora-admin-v3 #app .rpt-chart-card #retention-grid .ret-track{flex:1 1 0!important;min-height:0!important;height:auto!important;}
 body.lunora-admin-v3 #app .rpt-chart-card #retention-grid :is(.ret-label,.ret-pct,.ret-users){flex:0 0 auto!important;line-height:18px!important;}
 body.lunora-admin-v3 #app .rpt-chart-card .rpt-retention-caption{flex:0 0 auto!important;}
 body.lunora-admin-v3 .rpt-heading-icon{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:8px;background:#5570f114;color:#5570f1;}
 body.lunora-admin-v3 .rpt-heading-icon>.v13-icon{width:20px!important;height:20px!important;flex:0 0 20px;}
 body.lunora-admin-v3 .rpt-heading-icon[data-tone=success]{background:#32936f14;color:#32936f;}
 body.lunora-admin-v3 .rpt-heading-icon[data-tone=warm]{background:#ffcc9129;color:#9b6c28;}
 body.lunora-admin-v3 .rpt-card .lct-control{order:3;max-width:100%!important;}
 body.lunora-admin-v3 .rpt-card .lct-button{font-size:12px!important;line-height:18px!important;padding:6px 8px!important;min-height:30px!important;}
 body.lunora-admin-v3 .rpt-card #v6-token-switch{order:4;max-width:100%;margin-left:auto;}
 body.lunora-admin-v3 .rpt-note{color:#8b8d97;font:400 12px/18px Inter,Arial,sans-serif;overflow-wrap:anywhere;}
 body.lunora-admin-v3 .rpt-card>.rpt-note{margin:0;padding:0 20px 14px;flex:none;}
 body.lunora-admin-v3 .rpt-empty{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;color:#8b8d97;font:400 13px/20px Inter,Arial,sans-serif;padding:10px 0;min-height:40px;}
 body.lunora-admin-v3 .rpt-empty strong{font-weight:500;color:#45464e;}
 body.lunora-admin-v3 .rpt-help-card .card-body{font:400 13px/21px Inter,Arial,sans-serif;color:#737784;}
 body.lunora-admin-v3 .rpt-help-card :is(p,ul,ol){margin:0 0 10px;}
 body.lunora-admin-v3 .rpt-help-card :is(p,ul,ol):last-child{margin-bottom:0;}
 body.lunora-admin-v3 .rpt-help-card details>summary{font-weight:500;color:#45464e;cursor:pointer;}
 body.lunora-admin-v3 .rpt-help-card details[open]>summary{margin-bottom:12px;}
 body.lunora-admin-v3 .rpt-inline-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font:400 11px/16px Inter,Arial,sans-serif;color:#8b8d97;}
 body.lunora-admin-v3 .rpt-table-card>.card-body{display:flex;flex-direction:column;gap:10px;}
 body.lunora-admin-v3 .rpt-table-wrap,body.lunora-admin-v3 .rpt-card .scroll-table-wrap{max-width:100%;min-width:0;overflow:auto;border-radius:0;scrollbar-gutter:stable;}
 body.lunora-admin-v3 .rpt-card table{font:400 13px/20px Inter,Arial,sans-serif!important;border-collapse:separate;border-spacing:0;width:100%;color:#54596f;}
 body.lunora-admin-v3 .rpt-card table:not([data-admin-physical-columns='1']){min-width:0!important;}
 body.lunora-admin-v3 .rpt-card table.rpt-wide-table:not([data-admin-physical-columns='1']){min-width:620px!important;}
 body.lunora-admin-v3 .rpt-card table:not([data-admin-physical-columns='1']) :is(th,td){padding:10px!important;border-bottom:1px solid #f1f3f9!important;vertical-align:middle;line-height:20px!important;letter-spacing:0!important;}
 body.lunora-admin-v3 .rpt-card th{font:500 12px/18px Inter,Arial,sans-serif!important;color:#8b8d97!important;background:#fff!important;text-transform:none!important;}
 body.lunora-admin-v3 .rpt-card tbody tr:last-child>td{border-bottom:0!important;}
 body.lunora-admin-v3 .rpt-card tbody tr:hover{background:#fafbfe!important;}
 body.lunora-admin-v3 .rpt-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px;}
 body.lunora-admin-v3 .rpt-table-toolbar input[type=search]{width:260px;max-width:100%;}
 body.lunora-admin-v3 .rpt-section-title{font:500 15px/22px Inter,Arial,sans-serif;color:#45464e;margin:0;}
 body.lunora-admin-v3 .rpt-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;margin:0 0 16px;border-radius:8px;background:#fff7e8;color:#9b6c28;font:400 12px/18px Inter,Arial,sans-serif;}
 body.lunora-admin-v3 .rpt-status[hidden]{display:none!important;}
 @media(max-width:700px){
  body.lunora-admin-v3 #app .rpt-page>.page-header{gap:8px;}
  body.lunora-admin-v3 #app .rpt-page>.page-header>div:first-child:has(.page-title){flex:1 0 100%!important;}
  body.lunora-admin-v3 #app .rpt-page>.page-header>.lg-toolbar{width:auto!important;margin:0 0 0 auto!important;flex:0 0 auto;}
  body.lunora-admin-v3 .rpt-page>.page-header .page-title{font-size:20px!important;line-height:28px!important;}
  body.lunora-admin-v3 .rpt-page .rpt-toolbar{padding:14px!important;align-items:stretch;}
  body.lunora-admin-v3 .rpt-toolbar>.rpt-report-field{width:100%;justify-content:space-between;}
  body.lunora-admin-v3 .rpt-report-field>select{width:auto;flex:1;min-width:0;}
  body.lunora-admin-v3 .rpt-card>.card-header{padding:14px;}
  body.lunora-admin-v3 .rpt-card>.card-body{padding:0 14px 14px;}
  body.lunora-admin-v3 .rpt-card>.rpt-note{padding:0 14px 12px;}
  body.lunora-admin-v3 .rpt-card table:not([data-admin-physical-columns='1']) :is(th,td){padding:10px!important;}
  body.lunora-admin-v3 .rpt-card .lct-control{flex-basis:100%!important;margin-left:0!important;}
 }
}

/* Fixed, responsive operational screens. Only the dashboard owns spatial editing. */
@layer lunora-grid {
 body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.lg-toolbar,.lg-editor,.lg-grip,.lmc-grip,.admin-card-grip,.v8-widget-grip,.dl-drag-handle,.profile-card-grip){display:none!important;}
 body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.card,.profile-card,.rpt-content,.v8-summary-group,.rpt-metrics){min-width:0;max-width:100%;}
 body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.v8-summary-group,.rpt-metrics){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;grid-auto-rows:auto!important;gap:16px!important;align-items:stretch!important;margin:0 0 16px!important;}
 body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.v8-summary-group,.rpt-metrics)>.lmc-card{height:auto!important;min-height:132px!important;max-width:none!important;}
 body.lunora-admin-v3 #app #page-users #users-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;margin-bottom:16px!important;}
 body.lunora-admin-v3 #app #page-users #v3-users-secondary-summary{display:block!important;position:static!important;grid-column:1/-1!important;width:100%!important;min-height:0!important;margin:0 0 16px!important;padding:0!important;border:0!important;background:transparent!important;}
 body.lunora-admin-v3 #app #page-users #v3-users-secondary-summary>summary{display:inline-flex!important;align-items:center;gap:8px;min-height:36px;padding:8px 12px;background:#fff;border-radius:8px;color:#737784;font-size:12px;cursor:pointer;}
 body.lunora-admin-v3 #app #page-users #v3-users-secondary-summary:not([open])>:not(summary){display:none!important;}
 body.lunora-admin-v3 #app #page-users #v3-users-secondary-summary[open]>.v13-disclosure-metrics{margin:12px 0 0!important;}
 body.lunora-admin-v3 #app #page-users .users-layout{gap:16px!important;margin-top:0!important;align-items:start!important;}
 body.lunora-admin-v3 #app #page-users #users-filters-card{margin:0 0 16px!important;position:static!important;}
 body.lunora-admin-v3 #app .rpt-page>.rpt-content{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start;}
 body.lunora-admin-v3 #app .rpt-content>:is(.rpt-metrics,.rpt-table-card,.rpt-help-card){grid-column:1/-1;}
 body.lunora-admin-v3 #app .rpt-content>.rpt-metrics{margin-bottom:0!important;}
 body.lunora-admin-v3 #app #page-overview-details .rpt-chart-card,
 body.lunora-admin-v3 #app #page-analytics-details[data-rpt-layout-key="analytics-ai"] .rpt-chart-card,
 body.lunora-admin-v3 #app #page-analytics-details[data-rpt-layout-key="analytics-usage"] #rpt-native-growth-chart,
 body.lunora-admin-v3 #app #page-marketing #rpt-native-retention-grid{grid-column:1/-1;}
 body.lunora-admin-v3 #app .rpt-content>.rpt-chart-card{display:flex!important;flex-direction:column!important;height:324px!important;min-height:324px!important;margin:0!important;overflow:hidden!important;}
 body.lunora-admin-v3 #app .rpt-content>.rpt-chart-card>.card-body{display:flex!important;flex:1 1 0!important;flex-direction:column!important;min-height:0!important;}
 body.lunora-admin-v3 #app .rpt-content>:is(.rpt-table-card,.rpt-help-card){height:auto!important;min-height:0!important;margin:0!important;}
 body.lunora-admin-v3 #app #page-settings #v8-settings-card{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;gap:16px!important;padding:0!important;background:transparent!important;border:0!important;align-items:start!important;}
 body.lunora-admin-v3 #app #page-settings .v8-settings-group{min-width:0;background:transparent!important;padding:0!important;border:0!important;}
 body.lunora-admin-v3 #app #page-settings .v8-settings-sections{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
 body.lunora-admin-v3 #app #page-settings .v8-settings-group:last-child .v8-settings-sections{grid-template-columns:minmax(0,1fr)!important;}
 body.lunora-admin-v3 #app #page-settings .settings-card-v2{min-width:0;min-height:0!important;height:auto!important;margin:0!important;background:#fff!important;border:0!important;border-radius:12px!important;}
 body.lunora-admin-v3 #app #page-settings :is(.v3-settings-prices,.v3-settings-rub,.v3-settings-selfsleep,.v3-settings-birthday){grid-column:1/-1!important;}
 @media(max-width:1400px){
  body.lunora-admin-v3 #app #page-users #users-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 }
 @media(max-width:1000px){
  body.lunora-admin-v3 #app #page-settings #v8-settings-card{grid-template-columns:minmax(0,1fr)!important;}
 }
 @media(max-width:700px){
  body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.v8-summary-group,.rpt-metrics),
  body.lunora-admin-v3 #app #page-users #users-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.v8-summary-group,.rpt-metrics)>.lmc-card{padding:16px!important;}
  body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.v8-summary-group,.rpt-metrics) .lmc-title-content{font-size:12px!important;line-height:18px!important;}
  body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.v8-summary-group,.rpt-metrics)>.lmc-card:last-child:nth-child(odd){grid-column:1/-1;}
  body.lunora-admin-v3 #app .rpt-page>.rpt-content,
  body.lunora-admin-v3 #app #page-settings .v8-settings-sections{grid-template-columns:minmax(0,1fr)!important;}
  body.lunora-admin-v3 #app .rpt-content>.rpt-chart-card{grid-column:1/-1!important;}
  body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) .page-header{flex-wrap:wrap;gap:10px!important;}
  body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard) :is(.bc-page-grid,.profile-grid,.billing-grid){grid-template-columns:minmax(0,1fr)!important;}
 }
 @media(max-width:420px){
  body.lunora-admin-v3 #app .main>[id^="page-"]:not(#page-dashboard).rpt-page .rpt-metrics{grid-template-columns:minmax(0,1fr)!important;}
  body.lunora-admin-v3 #lull-edit-modal .lull-cover-edit{grid-template-columns:minmax(0,1fr)!important;}
  body.lunora-admin-v3 #lull-edit-modal .lull-cover-controls{min-width:0;max-width:100%;}
  body.lunora-admin-v3 #lull-edit-modal .lull-cover-pick{box-sizing:border-box;max-width:100%!important;white-space:normal;}
 }
}
