/* Operational screens: compact controls without changing the public landing page. */
.shell{gap:18px;padding:16px;max-width:1600px;margin:auto;grid-template-columns:210px minmax(0,1fr)}
.workspace{min-width:0;padding:0}.workspace h1{font-size:1.65rem;margin:0 0 14px}.workspace h2{font-size:1.1rem;margin:0 0 10px}.workspace h3{font-size:1rem}.workspace .lead{font-size:.94rem;margin:0 0 14px}
.workspace .card{padding:16px;border-radius:12px;margin-bottom:12px;box-shadow:0 2px 7px #12344804}.workspace .grid{gap:12px}.workspace .form{gap:12px}.workspace p{margin:8px 0;line-height:1.55}
.workspace button,.workspace .primary,.workspace .secondary{padding:8px 12px;min-height:36px;font-size:.86rem}.workspace .link{padding:2px 0;min-height:24px;text-align:left;color:#195de4;font-weight:600}
.workspace input,.workspace select,.workspace textarea{padding:9px 10px;min-width:0;max-width:100%;border-radius:7px}.workspace label{font-size:.85rem;font-weight:600;color:#29475c}.workspace textarea{resize:vertical;min-height:76px}.workspace textarea[name=old_clause],.workspace textarea[name=new_clause]{min-height:170px}
.workspace fieldset{min-width:0;padding:12px;border:1px solid #dbe4eb;border-radius:10px}.workspace legend{font-weight:650;color:#29475c;font-size:.92rem}.workspace td,.workspace th{padding:10px 12px;font-size:.88rem;overflow-wrap:anywhere}.workspace .row{gap:8px;flex-wrap:wrap}.workspace dd{margin:0 0 9px}.workspace dt{font-size:.79rem;font-weight:650;color:#315d7d}
.checkbox-inline{display:flex!important;align-items:center!important;justify-content:flex-start;gap:8px;cursor:pointer;grid-column:auto}.checkbox-inline input[type=checkbox]{width:17px;height:17px;min-height:17px;flex:none;margin:0}.checkbox-inline span{flex:1}
.side{padding:10px;border-radius:12px;min-width:0}.side button{padding:8px 10px;font-size:.85rem;line-height:1.35}.side summary{font-size:.78rem;font-weight:700;letter-spacing:.02em;padding:10px 8px}.schedule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px}.metric-row{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f4;flex-wrap:wrap}.metric-row meter{flex:1;min-width:70px}.outside-month{background:#f3f6f8;color:#667786}.hr-copy{font-size:.72rem!important;padding:3px 6px!important;min-height:24px!important}
.workspace .document-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.workspace .document-preview{min-width:0;position:sticky;top:12px;max-height:calc(100vh - 30px);overflow:auto}.preview-banner{position:sticky;top:0;z-index:20;padding:10px 16px}
@media(max-width:900px){.shell{grid-template-columns:180px minmax(0,1fr);padding:12px;gap:12px}.workspace .grid.three{grid-template-columns:1fr}.workspace .document-layout{display:block}.workspace .document-preview{position:static;max-height:none}}
@media(max-width:768px){.shell{display:block;padding:10px}.side{margin-bottom:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:none;overflow:visible}.side details{min-width:0}.side button{width:100%;text-align:left}.workspace .two,.workspace .grid.two{grid-template-columns:1fr}.workspace .table-wrap{overflow:visible}.workspace table:not(.payroll-preview table){min-width:0!important;width:100%}.workspace table:not(.payroll-preview table) thead{display:none}.workspace table:not(.payroll-preview table) tr{display:block;border:1px solid #dce5eb;border-radius:9px;margin-bottom:9px;padding:8px}.workspace table:not(.payroll-preview table) td{display:flex;gap:10px;justify-content:space-between;padding:5px;border:0;white-space:normal}.workspace td[data-label]::before{content:attr(data-label);font-weight:600;color:#456075;flex:0 0 35%}.workspace .card{padding:13px}.workspace .spread{flex-wrap:wrap;gap:10px}.workspace .metric{font-size:1.7rem}.workspace .document-layout[data-pane=fields] .document-preview{display:none}.workspace .document-layout[data-pane=preview]>form{display:none}.workspace .document-layout[data-pane=preview] .document-preview{display:block}.top{padding:12px;gap:10px;flex-wrap:wrap}.top nav{flex-wrap:wrap;gap:10px}.workspace input,.workspace select{font-size:16px}.workspace .form.two>h2{grid-column:auto}}
@media(max-width:375px){.shell{padding:7px}.workspace .card{padding:11px}.workspace .schedule-grid{grid-template-columns:1fr}.workspace h1{font-size:1.4rem}.workspace .row>*{max-width:100%}.workspace .primary{white-space:normal}.top .brand{font-size:1.15rem}}

/* Keep long private navigation labels readable on narrow screens. */
.side button{white-space:normal;overflow-wrap:anywhere;min-width:0}
@media(max-width:768px){.top nav .muted{overflow-wrap:anywhere;min-width:0}.workspace .badge{display:inline-block;margin-left:6px}}
