/* Assignment details stay inside the opened dialog to keep the job list quiet. */
.assignment-detail-modal{width:min(640px,100%);max-height:calc(100dvh - 48px);scrollbar-width:thin;scrollbar-color:#c7d8bd transparent;overscroll-behavior:contain}
.assignment-detail-modal .modal-header{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line)}
.assignment-detail-modal .modal-header h2{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.assignment-detail-modal .modal-header .icon-button{flex-shrink:0;min-width:44px;min-height:44px}
.assignment-detail-modal .modal-body{min-width:0}
.assignment-detail-modal .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.assignment-overview{min-width:0}
.assignment-client{margin:0 0 16px;color:#38533a;font-size:13px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}
.assignment-detail-top{display:flex;align-items:center;gap:9px;margin-bottom:18px;color:var(--muted);font-size:11px}
.assignment-detail-top .eyebrow{margin:0}
.assignment-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px}
.assignment-summary-item{display:flex;align-items:flex-start;gap:10px;min-width:0;color:#385d37}
.assignment-summary-item>svg{width:17px;height:17px;margin-top:2px;color:#809772}
.assignment-summary-item>div{min-width:0}
.assignment-summary-item small{display:block;margin-bottom:4px;color:#7b8c73;font-size:10px;line-height:1.4}
.assignment-summary-item span{display:block;color:#38533a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.assignment-extra{margin-top:18px;border-top:1px solid #edf1e9;min-width:0}
.assignment-extra>summary{cursor:pointer;min-height:44px;padding:12px 0;color:#6b8260;font-size:11px;font-weight:550;line-height:1.7}
.assignment-extra>div{padding:0 0 12px;line-height:1.7;font-size:12px;color:#6b7f62;overflow-wrap:anywhere}
.assignment-extra p{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}
.assignment-extra p:last-child{margin-bottom:0}
.assignment-progress{margin-top:23px;padding-top:22px;border-top:1px solid var(--line);min-width:0}
.progress-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:17px}
.progress-header h3{margin:0;color:#365b2b;font-size:15px;letter-spacing:-.25px;line-height:1.5;font-weight:680}
.progress-header p{margin:5px 0 0;color:#7b8c73;font-size:11px;line-height:1.7}
.progress-list-container{display:grid;gap:13px;min-width:0}
.progress-group{min-width:0;border:1px solid #e4ebde;border-radius:11px;overflow:hidden;background:#fff}
.progress-group>h4,.progress-group>summary{display:flex;align-items:center;gap:7px;min-height:44px;margin:0;padding:11px 14px;background:#f7faf3;color:#557445;font-size:11px;font-weight:650;line-height:1.5}
.progress-group>h4>svg,.progress-group>summary>svg{width:15px;height:15px}
.progress-group>summary{position:relative;cursor:pointer;list-style:none;padding-right:37px;transition:background .18s}
.progress-group>summary:hover{background:#eff5e7}
.progress-group>summary:focus-visible,.assignment-extra>summary:focus-visible{outline:3px solid #9abe71;outline-offset:-3px;border-radius:7px}
.progress-group>summary::-webkit-details-marker{display:none}
.progress-group>summary::after{content:'';position:absolute;right:17px;top:18px;width:6px;height:6px;border-right:1.5px solid #79916a;border-bottom:1.5px solid #79916a;transform:rotate(45deg);transition:transform .18s}
.progress-group[open]>summary::after{transform:rotate(225deg);top:21px}
.progress-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:6px;background:#e8f0df;color:#61814e;font-size:10px;font-weight:650;line-height:1;white-space:nowrap}
.progress-open{border-color:#e8e5d6}
.progress-open>h4{background:#faf8ef;color:#8a7847}
.progress-open .progress-count{background:#f0ebd6;color:#8a7847}
.progress-item{display:flex;align-items:flex-start;gap:10px;padding:14px;border-top:1px solid #edf1e8;min-width:0}
.progress-item-main{flex:1;min-width:0}
.progress-text{margin:0;color:#3b513b;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.progress-author{display:flex;flex-wrap:wrap;gap:3px 9px;margin-top:7px;color:#8a9880;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.progress-author strong{font-weight:550;color:#6c8160}
.progress-author time{font-variant-numeric:tabular-nums}
.progress-resolution{display:flex;align-items:center;gap:5px;margin:7px 0 0;font-size:10px;line-height:1.6;color:#6c8c54;overflow-wrap:anywhere}
.progress-resolution .icon{width:12px;height:12px}
.progress-resolve{flex-shrink:0;display:inline-grid;place-items:center;min-width:44px;min-height:44px;margin:-3px -3px -3px 0;border:1px solid #dce8d2;border-radius:9px;background:#f6faef;color:#71995a;transition:background .18s,border-color .18s,transform .18s}
.progress-resolve:hover{background:#e9f3dc;border-color:#bdd6a6;color:#426c32}
.progress-resolve:not(:disabled):active{transform:scale(.96)}
.progress-resolve>svg{width:18px;height:18px}
.progress-resolve:disabled{opacity:.5}
.progress-done .progress-text{color:#73846a}
.progress-comments>summary{background:#f8faf6}
.progress-empty{margin:0;padding:14px;color:#8b9980;font-size:11px;line-height:1.7}
.progress-list-container>.progress-empty{padding:13px 14px;border:1px dashed #dce7d3;border-radius:9px;background:#fafcf7}
.progress-compose{margin-top:20px;padding:16px;border:1px solid #e0e9d8;border-radius:12px;background:linear-gradient(140deg,#f8fbf3,#fcfdf9);min-width:0}
.progress-compose-label{display:block;margin-bottom:11px;color:#4e6c3d;font-size:12px;font-weight:600}
.progress-type-fieldset{border:0;padding:0;margin:0;min-width:0}
.progress-type-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:11px}
.progress-type-selector>label{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:8px 7px;border:1px solid #e1e9d8;border-radius:8px;background:#fff;color:#7c8e70;font-size:11px;font-weight:500;cursor:pointer;line-height:1.4;transition:background .18s,border-color .18s,color .18s}
.progress-type-selector>label:has(input:checked){color:#315e30;background:#edf5e4;border-color:#abc991}
.progress-type-selector>label:has(input:focus-visible){outline:3px solid #9abe71;outline-offset:2px}
.progress-type-selector input{flex-shrink:0;width:14px;height:14px;margin:0;accent-color:var(--green)}
.progress-type-selector span{min-width:0;overflow-wrap:anywhere}
.progress-resolution{flex-wrap:wrap}
.progress-author strong{font-size:11px}
.progress-compose textarea{display:block;width:100%;min-height:100px;max-height:280px;padding:12px;border:1px solid #dfe8d6;border-radius:8px;background:#fff;color:#3c5737;font-family:inherit;font-size:14px;line-height:1.65;resize:vertical;overflow-wrap:anywhere}
.progress-compose textarea::placeholder{color:#9aaa90;opacity:1}
.progress-compose textarea:focus{outline:2px solid #bcd79c;outline-offset:1px;border-color:#bcd79c}
.progress-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px}
.progress-compose-footer small{color:#819175;font-size:10px;line-height:1.6}
.progress-compose-footer .button{min-height:44px;flex-shrink:0}
.progress-loading,.progress-error{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;padding:13px 14px;border:1px solid #e4ebdd;border-radius:9px;color:#819173;background:#f9fbf5;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.progress-error{border-color:#ecddcf;background:#fcf8f3;color:#987b5b}
.progress-error .button{margin-left:auto;min-height:44px}
.assignment-detail-actions{flex-wrap:wrap}
.assignment-detail-actions .button{min-height:44px}
@media(max-width:620px){
  .assignment-detail-modal{width:100%;max-height:calc(100dvh - 24px);border-radius:13px}
  .assignment-detail-modal .modal-header{padding:13px 15px 13px 19px;gap:8px}
  .assignment-detail-modal .modal-header h2{font-size:17px}
  .assignment-detail-modal .modal-body{padding:18px 16px}
  .assignment-detail-top{margin-bottom:16px}
  .assignment-summary-grid{grid-template-columns:minmax(0,1fr);gap:13px}
  .assignment-summary-item{gap:9px}
  .assignment-summary-item small{margin-bottom:2px}
  .assignment-extra{margin-top:15px}
  .assignment-progress{margin-top:19px;padding-top:19px}
  .progress-header{margin-bottom:14px}
  .progress-header h3{font-size:14px}
  .progress-group>h4,.progress-group>summary{padding-left:12px}
  .progress-item{padding:12px;gap:7px}
  .progress-text{font-size:12px}
  .progress-author{gap:3px 8px}
  .progress-compose{padding:12px;margin-top:16px}
  .progress-type-selector{gap:5px}
  .progress-type-selector>label{padding:8px 4px;gap:5px;font-size:10px}
  .progress-compose textarea{font-size:16px;min-height:112px}
  .progress-compose-footer{align-items:stretch;flex-direction:column;gap:10px}
  .progress-compose-footer .button{width:100%}
  .assignment-detail-actions{gap:8px;margin-top:20px;padding-top:16px}
  .assignment-detail-actions .button{flex:1;white-space:normal;font-size:11px;padding:10px}
}
@media(prefers-reduced-motion:reduce){
  .progress-group>summary,.progress-group>summary::after,.progress-resolve,.progress-type-selector>label{transition:none}
  .progress-resolve:not(:disabled):active{transform:none}
}
