/* CUEVA Activity Logs Pro v626 */
.activity-pro-page{display:grid;gap:11px;padding:3px 0 36px;color:#17181c}.activity-pro-head{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:9px;align-items:center;padding:2px 1px 5px}.activity-back,.activity-search-toggle{display:grid;width:36px;height:36px;place-items:center;border:1px solid #e8e8eb;border-radius:11px;background:#fff;color:#65676d;font-size:10px}.activity-pro-title{min-width:0}.activity-pro-title>span{display:block;color:#a87909;font-size:8px;font-weight:900;letter-spacing:.13em}.activity-pro-title h2{margin:3px 0 0;color:#15161a;font-size:21px;line-height:1.05;font-weight:850;letter-spacing:-.04em}.activity-pro-title p{margin:4px 0 0;color:#9b9da2;font-size:8.5px}.activity-search-panel{display:grid;grid-template-columns:18px minmax(0,1fr) 28px;align-items:center;min-height:42px;padding:0 8px 0 12px;border:1px solid #e7e7ea;border-radius:12px;background:#fff;color:#a0a2a7}.activity-search-panel[hidden]{display:none!important}.activity-search-panel input{width:100%;height:40px;border:0;outline:0;background:transparent;color:#202126;font:inherit;font-size:9.5px}.activity-search-panel button{display:grid;width:28px;height:28px;place-items:center;border:0;border-radius:8px;background:#f3f3f4;color:#8b8d92;font-size:9px}
.activity-control-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.activity-period-scroll{display:flex;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}.activity-period-scroll::-webkit-scrollbar{display:none}.activity-period-scroll button{flex:0 0 auto;min-height:32px;padding:0 11px;border:1px solid #e7e7e9;border-radius:999px;background:#fff;color:#777980;font-size:8px;font-weight:800}.activity-period-scroll button.active{border-color:#171719;background:#171719;color:#fff}.activity-filter-button{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:0 10px;border:1px solid #e5e5e8;border-radius:10px;background:#fff;color:#55575c;font-size:8px;font-weight:820}.activity-filter-button b{position:absolute;top:-5px;right:-4px;display:grid;min-width:16px;height:16px;place-items:center;padding:0 4px;border-radius:999px;background:#bd8d1f;color:#fff;font-size:6.5px}.activity-filter-button b[hidden]{display:none!important}
.activity-custom-range{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;padding:10px;border:1px solid #e9e9eb;border-radius:13px;background:#fff}.activity-custom-range[hidden]{display:none!important}.activity-custom-range label{display:grid;gap:4px}.activity-custom-range label span{color:#999ba0;font-size:7px;font-weight:750}.activity-custom-range input{min-width:0;height:34px;padding:0 7px;border:1px solid #e6e6e8;border-radius:9px;background:#fafafa;color:#34363a;font:inherit;font-size:8px}.activity-custom-range button{align-self:end;height:34px;padding:0 12px;border:0;border-radius:9px;background:#171719;color:#fff;font-size:8px;font-weight:820}
.activity-stream{overflow:hidden;border:1px solid #e9e9eb;border-radius:16px;background:#fff}.activity-stream-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-bottom:1px solid #f0f0f1}.activity-stream-head>div{display:flex;align-items:baseline;gap:7px;min-width:0}.activity-stream-head strong{color:#28292d;font-size:11px;font-weight:850}.activity-stream-head>div span{color:#a0a2a7;font-size:7.5px;white-space:nowrap}.activity-low-read{display:flex;align-items:center;gap:4px;color:#a1a3a8;font-size:6.8px;white-space:nowrap}.activity-low-read i{color:#b58a24}.activity-timeline{display:grid}.activity-day-group{display:grid}.activity-day-label{display:flex;align-items:center;gap:8px;padding:10px 12px 6px;background:#fbfbfc}.activity-day-label span{color:#9a9ca1;font-size:7px;font-weight:900;letter-spacing:.08em}.activity-day-label i{height:1px;flex:1;background:#eeeeef}.activity-day-events{display:grid}.activity-event{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;width:100%;min-width:0;padding:10px 11px;border:0;border-bottom:1px solid #f1f1f2;background:#fff;color:inherit;text-align:left}.activity-event:last-child{border-bottom:0}.activity-event:active{background:#fafafa}.activity-event-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;font-size:12px}.activity-event-icon.payments{background:#eef8f1;color:#2d8550}.activity-event-icon.sessions{background:#f1f3fb;color:#52699e}.activity-event-icon.bookings{background:#fff6df;color:#a6760d}.activity-event-icon.credit{background:#f8f0fb;color:#8a589d}.activity-event-icon.stock{background:#eef7f7;color:#3e7f80}.activity-event-icon.staff{background:#f5f2ec;color:#7c6a4d}.activity-event-icon.system{background:#f1f1f3;color:#74767c}.activity-event.high-risk .activity-event-icon{background:#fff0ef;color:#b33c35}.activity-event-main{display:grid;min-width:0}.activity-event-title{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;color:#25262a;font-size:9.5px;font-weight:840;text-overflow:ellipsis;white-space:nowrap}.activity-event-title em{flex:0 0 auto;padding:2px 5px;border-radius:999px;background:#fff0ed;color:#b5543a;font-size:5.8px;font-style:normal;font-weight:900;text-transform:uppercase}.activity-event-context{display:-webkit-box;margin-top:3px;overflow:hidden;color:#73767b;font-size:8px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.activity-event-actor{margin-top:4px;overflow:hidden;color:#a0a2a7;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.activity-event-actor strong{color:#77797e;font-weight:800}.activity-event-side{display:grid;grid-template-columns:auto 8px;gap:6px;align-items:center;padding-left:3px;color:#a1a3a8}.activity-event-side time{font-size:6.8px;white-space:nowrap}.activity-event-side i{font-size:6px;color:#c2c4c8}.activity-loading-row{display:flex;align-items:center;justify-content:center;gap:8px;min-height:190px;color:#96989d}.activity-loading-row span{width:8px;height:8px;border-radius:50%;background:#c79b34;animation:activityPulse 1s ease-in-out infinite}.activity-loading-row em{font-size:8px;font-style:normal}@keyframes activityPulse{50%{opacity:.3;transform:scale(.78)}}.activity-empty-state{display:grid;min-height:220px;place-items:center;align-content:center;padding:30px 20px;text-align:center}.activity-empty-state>div{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:#f3f3f4;color:#92949a;font-size:15px}.activity-empty-state.error>div{background:#fff1ef;color:#b24a3e}.activity-empty-state strong{margin-top:9px;color:#55575c;font-size:10px}.activity-empty-state span{max-width:240px;margin-top:4px;color:#a0a2a7;font-size:8px;line-height:1.4}.activity-load-more-wrap{display:grid;justify-items:center;gap:5px;padding:10px 12px 12px;border-top:1px solid #f0f0f1}.activity-load-more-wrap[hidden]{display:none!important}.activity-load-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:36px;border:1px solid #e4e4e6;border-radius:10px;background:#fafafa;color:#4e5055;font:inherit;font-size:8px;font-weight:820}.activity-load-more:disabled{opacity:.55}.activity-load-more-wrap small{color:#b0b1b5;font-size:6.5px}
.activity-sheet{position:fixed;z-index:10020;inset:0}.activity-sheet[hidden]{display:none!important}.activity-sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(13,14,17,.3);opacity:0;transition:opacity .18s ease}.activity-sheet-card{position:absolute;right:0;bottom:0;left:0;max-height:min(78vh,660px);overflow:auto;padding:8px 15px calc(16px + env(safe-area-inset-bottom));border-radius:23px 23px 0 0;background:#fff;box-shadow:0 -15px 45px rgba(0,0,0,.12);transform:translateY(102%);transition:transform .2s cubic-bezier(.22,.72,.28,1)}.activity-sheet.show .activity-sheet-backdrop{opacity:1}.activity-sheet.show .activity-sheet-card{transform:translateY(0)}.activity-sheet-handle{width:38px;height:4px;margin:1px auto 13px;border-radius:999px;background:#d8d8db}.activity-sheet-head{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:10px;align-items:start;padding-bottom:12px;border-bottom:1px solid #eeeeef}.activity-sheet-head span,.activity-detail-heading>span{display:block;color:#a87909;font-size:7px;font-weight:900;letter-spacing:.1em}.activity-sheet-head h3{margin:3px 0 0;color:#202126;font-size:15px;letter-spacing:-.025em}.activity-sheet-head p{margin:3px 0 0;color:#999ba0;font-size:7.5px}.activity-sheet-head>button,.activity-detail-head>button{display:grid;width:32px;height:32px;place-items:center;border:1px solid #e6e6e8;border-radius:10px;background:#fff;color:#707278;font-size:10px}.activity-filter-section{display:grid;gap:8px;padding:13px 0;border-bottom:1px solid #f0f0f1}.activity-filter-section>strong{color:#55575c;font-size:8px}.activity-filter-chips{display:flex;flex-wrap:wrap;gap:6px}.activity-filter-chips button{min-height:30px;padding:0 10px;border:1px solid #e5e5e7;border-radius:999px;background:#fff;color:#77797e;font-size:7.5px;font-weight:800}.activity-filter-chips button.active{border-color:#171719;background:#171719;color:#fff}.activity-actor-select{display:grid;grid-template-columns:18px minmax(0,1fr) 12px;align-items:center;min-height:40px;padding:0 10px;border:1px solid #e6e6e8;border-radius:11px;background:#fafafa;color:#8c8e93}.activity-actor-select select{width:100%;height:38px;border:0;outline:0;background:transparent;color:#414348;font:inherit;font-size:8.5px;appearance:none}.activity-filter-actions{display:grid;grid-template-columns:.75fr 1.25fr;gap:7px;padding-top:13px}.activity-filter-actions button{height:40px;border-radius:11px;font:inherit;font-size:8.5px;font-weight:850}.activity-filter-actions .secondary{border:1px solid #e5e5e7;background:#fff;color:#66686d}.activity-filter-actions .primary{border:0;background:#171719;color:#fff}
.activity-detail-card{max-height:min(82vh,700px)}.activity-detail-head{display:grid;grid-template-columns:42px minmax(0,1fr) 32px;gap:10px;align-items:center;padding-bottom:12px;border-bottom:1px solid #eeeeef}.activity-detail-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;font-size:13px}.activity-detail-icon.payments{background:#eef8f1;color:#2d8550}.activity-detail-icon.sessions{background:#f1f3fb;color:#52699e}.activity-detail-icon.bookings{background:#fff6df;color:#a6760d}.activity-detail-icon.credit{background:#f8f0fb;color:#8a589d}.activity-detail-icon.stock{background:#eef7f7;color:#3e7f80}.activity-detail-icon.staff{background:#f5f2ec;color:#7c6a4d}.activity-detail-icon.system{background:#f1f1f3;color:#74767c}.activity-detail-heading{min-width:0}.activity-detail-heading h3{margin:3px 0 0;overflow:hidden;color:#222328;font-size:13px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.activity-detail-heading p{margin:4px 0 0;color:#999ba0;font-size:7.5px}.activity-detail-body{display:grid}.activity-detail-facts{display:grid}.activity-detail-facts>div{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:10px 1px;border-bottom:1px solid #f1f1f2}.activity-detail-facts span,.activity-detail-note>span,.activity-detail-extra>span{color:#96989d;font-size:7.5px}.activity-detail-facts strong{max-width:67%;color:#303136;font-size:8.5px;font-weight:800;text-align:right;word-break:break-word}.activity-detail-note{padding:11px 1px;border-bottom:1px solid #f1f1f2}.activity-detail-note p{margin:5px 0 0;color:#414348;font-size:8.5px;line-height:1.45}.activity-change-block{padding:12px 0;border-bottom:1px solid #f1f1f2}.activity-change-title span{display:block;color:#a87909;font-size:6.5px;font-weight:900;letter-spacing:.1em}.activity-change-title strong{display:block;margin-top:2px;color:#44464b;font-size:9px}.activity-change-grid{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:5px;align-items:center;margin-top:8px}.activity-change-card{align-self:stretch;padding:9px;border:1px solid #e9e9eb;border-radius:11px;background:#fafafa}.activity-change-card>span{display:block;margin-bottom:6px;color:#999ba0;font-size:6px;font-weight:900;letter-spacing:.08em}.activity-change-card.after{border-color:#e6ddc5;background:#fffdf7}.activity-change-card>div{display:grid;gap:2px;margin-top:5px}.activity-change-card em{color:#a0a2a7;font-size:6.5px;font-style:normal}.activity-change-card strong{overflow:hidden;color:#45474c;font-size:7.5px;text-overflow:ellipsis;white-space:nowrap}.activity-change-card p{margin:0;color:#aaa;font-size:8px}.activity-change-arrow{display:grid;place-items:center;color:#bd8d1f;font-size:8px}.activity-detail-extra{display:grid;gap:0;padding-top:11px}.activity-detail-extra>span{margin-bottom:4px}.activity-detail-extra>div{display:flex;justify-content:space-between;gap:15px;padding:7px 0;border-bottom:1px solid #f4f4f5}.activity-detail-extra em{color:#999ba0;font-size:7px;font-style:normal}.activity-detail-extra strong{max-width:65%;color:#4d4f54;font-size:7.5px;text-align:right}
@media(max-width:370px){.activity-pro-title h2{font-size:19px}.activity-low-read{display:none}.activity-custom-range{grid-template-columns:1fr 1fr}.activity-custom-range button{grid-column:1/-1}.activity-event{grid-template-columns:35px minmax(0,1fr) auto;gap:7px;padding:9px}.activity-event-icon{width:34px;height:34px}.activity-change-grid{grid-template-columns:1fr 16px 1fr}.activity-filter-button span{display:none}.activity-filter-button{width:34px;padding:0}}

/* v627 activity date + importance filters */
.activity-single-date,.activity-custom-range{position:relative}
.activity-single-date{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;margin:0 14px 10px;padding:10px;border:1px solid #ececef;border-radius:12px;background:#fff}
.activity-single-date[hidden]{display:none!important}
.activity-single-date label,.activity-custom-range label{display:grid;gap:4px}
.activity-single-date label>span,.activity-custom-range label>span{color:#8e9095;font-size:6.5px;font-weight:800}
.activity-single-date input,.activity-custom-range input{width:100%;height:34px;box-sizing:border-box;border:1px solid #e4e4e7;border-radius:9px;background:#fafafa;padding:0 9px;color:#3f4146;font:inherit;font-size:8px}
.activity-single-date>button,.activity-custom-range>button{height:34px;padding:0 14px;border:0;border-radius:9px;background:#171719;color:#fff;font:inherit;font-size:8px;font-weight:850}
.activity-custom-range>small{grid-column:1/-1;margin-top:-1px;color:#a0a2a7;font-size:6.3px}
.activity-importance-chips button[data-importance="important"].active{border-color:#a87909;background:#a87909;color:#fff}
.activity-importance-chips button[data-importance="high"].active{border-color:#a94038;background:#a94038;color:#fff}
.activity-event.important-risk .activity-event-icon{box-shadow:inset 0 0 0 1px rgba(174,127,17,.12)}
.activity-event-title em.important{background:#fff6df;color:#9c700d}
.activity-event-title em.high{background:#fff0ed;color:#b0473c}
@media(max-width:370px){.activity-single-date{grid-template-columns:1fr}.activity-single-date>button{width:100%}}


/* v628 backend total + cursor pagination */
.activity-pagination{display:grid;gap:7px;padding:10px 12px 12px;border-top:1px solid #f0f0f1;background:#fff}
.activity-pagination[hidden]{display:none!important}
.activity-pagination-row{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:7px;align-items:center}
.activity-page-nav,.activity-page-numbers button{height:32px;border:1px solid #e4e4e7;border-radius:9px;background:#fff;color:#55575c;font:inherit;font-size:8px;font-weight:850}
.activity-page-nav{display:grid;width:34px;place-items:center}
.activity-page-nav:disabled,.activity-page-numbers button:disabled{opacity:.34}
.activity-page-numbers{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
.activity-page-numbers.busy{pointer-events:none;opacity:.55}
.activity-page-numbers button{min-width:32px;padding:0 8px}
.activity-page-numbers button.active{border-color:#171719;background:#171719;color:#fff}
.activity-page-gap{display:grid;min-width:14px;place-items:center;color:#9fa1a6;font-size:8px;font-weight:800}
.activity-pagination>small{color:#a8aaaf;font-size:6.3px;text-align:center;line-height:1.35}
@media(max-width:370px){.activity-page-numbers{gap:3px}.activity-page-numbers button{min-width:28px;padding:0 6px}.activity-pagination-row{grid-template-columns:32px minmax(0,1fr) 32px}.activity-page-nav{width:32px}}

/* v630: match the shared dashboard shell and keep every page control inside the card. */
.activity-pro-page{min-width:0;gap:16px;padding:12px 0 28px}
.activity-pro-head{grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;padding:0 2px 4px}
.activity-back,.activity-search-toggle{width:44px;height:44px;border-radius:14px;font-size:16px}
.activity-pro-title>span{font-size:10px;letter-spacing:.16em}
.activity-pro-title h2{font-size:26px;line-height:1.12}
.activity-pro-title p{font-size:12px;line-height:1.35}
.activity-control-bar{gap:8px}
.activity-period-scroll button{min-height:38px;padding:0 13px;font-size:11px}
.activity-filter-button{min-height:38px;padding:0 12px;font-size:11px}
.activity-stream{min-width:0;border-radius:19px}
.activity-stream-head{padding:14px}
.activity-stream-head strong{font-size:14px}
.activity-stream-head>div{flex-wrap:wrap;gap:5px 8px}
.activity-stream-head>div span,.activity-low-read{font-size:10px}
.activity-page-nav,.activity-page-numbers button{height:36px;font-size:11px}
.activity-pagination{min-width:0;padding:12px 10px 14px}
.activity-pagination-row{display:flex;gap:6px;min-width:0;justify-content:space-between}
.activity-page-nav{flex:0 0 36px;width:36px}
.activity-page-numbers{flex:1;min-width:0;max-width:100%;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
.activity-page-numbers::-webkit-scrollbar{display:none}
.activity-page-numbers button{flex:0 0 auto;min-width:34px}
.activity-page-gap{flex:0 0 auto}
.activity-pagination>small{font-size:9px}
.activity-empty-state strong{font-size:14px}
.activity-empty-state span{font-size:12px}
.activity-empty-state [data-retry-activity]{margin-top:14px;min-height:40px;padding:0 18px;border:0;border-radius:12px;background:#17181c;color:#fff;font:inherit;font-size:12px;font-weight:800}
@media(max-width:370px){.activity-pro-head{grid-template-columns:40px minmax(0,1fr) 40px}.activity-back,.activity-search-toggle{width:40px;height:40px}.activity-pro-title h2{font-size:23px}.activity-page-nav{flex-basis:32px;width:32px}.activity-page-numbers button{min-width:30px}}

/* v633: compact CUEVA date range, filter sheet and pagination. */
.activity-custom-range{
  display:grid;grid-template-columns:1fr;gap:12px;margin:0;padding:14px;
  border:1px solid #e4e5e8;border-radius:18px;background:#fff;
  box-shadow:0 8px 24px rgba(24,25,28,.035)
}
.activity-range-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.activity-range-heading>span{display:flex;align-items:center;gap:7px;color:#292a2f;font-size:11px;font-weight:850}
.activity-range-heading>span i{color:#b88719}
.activity-range-heading>small{color:#9a9ca2;font-size:9px;white-space:nowrap}
.activity-range-fields{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:end;gap:7px}
.activity-custom-range .activity-range-fields label{display:grid;gap:6px;padding:10px 11px;border:1px solid #e5e6e9;border-radius:13px;background:#f8f8f9}
.activity-custom-range .activity-range-fields label>span{color:#94969c;font-size:8px;font-weight:900;letter-spacing:.09em}
.activity-custom-range .activity-range-fields input{height:28px;padding:0;border:0;background:transparent;color:#25262b;font-size:11px;font-weight:750}
.activity-range-arrow{display:grid;width:28px;height:28px;place-items:center;margin-bottom:11px;border-radius:999px;background:#f2ead8;color:#af7e12;font-size:9px}
.activity-custom-range>button{display:flex;align-items:center;justify-content:space-between;width:100%;height:42px;padding:0 15px;border-radius:12px;background:#17181c;font-size:11px}
.activity-custom-range>button i{font-size:10px}

.activity-sheet-card{max-height:min(83vh,690px);padding:8px 14px calc(14px + env(safe-area-inset-bottom));background:#f7f7f8}
.activity-sheet-handle{margin-bottom:10px}
.activity-sheet-head{grid-template-columns:minmax(0,1fr) 38px;padding:2px 2px 12px;border-bottom:0}
.activity-sheet-head span{font-size:9px;letter-spacing:.15em}
.activity-sheet-head h3{font-size:20px;line-height:1.1}
.activity-sheet-head p{font-size:10px}
.activity-sheet-head>button{width:38px;height:38px;border-radius:12px;background:#fff;font-size:12px}
.activity-filter-section{gap:10px;margin-top:9px;padding:12px;border:1px solid #e6e7e9;border-radius:15px;background:#fff}
.activity-filter-section>strong{display:flex;align-items:center;gap:7px;color:#34353a;font-size:10px}
.activity-filter-section>strong i{display:grid;width:24px;height:24px;place-items:center;border-radius:8px;background:#f5eddc;color:#ae7d13;font-size:9px}
.activity-filter-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.activity-filter-chips button{min-width:0;min-height:36px;padding:0 6px;border-radius:10px;font-size:9px;white-space:nowrap}
#activityCategoryFilters{grid-template-columns:repeat(2,minmax(0,1fr))}
#activityCategoryFilters button{justify-content:center}
.activity-actor-select{min-height:46px;border-radius:12px;background:#f8f8f9}
.activity-actor-select select{height:44px;font-size:11px}
.activity-filter-actions{position:sticky;bottom:calc(-14px - env(safe-area-inset-bottom));z-index:2;grid-template-columns:.7fr 1.3fr;gap:9px;margin:10px -14px -14px;padding:11px 14px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #e6e7e9;background:rgba(255,255,255,.97);backdrop-filter:blur(12px)}
.activity-filter-actions button{height:44px;border-radius:12px;font-size:11px}

.activity-pagination{gap:9px;padding:13px 12px 14px}
.activity-pagination-row{display:flex;width:max-content;max-width:100%;margin:0 auto;align-items:center;justify-content:center;gap:6px;padding:5px;border:1px solid #e5e6e8;border-radius:14px;background:#f7f7f8}
.activity-page-nav{flex:0 0 38px;width:38px;height:38px;border:0;border-radius:10px;background:#fff;box-shadow:0 1px 3px rgba(20,21,24,.07);font-size:12px}
.activity-page-numbers{flex:0 1 auto;max-width:calc(100vw - 150px);justify-content:center;gap:4px;overflow-x:auto}
.activity-page-numbers button{min-width:38px;height:38px;padding:0 9px;border:0;border-radius:10px;background:transparent;font-size:11px}
.activity-page-numbers button.active{background:#17181c;box-shadow:0 3px 9px rgba(23,24,28,.18)}
.activity-page-gap{min-width:20px;font-size:11px}
.activity-pagination>small{font-size:9px;color:#999ba1}
@media(max-width:370px){
  .activity-range-fields{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:5px}
  .activity-range-arrow{width:24px;height:24px}
  .activity-filter-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .activity-page-nav{flex-basis:34px;width:34px;height:34px}
  .activity-page-numbers button{min-width:34px;height:34px}
}

/* v635: polished detail cards and Session History style future-date alert. */
.activity-detail-card{padding-right:14px;padding-left:14px;background:#f7f7f8}
.activity-detail-head{margin:0 -2px;padding:2px 2px 14px}
.activity-detail-body{gap:10px;padding-top:12px}
.activity-detail-actor-card{
  display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;
  padding:12px;border:1px solid #e6e7e9;border-radius:16px;background:#fff;
  box-shadow:0 6px 18px rgba(24,25,28,.035)
}
.activity-detail-avatar{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:#17181c;color:#fff;font-size:14px}
.activity-detail-actor-card>div:nth-child(2){display:grid;gap:3px;min-width:0}
.activity-detail-actor-card span{color:#a1a3a8;font-size:7px;font-weight:900;letter-spacing:.11em}
.activity-detail-actor-card strong{overflow:hidden;color:#24252a;font-size:12px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.activity-detail-actor-card em{padding:6px 9px;border-radius:999px;background:#f5eddc;color:#9d700f;font-size:8px;font-style:normal;font-weight:900}
.activity-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.activity-detail-facts>.activity-detail-fact{
  display:grid;align-content:start;gap:7px;min-width:0;padding:11px;
  border:1px solid #e6e7e9;border-radius:14px;background:#fff
}
.activity-detail-facts>.activity-detail-fact.wide{grid-column:1/-1}
.activity-detail-facts>.activity-detail-fact span{display:flex;align-items:center;gap:6px;color:#97999f;font-size:7.5px;font-weight:800}
.activity-detail-facts>.activity-detail-fact span i{display:grid;width:22px;height:22px;place-items:center;border-radius:7px;background:#f5eddc;color:#aa7a13;font-size:8px}
.activity-detail-facts>.activity-detail-fact strong{
  max-width:none;overflow-wrap:anywhere;color:#303136;font-size:9px;font-weight:820;line-height:1.35;text-align:left
}
.activity-detail-note,.activity-change-block,.activity-detail-extra{padding:12px;border:1px solid #e6e7e9;border-radius:14px;background:#fff}
.activity-detail-note{border-bottom:1px solid #e6e7e9}
.activity-change-block{border-bottom:1px solid #e6e7e9}
.activity-detail-extra{padding-top:12px}

.activity-date-alert{
  position:fixed;top:max(18px,calc(env(safe-area-inset-top) + 12px));left:50%;z-index:2147483210;
  display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px);
  padding:12px 15px;border:1px solid #f0caca;border-radius:14px;background:#fff;
  box-shadow:0 12px 34px rgba(25,28,34,.22);color:#202126;font-size:13px;font-weight:800;
  opacity:0;pointer-events:none;transform:translate(-50%,-12px);
  transition:opacity .18s ease,transform .18s ease
}
.activity-date-alert.show{opacity:1;transform:translate(-50%,0)}
.activity-date-alert-icon{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#fff0f0;color:#c93636;font-size:15px;font-weight:950}
.activity-date-alert-text{line-height:1.25}

/* v636: individual owner/staff filters and useful full-width detail fields. */
.activity-detail-facts{grid-template-columns:1fr}
.activity-detail-facts>.activity-detail-fact{min-height:74px;padding:12px 13px}
.activity-detail-facts>.activity-detail-fact strong{font-size:10px}
.activity-detail-extra>div{padding:10px 0}
.activity-detail-extra>div:last-child{border-bottom:0}

/* v638: keep advanced filters scoped to the selected activity period. */
.activity-control-bar{grid-template-columns:minmax(0,1fr) auto}
.activity-period-scroll{width:auto}
.activity-period-scroll button{flex:0 0 auto}

/* v639: category choices are generated from activity in the selected period. */
#activityCategoryFilters button[hidden]{display:none!important}

/* v640: clean period selector sheet and compact pagination. */
.activity-control-bar{grid-template-columns:minmax(0,1fr) auto;gap:9px}
.activity-period-button{
  display:grid;grid-template-columns:34px minmax(0,1fr) 16px;gap:10px;align-items:center;
  min-width:0;min-height:52px;padding:7px 12px;border:1px solid #e3e4e7;border-radius:15px;
  background:#fff;color:#25262b;text-align:left;box-shadow:0 5px 16px rgba(25,26,29,.025)
}
.activity-period-button-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#f5eddc;color:#ad7c11;font-size:13px}
.activity-period-button-copy{display:grid;gap:2px;min-width:0}
.activity-period-button-copy small{color:#999ba1;font-size:7px;font-weight:900;letter-spacing:.11em}
.activity-period-button-copy strong{overflow:hidden;color:#24252a;font-size:11px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.activity-period-button-arrow{color:#9b9da2;font-size:9px}
.activity-filter-button{min-width:78px;min-height:52px;border-radius:15px;background:#fff}

.activity-period-sheet .activity-sheet-card{max-height:min(86vh,720px)}
.activity-period-options{display:grid;gap:8px;margin-top:10px}
.activity-period-options>button{
  display:grid;grid-template-columns:38px minmax(0,1fr) 28px;gap:11px;align-items:center;
  min-height:62px;padding:9px 11px;border:1px solid #e5e6e9;border-radius:15px;background:#fff;color:#33353a;text-align:left
}
.activity-period-options>button>i{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#f6f6f7;color:#777980;font-size:13px}
.activity-period-options>button>span{display:grid;gap:3px;min-width:0}
.activity-period-options>button strong{font-size:11px;font-weight:850}
.activity-period-options>button small{color:#96989e;font-size:8.5px}
.activity-period-options>button>b{display:grid;width:28px;height:28px;place-items:center;border-radius:9px;background:#f5f5f6;color:#a4a6aa;font-size:9px}
.activity-period-options>button.active{border-color:#dfca94;background:#fffaf0}
.activity-period-options>button.active>i{background:#f5ead0;color:#a7750c}
.activity-period-options>button.active>b{background:#17181c;color:#fff}
.activity-period-date-panel{margin:10px 0 0;padding:12px;border-radius:15px}
.activity-period-date-panel label>span{font-size:8px;letter-spacing:.09em}
.activity-period-date-panel input{height:42px;font-size:11px}
.activity-period-date-panel>button{height:42px;border-radius:11px;font-size:10px}
.activity-period-custom-panel{margin:10px 0 0;padding:12px;border-radius:15px;box-shadow:none}

.activity-pagination-row{gap:3px;padding:4px}
.activity-page-nav{flex-basis:36px;width:36px;height:36px}
.activity-page-numbers{gap:1px;max-width:none;overflow:visible}
.activity-page-numbers button{min-width:31px;width:31px;height:36px;padding:0;border-radius:9px;font-size:10px}
.activity-page-gap{min-width:16px;font-size:10px}
@media(max-width:370px){
  .activity-period-button{grid-template-columns:31px minmax(0,1fr) 12px;padding-right:9px;padding-left:9px}
  .activity-period-button-icon{width:31px;height:31px}
  .activity-filter-button{min-width:66px;padding:0 9px}
  .activity-page-nav{flex-basis:32px;width:32px}
  .activity-page-numbers button{min-width:27px;width:27px}
  .activity-page-gap{min-width:12px}
}

/* v675: Activity Logs uses the Session History canvas and card rhythm. */
#pageContent:has(>.activity-pro-page){padding:0!important;background:#fff!important}
#pageContent:has(>.activity-pro-page)>.activity-pro-page{width:100%;max-width:none;margin:0;padding:18px 16px 110px!important;box-sizing:border-box;background:#fff}
.activity-pro-page,.activity-pro-page *{box-sizing:border-box}
.activity-pro-page{gap:14px}
.activity-pro-head{grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;min-width:0;padding:0 2px 4px}
.activity-back,.activity-search-toggle{width:44px;height:44px;min-height:44px;padding:0;border-radius:14px;font-size:16px;box-shadow:none}
.activity-pro-title>span{font-size:10px;letter-spacing:.16em}
.activity-pro-title h2{margin:3px 0 0;font-size:26px;line-height:1.12;font-weight:900}
.activity-pro-title p{margin:4px 0 0;font-size:12px;font-weight:400;line-height:1.35}
.activity-search-panel{grid-template-columns:18px minmax(0,1fr) 32px;gap:11px;min-height:46px;padding:0 8px 0 13px;border-radius:14px;box-shadow:0 8px 24px rgba(24,25,28,.03)}
.activity-search-panel input{height:44px;padding:0;font-size:11px}
.activity-search-panel button{width:32px;height:32px;padding:0;border-radius:10px;font-size:12px}
.activity-control-bar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
.activity-period-button{grid-template-columns:38px minmax(0,1fr) 20px;gap:10px;min-height:58px;padding:8px 11px;border-radius:16px;box-shadow:0 8px 24px rgba(24,25,28,.035)}
.activity-period-button-icon{width:38px;height:38px;border-radius:12px;font-size:14px}
.activity-period-button-copy small{color:#a87909;font-size:8px;letter-spacing:.13em}
.activity-period-button-copy strong{font-size:12px}
.activity-period-button-copy em{overflow:hidden;color:#999ba0;font-size:8px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.activity-filter-button{min-width:82px;min-height:58px;gap:7px;padding:0 13px;border-radius:16px;font-size:10px;font-weight:850;box-shadow:0 8px 24px rgba(24,25,28,.03)}
.activity-stream{overflow:visible;border:0;border-radius:0;background:transparent}
.activity-stream-head{min-height:46px;align-items:center;padding:4px 2px 11px;border:0}
.activity-stream-head>div{display:grid;gap:3px}
.activity-stream-head strong{font-size:17px;font-weight:900}
.activity-stream-head>div span{font-size:10px}
.activity-low-read{font-size:9px}
.activity-timeline,.activity-day-group,.activity-day-events{display:grid;gap:11px}
.activity-day-group{gap:9px}
.activity-day-group+.activity-day-group{margin-top:8px}
.activity-day-label{justify-content:space-between;gap:10px;padding:7px 2px 2px;background:transparent}
.activity-day-label span{color:#24252a;font-size:15px;font-weight:900;letter-spacing:0}
.activity-day-label small{color:#989aa0;font-size:9px;font-weight:750}
.activity-event{display:grid;grid-template-columns:minmax(0,1fr);gap:11px;min-height:136px;padding:15px 16px;border:1px solid #e2e4e8;border-left:4px solid #60a875;border-radius:20px;background:#fff;box-shadow:0 10px 25px rgba(20,21,24,.05)}
.activity-event.important-risk{border-left-color:#d1a43e}
.activity-event.high-risk{border-left-color:#c9584c}
.activity-event-top{display:flex;align-items:center;gap:9px;min-width:0}
.activity-event-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;font-size:13px}
.activity-event-category{color:#a87909;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.activity-event-top time{margin-left:auto;color:#989aa0;font-size:10px;font-weight:750;white-space:nowrap}
.activity-event-main{gap:5px;min-width:0}
.activity-event-title{flex-wrap:wrap;overflow:visible;color:#25262a;font-size:15px;line-height:1.3;font-weight:900;white-space:normal}
.activity-event-title em{padding:5px 7px;font-size:8px;letter-spacing:.04em}
.activity-event-context{margin:0;color:#72757c;font-size:11px;line-height:1.45}
.activity-event-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid #eceef0;color:#9a9ca2}
.activity-event-actor{margin:0;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.activity-event-actor strong{color:#55575c;font-weight:850}
.activity-event-bottom>i{color:#85878d;font-size:10px}
.activity-pagination{display:grid;justify-items:center;gap:10px;padding:18px 0 35px;border:0}
.activity-pagination-row{max-width:100%;margin:0 auto}
.activity-pagination>small{font-size:10px}
.activity-sheet-card{max-height:min(85dvh,760px);background:#f8f8f9}
.activity-sheet-head{padding:15px 2px 13px}
.activity-sheet-head span{font-size:10px;letter-spacing:.16em}
.activity-sheet-head h3{margin-top:5px;font-size:25px;line-height:1.1}
.activity-sheet-head p{margin-top:5px;font-size:12px}
.activity-sheet-head>button{width:42px;height:42px;font-size:18px}
.activity-filter-section{gap:12px;padding:15px;border-radius:16px}
.activity-filter-section>strong{font-size:12px}
.activity-filter-section>strong i{width:30px;height:30px;font-size:11px}
.activity-filter-chips button{min-height:42px;font-size:10px;border-radius:11px}
.activity-actor-select{min-height:48px}.activity-actor-select select{height:46px;font-size:12px}
.activity-filter-actions button{height:47px;font-size:12px}
@media(max-width:390px){.activity-pro-head{grid-template-columns:40px minmax(0,1fr) 40px;gap:9px}.activity-back,.activity-search-toggle{width:40px;height:40px;min-height:40px}.activity-pro-title h2{font-size:23px}.activity-filter-button{min-width:58px;padding:0 10px}.activity-filter-button span{display:none}.activity-event{padding:13px 14px}.activity-event-title{font-size:14px}}
