/* Shared Wrappy palette, matching the member profile on every route and login. */
:root{background:#f5f5f7;color:#1d1d1f;--green:#515154}
body{background:#f5f5f7;color:#1d1d1f;--green:#515154}
body::before{background:#f5f5f7}
body .brand{color:#1d1d1f}body .brand span{color:#515154}
body #top-actions{background:#ffffff;border-color:#e5e5ea;box-shadow:0 4px 18px #1d1d1f08;backdrop-filter:none;-webkit-backdrop-filter:none}
body .topbar button.ghost,body .topbar select{color:#515154}
body .topbar select{background:#ffffff;border-right-color:#e5e5ea}
body .topbar button.ghost:hover,body .topbar select:hover{background:#f5f5f7;color:#1d1d1f}
body .topbar .nav-current{background:#f5f5f7;color:#515154}
body h1,body h2,body h3,body h4{color:#1d1d1f}
body p,body label,body .muted,body .eyebrow,body .row small,body .album-list-info small{color:#6e6e73}
body .panel,body .row,body .album-list-item,body .photo-card,body .media-item,body .activity-card,body .activity-connection,body .partner-card,body .company-search-dropdown{background:#ffffff;border-color:#e5e5ea;box-shadow:none}
body .row:hover,body .album-list-item:hover{background:#fafafa;border-color:#dcdce1;box-shadow:none}
body .section-title{border-color:#e5e5ea}
body button{color:#515154}
body button.primary,body button[type=submit]{background:#515154;color:#ffffff;border-color:#515154}
body button.primary:hover,body button[type=submit]:hover{background:#515154}
body button.ghost{background:#ffffff;border-color:#dcdce1;color:#515154}
body button.ghost:hover{background:#f5f5f7;border-color:#c7c7cc;color:#1d1d1f}
body input,body select,body textarea{background:#ffffff;border-color:#dcdce1;color:#1d1d1f}
body input:focus,body select:focus,body textarea:focus{outline-color:#515154}
body input[type=checkbox]{accent-color:#515154}
body .member-tabs,body .page-submenu{background:#ffffff;border-color:#e5e5ea;box-shadow:0 3px 14px #1d1d1f06;backdrop-filter:none;-webkit-backdrop-filter:none}
body .page-submenu button,body .page-submenu button.ghost,body .member-tab{background:transparent;color:#515154;border-color:transparent}
body .page-submenu button:hover,body .member-tab:hover{background:#f5f5f7;color:#1d1d1f}
body .page-submenu .nav-current,body .member-tab.nav-current{background:#515154;color:#ffffff}
body .summary,body .story-link,body .album-list-arrow,body .activity-event-link{color:#515154}
body .summary small{color:#6e6e73}
body td,body th{border-color:#e5e5ea}
body th{color:#515154}
body table thead th,body .activity-year-table th{background:#f5f5f7;color:#515154}
body table tbody tr:nth-child(even)>td,body table tbody tr:nth-child(even)>th{background:#fafafa}
body table tbody tr:hover>td,body table tbody tr:hover>th{background:#f5f5f7}
body .album-cover,body .album-cover-empty,body .photo-card img{background:#f5f5f7;color:#6e6e73}
body .tag,body .tag-list .tag{background:#f5f5f7;color:#515154;border-color:#e5e5ea}
body .company-search-selection,body .company-search-all,body .company-search-result:hover{background:#f5f5f7;color:#515154;border-color:#e5e5ea}
body dialog:not(.photo-modal),body .photo-modal-tags,body .excel-import-dialog-header{background:#ffffff;color:#1d1d1f;border-color:#e5e5ea}
body .photo-tag-choice:hover,body .photo-tag-linked{background:#f5f5f7}
body .wrap-panel,body .member-page .wrap-panel{background:#ffffff;border-color:#e5e5ea;box-shadow:none}
body .wrap-panel::after{display:none}
body .wrap-panel h2,body .wrap-panel p,body .wrap-panel .muted,body .wrap-panel .summary{color:#1d1d1f}
body .wrap-panel .summary{background:#fafafa;border-color:#e5e5ea}
body .wrap-panel .summary small{color:#6e6e73}
body .wrap-panel button.ghost{background:#ffffff;color:#515154;border-color:#dcdce1}
body .wrap-cover{background:#f5f5f7;color:#1d1d1f}
body .login{background:#ffffff;border:1px solid #e5e5ea;box-shadow:0 8px 30px #1d1d1f06}
/* Remove the former back-button slot from all fixed page headers. */
body:has(.page-header){--member-header-height:220px}
body .page-header{height:220px;grid-template-rows:minmax(0,1fr) 68px}
body .page-header>.hero,body .page-header>.dashboard-head{grid-row:1}
body .page-header>.member-tabs,body .page-header>.page-submenu,body .page-header>.activity-view-tools,body .page-header>.wrap-controls{grid-row:2}
/* Activation matrix: frozen identity and total, paged activity columns. */
.activation-table-shell{--activation-member-width:236px;--activation-total-width:136px;min-width:0}
.activation-column-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.activation-column-navigation button{flex:none;font-size:12px;min-height:36px;padding:7px 13px;border:1px solid #dcdce1;border-radius:999px;background:#ffffff}
.activation-column-navigation button:disabled{opacity:.4;cursor:default}
.activation-column-range{font-size:12px;color:#6e6e73;text-align:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activation-table-shell .activation-table-wrap{height:var(--activation-fallback-height,50dvh);max-height:none;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable}
.activation-table-shell .activation-table{width:100%;min-width:0;table-layout:fixed}
.activation-table .activation-member-col{width:var(--activation-member-width)}
.activation-table .activation-total-col{width:var(--activation-total-width)}
.activation-table-shell .activation-table th,.activation-table-shell .activation-table td{min-width:0;max-width:none;overflow-wrap:anywhere}
.activation-table-shell .activation-table thead tr:first-child>th:first-child,.activation-table-shell .activation-table tbody th{width:var(--activation-member-width);min-width:0;max-width:none;left:0}
.activation-table-shell .activation-table .activation-fixed-total,.activation-table-shell .activation-table tbody td.activation-table-total{position:sticky;left:var(--activation-member-width);z-index:2;background:#ffffff;box-shadow:3px 0 5px #1d1d1f07}
.activation-table-shell .activation-table .activation-fixed-total{z-index:5;top:0;background:#f5f5f7}
.activation-table-shell .activation-table .activation-groups th,.activation-table-shell .activation-table .activation-column-headings th{background:#f5f5f7;color:#515154}
.activation-table-shell .activation-table .activation-groups th{height:44px}
.activation-table-shell .activation-table thead tr:first-child>th:first-child{background:#f5f5f7}
.activation-table-shell .activation-table tbody tr:nth-child(even)>td.activation-table-total{background:#fafafa}
.activation-table-shell .activation-table tbody tr:hover>td.activation-table-total{background:#f5f5f7}
.activation-table-shell .activation-table-count{max-width:100%}
.activation-content .activation-context{margin-top:6px;margin-bottom:16px}
@media(max-width:650px){.activation-column-navigation{gap:6px}.activation-column-navigation button{font-size:11px;padding:7px 10px}.activation-column-range{font-size:10px}.activation-table-shell .activation-table th,.activation-table-shell .activation-table td{padding:9px 6px}.activation-table-shell .activation-table-name{font-size:12px}.activation-table-shell .activation-table .activation-fixed-total{font-size:9px;letter-spacing:0}.activation-table-shell .activation-table-count{font-size:12px;padding:5px}.activation-table-shell .activation-table .activation-groups th{font-size:9px;letter-spacing:.02em}}

/* Match member-tab breathing room and distinguish group headings from activities. */
.activation-content{padding-top:24px}
.activation-table-shell .activation-table .activation-groups>th,
.activation-table-shell .activation-table thead tr:first-child>th:first-child{
  background:#dcdce1;color:#1d1d1f;font-size:12px;font-weight:750;
  letter-spacing:.055em;border-bottom:2px solid #c7c7cc;
}
.activation-table-shell .activation-table .activation-column-headings>th{
  background:#f5f5f7;color:#515154;font-size:10px;font-weight:600;
}
@media(max-width:600px){.activation-content{padding-top:18px}}
@media(max-width:650px){
  .activation-table-shell .activation-table .activation-groups>th,
  .activation-table-shell .activation-table thead tr:first-child>th:first-child{font-size:10px;letter-spacing:.025em}
}

/* Square geometry throughout, including dialogs, images, controls and login. */
/* Corner geometry is defined by the shared design system. */

/* Main navigation: transparent items with inset separators. */
#top-actions{background:transparent!important;border:0!important;box-shadow:none!important;padding:0;gap:0}
#top-actions>button,#top-actions>select{position:relative;margin:0;background:transparent!important;border:0!important;box-shadow:none!important}
#top-actions>button:not(:first-child)::before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:1px;background:#dcdce1;pointer-events:none}
#top-actions>button.nav-current{font-weight:750;color:#1d1d1f}
#top-actions>button:hover,#top-actions>select:hover{color:#1d1d1f}

/* Compact activity details: more entries per row, with a clear title and value. */
.activation-member-body .activation-activity-group{margin-top:20px}
.activation-member-body .activation-activity-group>h3{font-size:13px;font-weight:750;letter-spacing:.045em;color:#1d1d1f;padding-bottom:8px;border-bottom:1px solid #e5e5ea;margin:0 0 12px}
.activation-member-body .activation-activity-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px}
.activation-member-body .activation-activity{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:14px;min-height:66px;background:#fafafa;border-color:#e5e5ea}
.activation-member-body .activation-activity h4{margin:0;font-size:15px;line-height:1.45;font-weight:650;color:#1d1d1f}
.activation-member-body .activation-activity-meta:empty{display:none}
.activation-member-body .activation-activity-meta:not(:empty){margin-top:7px}
.activation-member-body .activation-activity-value{font-size:18px;font-weight:750;min-width:30px;max-width:80px;padding:3px 6px;line-height:1.4;background:#f5f5f7;color:#1d1d1f}
.activation-member-body .activation-activity-value.is-unknown{font-size:12px;font-weight:500}
.activation-member-body .activation-source-button{display:flex;align-items:center;justify-content:center;margin:0;width:24px;height:28px;font:inherit;font-size:17px!important;font-weight:500;text-decoration:none;color:#6e6e73!important}
.activation-member-body .activation-source-button:hover{color:#1d1d1f!important}
.activation-member-body .activation-source-button:focus-visible{outline:2px solid #515154;outline-offset:2px}

/* Shared custom dropdowns: warm surfaces, compact corners and searchable options. */
.wrappy-select{display:block;position:relative;width:100%;min-width:0;font:inherit}
.wrappy-native-select{display:none!important}
body .wrappy-select-trigger{position:relative;display:flex;align-items:center;width:100%;min-width:0;min-height:42px;padding:10px 32px 10px 12px;background:#ffffff;border:1px solid #dcdce1;color:#1d1d1f;text-align:left;font:inherit;font-weight:500;cursor:pointer}
.wrappy-select-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wrappy-select-trigger::after{content:'';position:absolute;right:13px;top:calc(50% - 4px);width:7px;height:7px;border-right:1.5px solid #6e6e73;border-bottom:1.5px solid #6e6e73;transform:rotate(45deg);border-radius:0!important}
body .wrappy-select-trigger:hover{background:#fafafa;border-color:#c7c7cc}
body .wrappy-select-trigger[aria-expanded=true],body .wrappy-select-trigger:focus-visible{outline:2px solid #8e8e93;outline-offset:1px}
body .wrappy-select-trigger[aria-invalid=true]{outline:2px solid #6e6e73;outline-offset:1px}
body .wrappy-select-trigger:disabled{opacity:.5;cursor:default}
.wrappy-select-popup{position:fixed;z-index:10000;display:flex;flex-direction:column;overflow:hidden;padding:5px;background:#ffffff;border:1px solid #dcdce1;box-shadow:0 12px 35px #1d1d1f24;font:13px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;color:#1d1d1f}
body .wrappy-select-search{flex:none;min-height:36px;margin:0 0 5px;padding:7px 10px;font-size:13px;background:#fafafa;border-color:#e5e5ea}
.wrappy-select-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
body .wrappy-select-option{display:block;width:100%;min-height:36px;padding:9px 12px;border:0;background:transparent;text-align:left;color:#515154;font:inherit;font-weight:500;white-space:normal;overflow-wrap:anywhere}
body .wrappy-select-option:hover,body .wrappy-select-option:focus-visible{background:#f5f5f7;color:#1d1d1f;outline:0}
body .wrappy-select-option[aria-selected=true]{background:#f5f5f7;color:#1d1d1f;font-weight:700}
body .wrappy-select-option:disabled{opacity:.4;cursor:default}
.wrappy-select-group{padding:10px 12px 5px;font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:#6e6e73}
.wrappy-select-empty{padding:14px 12px;margin:0;color:#6e6e73}
body .page-submenu .wrappy-select-trigger{min-height:36px;padding:7px 30px 7px 10px;font-size:12px;background:#ffffff;border:1px solid #dcdce1}
body .page-submenu .wrappy-select{width:140px}
body .page-submenu .activation-control-kind .wrappy-select{width:112px}
body .page-submenu .activation-control-sort .wrappy-select{width:150px}
body #top-actions>.wrappy-select{width:180px;flex:none}
body #top-actions .wrappy-select-trigger{background:transparent!important;border:0;min-height:40px;padding:8px 30px 8px 14px;font-size:13px;font-weight:650}
body .profile-toolbar .wrappy-select{width:90px}
body .profile-toolbar .wrappy-select-trigger{min-height:34px;font-size:12px;padding:6px 28px 6px 9px}
@media(max-width:600px){body #top-actions>.wrappy-select{width:165px}}

/* Fresh, light surfaces with a restrained botanical accent. */
:root,body{--green:#007aff}
body .brand span{color:#007aff}
body button.primary,body button[type=submit]{background:#007aff;border-color:#007aff;color:#fff}
body button.primary:hover,body button[type=submit]:hover{background:#0066cc}
body .page-submenu .nav-current,body .member-tab.nav-current{background:#007aff;color:#fff}
body #top-actions>button.nav-current{color:#007aff}
body .activation-table-count.has-value,body .activation-activity-value.is-positive{background:#eaf3ff;color:#007aff}
body .activation-member-metric.is-total strong{color:#007aff}
body .rating-guide-mark,body .activation-avatar{background:#f0f0f3;border-color:#e5e5ea;color:#007aff}
body .wrappy-select-option[aria-selected=true]{background:#eaf3ff;color:#0066cc}
body .wrappy-select-trigger[aria-expanded=true],body .wrappy-select-trigger:focus-visible{outline-color:#8eb6a7}
body .wrappy-select-popup{border-color:#e5e5ea;box-shadow:0 10px 28px #20392d12}
body .login{box-shadow:0 8px 30px #20392d06}
body .activation-header .activation-view.nav-current,body .sketch-profile .member-tab.nav-current,body .sketch-profile .page-submenu button.nav-current{background:#007aff;color:#fff}
body .sketch-profile .rating-guide-mark{background:#f0f0f3;border-color:#e5e5ea;color:#007aff}

/* Profile activation shares the activation report's data and compact entries. */
.activation-profile-header .activation-profile-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:16px;margin:0 0 8px}
.activation-profile-tools .activation-show-all{margin:0}
.activation-profile-tools>button{font-size:12px}
.activation-content.activation-profile-content{padding-top:0}
.activation-profile-content .activation-member{background:transparent;border:0;box-shadow:none}
.activation-profile-content .activation-member-summary{display:block;padding:16px 0;cursor:default;background:transparent}
.activation-profile-content .activation-member-identity,.activation-profile-content .activation-member-tags,.activation-profile-content .activation-chevron{display:none}
.activation-profile-content .activation-member-metrics{gap:36px;flex-wrap:wrap}
.activation-profile-content .activation-member-metric{font-size:12px}
.activation-profile-content .activation-member-body{border:0;padding:0}

/* Membership directory: quiet typography and compact entries on one clear surface. */
.membership-directory{padding:24px 0 32px}
.membership-directory-surface{padding:28px 32px;background:#fff;border:1px solid #e5e5ea}
.membership-directory-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding-bottom:22px;margin-bottom:4px;border-bottom:1px solid #e5e5ea}
.membership-directory-heading h2{margin:0;font-size:19px;line-height:1.4;font-weight:600;letter-spacing:-.02em}
.membership-directory-heading p{margin:0;font-size:12px;color:#6e6e73;white-space:nowrap}
.membership-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;row-gap:0}
.membership-directory-grid .membership-directory-card{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:120px;padding:22px 12px;border:0;border-bottom:1px solid #e5e5ea;background:transparent;box-shadow:none;text-decoration:none;color:#1d1d1f;transition:background .15s}
.membership-directory-grid .membership-directory-card:hover{background:#f8f8fa;border-color:#e5e5ea;box-shadow:none}
.membership-directory-card:focus-visible{outline:2px solid #007aff;outline-offset:-2px}
.membership-directory-type{display:block;font-size:10px;line-height:1.5;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:#6e6e73;margin-bottom:5px}
.membership-directory-card h3{margin:0;font-size:22px;line-height:1.35;letter-spacing:-.025em;font-weight:600;color:#1d1d1f;overflow-wrap:anywhere}
.membership-directory-details{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;font-size:12px;line-height:1.5;color:#6e6e73;margin-top:10px}
.membership-directory-details>span+span{padding-left:18px;border-left:1px solid #dcdce1}
.membership-directory-header .page-submenu .membership-directory-search{padding:0 5px}
.membership-directory-search input{width:260px;min-height:36px;font-size:12px}
.membership-directory-kind .wrappy-select{width:140px}
.membership-directory-empty{grid-column:1 / -1;padding:30px 12px;font-size:14px;margin:0}
@media(max-width:800px){.membership-directory-surface{padding:22px}.membership-directory-grid{column-gap:24px}.membership-directory-card h3{font-size:20px}}
@media(max-width:600px){.membership-directory{padding-top:18px}.membership-directory-surface{padding:18px}.membership-directory-grid{grid-template-columns:1fr}.membership-directory-heading{padding-bottom:18px}.membership-directory-heading h2{font-size:17px}.membership-directory-grid .membership-directory-card{min-height:110px;padding:18px 8px}.membership-directory-search input{width:175px}}
@media(prefers-reduced-motion:reduce){.membership-directory-grid .membership-directory-card{transition:none}}

/* A clearer page/surface distinction throughout Wrappy. */
:root,body,body:has(#app.sketch-profile),body:has(.activation-header){background:#f5f5f7}
body::before,body:has(#app.sketch-profile)::before{background:#f5f5f7}
body .profile-person,body .profile-company,body .profile-social-card,body .activation-member{border-color:#e5e5ea}
