/* JAOS V4 · Phase 1. Scoped to the admin shell and Contacts; no document styles. */
@font-face{font-family:'JAOS Cormorant';src:url('/fonts/jaos-v4/cormorant-garamond.ttf') format('truetype');font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:'JAOS Inter';src:url('/fonts/filament/filament/inter/inter-latin-wght-normal-NRMW37G5.woff2') format('woff2');font-weight:100 900;font-display:swap}
html.fi.ja-v4{
 --ja-bg:#090B12;--ja-bg-soft:#0D1018;--ja-sidebar:#0D1018;--ja-topbar:#0D1018;
 --ja-surface:#141922;--ja-surface-soft:#191F29;--ja-surface-hover:#1D2430;--ja-surface-elevated:#191F29;--ja-surface-sunken:#10141D;
 --ja-text:#F5F1E8;--ja-text-soft:#DDDAD3;--ja-muted:#9CA3B3;--ja-subtle:#9CA3B3;
 --ja-border:#2A303B;--ja-border-subtle:#242A35;--ja-border-strong:#414A59;
 --ja-gold:#C9A45C;--ja-gold-light:#E5C77B;--ja-gold-dark:#AA8745;--ja-gold-soft:rgba(201,164,92,.09);--ja-gold-border:rgba(201,164,92,.38);--ja-border-gold:var(--ja-gold-border);--ja-on-gold:#151109;
 --ja-gold-gradient:linear-gradient(110deg,#E5C77B,#C9A45C);--ja-halo-a:none;--ja-halo-b:none;
 --ja-radius-md:9px;--ja-radius-lg:14px;--ja-radius-xl:18px;--ja-shadow:0 8px 32px #0002;
 --ja-font-serif:'JAOS Cormorant',Georgia,serif;--ja-font-sans:'JAOS Inter',Inter,system-ui,sans-serif;
 --jaos-primary-rgb:201,164,92;--ja-focus-ring:0 0 0 3px #C9A45C40;
 --ja-row-height:4.25rem;--ja-page-padding:2.25rem;--ja-content-max-width:1600px;
 color-scheme:dark;
}
html.fi.ja-v4 body.fi-body{background:#090B12!important;background-image:none!important;font-family:var(--ja-font-sans)!important}
html.fi.ja-v4 .fi-sidebar{background:#0D1018!important;border-right:1px solid #2A303B!important;width:232px}
html.fi.ja-v4 .fi-sidebar-header{height:72px!important;min-height:72px;background:#0D1018!important;padding-inline:24px!important}
html.fi.ja-v4 .fi-sidebar-header .fi-logo{filter:grayscale(1) brightness(1.7)}
html.fi.ja-v4 .fi-sidebar-nav{padding:22px 12px!important;gap:22px!important}
html.fi.ja-v4 .fi-sidebar-group{margin-bottom:0!important;gap:8px!important}
html.fi.ja-v4 .fi-sidebar-group-label{color:#9CA3B3!important;font-size:10px!important;letter-spacing:.14em!important;font-weight:600!important}
html.fi.ja-v4 .fi-sidebar-item{margin-block:2px!important;border-radius:8px!important}
html.fi.ja-v4 .fi-sidebar-item-btn{min-height:39px!important;padding:8px 12px!important;gap:12px!important}
html.fi.ja-v4 .fi-sidebar-item-label{font-size:12px!important;font-weight:450!important;color:#B8BECA!important}
html.fi.ja-v4 .fi-sidebar-item-icon{width:18px!important;height:18px!important;color:#8A93A5!important}
html.fi.ja-v4 .fi-sidebar-item.fi-active{background:#C9A45C12!important;border-color:#C9A45C36!important;box-shadow:inset 2px 0 #C9A45C!important}
html.fi.ja-v4 .fi-sidebar-item.fi-active :is(.fi-sidebar-item-label,.fi-sidebar-item-icon){color:#E5C77B!important}
html.fi.ja-v4 .fi-topbar{background:#0D1018!important;border-bottom:1px solid #2A303B!important;box-shadow:none!important}
html.fi.ja-v4 .fi-topbar nav{min-height:72px!important;height:72px!important;padding-inline:24px!important;gap:16px!important}
html.fi.ja-v4 .fi-topbar .fi-logo{display:none}
.ja-v4-workspace{display:flex;align-items:center;gap:12px;white-space:nowrap;color:var(--ja-text);font-size:12px;letter-spacing:.03em}
.ja-v4-workspace__monogram{width:30px;height:30px;display:grid;place-items:center;font:600 24px var(--ja-font-serif);color:var(--ja-gold-light);border:1px solid var(--ja-gold-border);border-radius:8px}
.ja-v4-workspace__divider{padding:0 14px;color:#4D5564}
.ja-v4-workspace__caption{color:var(--ja-muted);font-weight:400}
html.fi.ja-v4 .fi-global-search-field .fi-input-wrp{background:#141922!important;border-color:#2A303B!important;border-radius:9px!important;box-shadow:none!important}
html.fi.ja-v4 .fi-global-search-field{max-width:300px}
html.fi.ja-v4 .fi-btn.fi-color-primary{background:var(--ja-gold-gradient)!important;border:1px solid #E5C77B80!important;color:#151109!important;box-shadow:0 4px 16px #0002!important;font-weight:650!important}
html.fi.ja-v4 :is(button,a,input,select,textarea):focus-visible{outline:2px solid #E5C77B!important;outline-offset:3px}
html.fi.ja-v4 .fi-dropdown-panel{background:#191F29!important;border:1px solid #2A303B!important;border-radius:12px!important;box-shadow:0 16px 48px #0006!important}
html.fi.ja-v4 :is(.fi-modal-window,.fi-no-notification){background:#141922!important;border:1px solid #2A303B!important}
/* Contacts: retain native Filament actions, column manager, pagination and forms. */
html.fi.ja-v4 .ja-contacts-page .fi-main{padding:32px 36px!important;max-width:1600px!important;width:100%!important}
html.fi.ja-v4 .ja-contacts-page .fi-page-header-main-ctn{gap:28px!important}
html.fi.ja-v4 .ja-contacts-page .fi-page-main{gap:0!important}
.ja-v4-page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0}
.ja-v4-eyebrow{font-size:10px;font-weight:600;line-height:1.4;letter-spacing:.2em;text-transform:uppercase;color:var(--ja-gold);margin:0 0 9px}
.ja-v4-page-header h1{font-family:var(--ja-font-serif);font-size:52px;font-weight:500;line-height:1;margin:0;color:var(--ja-text);letter-spacing:-.025em}
.ja-v4-description{font-size:13px;line-height:1.6;color:var(--ja-muted);margin:12px 0 0}
.ja-v4-page-header__actions .fi-btn{min-height:42px!important;padding:10px 17px!important;font-size:12px!important}
html.fi.ja-v4 .ja-contacts{display:flex;flex-direction:column;gap:0!important;width:100%;min-width:0}
.ja-v4-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:32px}
.ja-v4-stat{appearance:none;display:flex;flex-direction:column;text-align:left;min-width:0;background:linear-gradient(120deg,#191F29,#141922);border:1px solid #2A303B;border-radius:12px;padding:19px 20px 15px;cursor:pointer;transition:border-color .15s,transform .15s}
.ja-v4-stat:hover{border-color:#C9A45C80;transform:translateY(-2px)}
.ja-v4-stat.is-active{border-color:#C9A45C70;background:linear-gradient(120deg,#C9A45C10,#141922)}
.ja-v4-stat__top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#B3BAC7;font-size:11px;font-weight:500;line-height:1.5}
.ja-v4-stat__icon{height:18px;width:18px;color:#C9A45C;flex:none}
.ja-v4-stat__value{font-size:34px;font-weight:500;line-height:1.2;letter-spacing:-.04em;color:#F5F1E8;margin:15px 0 14px;font-variant-numeric:tabular-nums}
.ja-v4-stat__bottom{display:flex;justify-content:space-between;gap:5px;padding-top:11px;border-top:1px solid #2A303B;color:#9CA3B3;font-size:10px;line-height:1.6}
.ja-v4-stat__bottom>span{color:#C9A45C;font-size:14px;line-height:1}
.ja-v4-directory-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:16px}
.ja-v4-directory-heading h2{font-family:var(--ja-font-serif);font-size:26px;font-weight:500;line-height:1.15;color:#F5F1E8;margin:0 0 6px}
.ja-v4-directory-heading p{font-size:11px;line-height:1.5;color:#9CA3B3;margin:0}
.ja-v4-directory-count{color:#9CA3B3;font-size:11px;border:1px solid #2A303B;border-radius:6px;padding:6px 9px;white-space:nowrap}
html.fi.ja-v4 .ja-contacts__toolbar{padding:0!important;margin:0 0 16px!important;min-height:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.fi.ja-v4 .ja-toolbar__filters{display:flex;flex-wrap:wrap;gap:6px}
html.fi.ja-v4 .ja-filter-chip{min-height:38px!important;border:1px solid transparent!important;border-radius:7px!important;padding:8px 13px!important;color:#9CA3B3!important;background:transparent!important;font:500 12px/1.4 var(--ja-font-sans)!important;gap:9px!important}
html.fi.ja-v4 .ja-filter-chip.is-active{color:#E5C77B!important;background:#C9A45C12!important;border-color:#C9A45C38!important}
html.fi.ja-v4 .ja-filter-chip__count{color:inherit!important;background:#FFFFFF09!important;border-radius:4px;padding:1px 5px;font-size:10px}
html.fi.ja-v4 .ja-contacts__table{min-width:0;width:100%}
html.fi.ja-v4 .ja-contacts__table .fi-ta-ctn{border:1px solid #2A303B!important;border-radius:12px!important;background:#141922!important;box-shadow:none!important;overflow:hidden!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-header-toolbar{padding:14px 16px!important;background:#141922!important;border-bottom:1px solid #2A303B!important;gap:12px!important;flex-wrap:wrap}
html.fi.ja-v4 .ja-contacts__table .fi-ta-search-field{max-width:340px!important;min-width:180px;flex:1 1 240px!important}
html.fi.ja-v4 .ja-contacts__table .fi-input-wrp{background:#10141D!important;border:1px solid #2A303B!important;border-radius:8px!important;box-shadow:none!important;min-height:40px}
html.fi.ja-v4 .ja-contacts__table .fi-ta-content-ctn{overflow-x:auto!important;width:100%;max-width:100%;scrollbar-width:thin;scrollbar-color:#434B5A #141922}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table{display:table!important;table-layout:fixed!important;min-width:1020px!important;width:100%!important;border-collapse:collapse!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table thead{display:table-header-group!important;background:#10141D!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table tbody{display:table-row-group!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table tr{display:table-row!important;height:auto!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(td,th){display:table-cell!important;vertical-align:middle!important;padding:0 12px!important;border-bottom:1px solid #242A35!important;width:auto;min-width:0!important;max-width:none!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table th{height:42px!important;font:500 10px/1.4 var(--ja-font-sans)!important;letter-spacing:.06em!important;color:#9CA3B3!important;background:#10141D!important;text-transform:uppercase}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table td{height:72px!important;background:#141922!important;color:#DDDAD3!important;font-size:12px!important;white-space:nowrap!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-row:hover td{background:#1A202A!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-cell :is(.fi-ta-text,.fi-ta-text-item,.fi-ta-text-item-label){padding-block:0!important;min-height:0!important;white-space:nowrap!important;font-size:12px!important;overflow:hidden;text-overflow:ellipsis;line-height:1.5!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-cell-label{display:none!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-selection-cell{width:40px!important;padding-inline:12px!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(.fi-ta-header-cell-display-name,.fi-ta-cell-display-name){width:26%!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(.fi-ta-header-cell-telephone,.fi-ta-cell-telephone){width:13%!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(.fi-ta-header-cell-email,.fi-ta-cell-email){width:18%!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(.fi-ta-header-cell-last-contact-at,.fi-ta-cell-last-contact-at){width:12%!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(.fi-ta-header-cell-latest-event,.fi-ta-cell-latest-event){width:16%!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(.fi-ta-header-cell-contact-status,.fi-ta-cell-contact-status){width:11%!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table :is(.fi-ta-actions-cell,th:last-child){width:48px!important}
.ja-v4-identity{display:flex;align-items:center;gap:12px;min-width:0}
.ja-v4-avatar{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#C9A45C20,#C9A45C09);border:1px solid #C9A45C26;display:grid;place-items:center;color:#E5C77B;flex:none;font-size:11px;font-weight:600;letter-spacing:.02em}
html.fi.ja-v4 .ja-contact-cell{display:flex!important;flex-direction:column;gap:4px;min-width:0}
html.fi.ja-v4 .ja-contact-cell__name{font-size:12px!important;line-height:1.4!important;font-weight:550!important;color:#F5F1E8!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
html.fi.ja-v4 .ja-contact-cell__meta{font-size:10px!important;line-height:1.4!important;color:#9CA3B3!important}
html.fi.ja-v4 .ja-contacts__table .ja-status-badge{font-size:10px!important;white-space:nowrap}
html.fi.ja-v4 .ja-contacts__table .fi-pagination{padding:14px 16px!important;background:#141922!important;border-top:1px solid #2A303B!important;font-size:11px!important}
html.fi.ja-v4 .ja-contacts__table :is(.fi-icon-btn,.fi-dropdown-trigger button){min-width:40px;min-height:40px}
@media(min-width:1024px){html.fi.ja-v4 .fi-main-ctn{margin-inline-start:232px!important}html.fi.ja-v4 .fi-body:not(.fi-sidebar-open) .fi-main-ctn{margin-inline-start:0!important}}
@media(max-width:1199px){html.fi.ja-v4 .ja-contacts-page .fi-main{padding:26px 24px!important}.ja-v4-stats{gap:12px}.ja-v4-stat{padding:16px}.ja-v4-workspace__caption{display:none}}
@media(max-width:1023px){html.fi.ja-v4 .fi-sidebar{width:264px}html.fi.ja-v4 .ja-contacts-page .fi-main{padding:24px!important}.ja-v4-stats{gap:12px}.ja-v4-page-header h1{font-size:46px}html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-cell-display-name{position:sticky;left:0;z-index:1;box-shadow:5px 0 12px #0002}html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-cell-display-name{width:260px!important}}
@media(max-width:640px){html.fi.ja-v4{--ja-page-padding:16px}html.fi.ja-v4 .fi-topbar nav{height:60px!important;min-height:60px!important;padding-inline:12px!important;gap:10px!important}.ja-v4-workspace{font-size:11px;gap:8px}.ja-v4-workspace__divider{display:none}.ja-v4-workspace__monogram{width:26px;height:26px}html.fi.ja-v4 .fi-global-search-field{max-width:140px}.ja-v4-page-header{align-items:flex-start;flex-wrap:wrap;gap:18px}.ja-v4-page-header h1{font-size:44px}.ja-v4-description{font-size:12px;margin-top:10px}.ja-v4-page-header__actions{width:100%}.ja-v4-page-header__actions .fi-ac{width:100%}.ja-v4-page-header__actions .fi-btn{width:100%;justify-content:center;min-height:44px!important}html.fi.ja-v4 .ja-contacts-page .fi-main{padding:22px 16px!important}html.fi.ja-v4 .ja-contacts-page .fi-page-header-main-ctn{gap:24px!important}.ja-v4-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:26px}.ja-v4-stat{padding:14px 13px 11px}.ja-v4-stat__value{font-size:29px;margin:10px 0}.ja-v4-stat__top{font-size:10px}.ja-v4-stat__bottom{font-size:9px;line-height:1.5;padding-top:8px}.ja-v4-directory-heading h2{font-size:23px}.ja-v4-directory-heading p{font-size:10px;max-width:220px}.ja-v4-directory-count{display:none}html.fi.ja-v4 .ja-filter-chip{padding:9px 8px!important;min-height:44px!important;font-size:11px!important;gap:5px!important}html.fi.ja-v4 .ja-toolbar__filters{gap:2px;justify-content:space-between;width:100%}html.fi.ja-v4 .ja-contacts__table .fi-ta-search-field{flex-basis:100%!important;max-width:100%!important}html.fi.ja-v4 .ja-contacts__table .fi-ta-table{min-width:1020px!important}html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-cell-display-name{width:240px!important}html.fi.ja-v4 .ja-contacts__table .fi-ta-table td{height:68px!important}html.fi.ja-v4 .ja-contacts__table .fi-ta-pagination{flex-wrap:wrap}.ja-v4-stats button{min-height:132px}}
@media(prefers-reduced-motion:reduce){.ja-v4-stat{transition:none}.ja-v4-stat:hover{transform:none}}
/* Shell uses the existing single scroll container; avoid nested page padding. */
html.fi.ja-v4{--ja-sidebar-width:232px;--ja-header-height:64px}
html.fi.ja-v4 body.fi-panel-admin .fi-topbar{height:64px!important;min-height:64px!important;padding:10px 24px!important;gap:16px!important}
html.fi.ja-v4 body.fi-panel-admin .fi-sidebar{width:232px!important}
html.fi.ja-v4 .ja-contacts-page .fi-main-ctn{padding:0!important;margin-inline-start:0!important}
html.fi.ja-v4 .ja-contacts-page .fi-page-header-main-ctn{padding-block:0!important;gap:26px!important}
html.fi.ja-v4 .ja-contacts-page .ja-contacts{padding:0!important}
html.fi.ja-v4 .fi-sidebar-nav-groups{padding:0!important;gap:22px!important}
html.fi.ja-v4 .fi-sidebar-group-btn{min-height:24px!important;height:24px!important;padding:0 12px!important}
html.fi.ja-v4 .fi-sidebar-group-items{gap:2px!important;padding:0!important}
html.fi.ja-v4 .fi-sidebar-group .fi-sidebar-item-btn{min-height:40px!important;height:40px!important}
html.fi.ja-v4 .fi-sidebar-group .fi-sidebar-item{margin:0!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-col{padding:0!important;min-width:0!important;max-width:100%!important}
html.fi.ja-v4 .ja-contacts__table .ja-status-line{font-size:11px!important;padding:4px 8px!important;gap:5px!important;max-width:none!important;width:max-content!important}
html.fi.ja-v4 .ja-contacts__table .ja-status-line .ja-status-label{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;flex:none!important;font-size:11px!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table th .fi-ta-header-cell-label{white-space:normal!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-table{min-width:1120px!important}
html.fi.ja-v4 .ja-contacts__table .fi-ta-cell-contact-status{overflow:visible!important}
.ja-v4-stats{margin-bottom:26px}
.ja-v4-stat{padding-block:16px 13px}
.ja-v4-stat__value{margin:10px 0}
.ja-v4-directory-heading{margin-bottom:16px}
@media(min-width:1024px){html.fi.ja-v4 .fi-sidebar:not(.fi-sidebar-open){width:64px!important}html.fi.ja-v4 .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-label{display:none}html.fi.ja-v4 .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-header{padding-inline:10px!important}}
@media(max-width:1023px){html.fi.ja-v4 body.fi-panel-admin .fi-sidebar{width:264px!important}html.fi.ja-v4{--ja-sidebar-width:264px}html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-cell-display-name{width:260px!important}}
@media(max-width:640px){html.fi.ja-v4{--ja-header-height:60px}html.fi.ja-v4 body.fi-panel-admin .fi-topbar{height:60px!important;min-height:60px!important;padding:8px 12px!important;gap:8px!important}.ja-v4-stat{padding:11px 12px}.ja-v4-stat__value{margin:8px 0;font-size:28px}.ja-v4-stat__bottom{padding-top:6px;font-size:9px}.ja-v4-stats button{min-height:116px}.ja-v4-directory-heading p{display:none}.ja-v4-directory-heading h2{margin-bottom:0}.ja-v4-directory-heading{margin-bottom:14px}.ja-v4-stats{margin-bottom:24px}html.fi.ja-v4 .ja-contacts__table .fi-ta-table .fi-ta-cell-display-name{width:240px!important}}
@media(max-width:640px){html.fi.ja-v4 .ja-contacts__toolbar .ja-toolbar__filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px!important}html.fi.ja-v4 .ja-contacts__toolbar .ja-filter-chip{padding:8px 3px!important;min-width:0!important;justify-content:center!important;white-space:nowrap!important;font-size:10px!important}html.fi.ja-v4 .ja-contacts__table .fi-ta-table td::before{display:none!important;content:none!important}html.fi.ja-v4 .ja-contacts__table .fi-ta-cell-label{display:none!important}}
