/* Shared analysis entry and scroll-safe dialog for all five profiles. */
#app .compact-home .welcome .home-analysis-link{display:inline-flex;align-items:center;gap:10px;min-height:43px;padding:11px 14px;border:1px solid #bdd8eb;border-radius:12px;background:#edf6fd;color:#226a9f;font-size:12px;line-height:1.4;font-weight:700;text-decoration:none;white-space:normal;box-shadow:0 3px 10px #226a9f06}#app .compact-home .welcome .home-analysis-link svg{width:19px;height:19px;flex-shrink:0}#app .compact-home .welcome .home-analysis-link b{display:grid;place-items:center;width:23px;height:23px;background:#dceefa;border-radius:7px;font-size:16px;margin-left:7px}#app .compact-home .welcome .home-analysis-link:hover{border-color:#3986b6;background:#e4f2fc}
.home-analysis-modal.modal{padding:0!important;max-height:calc(100dvh - 40px);overscroll-behavior-y:contain;scroll-padding-top:85px;border-radius:20px}.analysis-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;position:sticky;top:0;z-index:5;padding:19px 24px;background:var(--white,#fff);border-bottom:1px solid var(--line,#dce7f0);border-radius:20px 20px 0 0}.analysis-dialog-header h2{font-size:21px;margin:0;line-height:1.3;letter-spacing:-.4px}.analysis-dialog-header .modal-close{position:static!important;flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;padding:9px;margin:0;border-radius:11px;box-shadow:none}.analysis-dialog-header .modal-close svg{width:18px;height:18px}.home-analysis{padding:20px 24px 24px;min-width:0}.analysis-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin-bottom:20px}.home-analysis .sales-dashboard-controls{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(100px,1fr);gap:13px 16px;padding:16px;margin:0;border-radius:14px;box-shadow:none;min-width:0}.home-analysis .sales-period-intro{grid-column:1/-1;margin:0;font-size:12px;gap:10px}.home-analysis .sales-period-intro small{font-size:10px;margin-top:3px}.home-analysis .sales-dashboard-controls>label{display:grid;gap:6px;min-width:0;font-size:11px;line-height:1.4;font-weight:600;margin:0;color:var(--muted,#6d8195)}.home-analysis .sales-dashboard-controls>label[hidden]{display:none!important}.home-analysis .sales-dashboard-controls>label[for=salesRate]{grid-column:1/-1}.home-analysis .sales-dashboard-controls select,.home-analysis .sales-dashboard-controls input{width:100%;max-width:none;min-width:0;min-height:40px;margin:0;font-size:13px;line-height:1.4;padding:9px 10px;border-radius:10px;box-sizing:border-box}.analysis-pending-link{display:flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:11px 14px;border:1px solid #c3ddeb;border-radius:11px;background:#eef7fc;color:#246e97;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.analysis-pending-link svg{width:18px;height:18px;flex-shrink:0}.analysis-pending-link strong{display:grid;place-items:center;min-width:24px;height:24px;border-radius:8px;background:#dceef9;padding:0 6px;font-size:12px}.home-analysis .sales-analytics-grid{margin:0 0 18px;gap:16px}.home-analysis .sales-panel{margin:0 0 16px;padding:19px;border-radius:15px;border:1px solid var(--line,#dce7f0);box-shadow:0 3px 13px #163a5d04}.home-analysis .sales-panel-heading{gap:12px;align-items:flex-start;margin-bottom:17px}.home-analysis .sales-panel-heading h2{font-size:18px;line-height:1.4}.home-analysis .sales-panel-heading p{font-size:11px;line-height:1.6}.home-analysis .sales-overline{font-size:9px}.home-analysis .sales-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));min-width:0;gap:7px}.home-analysis[data-months="12"] .sales-chart{grid-template-columns:repeat(12,minmax(0,1fr));min-width:490px}.home-analysis .sales-month{min-width:0;max-width:100%}.home-analysis .sales-bar-track{height:140px}.home-analysis .sales-chart-legend{justify-content:flex-start;font-size:10px!important;gap:9px}.home-analysis .sales-month-detail{flex-wrap:wrap;gap:10px}.home-analysis .sales-month-detail>.btn{margin-left:0}.home-analysis .sales-highlights{gap:9px}.analysis-empty{display:flex;align-items:flex-start;gap:15px;border:1px solid #d8e8f0;border-radius:15px;padding:20px;margin-bottom:18px;background:#f5fafd}.analysis-empty>span{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#e2f1f9;color:#2d83ab}.analysis-empty svg{width:23px;height:23px}.analysis-empty h3{font-size:15px;margin:0 0 6px;line-height:1.5}.analysis-empty p{font-size:12px;line-height:1.7;margin:0;color:var(--muted,#6d8195)}
@media(max-width:760px){#app .compact-home .welcome>.actions{width:100%;justify-content:flex-start}#app .compact-home .welcome .home-analysis-link{justify-content:flex-start;width:100%;padding:11px 14px}#app .compact-home .welcome .home-analysis-link b{margin-left:auto}.home-analysis-modal.modal{width:100%!important;max-height:calc(100dvh - 24px);border-radius:18px}.analysis-dialog-header{padding:16px 17px;gap:12px;border-radius:18px 18px 0 0}.analysis-dialog-header h2{font-size:18px}.analysis-dialog-header .modal-close{flex-basis:34px;width:34px;height:34px}.home-analysis{padding:16px}.analysis-toolbar{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:16px}.home-analysis .sales-dashboard-controls{padding:13px;gap:12px;grid-template-columns:minmax(0,1.45fr) minmax(88px,.8fr)}.home-analysis .sales-period-intro{font-size:11px}.home-analysis .sales-period-intro small{font-size:10px}.analysis-pending-link{justify-self:end;min-height:37px;padding:7px 11px;font-size:11px}.analysis-pending-link strong{min-width:22px;height:22px;font-size:11px}.home-analysis .sales-panel{padding:15px;margin-bottom:14px}.home-analysis .sales-panel-heading{flex-direction:column;gap:10px;margin-bottom:12px}.home-analysis .sales-panel-heading h2{font-size:17px}.home-analysis .sales-chart{gap:5px}.home-analysis .sales-bar-track{height:114px}.home-analysis .sales-month-label{font-size:10px}.home-analysis .sales-bar-value{font-size:9px}.home-analysis .sales-month>small{font-size:9px}.home-analysis .sales-product-list{grid-template-columns:1fr;gap:15px}.home-analysis .sales-month-detail{padding:12px}.home-analysis .sales-highlights strong{font-size:11px}.analysis-empty{padding:16px;gap:12px}.analysis-empty h3{font-size:14px}.analysis-empty p{font-size:11px}}
[data-theme=dark] #app .compact-home .welcome .home-analysis-link{background:#172d45;border-color:#315579;color:#95ccf1}[data-theme=dark] #app .compact-home .welcome .home-analysis-link b{background:#244562}[data-theme=dark] .analysis-dialog-header{background:#111c30;border-color:#2a3d55}[data-theme=dark] .home-analysis .sales-dashboard-controls,[data-theme=dark] .analysis-empty{background:#122338;border-color:#2a435c}[data-theme=dark] .analysis-pending-link{background:#193047;color:#9fd2f1;border-color:#365573}[data-theme=dark] .analysis-pending-link strong{background:#244562}[data-theme=dark] .analysis-empty>span{background:#1c3e57;color:#83c8e8}[data-theme=dark] .home-analysis .sales-panel{background:#111c30;border-color:#2a3d55}
@media(max-width:760px){.home-analysis .sales-dashboard-controls select,.home-analysis .sales-dashboard-controls input{font-size:16px}.analysis-dialog-header .modal-close{flex-basis:42px;width:42px;height:42px}}
/* Analysis and next steps use the same compact cards as the other home actions. */
#app .compact-home .home-action-tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:0}#app .compact-home .home-action-tiles .home-shortcut{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:112px;padding:17px 10px;text-align:center;font-size:12px;line-height:1.4;border-radius:16px}#app .compact-home .home-action-tiles .home-shortcut>span{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:11px}#app .compact-home .home-action-tiles .home-shortcut>strong{max-width:100%;font-weight:650}#app .compact-home .home-action-tiles .home-shortcut>b{display:none}.home-utility-button.utility-analysis{--shortcut:#2876c9}.home-utility-button.utility-pending{--shortcut:#b87537}.home-utility-button.utility-pending.is-clear{--shortcut:#218568}.home-utility-count{position:absolute;right:9px;top:8px;display:inline-flex;align-items:center;justify-content:center;min-width:21px;min-height:20px;padding:2px 6px;border-radius:7px;background:#fff0e1;color:#98551f;font-size:10px;font-weight:750;line-height:1.2}.utility-pending.is-clear .home-utility-count{background:#eaf7ef;color:#237552;font-size:9px}
@media(max-width:760px){#app .compact-home .home-action-tiles{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}#app .compact-home .home-action-tiles .home-shortcut{grid-column:span 2;min-height:91px;padding:15px 8px;font-size:11px;gap:8px}#app .compact-home .home-action-tiles .home-utility-button{grid-column:span 3;min-height:93px}#app .compact-home .home-action-tiles .home-shortcut>span{width:32px;height:32px}.home-utility-count{right:8px;top:7px}}
[data-theme=dark] .home-utility-button.utility-analysis{--shortcut:#75bfea}[data-theme=dark] .home-utility-button.utility-pending{--shortcut:#edb17e}[data-theme=dark] .home-utility-button.utility-pending.is-clear{--shortcut:#69d6a5}[data-theme=dark] .home-utility-count{background:#423123;color:#f2c294}[data-theme=dark] .utility-pending.is-clear .home-utility-count{background:#183d31;color:#80dbb1}
