.standalone-form-page{padding:36px 48px 56px!important}
.standalone-form-page>.workbench-tools,.standalone-form-page>.page-title,.standalone-form-page>.project-create-page{max-width:1400px;margin-left:auto;margin-right:auto}
.project-create-page>.panel{padding:28px 30px!important;overflow:visible}
.project-create-page>.panel+.panel{margin-top:22px!important}
.project-create-page .panel-head{padding:4px 0 22px;margin-bottom:8px}
.project-create-page .field{margin:10px 0}
.project-create-page textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 14px;line-height:1.65;resize:vertical;background:#fff;font:inherit}
.project-create-page>.actions{justify-content:flex-end;padding:8px 2px 0}
.project-device-row{border:1px solid var(--line);border-radius:16px;padding:20px 22px;margin:16px 0;background:#fbfdfc;box-shadow:0 4px 14px rgba(13,91,80,.05)}
.device-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.device-card-head>div{display:flex;align-items:center;gap:12px;min-width:0}
.device-card-head span{flex:none;background:var(--green);color:#fff;border-radius:999px;padding:6px 10px;font-weight:700}
.device-card-head strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device-card-head button{flex:none;background:#fff1ef;color:#a33a2e}
.device-basic-grid{display:grid;grid-template-columns:minmax(280px,2fr) 100px 100px minmax(160px,1fr);gap:14px;align-items:end;margin-top:10px}
.device-requirement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}
.requirement-box{min-width:0;border:1px solid #d7e5e1;background:#fff;border-radius:13px;padding:16px}
.requirement-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.requirement-title b{display:block;font-size:15px}.requirement-title small{display:block;color:var(--muted);margin-top:4px}.requirement-title>span{flex:none;background:var(--pale);color:var(--green);border-radius:999px;padding:5px 9px;font-weight:700}
.attachment-picker{display:grid;gap:8px;margin-top:12px;padding:12px;border:1px dashed #b9d1cb;border-radius:10px;background:#f5faf8}
.attachment-picker span{font-weight:700;color:var(--green)}
.attachment-picker input{max-width:100%}
.requirement-box p{margin:9px 0 0;color:var(--muted);font-size:13px}
.project-budget-source{margin-top:18px;padding:22px}
.project-budget-source>.panel-head{align-items:center}
.project-budget-groups{display:grid;gap:12px;margin-top:16px}
.project-budget-groups>section{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.project-budget-groups header{display:flex;justify-content:space-between;gap:16px;padding:12px 15px;background:#f1f7f5;color:var(--green)}
.project-budget-groups section>div{display:grid;grid-template-columns:minmax(260px,1.7fr) repeat(3,minmax(120px,.7fr)) auto;gap:14px;align-items:center;padding:12px 15px;border-top:1px solid var(--line)}
.project-budget-groups small{display:block;margin-top:3px;color:var(--muted)}
.budget-picker-filters{grid-template-columns:1fr 1.7fr;margin:16px 0}
.dialog:has(.budget-picker-list){width:min(1320px,96vw);padding:28px 30px}
.budget-picker-list{display:grid;gap:9px;max-height:520px;overflow:auto;padding:2px 8px 2px 2px}
.budget-picker-row{display:grid;grid-template-columns:24px minmax(330px,1.7fr) minmax(130px,.62fr) minmax(165px,.78fr) 142px;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:#fbfdfc}
.budget-picker-row>span small{display:block;margin-top:4px;color:var(--muted)}
.budget-picker-row>label{display:grid;gap:5px;font-weight:700;justify-items:start}
.budget-picker-row>label input[type="number"]{width:118px;max-width:100%;height:40px;padding:0 9px}
.budget-picker-row input[type="checkbox"]{width:19px;height:19px}
.edit-budget-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#f5faf8}
.edit-budget-summary div{display:grid;gap:4px}.edit-budget-summary span{color:var(--muted)}
.edit-budget-tags{display:flex;gap:7px;flex-wrap:wrap}
.edit-budget-tags span{padding:6px 9px;border-radius:999px;background:var(--pale);color:var(--green);font-weight:700}
.edit-budget-controls{display:grid;gap:8px}
.edit-budget-controls label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#536a65}
.edit-budget-controls input,.edit-budget-controls select{width:142px;height:36px;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:#fff}
.execution-unit-panel{margin:18px 0}.execution-panel-actions{display:flex;align-items:center;gap:10px}.execution-panel-actions button{background:var(--pale);color:var(--green)}.execution-unit-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;padding:16px}.execution-unit-list article{border:1px solid var(--line);border-radius:13px;background:#fbfdfc;padding:15px}.execution-unit-list article header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.execution-unit-list article header b,.execution-unit-list article header small{display:block}.execution-unit-list article header small{margin-top:4px;color:var(--muted)}.execution-unit-list dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}.execution-unit-list dl div{padding:9px 10px;border-radius:9px;background:#f1f7f5}.execution-unit-list dt{font-size:12px;color:var(--muted)}.execution-unit-list dd{margin:4px 0 0;font-weight:700}.execution-unit-dialog{width:min(980px,96vw);padding:24px}.execution-unit-editor{display:grid;gap:14px;margin:16px 0}.execution-unit-editor>section{border:1px solid var(--line);border-radius:14px;overflow:hidden}.execution-unit-editor>section>header{display:flex;justify-content:space-between;padding:13px 16px;background:#eef6f4}.execution-unit-editor>section>header span{color:var(--muted)}.execution-unit-basic{display:grid;grid-template-columns:1.5fr .6fr 1fr 1fr;gap:10px;padding:14px 16px}.execution-unit-basic label{display:grid;gap:5px;font-size:12px;font-weight:700}.execution-unit-basic input,.execution-device-row input{height:38px;min-width:0;border:1px solid var(--line);border-radius:8px;padding:0 9px;background:#fff}.execution-unit-basic input[readonly]{background:#f3f6f5;color:var(--muted)}.execution-device-head,.execution-device-row{display:grid;grid-template-columns:minmax(240px,1fr) 120px 150px;gap:12px;align-items:center;padding:10px 16px;border-top:1px solid var(--line)}.execution-device-head{background:#f8faf9;color:var(--muted);font-weight:700}.execution-device-row small{display:block;color:var(--muted);margin-top:3px}.execution-device-row input{width:120px}
@media(max-width:1100px){.project-budget-groups section>div,.budget-picker-row{grid-template-columns:1fr 1fr}.budget-picker-row>input{grid-row:1/3}}
@media(max-width:850px){.execution-unit-basic{grid-template-columns:1fr 1fr}.execution-device-head,.execution-device-row{grid-template-columns:1fr 90px 110px}}
@media(max-width:1100px){.device-basic-grid{grid-template-columns:1fr 1fr}.device-name{grid-column:1/-1}.device-requirement-grid{grid-template-columns:1fr}}
@media(max-width:700px){.standalone-form-page{padding:20px 16px 40px!important}.project-create-page>.panel{padding:20px 18px!important}.device-basic-grid{grid-template-columns:1fr}.device-name{grid-column:auto}.project-device-row{padding:16px}.device-card-head{align-items:flex-start}}
/* Per-hospital contracting subjects */
.project-edit-dialog{width:min(980px,calc(100vw - 40px));max-height:calc(100vh - 40px);padding:24px 28px}
.project-edit-dialog>h2{margin:0 0 4px}.project-edit-dialog>.muted{margin:0 0 14px}
.project-edit-dialog .dialog-grid{gap:12px 16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.project-edit-dialog .dialog-grid>.full{grid-column:1/-1}
.project-edit-dialog .field{gap:5px}.project-edit-dialog .field input,.project-edit-dialog .field textarea{min-height:44px;padding:9px 12px}
.project-edit-dialog .field textarea{min-height:64px}.project-edit-dialog .edit-budget-summary{padding:12px 14px}
.project-edit-dialog .edit-budget-tags{max-height:92px;overflow:auto;padding-right:4px}
@media(max-width:820px){.project-edit-dialog .dialog-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.project-edit-dialog{width:calc(100vw - 20px);padding:20px}.project-edit-dialog .dialog-grid{grid-template-columns:1fr}}
.execution-unit-list article footer{display:flex;justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid #dce8e5}
.unit-subject-dialog{width:min(920px,calc(100vw - 40px))}
.unit-subject-form{margin-top:18px}
.subject-chain{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:12px;align-items:stretch}
.subject-chain div{padding:16px;border:1px solid #d9e5e2;border-radius:14px;background:#f5f9f8;display:flex;flex-direction:column;gap:6px}
.subject-chain div span{font-size:13px;color:#647a75}.subject-chain div b{line-height:1.45}
.subject-chain i{align-self:center;font-style:normal;color:#77908a;font-size:20px}
.choice-card{display:flex;gap:12px;align-items:flex-start;border:1px solid #d9e5e2;border-radius:14px;padding:14px 16px;cursor:pointer}
.choice-card:has(input:checked){border-color:#16806d;background:#f0faf7}
.choice-card input{margin-top:4px}.choice-card span{display:flex;flex-direction:column;gap:4px}.choice-card small{color:#647a75}
@media(max-width:760px){.subject-chain{grid-template-columns:1fr}.subject-chain i{transform:rotate(90deg);justify-self:center}}
