/* Traders Compass V2 compact revision 2026-10-11. Keep this AFTER dashboard-v2.css.
   Rules are scoped to the authenticated workspace and do not touch the existing login artwork. */
html,body{max-width:100%;overflow-x:clip}
.workspace{font-size:13px;line-height:1.4;min-height:100svh;overflow-x:clip}
.workspace-header-inner{max-width:1540px;min-height:58px;padding:5px clamp(16px,2.6vw,42px);gap:12px}
.brand{gap:10px}.brand-logo{width:43px;height:43px;object-fit:cover;object-position:center;border-color:#dcb15b;box-shadow:0 0 12px #e7b55330}.brand strong{font-size:17px;letter-spacing:-.2px}.brand span{font-size:9px;letter-spacing:2.1px;margin-top:1px}
.header-actions{gap:10px}.header-trust{font-size:11px}.account-button{min-width:140px;gap:7px;padding:4px 9px 4px 4px}.avatar{width:33px;height:33px;font-size:14px}.account-label strong{font-size:12px}.account-label small{font-size:10px}.account-menu{top:calc(100% + 5px)}
.workspace-shell{max-width:1540px;padding:15px clamp(16px,2.6vw,42px) 12px}
/* Hero: 125px high instead of 232px; no oversized title or padding. */
.welcome-hero{min-height:0;height:clamp(110px,18vh,148px);border-radius:13px;background-position:center 49%}
.welcome-hero::after{height:220px;width:220px;top:-70%;right:7%;box-shadow:0 0 0 40px #a67b1d09,0 0 0 75px #c6991b08}
.hero-content{padding:15px clamp(20px,3vw,38px);max-width:900px}.eyebrow{font-size:10px;letter-spacing:1.5px}
.welcome-hero h1{font-size:clamp(24px,2.45vw,33px);line-height:1.16;margin:8px 0 7px;letter-spacing:-.45px}.welcome-hero p{font-size:clamp(12px,1.02vw,14px);line-height:1.35;max-width:720px}
.app-grid{gap:12px;margin-top:13px}.application-card{min-height:0;height:clamp(168px,29vh,205px);padding:15px 15px 13px;gap:9px;border-radius:12px}
.application-card h2{font-size:clamp(14px,1.18vw,17px);margin:1px 0 5px;line-height:1.3}.application-card p{font-size:11.5px;line-height:1.42;min-height:0}
.card-top{gap:10px}.app-icon{width:49px;height:49px;border-radius:10px}.app-icon .i{width:26px;height:26px}
.workspace .btn,.modal .btn{min-height:35px;padding:7px 12px;gap:7px;font-size:11.5px;border-radius:8px}.application-card>.btn .i{width:14px;height:14px}
.workspace-footer{margin-top:13px;font-size:10.5px;gap:7px}.workspace-footer .i{width:14px;height:14px}
/* Override historic login stylesheet's #adminPanel padding/margin/border. */
#adminPanel.admin-screen{margin:0 auto;max-width:1540px;background:transparent;border:0;border-radius:0;padding:12px clamp(16px,2.6vw,42px) 12px;box-shadow:none}
.admin-top{margin:0 0 9px}.back-link{font-size:11.5px;gap:5px}.back-link .i{width:14px;height:14px}
.admin-heading{margin-top:6px;gap:10px}.admin-heading h1{font-size:clamp(22px,2vw,27px);margin:4px 0 1px;letter-spacing:-.35px}.admin-heading p{font-size:11.5px;line-height:1.35}.admin-heading .eyebrow{font-size:9px}
/* Full-width banner remains legible but doesn't consume an entire row. */
.notice{min-height:0;padding:8px 12px;gap:10px;border-radius:9px;margin:9px 0}.notice-icon{height:28px;width:28px}.notice-icon .i{width:17px;height:17px}.notice strong{font-size:12px;line-height:1.2}.notice p{font-size:11px;line-height:1.3;margin:2px 0 0}.notice>button{padding:4px}
.kpi-row{gap:9px}.kpi{min-height:0;height:72px;padding:10px 13px;gap:11px;border-radius:10px}.kpi-icon{width:40px;height:40px;border-radius:9px}.kpi-icon .i{width:23px;height:23px}.kpi span{font-size:11px}.kpi strong{font-size:24px;line-height:1;margin:2px 0}.kpi small{font-size:10px}
.user-panel{margin-top:10px;padding:11px 13px 9px;border-radius:11px}.user-panel-heading{gap:9px}.user-panel-heading h2{font-size:15px;margin:0 0 1px}.user-panel-heading h2 .i{width:16px;height:16px}.user-panel-heading p{font-size:11px;line-height:1.25}.panel-action-group{gap:6px}
/* Single Add User button at top; retain the bottom Refresh control. */
#openAddUser{display:none!important}
.filter-row{grid-template-columns:minmax(180px,1fr) minmax(125px,155px) minmax(110px,135px) auto;gap:7px;margin:9px 0 9px}
.filter-row input,.filter-row select{min-height:33px;padding:0 9px;font-size:11px;border-radius:7px}.search-field{padding:0 9px;border-radius:7px;gap:7px}.search-field .i{height:15px;width:15px}
.filter-row .btn{min-width:0}.users-table{min-width:0;font-size:11px;table-layout:auto}.users-table th{padding:8px 8px;font-size:9px;letter-spacing:.55px}.users-table td{padding:7px 8px;line-height:1.3}.table-user{min-width:145px;gap:7px}.user-avatar{height:27px;width:27px;font-size:10px}.table-user strong{font-size:11px}.table-user small{font-size:10px;margin-top:0;max-width:210px}
.tag{font-size:10px;padding:4px 7px;margin:1px 3px 1px 0}.status-chip{font-size:11px;gap:5px}.status-chip::before{height:7px;width:7px}.created-date{font-size:10.5px}.row-actions button{padding:5px 8px;font-size:11px}.row-actions .i{width:13px;height:13px}.table-wrap{overflow-x:auto;scrollbar-width:thin}.table-footer{padding:9px 0 0;font-size:10.5px;gap:8px}.pagination{gap:6px}.pagination .btn{min-height:28px;padding:4px 9px;font-size:10px}.empty-row{padding:16px!important}
/* Less oversized modal typography. Forms remain scrollable when viewport is too short. */
.modal{font-size:13px;max-height:min(92svh,760px)}.modal-head{padding:17px 19px 13px}.modal-head h2{font-size:20px;margin:5px 0 2px}.modal-head p{font-size:11px}.modal-body{padding:16px 19px}.form-grid{gap:10px}.form-grid label{font-size:11px;gap:4px}.modal input:not([type=checkbox]),.modal select{min-height:36px;padding:8px 10px;font-size:12px}.permission-fieldset{margin:13px 0 0;gap:7px;padding:10px 12px}.permission-fieldset label{font-size:12px}.hint{font-size:11px;margin:11px 0 0}.modal-actions{padding:11px 19px}
/* Desktop: No page scrollbar for the normal 4-card dashboard at common laptop sizes.
   Never hide scrollbars at the cost of inaccessible content on small windows. */
@media(min-width:1060px) and (min-height:590px){
  #dashboard:not([hidden]) #workspaceView:not([hidden]){min-height:0}
  .workspace-header-inner{min-height:56px}
  .workspace-shell#workspaceView{padding-top:13px;padding-bottom:8px}
  .welcome-hero{height:clamp(105px,19vh,142px)}
  .application-card{height:clamp(156px,28vh,198px)}
}
@media(max-width:1190px){.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.application-card{height:155px}.application-card p{min-height:0}}
@media(max-width:760px){
  .workspace-header-inner{min-height:55px;padding:5px 13px}.brand-logo{width:39px;height:39px}.brand strong{font-size:15px}.brand span{font-size:8px;letter-spacing:1.3px}.account-button{min-width:0}.account-button .avatar{width:30px;height:30px}
  .workspace-shell{padding:12px 12px 17px}#adminPanel.admin-screen{padding:11px 12px 16px}
  .welcome-hero{height:auto;min-height:123px}.hero-content{padding:18px}.welcome-hero h1{font-size:clamp(22px,5.3vw,28px)}.welcome-hero p{font-size:12px}
  .app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.application-card{height:auto;min-height:150px;padding:13px}.app-icon{width:39px;height:39px}.app-icon .i{width:23px;height:23px}.application-card h2{font-size:13px}.application-card p{font-size:11px}
  .admin-heading{flex-direction:row;align-items:center}.admin-heading h1{font-size:22px}.admin-heading p{font-size:11px}.kpi-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.kpi{height:auto;min-height:68px;padding:8px;gap:6px}.kpi-icon{width:30px;height:30px}.kpi-icon .i{width:18px;height:18px}.kpi span{font-size:9.5px}.kpi strong{font-size:19px}.kpi small{font-size:9px}
  .user-panel-heading{flex-direction:row;align-items:center}.filter-row{grid-template-columns:1fr 1fr;gap:7px}.search-field{grid-column:span 2;min-height:35px}.reset-button{grid-column:auto}.users-table{min-width:750px}.table-footer{flex-direction:row;flex-wrap:wrap}
}
@media(max-width:520px){
  .app-grid{grid-template-columns:1fr}.application-card{min-height:117px;gap:9px}.card-top{align-items:center}.application-card h2{font-size:14px}.application-card p{font-size:11px}.workspace .btn{min-height:32px;padding:6px 10px}
  .kpi small{display:none}.kpi-icon{display:none}.admin-heading{align-items:flex-start}.admin-heading .btn{font-size:10px}.user-panel{padding:9px}.filter-row{grid-template-columns:1fr 1fr}.filter-row select{min-width:0}
}
@media(max-width:380px){.brand strong{font-size:13px}.brand span{font-size:7px}.account-button{padding:4px}.kpi{padding:7px}}
/* The legacy #adminPanel button selector must not repaint navigation or outline actions gold. */
#adminPanel .back-link{background:transparent;border:0;border-radius:0;box-shadow:none;color:#b9d5ee;padding:0;font-size:11.5px;font-weight:600}
#adminPanel .back-link:hover{color:#ffd991;background:transparent}
#adminPanel .btn-outline{background:rgba(17,40,63,.67);border:1px solid #49617b;color:#dce7f5;font-weight:650}
#adminPanel .btn-outline:hover{background:#17334c}
#adminPanel .row-actions button{border:1px solid #456686;background:#112d4b;color:#e5eefb;font-weight:650}
#adminPanel .row-actions button:hover{background:#214463;border-color:#e8b969}
/* Extra density for the saved-user notice + account list on 768px-high laptops. */
@media(min-width:1000px){
  #adminPanel.admin-screen{padding-top:9px;padding-bottom:6px}
  .admin-top{margin-bottom:7px}.admin-heading{margin-top:4px}
  .kpi{height:65px}.kpi-icon{width:37px;height:37px}
  .user-panel{margin-top:8px;padding:9px 12px 8px}
  .notice{padding:6px 11px;margin:7px 0;gap:9px}
  .filter-row{margin:7px 0 7px}.filter-row input,.filter-row select{min-height:31px}
  .users-table td{padding:5px 8px}.users-table th{padding:7px 8px}
  .table-user small{max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #adminPanel .workspace-footer{display:none}
}
#adminPanel .notice>button{background:transparent;border:0;box-shadow:none;color:#cbf4e7;padding:3px;width:25px;height:25px;display:grid;place-items:center}
#adminPanel .notice>button:hover{background:#ffffff12;color:white}
