.dashboard-page{height:100%;min-height:0;overflow:hidden}
.dashboard-page>div:nth-child(2){flex:none}
.dashboard-work{flex:1;min-height:0}
.dashboard-left{min-height:0}
.resource-row{flex:none}
.dashboard-page .card,.dashboard-page .mini-item,.dashboard-page .project-tile{color:var(--ui-text)}
.assistant-body{overflow:hidden}.assistant-body .ai-mark{width:24px;height:24px;margin:0 auto 5px}.assistant-body p{font-size:8px;margin-bottom:3px}.assistant-body small{font-size:7px}.assistant-prompts{display:grid;gap:2px;margin-top:6px}.assistant-prompts button{height:21px;border:1px solid var(--ui-line);border-radius:4px;background:var(--ui-panel);color:var(--ui-text);text-align:left;padding:2px 5px;font-size:7px;line-height:1}.assistant-prompts button:hover{border-color:var(--ui-accent);background:var(--ui-subtle)}
.dashboard-split{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Reference image alignment: compact construction-company console. */
.side-section-label{color:var(--ui-nav-muted);font-size:9px;letter-spacing:.12em;margin:7px 7px 3px;text-transform:uppercase}
.nav-list-secondary{margin-bottom:4px}
.brand{align-items:center;gap:7px}.brand-logo{display:block;flex:0 0 38px;width:38px;height:38px;margin:5px 0 0 -3px;object-fit:contain}.brand-copy{min-width:0;flex:1;text-align:center;font-family:"Microsoft JhengHei UI","Microsoft JhengHei","Segoe UI",sans-serif;line-height:1.25}.brand strong{position:relative;left:-3px;font-size:13px;font-weight:700;line-height:1.35;letter-spacing:0;white-space:nowrap}.brand span{font-family:"Segoe UI",sans-serif;font-size:8px;letter-spacing:0;white-space:nowrap}.brand small{display:block;color:var(--ui-nav-muted);font-size:9px;margin-top:3px;letter-spacing:0;white-space:nowrap}
.backup-label{color:var(--ui-nav-muted);font-size:8px;padding:7px 6px;border-top:1px solid rgba(220,235,243,.14);white-space:nowrap}
.sidebar-foot{display:flex;align-items:center;gap:7px}.sidebar-foot-logo{display:block;flex:0 0 22px;width:22px;height:22px;object-fit:contain}.sidebar-foot-copy{min-width:0}.sidebar-foot strong,.sidebar-foot span{white-space:nowrap}.sidebar-foot strong{font-size:10px}.sidebar-foot span{font-size:8px}
.topbar{height:70px}.topbar h1{font-size:25px}.topbar p{font-size:10px;max-width:690px}.top-actions{gap:6px}.date-time{color:var(--ui-muted);font-size:10px;white-space:nowrap}.status-pills{display:flex;gap:5px}.status-pill{border:1px solid var(--ui-line);background:var(--ui-panel);color:var(--ui-text);padding:5px 7px;border-radius:4px;font-size:8px;white-space:nowrap}.status-pill b{color:var(--ui-success);font-weight:700}
.queue-block{background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:5px;padding:10px}.queue-block .card-title{margin-bottom:8px}.summary-card{min-height:108px;padding:10px 11px}.summary-card strong{font-size:27px}.summary-link{display:block;border:0;background:transparent;color:var(--ui-accent);padding:5px 0 0;font-size:9px;font-weight:800;text-align:left}.dashboard-work{grid-template-columns:minmax(0,1fr) 285px;gap:8px}.dashboard-left{grid-template-rows:minmax(0,1.05fr) minmax(0,.95fr);gap:8px}.dashboard-top-split{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:8px;min-height:0}.dashboard-bottom-split{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:0}.dashboard-top-split>.card,.dashboard-bottom-split>.card{min-height:0;overflow:hidden}.activity-tabs{display:flex;gap:10px;border-bottom:1px solid var(--ui-line);padding:0 0 6px;margin-bottom:4px}.activity-tabs button{border:0;background:transparent;color:var(--ui-muted);font-size:9px;padding:2px 0}.activity-tabs button.active{color:var(--ui-accent);font-weight:800;border-bottom:2px solid var(--ui-accent)}.activity-row{padding:7px 0}.activity-copy strong{font-size:11px}.activity-copy small{font-size:9px}.activity-time{font-size:8px}.research-card .mini-list{gap:0}.research-card .mini-item{padding:10px 0}.progress-inline{display:flex;align-items:center;gap:5px;min-width:70px;margin-left:auto}.progress-inline i{display:block;width:46px;height:4px;background:var(--ui-accent);border-radius:4px}.progress-inline b{font-size:9px;color:var(--ui-muted)}.dashboard-bottom-split .mini-item{padding:7px 0}.dashboard-bottom-split .mini-item strong{font-size:10px}.dashboard-bottom-split .mini-item small{font-size:8px}.project-list{display:grid;gap:6px}.project-line{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--ui-line);padding:5px 0;min-width:0}.project-line>span:first-child{min-width:0;flex:1}.project-line strong,.project-line small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-line strong{font-size:9px}.project-line small{font-size:8px;color:var(--ui-muted)}.project-line .pill{font-size:8px;padding:3px 5px}.dashboard-right{grid-template-rows:minmax(0,1.35fr) minmax(0,.95fr);gap:8px}.assistant-card{padding:12px}.assistant-card .card-title h3{font-size:17px}.assistant-state{font-size:8px;padding:4px 6px}.assistant-body{overflow:hidden}.assistant-body .ai-mark{width:30px;height:30px;margin:0 auto 6px}.assistant-body p{font-size:10px}.assistant-body small{font-size:8px}.assistant-prompts{gap:4px;margin-top:8px}.assistant-prompts button{height:26px;font-size:9px;padding:3px 6px}.assistant-inline{display:flex;gap:5px;margin-top:8px}.assistant-inline input{flex:1;min-width:0;background:var(--ui-panel);border:1px solid var(--ui-border-strong);color:var(--ui-text);border-radius:4px;padding:6px;font-size:9px}.assistant-inline button{width:30px;border:1px solid var(--ui-border-strong);border-radius:4px;background:var(--ui-accent);color:var(--ui-on-accent);font-size:13px}.quick-card{padding:10px}.quick-card .card-title{margin-bottom:7px}.quick-grid{gap:5px}.quick-btn{min-height:50px;padding:8px 5px 8px 29px}.quick-btn b{font-size:10px}.quick-btn small{font-size:8px}.quick-symbol{left:6px;top:12px}.resource-row{grid-template-columns:repeat(8,minmax(0,1fr));gap:0;padding:8px 6px}.resource-row small{font-size:8px}.resource-row strong{font-size:10px}.status-bar{height:27px}
@media(max-width:1450px){.top-actions .status-pills{display:flex}.date-time{display:none}.status-pill{font-size:7px;padding:4px 5px}.dashboard-work{grid-template-columns:minmax(0,1fr) 270px}.dashboard-bottom-split{gap:6px}.quick-btn{min-height:38px;padding-top:5px;padding-bottom:5px}.quick-symbol{top:8px}}
.summary-card{min-height:92px;padding:8px 9px}.summary-card strong{font-size:25px}.queue-block{padding:7px}.dashboard-page{height:auto;min-height:100%;overflow:visible}.assistant-card{min-height:285px}.assistant-body{flex:0 0 135px;overflow:hidden}.assistant-body .assistant-prompts{gap:2px}.assistant-prompts button{height:18px;font-size:8px}.quick-card{min-height:155px;overflow:visible}.quick-btn{min-height:28px;padding-top:3px;padding-bottom:3px}.quick-symbol{top:4px}.quick-btn b{font-size:8px}.quick-btn small{font-size:6px}
.assistant-card{min-height:300px}.assistant-body{flex:0 0 160px}.assistant-link{padding:4px;font-size:8px}.quick-card{min-height:145px}.quick-btn{min-height:25px;padding-top:2px;padding-bottom:2px}.quick-symbol{top:3px}
.dashboard-left{grid-template-rows:230px 190px}.dashboard-right{grid-template-rows:300px 145px}

/* A4R readability pass: preserve the reference composition while keeping the desktop UI usable at 125% scaling. */
@media(min-width:1151px){
  .app-shell{grid-template-columns:240px minmax(0,1fr)}
  .sidebar{padding:18px 12px 12px}
  .brand-logo{flex-basis:44px;width:44px;height:44px;margin-top:6px;margin-left:-4px}.brand strong{font-size:15px}.brand span{font-size:9px}.brand small{font-size:10px}
  .side-section-label{font-size:10px;margin-top:12px}.nav-list{gap:3px}.nav-item{min-height:38px;padding:8px 9px;font-size:13px;gap:10px}.nav-item span{font-size:16px;width:19px}
  .service-list{font-size:11px;gap:8px}.service-list>small{font-size:10px}.service-list b{font-size:10px}.sidebar-foot-logo{flex-basis:24px;width:24px;height:24px}.sidebar-foot strong{font-size:12px}.sidebar-foot span,.backup-label{font-size:9px}
  .main-area{padding:0 18px 10px}.topbar{height:82px}.topbar h1{font-size:28px}.topbar p{font-size:12px;max-width:760px}.breadcrumb{font-size:11px}.date-time{font-size:11px}.status-pill{font-size:10px;padding:6px 9px}.demo-pill{font-size:10px;padding:6px 10px}.top-icon{width:32px;height:32px;font-size:15px}.user-pill span{width:27px;height:27px}.user-pill b{font-size:12px}.user-pill small{font-size:10px}
  .demo-banner{height:32px;font-size:11px;padding:0 10px}.text-button{font-size:11px}
  #page-content{padding:12px 0 10px}.page{gap:11px}.page-head small,.eyebrow{font-size:10px}.page-head h2{font-size:23px}.page-head p{font-size:13px}.card{padding:14px}.card-title{margin-bottom:10px}.card-title small{font-size:10px}.card-title h3{font-size:17px}.button{font-size:12px;padding:8px 12px}.button.small{font-size:11px;padding:5px 8px}.pill{font-size:10px;padding:4px 8px}.data-table{font-size:12px}.data-table th{font-size:10px;padding:9px 10px}.data-table td{padding:9px 10px}.field input,.field select,.field textarea,.search-row input,.search-row select{font-size:12px;padding:8px}.drop-zone{padding:28px;font-size:12px}.drop-zone strong{font-size:16px}
  .dashboard-work{grid-template-columns:minmax(0,1fr) 350px}.dashboard-left{grid-template-rows:minmax(0,1.05fr) minmax(0,.95fr)}.dashboard-right{grid-template-rows:minmax(0,1.35fr) minmax(0,.95fr)}.summary-card{min-height:108px;padding:12px 13px}.summary-card small{font-size:11px}.summary-card strong{font-size:30px}.summary-card span,.summary-link{font-size:11px}.activity-copy strong{font-size:13px}.activity-copy small{font-size:10px}.activity-time{font-size:10px}.mini-item strong{font-size:12px}.mini-item small{font-size:10px}.assistant-card{padding:16px}.assistant-card .card-title h3{font-size:20px}.assistant-state{font-size:10px}.assistant-meta{font-size:11px}.assistant-body .ai-mark{width:38px;height:38px}.assistant-body p{font-size:13px}.assistant-body small{font-size:11px}.assistant-prompts{gap:5px}.assistant-prompts button{height:30px;font-size:10px}.assistant-inline input{font-size:11px}.assistant-link{font-size:11px;padding:8px}.quick-card{padding:13px}.quick-btn{min-height:50px;padding:9px 7px 9px 34px}.quick-btn b{font-size:11px}.quick-btn small{font-size:9px}.quick-symbol{left:8px;top:13px;width:20px;height:20px;font-size:12px}.resource-row{padding:10px 8px}.resource-row small{font-size:10px}.resource-row strong{font-size:12px}.status-bar{height:30px;font-size:10px}
}
/* Work pages use light cards; keep headings and controls high-contrast. */
.page:not(.dashboard-page) .card,.page:not(.dashboard-page) .card h3,.page:not(.dashboard-page) .card-title h3,.page:not(.dashboard-page) .card-title strong{color:var(--ui-text)}
.page:not(.dashboard-page) .card-title small,.page:not(.dashboard-page) label{color:var(--ui-muted)}
.page:not(.dashboard-page) .stat-card{color:var(--ui-text)}.page:not(.dashboard-page) .stat-card strong{color:var(--ui-text)}.page:not(.dashboard-page) .stat-card small,.page:not(.dashboard-page) .stat-card span{color:var(--ui-muted)}
.page:not(.dashboard-page) .teach-detail,.page:not(.dashboard-page) .teach-detail h3,.page:not(.dashboard-page) .teach-detail p{color:var(--ui-text)}.page:not(.dashboard-page) .teach-detail .eyebrow{color:var(--ui-muted)}
@media(max-width:1150px){html,body{min-width:1080px}.app-shell{grid-template-columns:220px minmax(0,1fr)}.nav-item{font-size:12px}.dashboard-work{grid-template-columns:minmax(0,1fr) 320px}}

/* Keep the complete dashboard visible in one desktop viewport. */
@media(min-width:1151px){
  .dashboard-page{height:100%;min-height:0;overflow:hidden}
  .dashboard-work{min-height:0;overflow:hidden}
  .dashboard-right{min-height:0;grid-template-rows:300px minmax(0,1fr)}
  .assistant-card{min-height:0}.assistant-body{flex:0 0 125px}.dashboard-right .assistant-body>small{display:none}.dashboard-right .assistant-prompts button:nth-child(n+4){display:none}.assistant-prompts button{height:22px;font-size:9px}.quick-card{min-height:0;overflow:hidden}
  .quick-grid{grid-auto-rows:minmax(0,1fr)}.quick-btn{min-height:28px;padding-top:3px;padding-bottom:3px}.quick-btn b{font-size:9px}.quick-btn small{font-size:7px}.quick-symbol{top:5px;width:18px;height:18px}
}
