/* Compact application chrome. Keep full-size controls in dialogs and forms. */
:root{--rail-w:184px;--topbar-h:52px}
.rail-brand{height:60px;padding:0 14px}
.rail-brand .brand-symbol{width:23px;height:23px}
.rail-brand .brand-name{font-size:18px;letter-spacing:-.8px}
.rail-brand .brand-lockup{gap:8px}
.rail-workspace{margin:0 10px 18px;padding:9px 7px;gap:8px;border-radius:8px}
.rail-workspace .workspace-avatar{width:28px;height:28px;font-size:18px}
.rail-workspace strong{font-size:12px}
.rail-workspace span{font-size:10px}
.rail-section-label{padding:0 20px 7px;font-size:11px}
.rail-nav{padding:0 10px;gap:3px}
.rail-nav-btn{min-height:38px;padding:8px 10px;gap:8px;font-size:13px;border-radius:7px}
.rail-nav-btn .ui-icon{width:17px;height:17px}
.rail-nav-btn>span{min-width:0}
.rail-kbd{font-size:10px}
.rail-summary{margin:20px 18px 14px;padding-top:16px;gap:12px 8px}
.rail-summary .stat-val{font-size:20px}
.rail-summary .stat-lbl{font-size:10px;margin-top:2px}
.rail-help{margin:auto 12px 12px;padding:8px 4px;gap:8px}
.rail-help span{font-size:11px}
.rail-help small{font-size:10px}
.rail-footer{margin:0 12px;padding:12px 0}
.rail-footer-actions{margin-top:8px}
.user-badge{gap:7px}
.user-badge-name{font-size:13px}
.page-header{padding:10px 16px;gap:12px;min-height:56px}
.page-breadcrumb{display:none}
.page-heading{gap:8px;flex:1}
.page-heading>div{min-width:0}
.topbar-title{font-size:20px;line-height:1.3;letter-spacing:-.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-header-actions{gap:12px;flex-shrink:0}
.page-current-date{font-size:12px}
.topbar,.filter-strip,.workspace,.workspace-footer{margin-left:16px;margin-right:16px}
.topbar{min-height:52px;padding:8px 12px;gap:8px;border-radius:9px 9px 0 0}
.topbar:has(#search-wrap[hidden]){display:none}
.topbar-left,.topbar-right,.topbar-center{gap:8px}
.topbar-range{font-size:14px;letter-spacing:-.2px}
.topbar-right>.btn{font-size:12px;min-height:34px;padding:5px 10px}
.topbar .search-input{height:34px;font-size:12px}
.filter-strip{padding:6px 12px;gap:8px}
.filter-strip .filter-select{min-height:30px;font-size:12px}
.workspace{border-radius:0 0 9px 9px}
.workspace-footer{padding:6px 0;font-size:10px}
.gantt-commandbar{padding:6px 12px}
.gantt-head,.gantt-table-header,.gantt-time-header{height:56px}
.gantt-major{height:24px}
.gantt-major>span{line-height:23px}
.gantt-minor{height:31px}

@media(min-width:901px){
  .topbar{flex-wrap:nowrap}
  .topbar-left{flex:0 0 auto;flex-wrap:nowrap}
  .topbar-center{order:0;width:auto;flex:0 0 auto}
  .topbar-right{margin-left:auto;flex:0 1 auto}
  .topbar .search-wrap{flex:0 1 150px;max-width:150px}
  .topbar .search-input{width:100%;min-width:90px}
  .topbar .seg-btn{padding:3px 10px}
}
@media(min-width:721px) and (max-width:900px){
  .topbar{flex-wrap:wrap;row-gap:6px}
  .topbar-left{flex:1;flex-wrap:nowrap}
  .topbar-center{order:0;width:auto;flex:0 0 auto}
  .topbar-right{flex:1 0 100%;justify-content:flex-end}
  .topbar .search-wrap{flex:1;max-width:none}
  .topbar .search-input{width:100%}
}
@media(max-width:960px){
  .left-rail{width:224px}
  .rail-nav-btn{min-height:44px}
}
@media(max-width:720px){
  .page-header{padding:8px 12px;gap:8px;flex-wrap:nowrap;min-height:60px}
  .topbar-title{font-size:18px}
  .page-header-actions{flex:0 0 auto;margin:0;gap:0}
  .page-header-actions .locale-switcher{padding:2px;gap:0}
  .page-header-actions .locale-btn{min-width:44px;min-height:44px;font-size:11px;padding:0 4px}
  .topbar,.filter-strip,.workspace{margin-left:8px;margin-right:8px}
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;padding:8px;min-height:0}
  .topbar-left{grid-column:1/-1;grid-row:1;flex-wrap:nowrap;justify-content:space-between;gap:6px}
  .topbar-range{font-size:13px}
  .topbar-center{grid-column:1;grid-row:2;order:0;justify-content:flex-start;min-width:0}
  .topbar-center .seg-group{width:auto;padding:2px;gap:0}
  .topbar .seg-btn{min-height:44px;padding:4px 8px;flex:0 1 auto}
  .topbar-right,.topbar-right.has-import{display:contents}
  .topbar .search-wrap,.topbar-right.has-import .search-wrap{grid-column:1/-1;grid-row:3;max-width:none;width:100%}
  .topbar .search-input{width:100%;height:44px;font-size:13px}
  #btn-import-mpp{grid-column:2;grid-row:2}
  #btn-primary-create{grid-column:3;grid-row:2}
  .topbar-right>.btn{min-height:44px;padding:5px 8px;font-size:12px}
  .filter-strip{padding:6px 8px;gap:6px}
  .filter-strip .filter-select,.filter-strip>.btn,.filter-strip .checkbox-row{min-height:44px}
  .workspace-footer{margin:0 10px;padding:4px 0}
  .gantt-commandbar{padding:5px 8px}
}
@media(max-width:420px){
  #btn-primary-create{width:44px;min-width:44px;padding:0}
  #btn-primary-create>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
