/* Scoped to the analytics panel. Existing visitor layout is unchanged. */
#analytics-pro{--ap-red:#c92b35;--ap-ink:#20242c;--ap-muted:#6d7480;color:var(--ap-ink)}.ap-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px;background:linear-gradient(120deg,#fff,#f6f2f0);border:1px solid #e9e2e0;border-radius:20px;margin-bottom:24px}.ap-hero h2{font-size:clamp(24px,3vw,40px);letter-spacing:-1.2px;line-height:1.2;margin:12px 0}.ap-hero p,.ap-note{color:var(--ap-muted);font-size:13px;line-height:1.8}.ap-status{font-size:12px;color:#37634c;background:#edf5ef;border:1px solid #dce9e0;padding:10px 14px;border-radius:30px}.ap-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0}.ap-filter label{font-size:12px;min-width:125px;flex:1}.ap-filter input,.ap-filter select{min-height:42px}.ap-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px}.ap-tabs button{flex-shrink:0;background:white;border:1px solid #e0e3e7;border-radius:30px;padding:10px 16px;color:var(--ap-ink);cursor:pointer}.ap-tabs button.selected{background:var(--ap-ink);color:#fff;border-color:var(--ap-ink)}.ap-toolbar{display:flex;align-items:center;justify-content:space-between;margin:16px 0}.ap-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:20px 0}.ap-stat{border:1px solid #e4e6e9;border-radius:16px;background:#fff;padding:24px;display:flex;flex-direction:column;gap:14px;box-shadow:0 5px 18px #18202d05}.ap-stat span{font-size:13px;color:var(--ap-muted)}.ap-stat strong{font-size:36px;line-height:1.2;letter-spacing:-1px}.ap-stat small{color:var(--ap-muted);font-size:11px;border-top:1px solid #f0f1f3;padding-top:12px}.ap-section svg{width:100%;max-height:300px;background:#fcfcfd;border-radius:12px}.ap-section table{font-size:12px}.ap-section td{max-width:260px;overflow-wrap:anywhere}.ap-empty{text-align:center;color:var(--ap-muted);padding:40px;background:#f8f9fa;border:1px dashed #ddd;border-radius:12px}.ap-funnel-row{position:relative;padding:15px;margin:8px 0;display:flex;justify-content:space-between;gap:8px;background:#faf4f4;border-radius:8px;overflow:hidden}.ap-funnel-row i{position:absolute;left:0;bottom:0;height:3px;background:var(--ap-red)}.ap-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ap-settings fieldset{border:1px solid #e0e3e7;border-radius:12px;padding:20px;margin:16px 0}.ap-settings summary{cursor:pointer;font-weight:700}.ap-heatmap{height:430px;position:relative;overflow:hidden;border:1px solid #e0e3e7;border-radius:12px;background:repeating-linear-gradient(0deg,transparent,transparent 42px,#eee 43px),repeating-linear-gradient(90deg,#fafafa,#fafafa 9.8%,#eee 10%)}.ap-heat-dot{position:absolute;width:38px;height:38px;transform:translate(-25%,-25%);border-radius:50%;background:radial-gradient(circle,#d91527 10%,#f9932280 50%,transparent 75%)}.ap-preferences{position:fixed;left:12px;bottom:10px;z-index:90;border:1px solid #ddd;border-radius:20px;background:white;padding:7px 12px;font-size:10px;color:#555;cursor:pointer}.cookie-choice a{color:inherit;text-decoration:underline}@media(max-width:760px){.ap-hero{padding:22px;flex-direction:column;align-items:start}.ap-filter label{min-width:calc(50% - 12px)}.ap-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ap-stat{padding:16px}.ap-stat strong{font-size:28px}.ap-permissions{grid-template-columns:1fr}.ap-section{padding:16px!important}}

#analytics-pro .ap-section table{min-width:640px}#analytics-pro .ap-section td{word-break:normal;overflow-wrap:normal}#analytics-pro .ap-section td:first-child{overflow-wrap:anywhere;min-width:100px}#analytics-pro .ap-filter>input,#analytics-pro .ap-filter>select{flex:1;min-width:140px}#analytics-pro .table-scroll{overscroll-behavior-x:contain}
