/* Final shared polish after the complete feature modules. */
body .page-head h1,body .record-head h1,body .modal-head h2,body .detail-wizard-title h3{color:#1a2820}
body .field>span,body .field>label{color:#536f5c}
body .field>small,body .field small,body .detail-wizard-title p{color:#7c9585}
body .detail-wizard-progress>button{color:#829b8b}body .detail-wizard-progress>button.active{color:#3e7051}
body .detail-wizard-progress>button>small{color:#8fa599}
body .record-profile .detail-list dd,body .detail-list dd,body .full-detail-field>dd{color:#466f55}
body .table td,body table td{color:#657d6d}body .table td small,body table td small{color:#81998a}
body .workspace-result p{color:#819d8b}
@media(min-width:981px) and (max-height:850px){
  .refdash-dashboard .refdash-chart-card{padding-top:12px}
  .refdash-dashboard .refdash-line-wrap{margin-top:4px}
  .refdash-dashboard .refdash-line{height:108px;min-height:0}
  .refdash-dashboard .refdash-bottom-card{min-height:190px;padding:13px}
  .refdash-dashboard .refdash-status-grid{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .refdash-dashboard .refdash-status-grid button{min-height:43px;padding:6px 8px}
  .refdash-dashboard .refdash-status-grid button>i{margin-bottom:4px}
  .refdash-dashboard .refdash-status-grid button>strong{font-size:16px;margin-top:3px}
  .refdash-dashboard .refdash-status-grid small{display:none}
  .refdash-dashboard .refdash-segments{margin:10px 0}
  .refdash-dashboard .refdash-mini-bars{height:65px;margin-top:8px;margin-bottom:19px}
  .refdash-dashboard .refdash-mini-bars>button>div{height:54px}
  .refdash-dashboard .refdash-world{height:42px;margin-top:7px}
  .refdash-dashboard .refdash-country-list{gap:7px;margin-top:4px}
  .refdash-dashboard .refdash-country-list>li,.refdash-dashboard .refdash-country-list strong{font-size:10px}
  .refdash-dashboard .refdash-caption{font-size:8px;margin-top:5px;line-height:1.5}
  .refdash-dashboard .refdash-chart-total strong{font-size:22px}
}

body .refconn-summary strong{color:#fff}

@media(min-width:981px) and (max-height:850px){.refdash-dashboard .refdash-line text{font-size:17px}}

.refdash-compact-x,.refdash-compact-y{display:none}
/* Shared navigation controls have their own treatment, separate from action buttons. */
body .app-main .page .tabs{display:flex;align-items:center;gap:22px;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d1ddd5 transparent;border-bottom:1px solid #e4ebe6;white-space:nowrap}
body .app-main .page .tabs>:is(button,a){appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:8px;min-height:45px;margin:0;padding:12px 3px;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#74887b;font-size:11px;font-weight:550;line-height:1.4;white-space:nowrap;text-decoration:none}
body .app-main .page .tabs>:is(button,a):hover{color:#245e43;background:transparent!important}
body .app-main .page .tabs>:is(button,a).active{color:#165c41;border-bottom-color:#2a7656!important;background:transparent!important}
body .app-main .page .tabs>:is(button,a):focus-visible{outline:2px solid #83b59a;outline-offset:-4px;border-radius:4px!important}
body .app-main .page .tabs .tab-label{color:inherit;white-space:nowrap}
body .app-main .page .tabs .tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:20px;padding:1px 6px;border-radius:5px;background:#edf3ef;color:#758b7e;font-size:10px;line-height:1;font-weight:600}
body .app-main .page .tabs .active .tab-count{background:#dceee3;color:#226246}
body .app-main .panel>.tabs{margin:0;padding:0 19px}
body .app-main .panel-head>.tabs{margin:0;border:0;align-self:auto;padding:0;flex:1 1 auto}
body .app-main .panel-head:has(>.tabs){padding-top:0;padding-bottom:0;gap:14px}
body .app-main .workspace-settings-tabs{margin:0 0 22px;padding:0;gap:23px}
body .app-main .record-tabs{padding:0;gap:23px}
/* Keep guidance and filters readable at both laptop and phone widths. */
body .notice{display:grid;gap:5px;color:#7d9386;overflow-wrap:anywhere}
body .notice>strong{display:block;line-height:1.6;color:#52785e;margin:0}
body .notice>:is(span,p){display:block;margin:0;font-size:11px;line-height:1.8;color:#859d8e}
body .workflow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:20px;padding:18px 20px;max-width:100%;min-width:0;border-color:#e2ece5;background:#fbfdfb}
body .workflow-steps>div{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 11px;min-width:0;flex:none;width:auto;padding:0;border:0}
body .workflow-steps>div>span{grid-row:1/3;display:grid;place-items:center;align-self:start;width:30px;height:30px;min-width:30px;border-radius:8px;background:#e8f3ec;color:#648c71;font-size:11px;line-height:1.2;margin:0}
body .workflow-steps>div>:is(strong,small){min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.6;margin:0}
body .workflow-steps>div>strong{font-size:11px;color:#5b7d66;font-weight:600}
body .workflow-steps>div>small{font-size:10px;color:#8ea697}
body .filterbar{align-items:flex-end;justify-content:flex-start;gap:15px;padding:17px 19px}
body .filterbar>.field{min-width:150px;max-width:none;flex:0 1 210px}
body .filterbar>.field:first-child{min-width:220px;flex:1 1 280px}
body .filterbar>.field input,body .filterbar>.field select{width:100%;min-width:0;min-height:37px;font-size:11px}
body .filterbar>.filter-note{align-self:center;margin-left:auto;min-width:0;font-size:10px;line-height:1.6;color:#8aa191}
/* The workspace header and profile stay pinned; all navigation may scroll. */
body .sidebar>.brand,body .sidebar>.workspace-pill,body .sidebar>.profile-strip{flex-shrink:0}
body .sidebar-scroll{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bccfc1 transparent;padding:0 4px 4px 0;margin-right:-4px;outline-offset:-2px}
body .sidebar-scroll>:is(nav,.sidebar-label,.sidebar-system){flex-shrink:0}
body .sidebar-scroll::-webkit-scrollbar{width:5px}
body .sidebar-scroll::-webkit-scrollbar-thumb{background:#c2d5c8;border-radius:8px}
body .sidebar-system{margin-top:auto;padding-top:18px;display:grid;gap:4px}
body .sidebar>.profile-strip{margin-top:9px;padding-top:12px}
body.sidebar-collapsed .sidebar-scroll{padding-right:0;margin-right:0}
body.sidebar-collapsed .sidebar-system{padding-top:13px}
@media(max-width:980px) and (min-width:761px){body .workflow-steps{gap:14px;padding:16px}body .workflow-steps>div{grid-template-columns:26px minmax(0,1fr);gap:3px 8px}body .workflow-steps>div>span{width:26px;height:26px;min-width:26px}}
@media(max-width:760px){
 body .app-main .page .tabs{gap:22px;scrollbar-width:none}
 body .app-main .page .tabs>:is(button,a){min-height:46px;padding:13px 2px;font-size:12px;gap:7px}
 body .app-main .page .tabs .tab-count{min-width:22px;height:21px;font-size:10px}
 body .app-main .panel>.tabs{padding:0 15px}
 body .app-main .panel-head>.tabs{flex:1 1 100%;margin:0;padding:0;max-width:100%}
 body .app-main .panel-head:has(>.tabs){gap:4px;padding-bottom:7px}
 body .app-main .workspace-settings-tabs{gap:22px;margin-bottom:20px}
 body .notice{padding:14px 15px;gap:6px}
 body .notice>strong,body .notice>:is(span,p){font-size:12px;line-height:1.8}
 body .workflow-steps{grid-template-columns:1fr;gap:16px;padding:17px}
 body .workflow-steps>div{grid-template-columns:30px minmax(0,1fr);gap:3px 11px}
 body .workflow-steps>div>strong{font-size:12px}
 body .workflow-steps>div>small{font-size:11px}
 body .filterbar{gap:16px;padding:17px 15px;align-items:stretch}
 body .filterbar>.field,body .filterbar>.field:first-child{flex:1 1 100%;width:100%;max-width:none;min-width:0}
 body .filterbar>.field input,body .filterbar>.field select{min-height:42px;font-size:12px}
 body .filterbar>.filter-note{margin-left:0;font-size:11px}
}
.refdash-dashboard .refdash-events{grid-auto-rows:max-content}
.refdash-dashboard .refdash-event>strong{min-height:1.5em}
@media(min-width:981px) and (max-height:850px){
 .refdash-dashboard .refdash-line text{display:none}
 .refdash-dashboard .refdash-compact-y{position:absolute;left:0;top:15%;bottom:12%;width:30px;display:flex;flex-direction:column;justify-content:space-between;font-size:9px;line-height:1;color:#909a95;text-align:right;pointer-events:none}
 .refdash-dashboard .refdash-compact-x{position:absolute;left:6.6%;right:3%;bottom:0;display:flex;justify-content:space-between;font-size:9px;line-height:1;color:#909a95;pointer-events:none;transform:translateY(1px)}
 .refdash-dashboard .refdash-event{grid-template-columns:minmax(0,1fr);grid-template-rows:11px 15px 13px 19px;min-height:89px}
}

body .page>.workspace-result+.panel,body .page>.panel+.workspace-result{margin-top:18px}
