/* R4.107: approved compact dashboard and account header. */
#app .account-header{padding:14px 30px;min-height:76px;gap:12px;background:#fff;border-bottom:1px solid #e2e7ed}
.account-brand{margin-right:auto;display:flex;align-items:center;gap:12px;color:#1c2b42;font-size:16px;font-weight:600;min-width:0}.account-brand img{width:54px;height:40px;object-fit:contain}.account-brand span{font-size:14px;font-weight:400;color:#718094}.account-brand small{display:block;font-size:10px;font-weight:400;color:#8390a1;margin-top:4px}
#app .account-header .account-icon{width:38px;height:38px;min-width:38px;border:0;background:transparent;color:#627188;box-shadow:none;border-radius:8px}#app .account-header .account-icon:hover{background:#f0f4f7}#app .account-header .account-icon svg{width:18px;height:18px}.account-header-actions{gap:3px}.account-header-user{padding-left:18px;margin-left:4px}.account-header-user strong{font-size:11px;font-weight:600}.account-header-user small{font-size:10px}
#main:has(.dashboard-stats)>.page-head{padding:0 0 20px!important;border-bottom:1px solid #dfe5ed!important;margin-bottom:23px}#main:has(.dashboard-stats)>.page-head h1{font-size:27px;font-weight:600;letter-spacing:-.6px}#main:has(.dashboard-stats)>.page-head .help{font-size:11px;color:#8290a2}#main:has(.dashboard-stats)>.page-head button{border-radius:7px;min-height:38px;font-size:11px;font-weight:500;box-shadow:0 1px 2px #25324a04}
#main .dashboard-ticker{background:linear-gradient(110deg,#1b2542,#25473f);border:1px solid #334c53;border-radius:14px;padding:14px 18px;box-shadow:0 4px 0 #d5dfdf;margin-bottom:24px;color:#e2ebe9}#main .ticker-label{color:#c7dfad;font-size:10px;letter-spacing:1px}#main .ticker-toggle{background:#ffffff10;color:white;border:1px solid #ffffff25;border-radius:8px;box-shadow:none;font-size:11px}
#main .dashboard-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px!important;border:0;border-radius:0;overflow:visible;background:none;margin-bottom:24px}
#main .dashboard-stats .stat{display:grid;grid-template-columns:minmax(0,1fr) 28px;column-gap:6px;align-content:start;min-height:0;padding:14px 15px 11px;border:1px solid #e1e7ef;border-radius:11px;background:linear-gradient(145deg,#fff,#fbfcfe);box-shadow:0 3px 0 #e1e6ee,0 5px 14px #28395104;transform:none}
#main .dashboard-stats .stat:nth-child(2),#main .dashboard-stats .stat:nth-child(6){background:linear-gradient(145deg,#fff,#f1f7f3)}
#main .dashboard-stats .stat>.muted{grid-column:1;grid-row:1;font-size:10px;line-height:1.4;min-height:28px;margin:0;color:#6c7b90;font-weight:400}
#main .dashboard-stats .stat strong{grid-column:1;grid-row:2;font-size:27px;line-height:1.1;margin:4px 0 10px;letter-spacing:-.6px;font-weight:650;color:#1b2740}
#main .dashboard-stats .stat small{grid-column:1/-1;border-top:1px solid #edf0f5;padding-top:8px;font-size:9px;color:#60758c;font-weight:400}
#main .dashboard-stats .dashboard-stat-icon{grid-column:2;grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#edf1f8;color:#405675} .dashboard-stat-icon svg{width:16px;height:16px}
#main .dashboard-stats .stat:nth-child(2) .dashboard-stat-icon,#main .dashboard-stats .stat:nth-child(6) .dashboard-stat-icon{background:#e9f3ee;color:#46765e}#main .dashboard-stats .stat:nth-child(3) .dashboard-stat-icon,#main .dashboard-stats .stat:nth-child(5) .dashboard-stat-icon{background:#fbefed;color:#b16a5e}#main .dashboard-stats .stat:nth-child(4) .dashboard-stat-icon{background:#faf3e5;color:#a08744}
#main .dashboard-stats .stat:hover{border-color:#aebfb6;box-shadow:0 3px 0 #d3dfd9,0 5px 14px #28395108}
@media(max-width:1250px){#main .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#app .account-header{padding:12px;gap:8px}.account-brand{flex:1}.account-brand img{width:38px;height:32px}.account-brand>div{font-size:13px}.account-brand span{font-size:11px}.account-header-actions{margin-left:auto}#app .account-header .account-icon{width:40px;height:40px;min-width:40px}.account-header-user{flex:0 1 auto;margin:0;padding-left:10px}.account-header-user>div{max-width:120px}#main .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#main .dashboard-stats .stat{padding:12px;min-height:0}#main .dashboard-stats .stat strong{font-size:25px}}
@media print{.account-brand{display:none}}

/* Override legacy high-specificity dashboard rules. */
#app #main .dashboard-ticker{background:linear-gradient(110deg,#1b2542,#25473f);border:1px solid #334c53;border-radius:14px;box-shadow:0 4px 0 #d5dfdf;padding:15px 18px;gap:16px;min-height:66px}
#app #main .ticker-label{display:flex;align-items:center;gap:8px;flex:none;font-size:10px;letter-spacing:1px;color:#c7dfad}
#app #main .ticker-label:before{content:"";width:6px;height:6px;border-radius:50%;background:#afd78d;box-shadow:0 0 0 4px #b6db9514}
#app #main .ticker-group>span{font-size:12px;font-weight:400;color:#e2ebe9;padding:4px 22px;border-right:1px solid #ffffff25}
#app #main .ticker-toggle{min-height:36px;padding:8px 13px;background:#ffffff10;color:#fff;border:1px solid #ffffff25;border-radius:8px;box-shadow:none}
#app .account-header{padding:14px 30px;min-height:76px}.account-header-user strong{font-size:12px}.account-header-user small{font-size:11px}
#app #main:has(.dashboard-stats)>.page-head{padding-bottom:20px!important;margin-bottom:23px;align-items:center}
#app #main:has(.dashboard-stats)>.page-head h1:before{content:"WORKSPACE / OVERVIEW";display:block;font-size:9px;font-weight:500;color:#929cab;letter-spacing:1px;margin-bottom:10px}
#app #main:has(.dashboard-stats)>.page-head button{min-height:40px;padding:9px 14px;font-size:12px;border-radius:8px}
@media(max-width:700px){#app .account-header{padding:12px;min-height:0}#app #main .dashboard-ticker{padding:12px;gap:12px}#app #main .ticker-label{font-size:9px}#app #main .ticker-window{flex-basis:calc(100% - 90px)}#app #main .ticker-toggle{margin-left:auto}#app #main:has(.dashboard-stats)>.page-head{align-items:flex-start}}

/* Chat unread placeholder must not create a second grid row. */
#app .account-header-actions{display:flex;align-items:center}
#app .account-header-actions .account-icon{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;line-height:1;box-sizing:border-box}
#app .account-header-actions .account-icon>svg{display:block;flex:0 0 18px;width:18px;height:18px;margin:0}
#app .account-header #chat-unread:empty{display:none}
