/* Compact allocation workspace. Keep controls and processing states intact. */
#allocation{max-width:1600px;margin:auto;scroll-margin-top:80px;color:#2d454d;font-size:12px}
#allocation .section-header{margin-bottom:18px}#allocation .section-title{font-size:24px;letter-spacing:-.5px;font-weight:600;margin-bottom:4px}#allocation .section-subtitle{font-size:11px;line-height:1.5;color:#7a8d95}
#allocation .ai-panel{padding:17px 19px;border-radius:9px;margin-bottom:14px;background:#173f36}#allocation .ai-header{align-items:center;gap:15px;flex-direction:row;margin-bottom:14px}#allocation .ai-title{font-size:14px;font-weight:500;margin-bottom:4px}#allocation .ai-subtitle{font-size:11px;line-height:1.5;color:#b2c9bf}
#allocation .generate-btn{padding:9px 13px;border-radius:6px;font-size:11px;font-weight:500;gap:7px;white-space:nowrap;min-height:34px}#allocation .generate-btn:hover{transform:none}#allocation .generate-btn:disabled{cursor:wait;opacity:.65}
#allocation .ai-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:0;border-top:1px solid #ffffff1a;padding-top:12px}#allocation .ai-step{gap:6px;font-size:10px;line-height:1.4;padding:7px 8px;border-radius:5px;background:#ffffff07;opacity:1;color:#b1c8bd;min-width:0}#allocation .ai-step i{font-size:13px;flex-shrink:0;color:#8ab3a0}#allocation .ai-step.done{background:#ffffff10;color:#e0f1e7}#allocation .ai-step.done i{color:#a3d5b9}
#allocation #allocation-progress{font-size:11px;line-height:1.5;margin:0 0 12px;padding:8px 10px;background:#ffffff0a;border-radius:5px}#allocation #allocation-progress:empty{display:none}
#allocation .card{border:1px solid #e1e9e7;border-radius:8px;box-shadow:none;overflow:hidden}#allocation .card-header{padding:12px 16px;gap:12px;align-items:center;border-bottom:1px solid #e8eeeb}#allocation .card-title{font-size:12px;font-weight:500}#allocation .card-body{padding:13px 16px}#allocation #allocation-review{margin:0 0 14px;scroll-margin-top:72px}
#allocation .btn{padding:7px 10px;min-height:30px;font-size:10px;font-weight:500;border-radius:5px;gap:6px}#allocation .btn i{font-size:13px}#allocation .badge{font-size:9px;font-weight:400;padding:3px 6px;line-height:1.3;white-space:nowrap}#allocation #allocation-actions{gap:7px;margin:0 0 12px}#allocation #allocation-approval-hint{font-size:10px;line-height:1.5;color:#82949b}
#allocation .result-summary{font-size:11px;line-height:1.6;margin-bottom:11px;color:#758b94}#allocation .result-summary strong{font-size:11px;font-weight:500;color:#426151}#allocation #allocation-review .result-list{gap:6px;max-height:255px;padding-right:3px;scrollbar-width:thin}#allocation .result-row{padding:9px 11px;gap:10px;border-radius:5px}#allocation .result-main strong{font-size:11px;font-weight:400;line-height:1.5;margin-bottom:3px}#allocation .result-main span,#allocation .result-main small{font-size:10px;line-height:1.5}#allocation .empty-state{padding:18px 12px;font-size:11px;line-height:1.6}
#allocation .allocation-scope-card{margin-bottom:14px}#allocation .allocation-scope-card .card-header{align-items:flex-start}#allocation .allocation-scope-copy{font-size:10px;line-height:1.5;max-width:650px;margin-top:4px;color:#7e9198}#allocation .allocation-scope-actions{gap:6px;flex-shrink:0}#allocation .engineer-picker{margin:0;padding:12px 16px;max-height:230px;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;scrollbar-width:thin}#allocation .engineer-option{gap:8px;padding:9px 10px;border-radius:5px;min-width:0}#allocation .engineer-option-name{font-size:11px;font-weight:400;align-items:flex-start;gap:8px}#allocation .engineer-option-name>span:first-child{overflow-wrap:anywhere}#allocation .engineer-option-meta{display:block;font-size:9px;line-height:1.5;margin-top:4px;color:#84949c}#allocation .engineer-option input{width:13px;height:13px;flex-shrink:0;margin-top:2px;accent-color:#397759}#allocation .engineer-option:has(input:checked){background:#f2f8f4;border-color:#accdb7}#allocation .engineer-option:hover{border-color:#a8cbb3;background:#f8fbf9}#allocation .allocation-scope-summary{margin:0;padding:9px 16px;font-size:10px;border-top:1px solid #e7eeea;background:#fbfdfc;color:#7a8f87}
#allocation .stats-grid{gap:10px;margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}#allocation .stat-card{display:grid;grid-template-columns:27px 1fr auto;align-items:center;gap:9px;padding:12px 14px;border:1px solid #e1e9e7;border-radius:7px;box-shadow:none}#allocation .stat-card:hover{transform:none;box-shadow:none}#allocation .stat-icon{width:27px;height:27px;font-size:14px;margin:0;border-radius:6px}#allocation .stat-label{font-size:10px;margin:0;line-height:1.4}#allocation .stat-value{font-size:21px;font-weight:500;line-height:1.2;margin:0;letter-spacing:-.5px}
#allocation button:focus-visible,#allocation input:focus-visible{outline:2px solid #43896b;outline-offset:2px}
@media(min-width:1450px){#allocation .engineer-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1150px){#allocation .ai-steps{grid-template-columns:repeat(3,minmax(0,1fr))}#allocation .engineer-option-name{flex-wrap:wrap}#allocation .stat-card{grid-template-columns:23px 1fr;gap:6px}#allocation .stat-value{grid-column:2}#allocation .stat-icon{width:23px;height:23px}}
@media(max-width:650px){#allocation .section-title{font-size:22px}#allocation .ai-panel{padding:14px}#allocation .ai-header{flex-direction:column;align-items:stretch;gap:12px}#allocation .generate-btn{justify-content:center;min-height:38px}#allocation .ai-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#allocation .ai-step{font-size:9px;padding:6px}#allocation .card-header{padding:11px 12px}#allocation .card-body{padding:12px}#allocation .allocation-scope-card .card-header{flex-direction:column;align-items:stretch}#allocation .engineer-picker{grid-template-columns:1fr;padding:10px 12px;max-height:245px}#allocation .engineer-option-name{flex-wrap:nowrap}#allocation .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#allocation .stat-card{padding:11px}#allocation #allocation-approval-hint{flex-basis:100%}#allocation .result-row{flex-wrap:wrap}#allocation .btn{min-height:34px}}
@media(prefers-reduced-motion:reduce){#allocation .ai-step{transition:none}}

#allocation #allocation-progress[data-state="warning"]{color:#9a642d}

#allocation .planning-settings{border:1px solid #e1e9e7;border-radius:8px;background:#fff;margin-bottom:12px}#allocation .planning-settings summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;cursor:pointer;font-size:11px;color:#395c50}#planning-rules-summary{font-size:10px;color:#778e82}#planning-rules-form{padding:0 14px 12px}#allocation .planning-settings-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:center}#allocation .planning-settings label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#425e53}#allocation .planning-settings input{width:100%;height:32px;border:1px solid #dbe5df;border-radius:5px;padding:5px 8px;font:inherit;color:#314f41}#allocation .planning-settings small,#allocation .planning-settings p{font-size:10px;line-height:1.5;color:#7d8e84}#allocation .planning-settings p{margin-top:9px}#planning-rules-feedback:empty{display:none}#allocation .planning-settings :focus-visible{outline:2px solid #69a587;outline-offset:2px}@media(max-width:650px){#allocation .planning-settings-fields{grid-template-columns:1fr 1fr}#allocation .planning-settings summary{align-items:flex-start;flex-direction:column;gap:4px}}
