/* iOS-inspired presentation, retaining the existing CRM layout and controls. */
body.crm-app.sf-skin{--sf-canvas:#eef3fa;--sf-surface:rgba(255,255,255,.77);--sf-ink:#18314e;--sf-line:rgba(118,144,177,.19);background:radial-gradient(ellipse at 12% 5%,#dce8ff 0,transparent 52%),radial-gradient(ellipse at 90% 45%,#e4ddfa 0,transparent 48%),linear-gradient(145deg,#f4f8fc,#edf4f8);background-attachment:fixed;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.sf-skin .shell-main{background:transparent}
.sf-skin .global-bar,.sf-skin .workspace-nav,.sf-skin .us-time-bar,.sf-skin .utility-bar{background:rgba(255,255,255,.72);backdrop-filter:blur(24px) saturate(155%);-webkit-backdrop-filter:blur(24px) saturate(155%);border-color:rgba(255,255,255,.8);box-shadow:0 3px 16px #314a7410}
.sf-skin .app-rail{background:linear-gradient(170deg,rgba(18,55,111,.94),rgba(15,39,84,.91));backdrop-filter:blur(22px);box-shadow:3px 0 24px #15397012;border-right:1px solid #ffffff50}
.sf-skin .rail-nav a{border-radius:17px;margin:2px 5px;min-height:73px;transition:background .18s}
.sf-skin .rail-nav a.active{background:#ffffff1d;box-shadow:inset 0 1px 0 #ffffff36}
.sf-skin .rail-nav a.active .svg-icon{outline:none}
.sf-skin .workspace-tabs>a{border-radius:10px 10px 0 0}.sf-skin .workspace-tabs>a.active{background:#ffffff65}
.sf-skin .list-header,.sf-skin .record-card,.sf-skin .card,.sf-skin .home-card,.sf-skin .metric-tile,.sf-skin .report-card,.sf-skin .record-modal,.sf-skin .record-hero,.sf-skin .related-card{background:rgba(255,255,255,.76);border:1px solid #ffffffd9;border-radius:20px;box-shadow:0 8px 28px #243f7010,inset 0 1px 0 #fff;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.sf-skin .list-header{margin-bottom:10px}.sf-skin .list-meta-toolbar{background:transparent}
.sf-skin .welcome-panel{background:linear-gradient(125deg,#ffffffa8,#dce7ff8c);border:1px solid #fff;border-radius:24px;box-shadow:0 10px 30px #2847780d;backdrop-filter:blur(20px)}
.sf-skin .suggestion-grid>a{background:#ffffffb8;border:1px solid #fff;border-radius:22px;box-shadow:0 6px 22px #29497709}
.sf-skin .btn,.sf-skin button.tool-button,.sf-skin a.tool-button{border-radius:12px;box-shadow:0 2px 7px #173e6810;transition:filter .15s,box-shadow .15s}
.sf-skin .btn.primary,.sf-skin .btn:not(.secondary):not(.danger){background:linear-gradient(180deg,#168cf3,#0870dd);border-color:#0875df;color:#fff}
.sf-skin .btn.secondary{background:#ffffffb8;border:1px solid #b8cbe66b;color:#19518a}.sf-skin .btn.danger{background:#d92945;color:#fff}
.sf-skin .list-actions{border-radius:15px;overflow:visible}.sf-skin .list-actions .btn{border-radius:0}.sf-skin .list-actions>.btn:first-child{border-radius:13px 0 0 13px}.sf-skin .list-actions>.btn:last-child{border-radius:0 13px 13px 0}
.sf-skin input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.sf-skin select,.sf-skin textarea{border-radius:11px;border-color:#a8bddc80;background-color:rgba(255,255,255,.83)}
.sf-skin .global-search,.sf-skin .list-search{border-radius:14px;background:#ffffffb8;border-color:#b2c5df9c;box-shadow:inset 0 1px 3px #1e467407}
.sf-skin .list-table-wrap,.sf-skin .table-wrap{border-radius:15px;border:1px solid #ffffffb8;background:#ffffff60;overflow:auto}
.sf-skin .sf-table th,.sf-skin table th{background:#edf3fabf;color:#34516e}.sf-skin .sf-table td,.sf-skin table td{background:rgba(255,255,255,.64);border-color:#c5d4e84d}.sf-skin table tbody tr:hover td{background:#f3f8ffff}
.sf-skin .list-view-selector>div,.sf-skin .toolbar-menu>div,.sf-skin .more-menu>div,.sf-skin .action-menu>div,.sf-skin .user-menu>div{background:rgba(250,253,255,.96);border:1px solid #fff;border-radius:16px;box-shadow:0 15px 42px #18365b29;backdrop-filter:blur(28px)}
.sf-skin .list-view-selector>div>a,.sf-skin .action-menu>div>a{background:transparent;border-radius:9px}.sf-skin .list-view-selector>div>a:hover{background:#e8f1fd}
.sf-skin .status-pill{border-radius:20px}.sf-skin :focus-visible{outline:3px solid #5bafff;outline-offset:2px}
@media(prefers-reduced-transparency:reduce){.sf-skin .global-bar,.sf-skin .workspace-nav,.sf-skin .record-card,.sf-skin .card,.sf-skin .record-modal{background:#fff;backdrop-filter:none}}
html[data-theme=dark] body.crm-app.sf-skin{--sf-canvas:#121e32;--sf-surface:#223047;--sf-ink:#edf4ff;--sf-line:#52658066;background:linear-gradient(140deg,#15243c,#20243b);color:var(--sf-ink)}
html[data-theme=dark] .sf-skin .global-bar,html[data-theme=dark] .sf-skin .workspace-nav,html[data-theme=dark] .sf-skin .us-time-bar,html[data-theme=dark] .sf-skin .list-header,html[data-theme=dark] .sf-skin .card,html[data-theme=dark] .sf-skin .record-card,html[data-theme=dark] .sf-skin .record-modal{background:#26364bd9;border-color:#677b962b}
html[data-theme=dark] .sf-skin table td{background:#233249d9;color:#e6efff}html[data-theme=dark] .sf-skin table th{background:#283b55;color:#d3e5ff}

/* Keep every table readable when the system theme is dark. */
html[data-theme=dark] .sf-skin .list-table-wrap,html[data-theme=dark] .sf-skin .table-wrap{background:#1c2c43;border-color:#475c79}
html[data-theme=dark] .sf-skin table{background:#1c2c43;color:#e8f1ff}
html[data-theme=dark] .sf-skin table thead th,html[data-theme=dark] .sf-skin .sf-table th{background:#293d57;color:#f1f6ff;border-color:#4a607d}
html[data-theme=dark] .sf-skin table tbody td,html[data-theme=dark] .sf-skin .sf-table td{background:#1e3049;color:#e8f1ff;border-color:#3b506d}
html[data-theme=dark] .sf-skin table tbody tr:hover td{background:#2a4261}
html[data-theme=dark] .sf-skin table td a,html[data-theme=dark] .sf-skin table th a{color:#8ec5ff}
html[data-theme=dark] .sf-skin .status-pill{background:#304c70;color:#eff6ff;border:1px solid #6387b0}
html[data-theme=dark] .sf-skin .status-pill.won,html[data-theme=dark] .sf-skin .status-pill.qualified{background:#164d43;color:#c5ffde;border-color:#3b886e}
html[data-theme=dark] .sf-skin .status-pill.lost,html[data-theme=dark] .sf-skin .status-pill.unqualified{background:#5a2e42;color:#ffe0e9;border-color:#a8677e}
html[data-theme=dark] .sf-skin .welcome-panel{background:linear-gradient(125deg,#263d5be8,#323d61dd);border-color:#536784}
html[data-theme=dark] .sf-skin .suggestion-grid>a,html[data-theme=dark] .sf-skin .home-card,html[data-theme=dark] .sf-skin .metric-tile,html[data-theme=dark] .sf-skin .report-card,html[data-theme=dark] .sf-skin .record-hero,html[data-theme=dark] .sf-skin .related-card{background:#24364ee8;border-color:#52678155;color:#e8f1ff}
html[data-theme=dark] .sf-skin input:not([type=checkbox]):not([type=radio]):not([type=hidden]),html[data-theme=dark] .sf-skin select,html[data-theme=dark] .sf-skin textarea{background:#182a42;color:#edf4ff;border-color:#587190}
html[data-theme=dark] .sf-skin .global-search,html[data-theme=dark] .sf-skin .list-search,html[data-theme=dark] .sf-skin .btn.secondary{background:#2b405b;color:#e4efff;border-color:#587190}
html[data-theme=dark] .sf-skin .list-view-selector>div,html[data-theme=dark] .sf-skin .toolbar-menu>div,html[data-theme=dark] .sf-skin .more-menu>div,html[data-theme=dark] .sf-skin .action-menu>div,html[data-theme=dark] .sf-skin .user-menu>div{background:#23364ef5;border-color:#607999;color:#edf4ff}
html[data-theme=dark] .sf-skin .list-view-selector>div>a,html[data-theme=dark] .sf-skin .action-menu>div>a{color:#e5efff}
html[data-theme=dark] .sf-skin .list-view-selector>div>a:hover{background:#355170}

.sf-skin .welcome-panel:not(:has(.suggestion-grid)){display:block;min-height:0;height:auto;padding:20px 24px}
.sf-skin .welcome-panel:not(:has(.suggestion-grid)) .welcome-panel-head{flex-direction:row;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:0}
.sf-skin .welcome-panel:not(:has(.suggestion-grid)) .welcome-panel-head h2{font-size:25px;line-height:34px}
.sf-skin .welcome-panel:not(:has(.suggestion-grid)) .welcome-panel-head p{font-size:14px;line-height:22px}
@media(max-width:600px){.sf-skin .welcome-panel:not(:has(.suggestion-grid)) .welcome-panel-head{align-items:flex-start;flex-direction:column;gap:12px}}
html[data-theme=dark] body.crm-app.sf-skin{--sf-muted:#c0cfe3}
html[data-theme=dark] .sf-skin .metric-tile strong{color:#e8f1ff}
html[data-theme=dark] .sf-skin .sf-count-chart-title,html[data-theme=dark] .sf-skin .sf-count-chart-scale,html[data-theme=dark] .sf-skin .sf-count-chart-total,html[data-theme=dark] .sf-skin .report-card footer{color:#c5d5e8}
html[data-theme=dark] .sf-skin .utility-bar{background:#26384fe8;color:#e6efff;border-color:#57708c}

html[data-theme=dark] .sf-skin table .badge{background:#304c70;color:#f2f7ff;border:1px solid #6387b0}
html[data-theme=dark] .sf-skin .recent-record-list a,html[data-theme=dark] .sf-skin .recent-record-list b,html[data-theme=dark] .sf-skin .recent-record-list strong{color:#dceaff}
html[data-theme=dark] .sf-skin .recent-record-list small{color:#bdcfe4}

/* Supplied Antenity artwork, preserved unchanged as a background watermark. */
body.crm-app.sf-skin{isolation:isolate}
body.crm-app.sf-skin::before{content:"";display:block;position:fixed;inset:105px 0 40px 76px;z-index:-1;pointer-events:none;background:url("antenity-background-logo.png") center 48% / min(66vw,720px) auto no-repeat;opacity:.1}
html[data-theme=dark] body.crm-app.sf-skin::before{opacity:.14}
@media(max-width:600px){body.crm-app.sf-skin::before{inset:90px 0 40px 0;background-size:88vw auto;opacity:.075}}

/* Organization-release polish: accessible navigation and denser dashboards. */
.sf-skin .workspace-tabs{padding-right:76px;scrollbar-width:thin;scrollbar-color:#9ab4d3 transparent}
.sf-skin .workspace-nav{position:fixed}
.sf-skin .workspace-tabs>.more-menu{position:absolute;right:0;top:0;height:42px;background:var(--sf-surface);backdrop-filter:blur(24px);box-shadow:-8px 0 16px var(--sf-surface);z-index:20}
.sf-skin .more-menu>summary{padding:0 16px}
.sf-skin .more-menu>div{max-height:70vh;overflow:auto;min-width:220px}
.sf-skin .menu-heading{display:block;padding:8px 12px;color:var(--sf-muted);font-size:11px}
.sf-skin .sf-home>.home-titlebar{order:-1;display:flex;margin-bottom:0}
.sf-skin .home-titlebar h1{font-size:22px}
.sf-skin .sf-home>.home-metrics{order:1}
.sf-skin .sf-home>.report-card-grid{order:2}
.sf-skin .sf-home>.home-columns{order:3}
.sf-skin .report-card{min-height:260px}
.sf-skin .report-card .report-card-chart{min-height:220px}
.sf-skin .sf-count-chart-plot{height:118px}
.sf-skin .sf-count-chart-bar{height:36px}
.sf-skin .sf-count-chart-title{margin-bottom:12px}
.sf-skin .record-modal{width:min(950px,100%);margin:0 auto 20px}
.sf-skin .stack>label,.sf-skin .form-grid>label{min-width:0}
.sf-skin .record-modal input,.sf-skin .record-modal select,.sf-skin .record-modal textarea{max-width:100%}
.sf-skin .record-modal-footer{gap:10px;flex-wrap:wrap}
.sf-skin .record-modal .alert{padding:12px 16px;margin:12px 18px;border-radius:12px}
.sf-skin button:disabled,.sf-skin input:disabled{cursor:not-allowed;opacity:.65}
.sf-skin a,.sf-skin button{touch-action:manipulation}
html[data-theme=dark] .sf-skin .record-modal-head,html[data-theme=dark] .sf-skin .record-section,html[data-theme=dark] .sf-skin .record-modal-footer,html[data-theme=dark] .sf-skin .record-section h2,html[data-theme=dark] .sf-skin .record-card-head{background:#22364e;color:#e7efff;border-color:#4b6381}
html[data-theme=dark] .sf-skin .record-danger{background:#462c3c;color:#ffe3ec;border-color:#956779}
html[data-theme=dark] .sf-skin .form-grid label>span,html[data-theme=dark] .sf-skin .stack label>span{color:#cfdef0}
@media(max-width:680px){.sf-skin .workspace-tabs{padding-right:65px}.sf-skin .workspace-tabs>.more-menu{height:42px}.sf-skin .global-actions{gap:4px}.sf-skin .home-titlebar{gap:10px;flex-wrap:wrap}.sf-skin .home-actions{flex-wrap:wrap}.sf-skin .record-modal{border-radius:15px}.sf-skin .sf-home>.home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-skin .list-title-row h1{font-size:23px}.sf-skin .list-actions{flex-wrap:wrap;gap:6px;overflow:visible}.sf-skin .list-actions .btn{border-radius:10px!important}}
@media(prefers-reduced-motion:reduce){.sf-skin *{scroll-behavior:auto!important;transition:none!important}}
