/* v1.0.76 — adaptive workspace geometry for wide and ultrawide displays. */
:root{
  --v176-frame:2400px;
  --v176-gutter:clamp(18px,2.25vw,56px);
}

/* Let the application canvas use the display while retaining a deliberate frame. */
.shell>main{max-width:none;width:100%;min-width:0}
.shell>main>header,
.workspace-column,
.command-shell>main>.topbar,
.command-shell>main>.command-hero,
.command-shell>main>.portfolio-rail,
.command-shell>main>.live-board,
.command-shell>main>.pulse-grid,
.command-shell>main>.dashboard-grid,
.command-shell>main>.flow-strip{
  width:100%;
  max-width:min(var(--v176-frame),100%);
}
.command-shell>main{padding-left:var(--v176-gutter);padding-right:var(--v176-gutter)}

/* Drawers remain modeless, but gain usable reading width on large monitors. */
.visual-record-panel,
.issue-dialog{width:clamp(720px,30vw,980px)}

@media(min-width:1900px){
  .shell>main{padding-left:var(--v176-gutter);padding-right:var(--v176-gutter)}
  .shell>main>header{padding:22px 26px}
  .shell>main>header h1{font-size:28px}
  .shell>main>header .sub{font-size:13px}

  .scope-toggle{min-height:60px;padding:12px 16px}
  .scope-toggle small{font-size:9px}.scope-toggle b{font-size:12px}
  .stats{gap:14px}
  .stats article{min-height:92px;padding:20px 22px}
  .stats article small{font-size:10px}.stats article b{font-size:30px}
  .workspace{min-height:520px}
  .workspace>.panel-head{min-height:82px;padding:20px 24px}
  .workspace>.panel-head h2{font-size:21px}.workspace>.panel-head p{font-size:12px}
  .table-wrap{padding:0 18px 20px}
  .table-wrap table{border-spacing:0 7px}
  .table-wrap th{padding:12px 14px;font-size:10px}
  .table-wrap td{padding:16px 14px;font-size:12px}
  .record-preview-row{min-height:58px;padding-top:10px;padding-bottom:10px}

  .command-shell>main>.topbar{height:74px;padding-left:18px;padding-right:18px}
  .search-wrap{width:min(620px,44vw);height:42px}.search-wrap input{font-size:13px}
  .command-hero{min-height:190px;padding:31px 34px}
  .command-hero h1{font-size:34px}.command-hero p{font-size:14px}
  .hero-copy>span{font-size:10px}
  .quick-actions{grid-template-columns:repeat(3,155px);gap:10px}
  .quick-actions a{min-height:76px;padding:13px 14px}.quick-actions a span{font-size:13px}.quick-actions a small{font-size:8px}
  .portfolio-rail{min-height:50px;padding-left:20px;padding-right:20px}
  .live-board>header{min-height:68px;padding:14px 19px}.live-board>header h2{font-size:16px}.live-board>header p{font-size:10px}
  .ops-sector{padding:17px 18px}.sector-head{grid-template-columns:38px minmax(0,1fr)}
  .sector-head>span{width:36px;height:36px}.sector-head small{font-size:8px}.sector-head b{font-size:29px}.sector-head em{font-size:9px}
  .sector-feed b{font-size:10px}.sector-feed small{font-size:9px}
  .pulse-grid{gap:14px}.pulse-grid a{min-height:108px;padding:16px 18px}.pulse-grid small{font-size:9px}.pulse-grid b{font-size:31px}.pulse-grid em{font-size:10px}
  .dashboard-grid{gap:15px}.dashboard-grid .panel-head{min-height:76px;padding:18px 21px}.panel-kicker{font-size:9px}.dashboard-grid .panel-head h2{font-size:18px}
  .action-list,.site-list{padding-left:15px;padding-right:15px}.action-row,.site-row{min-height:68px;padding:10px 9px}.action-row b,.site-row b{font-size:12px}.action-row small,.site-row small{font-size:10px}.action-row em,.site-row em{font-size:9px}
  .flow-strip{min-height:66px}.flow-title,.flow-strip>a{padding:18px 21px}.flow-strip b{font-size:12px}.flow-strip small{font-size:9px}

  .issue-shell>header,.visual-panel-shell>header{padding:27px 30px}
  .issue-shell h2{max-width:800px;font-size:26px}
  .issue-scroll{padding:26px 30px 36px}
  .issue-shell h3{font-size:15px}
  .issue-hierarchy{padding:15px 17px}.issue-hierarchy small{font-size:9px}.issue-hierarchy b{font-size:12px}
  .issue-facts>div{padding:13px}.issue-facts small{font-size:10px}.issue-facts b{font-size:13px}
  .issue-description p{font-size:13px}.issue-evidence img{height:230px}
  .issue-action{font-size:12px}.issue-history-row p{font-size:11px}.issue-history-row small{font-size:9px}
  .issue-next label{font-size:11px}
  .visual-thumb img{height:280px}
}

@media(min-width:2700px){
  :root{--v176-frame:2520px}
}

@media(max-width:850px){
  .shell>main,.command-shell>main{padding-left:18px;padding-right:18px}
  .visual-record-panel,.issue-dialog{width:100%}
}
