/* One quiet visual language for the operations workflows. */
:root { --ops-text:#344237; --ops-subtle:#6c786e; --ops-border:rgba(218,226,215,.8); --ops-soft:#f5f8f2; }
.admin-content { max-width:1780px; }
.page-header h1 { color:#273b2d; font-size:26px; letter-spacing:-.4px; }
.page-header { margin-bottom:22px; }
.page-breadcrumb { color:#879284; font-size:12px; }
.section-heading h2,.workspace-overview-head h2 { color:#344c39; }
.side-nav { min-width:0; max-width:100%; gap:24px; }
.side-link { min-height:46px; color:#627064; font-size:14px; }
.nav-group-label { font-size:12px; color:#93a08f; }
.side-link.is-active { color:#406033; background:#edf5e7; box-shadow:inset 3px 0 0 #8abd65; }
.sidebar-foot strong,.sidebar-foot small { font-size:12px; }
.topbar { gap:28px; }
.top-actions { flex:none; gap:18px; }
.ops-global-search { display:flex; align-items:center; gap:9px; width:min(440px,37vw); min-height:38px; margin-left:auto; padding:0 5px 0 12px; border:1px solid #e8ede4; border-radius:8px; background:#f8faf6; }
.ops-global-search>.ui-icon { width:17px; height:17px; color:#9aa692; }
.ops-global-search input { min-width:0; width:100%; height:36px; padding:0; border:0; background:transparent; box-shadow:none; color:var(--ops-text); font-size:13px; }
.ops-global-search input:focus { outline:0; }
.ops-global-search:focus-within { border-color:#accb97; box-shadow:var(--focus-ring); }
.ops-global-search .button { padding:5px 10px; min-height:30px; font-size:12px; }
.ops-subtabs { display:flex; gap:25px; min-width:0; max-width:100%; min-height:49px; margin:0 0 22px; border-bottom:1px solid #e3e9df; overflow-x:auto; scrollbar-width:none; }
.ops-subtabs::-webkit-scrollbar { display:none; }
.ops-subtab { position:relative; flex:none; display:inline-flex; align-items:center; min-height:48px; padding:4px 1px 15px; border:0; background:transparent; color:#778370; font-size:14px; white-space:nowrap; transition:color .14s; }
.ops-subtab:hover { color:#52743e; }
.ops-subtab.is-active { color:#466a32; font-weight:600; }
.ops-subtab.is-active::after { position:absolute; right:0; bottom:0; left:0; height:2px; background:#8bbc67; content:""; }
.ops-subtabs + [data-workspace-section] { margin-top:0; }
.ops-wallet-strip { display:grid; grid-template-columns:1.15fr 1fr 1fr auto; align-items:center; gap:24px; padding:23px 25px; margin-bottom:18px; border:1px solid var(--ops-border); border-radius:12px; background:linear-gradient(100deg,#f1f7eb 0%,#f7faf4 55%,#fff 100%); }
.ops-wallet-strip>div { display:grid; gap:7px; }
.ops-wallet-strip span { color:#788870; font-size:12px; }
.ops-wallet-strip strong { color:#3a5230; font-size:22px; line-height:1.3; font-weight:500; font-variant-numeric:tabular-nums; }
.ops-wallet-strip>p { align-self:end; margin:0; max-width:190px; color:#94a08b; text-align:right; font-size:12px; line-height:1.8; }
.workspace-kpi { border-color:var(--ops-border); }
.workspace-kpi strong { font-size:32px; color:#3d5633; }
.workspace-kpi .kpi-label { color:#6c7b63; }
.workspace-kpi:hover { border-color:#abc994; background:#fff; box-shadow:0 3px 14px rgb(55 80 35 / 4%); }
.workspace-overview-head { margin-bottom:16px; }
.workspace-overview-head p,.overview-grid .section-heading p { font-size:12px; }
.overview-links small { line-height:1.7; }
.users-card { border-color:var(--ops-border); padding:23px 24px 20px; }
[data-ops-resource]>.section-heading h2 { color:#344c39; font-size:17px; font-weight:600; }
.ops-heading-actions { display:flex; flex-wrap:wrap; gap:9px; }
.filter-panel { align-items:flex-end; gap:14px; padding:18px; margin:20px 0 0; border:1px solid #e9eee5; border-radius:9px; background:#f8faf6; }
.filter-panel label { display:grid; gap:8px; min-width:135px; margin:0; color:#7a8673; font-size:12px; }
.filter-panel label.filter-grow { flex:1 1 220px; min-width:180px; }
.filter-panel :is(input,select) { min-height:38px; height:38px; padding:7px 11px; border-color:#e1e8da; border-radius:6px; background:#fff; color:#46523f; font-size:14px; }
.filter-panel>.button { min-height:38px; height:38px; }
.ops-date-filter { display:grid; flex:0 1 280px; gap:8px; min-width:252px; color:#7a8673; font-size:12px; }
.ops-date-filter .date-range-trigger { min-height:38px; height:38px; border-color:#e1e8da; color:#6f7e64; background:#fff; }
.ops-date-filter .date-range-picker { width:100%; }
.ops-date-filter .date-range-trigger { width:100%; font-size:13px; }
.ops-date-filter .date-range-start,.ops-date-filter .date-range-end { min-width:0; }
.ops-record-meta { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; min-height:64px; padding:12px 2px; color:#89947f; font-size:12px; }
.ops-record-meta>span { flex:none; }
.ops-record-meta strong { color:#526647; font-weight:500; font-variant-numeric:tabular-nums; }
.ops-filter-chip { display:inline-flex; align-items:center; gap:8px; max-width:300px; min-height:30px; margin-right:auto; padding:4px 9px; border:1px solid #dfe9d5; border-radius:5px; background:#f2f8eb; color:#617f4c; font-size:12px; overflow-wrap:anywhere; }
.ops-filter-chip span { font-size:16px; }
.ops-record-meta>div { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:14px; }
.ops-record-meta .button { min-height:30px; padding:3px 0 3px 9px; font-size:12px; }
.ops-coverage { color:#8b9684; }
.ops-list-status { margin:0; padding:0; min-height:0; color:#849478; font-size:12px; line-height:1.8; }
.ops-list-status:not(:empty) { padding:10px 0 16px; }
.empty.ops-inline-loading { min-height:36px; display:block; padding:0 0 15px; border:0; background:transparent; text-align:left; color:#849478; }
.empty.ops-inline-loading::before { display:inline-block; width:11px; height:11px; margin-right:8px; border:1.5px solid #bbd4a9; border-right-color:transparent; border-radius:50%; background:transparent; box-shadow:none; vertical-align:-1px; animation:admin-spin .75s linear infinite; }
[data-ops-resource][aria-busy="true"] .table-wrap { opacity:.7; transition:opacity .12s ease; }
.table-wrap { border-top:1px solid #edf1e9; border-bottom:1px solid #edf1e9; border-radius:0; }
.table-wrap table { width:100%; font-size:14px; color:var(--ops-text); }
.table-wrap th { height:46px; padding:13px 14px; color:#85917b; background:#f8faf5; font-size:12px; font-weight:400; white-space:nowrap; }
.table-wrap td { height:72px; padding:15px 14px; border-color:#edf1e9; color:#45503f; line-height:1.7; }
.table-wrap tr:last-child td { border-bottom:0; }
.table-wrap tbody tr:hover { background:#fbfdf8; }
.table-wrap .account-name { max-width:300px; color:#4d6042; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.table-wrap .account-email { color:#8a9582; font-size:12px; }
.table-wrap .button.ghost { border-color:#e4ecd9; color:#7a9663; background:#fff; }
.table-wrap .button.ghost:hover { border-color:#adc995; color:#4f703b; background:#f7fbf2; }
.ops-data-table { min-width:970px; }
#opsTable-transactions { min-width:1260px; }
#opsTable-ledger { min-width:1120px; }
#opsTable-reconciliation { min-width:920px; }
.ops-data-table td:first-child { max-width:290px; }
.ops-data-table td:nth-last-child(2) { white-space:nowrap; }
.ops-pagination { display:flex; justify-content:space-between; align-items:center; gap:18px; min-height:68px; padding:16px 0 0; color:#85917b; font-size:12px; }
.ops-pagination>div { display:flex; align-items:center; gap:8px; }
.ops-pagination label { display:flex; align-items:center; gap:9px; margin-right:8px; }
.ops-pagination select { min-height:34px; height:34px; padding:5px 8px; border-color:#e1e8da; border-radius:5px; color:#66795a; font-size:12px; background:#fff; }
.ops-pagination .button { min-height:34px; padding:5px 12px; font-size:12px; }
.ops-calm-state { margin:0; padding:22px 0 10px; color:#8c9980; font-size:13px; }
.ops-related-records { display:grid; }
.ops-record-link { display:flex; justify-content:space-between; align-items:center; gap:24px; width:100%; min-height:65px; padding:15px 2px; border:0; border-bottom:1px solid #edf1e9; background:transparent; text-align:left; color:#657a56; font-size:13px; }
.ops-record-link:last-child { border-bottom:0; }
.ops-record-link:hover { background:#fafcf7; color:#4c7037; }
.ops-record-link>span:first-child { min-width:0; overflow-wrap:anywhere; }
.ops-record-link>span:last-child { flex:none; font-variant-numeric:tabular-nums; }
.ops-record-link strong { display:block; color:#53694a; font-size:13px; font-weight:500; }
.ops-record-link small { display:block; margin-top:5px; color:#919d87; font-size:12px; }
.ops-detail-dialog { width:min(860px,calc(100vw - 50px)); box-shadow:-16px 0 65px rgb(39 56 30 / 9%); border-left-color:#dbe5d4; }
.dialog-header { min-height:88px; padding:23px 30px; }
.dialog-header h2 { color:#405934; font-size:20px; font-weight:500; }
.dialog-header .eyebrow { font-size:12px; color:#a0ad94; }
.ops-detail-body { padding:28px 30px 42px; }
.ops-description-grid dt { color:#8a9781; font-size:12px; }
.ops-description-grid dd { margin-top:7px; color:#506546; font-size:14px; }
.ops-detail-body h3 { color:#5d754f; }
.ops-detail-body .ops-callout { margin-top:24px; }
.ops-agent-counts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ops-agent-counts>button { display:grid; justify-items:start; gap:7px; min-height:92px; padding:14px 16px; border:1px solid #e6eddf; border-radius:9px; background:#fbfdf8; color:#718960; text-align:left; }
.ops-agent-counts>button:hover { border-color:#b9d39f; background:#f6fbef; }
.ops-agent-counts strong { font-size:23px; line-height:1.3; font-weight:500; font-variant-numeric:tabular-nums; }
.ops-agent-counts span { color:#8a987e; font-size:12px; }
.ops-restriction-options { display:grid; gap:12px; max-width:520px; }
.ops-restriction-options>label { display:flex; align-items:center; gap:12px; min-height:46px; padding:12px 14px; border:1px solid #e4ecdc; border-radius:7px; color:#718763; font-size:14px; background:#fbfdf9; cursor:pointer; }
.ops-restriction-options input { width:16px; height:16px; accent-color:#89b765; }
.ops-recent-groups { display:grid; gap:22px; }
.ops-recent-groups .section-heading { margin-bottom:5px; }
.ops-recent-groups h4 { margin:0; color:#6d845e; font-size:14px; font-weight:500; }
.ops-recent-groups .section-heading .button { font-size:12px; }
.ops-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ops-form-grid>label { display:grid; gap:7px; color:#7a8c6d; font-size:13px; }
.ops-case-form { margin:0; padding:0; border:0; gap:20px; }
.ops-case-form>.ops-callout { margin-top:0; }
.ops-case-form label { max-width:none; }
.ops-case-form textarea { padding:11px; line-height:1.8; }
.ops-timeline { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.ops-timeline li { position:relative; display:grid; gap:6px; padding:0 0 24px 24px; border-left:1px solid #dfe9d5; color:#819275; font-size:12px; }
.ops-timeline li::before { position:absolute; left:-4px; top:5px; width:7px; height:7px; border:1px solid #b5d29d; border-radius:50%; background:#fff; content:""; }
.ops-timeline strong { color:#5e7950; font-size:14px; font-weight:500; }
.ops-timeline p { margin:0; line-height:1.8; }
.ops-monitor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:23px; }
.ops-monitor-card { min-width:0; display:flex; flex-direction:column; padding:22px; border:1px solid #e4ecdc; border-radius:10px; background:#fcfdfb; }
.ops-monitor-card:first-child { grid-column:1/-1; }
.ops-monitor-card>header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:24px; }
.ops-monitor-card h3 { margin:0; color:#536d44; font-size:16px; font-weight:500; }
.ops-monitor-card header p { margin:6px 0 0; color:#91a084; font-size:12px; }
.ops-monitor-card .ops-description-grid { gap:20px; }
.ops-monitor-card footer { margin-top:auto; padding-top:22px; color:#95a289; font-size:12px; }
.ops-monitor-card footer>p { margin:0; line-height:1.8; }
.ops-monitor-card footer>p+p { margin-top:8px; }
.ops-channel-balances { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.ops-channel-balances>div { display:grid; gap:9px; }
.ops-channel-balances span { color:#829574; font-size:12px; }
.ops-channel-balances strong { color:#577846; font-size:25px; font-weight:500; line-height:1.3; font-variant-numeric:tabular-nums; }
.ops-channel-balances small { color:#9ba88f; font-size:12px; }
.ops-warning-text { color:#a58238; }
.ops-capabilities { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; padding:15px 0 8px; }
.ops-capabilities article { display:flex; flex-direction:column; align-items:start; padding:23px; border:1px solid #e4ecdc; border-radius:10px; background:#fcfdfb; }
.ops-capability-icon { display:grid; place-items:center; width:39px; height:39px; margin-bottom:19px; border:1px solid #dfebd5; border-radius:9px; background:#f2f8eb; color:#93b477; }
.ops-capabilities h3 { margin:0 0 12px; color:#5a744a; font-size:16px; font-weight:500; }
.ops-capabilities p { margin:0 0 15px; color:#8c9b81; font-size:13px; line-height:1.9; }
.ops-capabilities .button { margin-top:auto; padding-left:0; font-size:12px; }
.ops-search-group+.ops-search-group { margin-top:25px; }
.ops-search-group .section-heading { margin-bottom:8px; }
.ops-search-group h3 { margin:0; padding:0; border:0; }
.ops-application-history { margin-top:24px; border:1px solid #e2eadb; border-radius:10px; background:#fff; }
.ops-application-history>summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; min-height:64px; padding:18px 22px; color:#677f57; cursor:pointer; font-size:14px; }
.ops-application-history>summary::after { content:"＋"; color:#92a57f; }
.ops-application-history[open]>summary::after { content:"−"; }
.ops-application-history>summary small { margin-left:auto; color:#9aa68f; font-size:12px; }
.ops-application-history>.applications-card { margin-top:0; border:0; border-radius:0; box-shadow:none; }
.ops-agent-settings { margin:25px 0; border:1px solid #e1ead9; border-radius:9px; background:#fbfdf8; }
.ops-agent-settings>summary { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:56px; padding:15px 18px; color:#617c51; cursor:pointer; font-size:14px; }
.ops-agent-settings>summary::after { content:"＋"; color:#8ba474; }
.ops-agent-settings[open]>summary::after { content:"−"; }
.ops-agent-settings .ops-edit-form { margin:0 18px; padding:20px 0; }
.ops-agent-settings>.ops-edit-form:first-of-type { border-top:1px solid #e6eedf; }
/* Supporting information remains readable at the 12px secondary type size. */
.table-wrap .account-email,.ops-record-meta,.ops-pagination,.ops-coverage,.ops-description-grid dt,.ops-agent-counts span,.ops-record-link small,.ops-monitor-card header p,.ops-monitor-card footer,.ops-channel-balances small,.ops-capabilities p,.ops-date-filter,.filter-panel label,.ops-wallet-strip span,.ops-wallet-strip>p { color:#6d7b64; }
.ops-monitor-card footer,.ops-capabilities p { line-height:1.9; }
.ops-application-history>summary small { color:#75856b; }
.ops-confirm-dialog { margin-top:max(28px,min(20vh,180px)); }
.ops-confirm-form h2 { color:#526d43; }
.ops-confirm-summary { max-height:42vh; overflow-y:auto; background:#f8fbf4; }
.ops-confirm-summary .ops-description-grid { gap:16px 20px; }
.ops-confirm-summary .ops-description-grid dt { color:#8a9a7c; }
.ops-confirm-summary .ops-description-grid dd { color:#617c50; font-size:13px; }
@media(min-width:1600px) { .ops-monitor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:1200px) {
  .ops-global-search { width:min(350px,33vw); }
  .ops-wallet-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ops-wallet-strip>p { grid-column:1/-1; max-width:none; text-align:left; }
  .ops-wallet-strip strong { font-size:20px; }
  .ops-capabilities { gap:14px; }
  .ops-capabilities article { padding:18px; }
}
@media(max-width:900px) {
  .topbar { gap:15px; }
  .ops-global-search { width:32vw; }
  .ops-global-search .button { display:none; }
  .ops-global-search input { font-size:12px; }
  .ops-capabilities { grid-template-columns:1fr; }
  .ops-capabilities article { padding:22px; }
  .ops-wallet-strip { gap:18px; }
}
@media(max-width:640px) {
  .topbar { height:auto; min-height:70px; flex-wrap:wrap; padding-bottom:12px; }
  .brand { min-height:48px; }
  .top-actions { margin-left:auto; gap:12px; }
  .brand-label { display:none; }
  .brand-divider { display:none; }
  .top-link { min-height:48px; font-size:12px; }
  .ops-global-search { order:3; width:100%; min-height:48px; }
  .ops-global-search input { height:46px; font-size:14px; }
  .ops-global-search .button { display:inline-flex; min-height:44px; }
  .sidebar { top:132px; padding-top:7px; padding-bottom:7px; }
  .side-link { min-height:48px; font-size:13px; }
  .admin-content { padding:22px 14px max(32px,env(safe-area-inset-bottom)); }
  .page-header h1 { font-size:24px; }
  .page-header>div>p:last-child { font-size:13px; }
  .ops-subtabs { margin-bottom:17px; gap:22px; }
  .ops-subtab { min-height:48px; padding-bottom:12px; font-size:14px; }
  .ops-wallet-strip { grid-template-columns:repeat(2,minmax(0,1fr)); padding:19px; gap:18px; margin-bottom:13px; }
  .ops-wallet-strip>div:first-child { grid-column:1/-1; }
  .ops-wallet-strip>div:first-child strong { font-size:28px; }
  .ops-wallet-strip strong { font-size:20px; }
  .ops-wallet-strip>p { font-size:11px; }
  .users-card { padding:20px 16px 18px; }
  .section-heading { align-items:flex-start; }
  .ops-heading-actions { justify-content:flex-end; }
  .ops-heading-actions .button { min-height:48px; padding:9px 12px; font-size:13px; }
  .filter-panel { padding:14px; margin-top:18px; gap:14px 10px; }
  .filter-panel label,.filter-panel label.filter-grow { flex:1 1 calc(50% - 10px); min-width:120px; max-width:none; }
  .filter-panel label.filter-grow { flex-basis:100%; }
  .filter-panel :is(input,select),.filter-panel>.button { min-height:48px; height:48px; }
  .filter-panel>.button { flex:1; }
  .ops-date-filter { flex:1 1 100%; min-width:0; }
  .ops-date-filter .date-range-trigger { height:48px; min-height:48px; }
  .ops-record-meta { align-items:flex-start; min-height:64px; padding:16px 0; font-size:12px; }
  .ops-record-meta>div { gap:4px 12px; text-align:right; }
  .ops-record-meta>div>span:nth-child(2) { display:none; }
  .ops-record-meta .button { min-height:36px!important; padding:0; }
  .ops-coverage { max-width:180px; line-height:1.7; }
  .ops-pagination { flex-direction:column; align-items:flex-start; gap:12px; padding-top:18px; }
  .ops-pagination>div { justify-content:space-between; width:100%; gap:8px; }
  .ops-pagination label { gap:7px; margin-right:auto; font-size:12px; }
  .ops-pagination select { min-height:48px; height:48px; }
  .ops-pagination .button { min-height:48px; padding:9px 10px; }
  .ops-generic-list>.table-wrap { border:0; overflow:visible; }
  .ops-data-table { display:block; width:100%; min-width:0!important; border-collapse:separate; }
  .ops-data-table thead { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
  .ops-data-table tbody { display:grid; gap:10px; width:100%; }
  .ops-data-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; padding:5px 0; border:1px solid #e1ead9; border-radius:10px; background:#fbfdf8; }
  .ops-data-table tbody td { display:block; width:auto; min-width:0!important; max-width:none!important; height:auto; padding:11px 13px; border:0; color:#586e4b; text-align:left!important; white-space:normal!important; overflow-wrap:anywhere; font-size:14px; }
  .ops-data-table tbody td::before { content:attr(data-label); display:block; margin-bottom:5px; color:#92a184; font-size:12px; }
  .ops-data-table tbody td:first-child { grid-column:1/-1; padding-bottom:14px; border-bottom:1px solid #e7efdf; }
  .ops-data-table tbody td:last-child { grid-column:1/-1; padding-top:13px; border-top:1px solid #e7efdf; }
  .ops-data-table tbody td .button { width:100%; min-height:48px; }
  .ops-data-table .numeric { text-align:left; }
  .ops-detail-dialog { width:100vw; max-width:100vw; margin:0; border-radius:0; }
  .dialog-header { min-height:82px; padding:18px 20px; }
  .ops-detail-body { padding:24px 20px max(40px,env(safe-area-inset-bottom)); }
  .ops-description-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 18px; }
  .ops-description-grid dd { font-size:14px; }
  .ops-agent-counts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ops-agent-counts>button { min-height:94px; }
  .ops-form-grid { grid-template-columns:1fr; gap:20px; }
  .ops-case-form input,.ops-case-form select { min-height:48px; }
  .ops-restriction-options>label { min-height:52px; }
  .ops-record-link { gap:16px; min-height:70px; }
  .ops-record-link>span:last-child { max-width:120px; white-space:normal; text-align:right; }
  .ops-monitor-grid { grid-template-columns:1fr; }
  .ops-monitor-card:first-child { grid-column:auto; }
  .ops-monitor-card { padding:19px; }
  .ops-channel-balances { grid-template-columns:1fr; gap:22px; }
  .ops-channel-balances strong { font-size:24px; }
  .ops-monitor-card>header { gap:10px; }
  .ops-monitor-card header p { line-height:1.8; }
  .ops-capabilities { gap:14px; }
  .ops-confirm-dialog { max-height:calc(100dvh - 32px); margin-top:16px; }
  .ops-confirm-summary { max-height:35vh; }
  .ops-confirm-summary .ops-description-grid { grid-template-columns:1fr; }
  .ops-confirm-form { max-height:calc(100dvh - 32px); overflow-y:auto; }
}
@media(prefers-reduced-motion:reduce) { .ops-record-link,.ops-subtab,[data-ops-resource] .table-wrap { transition:none; } }
