:root{--dash-surface:#fff;--dash-paper:#f3f8fc;--dash-text:#071d39;--dash-muted:#52657a;--dash-line:#dbe5ef;--dash-accent:#006e91;--dash-cyan:#22d3ee}
:root[data-theme=dark]{--dash-surface:#101f33;--dash-paper:#091627;--dash-text:#edf4fc;--dash-muted:#b9cadd;--dash-line:#30435b;--dash-accent:#67e8f9}
.huma-admin-tabs{display:flex;gap:8px;border-bottom:1px solid var(--dash-line);margin-bottom:24px;padding-bottom:12px}
.huma-admin-tabs button{padding:10px 18px;border:1px solid var(--dash-line);border-radius:6px;background:var(--dash-surface);color:var(--dash-text);cursor:pointer;font-size:14px}
.huma-admin-tabs button[aria-selected=true]{background:var(--dash-text);color:var(--dash-surface)}
.huma-dashboard{color:var(--dash-text);min-width:0}
.huma-dashboard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px}
body .huma-dashboard h2{font-size:26px;letter-spacing:-.6px;line-height:1.3}
body .huma-dashboard h3{font-size:18px;line-height:1.4;letter-spacing:-.3px;margin:0 0 8px;color:var(--dash-text)}
body .huma-page #huma-admin-dashboard p{font-size:13px!important;line-height:1.6!important;color:var(--dash-muted);margin:8px 0 16px}
.huma-dashboard-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-shrink:0;max-width:100%}
.huma-dashboard-tools label{font-size:12px;color:var(--dash-muted)}
.huma-dashboard-tools :is(input,select){border:1px solid var(--dash-line);border-radius:5px;padding:8px;background:var(--dash-surface);color:var(--dash-text);max-width:100%;min-width:0}
.huma-dashboard-tools input{width:200px}
.huma-dashboard-status{min-height:20px}
.huma-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.huma-metric{padding:19px;text-align:left;border:1px solid var(--dash-line);border-radius:8px;background:var(--dash-surface);color:var(--dash-text);display:flex;flex-direction:column;gap:8px;min-width:0}
button.huma-metric{cursor:pointer}button.huma-metric:hover{border-color:var(--dash-accent)}
.huma-metric>span{font-size:12px;color:var(--dash-muted)}.huma-metric strong{font-size:32px;line-height:1.2;font-variant-numeric:tabular-nums}.huma-metric small{font-size:11px;color:var(--dash-muted);font-weight:400}
.huma-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.huma-dashboard-card{background:var(--dash-surface);border:1px solid var(--dash-line);border-radius:8px;padding:22px;min-width:0;margin-bottom:18px}
.huma-dashboard-grid>.huma-dashboard-card{margin-bottom:0}
.huma-dashboard-bars{display:flex;flex-direction:column;gap:12px}
.huma-bar-button{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(30px,1fr) 35px;gap:12px;align-items:center;text-align:left;background:transparent;border:0;padding:6px 0;color:var(--dash-text);font-size:13px;cursor:pointer;width:100%}
.huma-bar-track{height:8px;border-radius:6px;background:var(--dash-paper);overflow:hidden}.huma-bar-fill{height:100%;display:block;background:var(--dash-accent);min-width:0;border-radius:6px}.huma-bar-button strong{text-align:right;font-variant-numeric:tabular-nums}
.huma-trend{display:flex;align-items:flex-end;gap:3px;height:145px;padding:10px 0 0;border-bottom:1px solid var(--dash-line)}
.huma-trend button{height:100%;flex:1;min-width:0;padding:0;border:0;background:transparent;display:flex;align-items:flex-end;justify-content:center;gap:1px;cursor:pointer}
.huma-trend button:hover{background:var(--dash-paper)}.huma-trend-bar{display:block;flex:1;max-width:16px;min-height:2px;background:var(--dash-accent);border-radius:2px 2px 0 0}.huma-trend-bar.is-reply{background:#8098b1}
.huma-chart-key::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px;background:var(--dash-accent)}.huma-chart-key.is-reply::before{background:#8098b1}
.huma-email-summary{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.huma-email-summary span{padding:8px;border:1px solid var(--dash-line);border-radius:5px;font-size:12px}
.huma-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.huma-data-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.55;color:var(--dash-text);text-align:left;min-width:660px}
.huma-data-table th{font-size:11px;color:var(--dash-muted);font-weight:600;border-bottom:1px solid var(--dash-line);padding:12px 10px}
.huma-data-table td{vertical-align:top;padding:13px 10px;border-bottom:1px solid var(--dash-line);overflow-wrap:anywhere;max-width:240px}
.huma-data-table small{display:block;color:var(--dash-muted);font-size:11px;margin-top:4px}
.huma-data-table button{border:0;background:transparent;color:var(--dash-accent);text-align:left;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;font-size:inherit}
.huma-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px;font-size:12px;color:var(--dash-muted)}
.huma-admin-themed{
  --dash-surface:#11162d;--dash-paper:#171d39;--dash-text:#f3f5ff;--dash-muted:#bcc7e6;--dash-line:#344064;--dash-accent:#75e7fc;
}
.huma-admin-themed :is(.huma-dashboard,#huma-inbox-workspace){
  padding:clamp(14px,3vw,28px);border:1px solid var(--dash-line);border-radius:16px;color-scheme:dark;color:var(--dash-text);
  background:radial-gradient(ellipse at 12% 18%,#34318a 0%,transparent 42%),radial-gradient(ellipse at 95% 38%,#2b396c 0%,transparent 48%),#0c1023;
}
.huma-admin-themed .huma-admin-tabs{padding:12px;border:1px solid var(--dash-line);border-radius:12px;background:#141a35}
.huma-admin-themed .huma-admin-tabs button:hover{border-color:#829ad9}
.huma-admin-themed .huma-admin-tabs button[aria-selected=true]{background:linear-gradient(110deg,#334e8e,#613d94);color:#fff;border-color:#9b94e1}
.huma-admin-themed .huma-dashboard-heading{padding:16px;border:1px solid #4a528a;border-radius:12px;background:linear-gradient(115deg,#151d42,#46317a)}
.huma-admin-themed .huma-dashboard :is(h2,h3,h4),.huma-admin-themed #huma-inbox-workspace :is(h2,h3){color:var(--dash-text)}
.huma-admin-themed .huma-dashboard-heading p{color:var(--dash-muted)}
.huma-admin-themed #huma-inbox-workspace :is(.huma-inbox,.huma-message.is-staff,.huma-attachment,.huma-status-controls select,.huma-fields :is(input,textarea),.huma-inbox-filters button[aria-pressed=true]){background:var(--dash-surface);border-color:var(--dash-line);color:var(--dash-text)}
.huma-admin-themed #huma-inbox-workspace :is(.huma-thread-item,.huma-message,.huma-conversation-heading){border-color:var(--dash-line);color:var(--dash-text)}
.huma-admin-themed #huma-inbox-workspace .huma-thread-item:is(:hover,[aria-pressed=true]){background:#26365f}
.huma-admin-themed #huma-inbox-workspace :is(.huma-message p,.huma-message-meta,.huma-message-meta time,.huma-thread-item time,.huma-thread-owner,.huma-thread-topic,.huma-thread-status,.huma-enquiry-reference,.huma-enquiry-id,.huma-list-empty,.huma-inbox-filters button,.huma-fields small){color:var(--dash-muted)}
.huma-admin-themed #huma-investors-rows td{white-space:pre-wrap;overflow-wrap:anywhere}
#huma-access-panel h2{color:var(--dash-text)}
#huma-access-panel .huma-access-header{align-items:center;padding:clamp(16px,3vw,24px);border:1px solid #4a528a;border-radius:12px;background:linear-gradient(115deg,#151d42 0%,#253067 60%,#46317a 100%)}
#huma-access-panel .huma-access-header h2{margin:5px 0 0;font-size:clamp(24px,4vw,36px)}
#huma-access-panel .huma-access-header p{margin:5px 0 0;color:var(--dash-muted)}
.huma-access-kicker{color:#b9eeff;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.huma-admin-themed .huma-dashboard-card{border-radius:12px}
.huma-admin-themed :is(.huma-dashboard,#huma-inbox-workspace) .huma-secondary:not(.huma-data-table button){border-color:var(--dash-line);background:var(--dash-paper);color:var(--dash-text)}
.huma-admin-themed :is(.huma-dashboard,#huma-inbox-workspace) .huma-secondary:disabled{opacity:.5}
.huma-access-overview{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px;margin-bottom:18px}
.huma-access-insight{min-width:0;padding:18px;border:1px solid var(--dash-line);border-radius:12px;background:var(--dash-surface)}
.huma-access-insight.is-metrics{grid-column:1/-1;background:linear-gradient(120deg,#171e43,#11162d 70%)}
.huma-access-insight dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:10px;margin:12px 0}
.huma-access-insight dl>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:4px;padding:11px 12px;border-left:3px solid #41dcfc;background:#191f3b;border-radius:5px}
.huma-access-insight dl>div:nth-child(2){border-color:#a777ff}
.huma-access-insight dl>div:nth-child(3){border-color:#ff70a8}
.huma-access-insight :is(dt,small){color:var(--dash-muted);font-size:12px}
.huma-access-insight dd{margin:0;color:var(--dash-text);font-size:clamp(19px,2.7vw,30px);font-weight:700;font-variant-numeric:tabular-nums}
.huma-access-bars{display:flex;align-items:stretch;gap:clamp(2px,.5vw,8px);height:130px;margin:14px 0 6px;padding:0 5px;list-style:none;background:repeating-linear-gradient(to top,var(--dash-line) 0 1px,transparent 1px 25%);border-bottom:1px solid var(--dash-line)}
.huma-access-bars li{display:flex;flex:1;align-items:flex-end;justify-content:center;min-width:0}
.huma-access-bars li span{width:100%;max-width:34px;border-radius:4px 4px 0 0;background:linear-gradient(#41dcfc,#725ef1)}
.huma-access-dates{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;font-size:11px;color:var(--dash-muted)}
.huma-access-ring{display:grid;place-items:center;width:96px;aspect-ratio:1;margin:10px auto;border-radius:50%;background:var(--dash-paper)}
.huma-access-ring::after{content:"";width:70%;aspect-ratio:1;border-radius:50%;background:var(--dash-surface)}
.huma-access-insight.is-mix ul{display:grid;gap:5px;list-style:none;margin:0;padding:0;font-size:12px}
.huma-access-insight.is-mix li{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:7px}
.huma-access-insight.is-mix li>span:first-child{width:8px;height:8px;border-radius:50%}
@media(max-width:690px){.huma-access-overview{grid-template-columns:minmax(0,1fr)}}
.huma-admin-themed .huma-table-scroll{border:1px solid var(--dash-line);border-radius:6px}
.huma-admin-themed .huma-data-table thead{background:linear-gradient(100deg,#24346a,#392f69)}
.huma-admin-themed .huma-data-table th{color:#eef2ff;font-size:12px;font-weight:700;white-space:nowrap;border-bottom:1px solid #616cac}
.huma-admin-themed .huma-data-table th:first-child{color:#a5ecff;text-align:center}
.huma-admin-themed .huma-data-table td{padding:10px}
.huma-admin-themed .huma-data-table tbody tr:nth-child(even){background:var(--dash-paper)}
.huma-admin-themed .huma-data-table tbody tr:hover{background:color-mix(in srgb,var(--dash-accent) 8%,var(--dash-surface))}
.huma-admin-themed .huma-data-table button{display:block;margin-top:4px}
#huma-access-panel .huma-access-summary{min-width:0}
#huma-access-panel .huma-access-summary :is(th,td):last-child{text-align:right;width:7rem}
.huma-admin-themed .huma-pagination{flex-wrap:wrap;font-variant-numeric:tabular-nums}
.huma-access-legend{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0 0 16px;font-size:12px}
.huma-access-legend li{border-radius:4px;padding:3px 8px}
.huma-access-tone{color:var(--dash-text);background:color-mix(in srgb,var(--access-tone) 17%,var(--dash-surface));font-weight:600}
.huma-access-tone.is-frequent{--access-tone:#dd9814}
.huma-access-tone.is-ip{--access-tone:#5288dc;font-family:ui-monospace,monospace}
.huma-access-tone.is-located{--access-tone:#169e85}
.huma-access-tone.is-pending{--access-tone:#df764c}
.huma-access-tone.is-unknown{--access-tone:#8699af}
.huma-access-tone.is-short{--access-tone:#9ba9d1}
.huma-access-tone.is-medium{--access-tone:#a168db}
.huma-access-tone.is-long{--access-tone:#c64c98}
.huma-access-tone.is-serial{--access-tone:#6088d7;color:#c6f4ff;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.huma-dashboard-recent{display:flex;flex-direction:column;gap:0}
.huma-dashboard-recent button{padding:12px 0;display:flex;flex-direction:column;gap:4px;border:0;border-bottom:1px solid var(--dash-line);background:transparent;text-align:left;color:var(--dash-text);cursor:pointer}
.huma-dashboard-recent button strong{font-size:13px}.huma-dashboard-recent small{font-size:11px;color:var(--dash-muted)}
.huma-admin-inbox-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:var(--dash-paper);border:1px solid var(--dash-line);border-radius:5px;font-size:13px}
.huma-location-profile{border:1px solid var(--dash-line);padding:15px;border-radius:6px;margin-bottom:20px;color:var(--dash-text);background:var(--dash-surface)}
.huma-location-profile summary{cursor:pointer;font-size:14px}.huma-location-profile p{font-size:13px!important;color:var(--dash-muted)}
.huma-location-fields{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap}.huma-location-fields label{display:flex;flex-direction:column;gap:5px;font-size:13px}.huma-location-fields input{padding:9px;border:1px solid var(--dash-line);border-radius:4px;background:var(--dash-surface);color:var(--dash-text);max-width:100%}
@media(max-width:1000px){.huma-dashboard-grid{grid-template-columns:1fr}.huma-dashboard-heading{flex-direction:column}.huma-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.huma-dashboard-card{padding:16px}.huma-metric-grid{gap:10px}.huma-metric{padding:14px}.huma-metric strong{font-size:27px}.huma-dashboard-tools{align-items:flex-start}.huma-dashboard-tools input{width:100%}.huma-bar-button{grid-template-columns:95px minmax(20px,1fr) 30px;gap:8px}.huma-pagination{justify-content:space-between}.huma-location-fields{display:grid;grid-template-columns:1fr}.huma-location-fields label{min-width:0}}

.huma-admin-tabs{flex-wrap:wrap}.huma-intern-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.huma-intern-fields p,#huma-intern-list td{white-space:pre-wrap;overflow-wrap:anywhere}.huma-intern-fields strong{font-size:12px;color:var(--dash-muted)}#huma-intern-detail{margin-top:24px}#huma-business-modules .huma-metric{text-align:left}#huma-intern-search{max-width:100%;min-width:240px}
#huma-analytics-panel p{font-size:13px!important;line-height:1.7;color:var(--dash-muted)}
#huma-analytics-panel .huma-dashboard-tools input[type=checkbox]{width:auto;min-width:0;accent-color:var(--dash-accent)}
#huma-analytics-panel .huma-dashboard-tools label{display:flex;align-items:center;gap:7px}
#huma-accounts-fields{border:0;padding:0;min-width:0}
#huma-role-pages label{display:flex;align-items:center;gap:6px;padding:4px}
#huma-role-pages input[type=checkbox]{width:auto;accent-color:var(--dash-accent)}
#huma-accounts-rows select{max-width:100%;margin:0 8px 6px 0;padding:8px;border:1px solid var(--dash-line);border-radius:5px;background:var(--dash-surface);color:var(--dash-text)}
.huma-menu-settings-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px;align-items:start}
.huma-menu-settings-group{border:1px solid var(--dash-line);border-radius:8px;background:var(--dash-surface);padding:14px 16px 10px;min-width:0}
.huma-menu-settings-group legend{padding:0 6px;color:var(--dash-text);font-weight:700;font-size:14px}
.huma-menu-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 2px;border-bottom:1px solid var(--dash-line);font-size:13px;color:var(--dash-text);cursor:pointer}
.huma-menu-setting:last-child{border-bottom:0}
.huma-menu-setting input{appearance:none;position:relative;width:38px;height:22px;flex:0 0 38px;border:1px solid var(--dash-line);border-radius:999px;background:#b8c2cc;cursor:pointer;transition:background .16s ease}
.huma-menu-setting input:before{content:"";position:absolute;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .16s ease}
.huma-menu-setting input:checked{background:var(--dash-accent);border-color:var(--dash-accent)}
.huma-menu-setting input:checked:before{transform:translateX(16px)}
.huma-menu-setting input:focus-visible{outline:3px solid #56a9d577;outline-offset:2px}
#huma-analytics-pages td:first-child{min-width:180px;overflow-wrap:anywhere}
