.mpc-drawer{position:fixed;top:0;right:0;bottom:0;z-index:60;display:flex;width:min(1180px,calc(100vw - 24px));flex-direction:column;transform:translateX(105%);transition:transform .2s var(--ease);background:var(--bg-page);background-image:var(--diffuse);color:var(--txt-1);box-shadow:var(--shadow-lg)}
.mpc-drawer.show{transform:none}
#mpCreateDrawer{transition:transform 280ms var(--ease)}
#mpCreateDrawer.show .mpc-section{animation:mp-enter 280ms var(--ease) both}
#mpCreateDrawer.show .mpc-section:nth-child(2){animation-delay:35ms}
#mpCreateDrawer.show .mpc-section:nth-child(3){animation-delay:70ms}
#mpCreateDrawer.show .mpc-section:nth-child(4){animation-delay:105ms}
#mpCreateDrawer.show .mpc-section:nth-child(5){animation-delay:140ms}
#mpCreateDrawer .mpc-item-card{animation:mp-soft-reveal 200ms ease-out}
.mpc-drawer-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid var(--line);background:var(--glass);backdrop-filter:blur(12px)}
html[data-theme="light"] #mpCreateDrawer .mpc-drawer-head{background:radial-gradient(ellipse 46% 125% at 100% 0%,#F5E9FA 0%,transparent 78%),#FEFDFF;backdrop-filter:none}
.mpc-page-title{display:grid;grid-template-columns:5px 1fr;column-gap:12px;align-items:center}.mpc-page-title::before{content:'';grid-row:1/3;width:5px;height:30px;border-radius:3px;background:var(--seed-primary)}
.mpc-page-title h1{margin:0;font-size:22px;line-height:1.25;font-weight:800;color:var(--txt-1);outline:none}.mpc-page-title p{margin:3px 0 0;font-size:12px;color:var(--txt-3)}
.mpc-head-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.mpc-head-actions .mp-status{white-space:nowrap}.mpc-action-status{position:absolute;right:24px;bottom:2px;max-width:48%;overflow:hidden;color:var(--txt-3);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.mpc-drawer-body{flex:1;overflow-y:auto;padding:20px 24px 28px}
.mp-create-page{display:grid;gap:16px}
.mpc-section-head p{margin:0;color:var(--txt-3);font-size:12px}
#mpCreateDrawer select[data-mpc-result-field="resp_type"]{--mpc-role-color:var(--seed-primary);color:var(--mpc-role-color);background-color:color-mix(in srgb,var(--mpc-role-color) 9%,var(--bg-surface));border-color:color-mix(in srgb,var(--mpc-role-color) 38%,var(--line));font-weight:650;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
#mpCreateDrawer select[data-mpc-result-field="resp_type"]:has(option[value="监督"]:checked){--mpc-role-color:#b36b13}
#mpCreateDrawer select[data-mpc-result-field="resp_type"]:has(option[value="协同"]:checked){--mpc-role-color:#168276}
#mpCreateDrawer select[data-mpc-result-field="resp_type"]:hover{background-color:color-mix(in srgb,var(--mpc-role-color) 15%,var(--bg-surface));border-color:var(--mpc-role-color)}
#mpCreateDrawer select[data-mpc-result-field="resp_type"]:focus-visible{outline:2px solid var(--mpc-role-color);outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb,var(--mpc-role-color) 12%,transparent)}
#mpCreateDrawer select[data-mpc-result-field="resp_type"] option{background:var(--bg-surface);font-weight:600}
#mpCreateDrawer select[data-mpc-result-field="resp_type"] option[value="主导"]{color:var(--seed-primary)}
#mpCreateDrawer select[data-mpc-result-field="resp_type"] option[value="监督"]{color:#b36b13}
#mpCreateDrawer select[data-mpc-result-field="resp_type"] option[value="协同"]{color:#168276}
@supports (appearance:base-select){
 #mpCreateDrawer select[data-mpc-result-field="resp_type"],#mpCreateDrawer select[data-mpc-result-field="resp_type"]::picker(select){appearance:base-select}
 #mpCreateDrawer select[data-mpc-result-field="resp_type"]::picker(select){padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--bg-surface);box-shadow:0 8px 24px color-mix(in srgb,var(--seed-primary) 15%,transparent)}
 #mpCreateDrawer select[data-mpc-result-field="resp_type"] option{padding:8px 10px;border-radius:7px;cursor:pointer;transition:background-color .16s ease}
 #mpCreateDrawer select[data-mpc-result-field="resp_type"] option:is(:hover,:focus,:checked){background:color-mix(in srgb,currentColor 10%,var(--bg-surface))}
 #mpCreateDrawer select[data-mpc-result-field="resp_type"]::picker-icon{transition:rotate .18s ease}
 #mpCreateDrawer select[data-mpc-result-field="resp_type"]:open::picker-icon{rotate:180deg}
}
#mpCreateDrawer :is(.mpc-add-item,.mpc-add-metric){background:var(--seed-primary);border-color:var(--seed-primary);color:#fff;box-shadow:0 3px 9px color-mix(in srgb,var(--seed-primary) 18%,transparent)}
#mpCreateDrawer .mpc-add-result{background:var(--bg-violet-soft);border-color:color-mix(in srgb,var(--seed-primary) 35%,var(--line));color:var(--seed-primary);box-shadow:none}
@media(hover:hover){
 #mpCreateDrawer :is(.mpc-add-item,.mpc-add-metric):not(:disabled):hover{background:color-mix(in srgb,var(--seed-primary) 88%,#241e4e);border-color:color-mix(in srgb,var(--seed-primary) 88%,#241e4e)}
 #mpCreateDrawer .mpc-add-result:not(:disabled):hover{background:color-mix(in srgb,var(--seed-primary) 16%,var(--bg-surface));border-color:var(--seed-primary)}
}
#mpCreateDrawer :is(.mpc-add-item,.mpc-add-metric,.mpc-add-result):focus-visible{outline:2px solid var(--seed-primary);outline-offset:3px}
#mpCreateDrawer :is(.mpc-add-item,.mpc-add-metric,.mpc-add-result):disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
.mpc-section{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--bg-surface)}
.mpc-section-head{display:flex;align-items:center;gap:10px;padding-bottom:13px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.mpc-section-head::before{content:'';flex:none;width:3.5px;height:18px;border-radius:2px;background:var(--seed-primary)}
.mpc-section-head h2{margin:0 0 3px;font-size:15px;line-height:1.3;font-weight:750;color:var(--txt-1)}
.mpc-add-metric,.mpc-add-item{flex:none;margin-left:auto;white-space:nowrap}
.mpc-basic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mpc-field{display:flex;min-width:0;min-height:72px;flex-direction:column;justify-content:center;gap:7px;padding:12px 14px;border-radius:12px;background:var(--bg-soft)}
.mpc-field>span{font-size:11px;color:var(--txt-3)}
.mpc-field strong{overflow-wrap:anywhere;font-size:14px;color:var(--txt-1)}
.mpc-field .input{height:36px;padding:7px 10px}
.mpc-linked{display:flex;align-items:center;gap:18px;padding-top:18px;margin-top:18px;border-top:1px solid var(--line)}
.mpc-linked-label{display:grid;flex:none;gap:3px;min-width:116px}.mpc-linked-label strong{font-size:13px;color:var(--txt-1)}.mpc-linked-label span{font-size:11px;color:var(--txt-3)}
.mpc-options{display:flex;align-items:center;gap:8px;min-width:0;padding:0;border:0}
.mpc-options legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mpc-options label{display:flex;align-items:center;gap:7px;min-width:0;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--bg-soft);cursor:pointer;white-space:nowrap}
.mpc-options label:has(input:checked){border-color:color-mix(in srgb,var(--seed-primary) 45%,var(--line));background:var(--bg-violet-soft)}
.mpc-options input{flex:none;margin:0;accent-color:var(--seed-primary)}
.mpc-options span{font-size:12px;font-weight:700;color:var(--txt-1)}
.mpc-options input:focus-visible{outline:2px solid var(--seed-primary);outline-offset:3px}
.mpc-selection{margin:10px 0 0 134px;color:var(--txt-3);font-size:11px}
.mpc-table-scroll{overflow-x:auto}.mpc-table{width:100%;min-width:660px;border-collapse:collapse;table-layout:fixed}.mpc-table th{padding:11px 10px;background:var(--bg-soft);border-bottom:1px solid var(--line);font-size:12px;font-weight:700;color:var(--txt-3);text-align:left}.mpc-table td{padding:10px;border-bottom:1px solid var(--line);vertical-align:middle}.mpc-table th:first-child,.mpc-table td:first-child{width:58px}.mpc-table th:nth-child(3),.mpc-table td:nth-child(3){width:130px}.mpc-table th:nth-child(4),.mpc-table td:nth-child(4){width:100px}.mpc-table th:nth-child(5),.mpc-table td:nth-child(5){width:140px}.mpc-table .input{width:100%;height:36px;padding:7px 9px}.mpc-row-no{font-variant-numeric:tabular-nums;color:var(--txt-2)}
.mpc-item-table{min-width:860px}.mpc-item-table th:first-child,.mpc-item-table td:first-child{width:48px}.mpc-item-table th:nth-child(2),.mpc-item-table td:nth-child(2){width:140px}.mpc-item-table th:nth-child(3),.mpc-item-table td:nth-child(3){width:155px}.mpc-item-table th:nth-child(4),.mpc-item-table td:nth-child(4){width:155px}.mpc-item-table th:nth-child(5),.mpc-item-table td:nth-child(5){width:165px}.mpc-item-table th:nth-child(6),.mpc-item-table td:nth-child(6){width:115px}.mpc-item-table th:nth-child(7),.mpc-item-table td:nth-child(7){width:82px}.mpc-item-table textarea.input{height:56px;min-height:56px;resize:vertical;line-height:1.4}.mpc-item-table select.input{appearance:auto}
.mpc-item-card-list{display:grid;gap:14px}.mpc-item-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--bg-surface)}.mpc-item-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:var(--bg-soft);border-bottom:1px solid var(--line)}.mpc-item-card-title{display:flex;align-items:center;gap:10px}.mpc-item-index{font-size:13px;font-weight:800;color:var(--txt-1)}.mpc-result-count{padding:3px 7px;border-radius:999px;background:var(--bg-surface);font-size:10px;color:var(--txt-3)}.mpc-add-result{flex:none;white-space:nowrap}.mpc-item-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.mpc-item-field{display:grid;gap:7px}.mpc-item-field>span,.mpc-item-results-title{font-size:11px;font-weight:700;color:var(--txt-2)}.mpc-item-field textarea.input{width:100%;height:64px;min-height:64px;padding:9px 10px;line-height:1.45;resize:vertical}.mpc-item-results{padding:0 14px 14px}.mpc-item-results-title{padding:11px 0 8px;border-top:1px solid var(--line)}.mpc-item-results-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px}.mpc-item-results-table{width:100%;min-width:720px;border-collapse:collapse;table-layout:fixed}.mpc-item-results-table th{padding:9px 8px;background:var(--bg-soft);border-bottom:1px solid var(--line);font-size:11px;font-weight:700;color:var(--txt-3);text-align:left}.mpc-item-results-table td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:middle}.mpc-item-results-table tbody tr:last-child td{border-bottom:0}.mpc-item-results-table th:first-child,.mpc-item-results-table td:first-child{width:48px;text-align:center}.mpc-item-results-table th:nth-child(2),.mpc-item-results-table td:nth-child(2){width:25%}.mpc-item-results-table th:nth-child(3),.mpc-item-results-table td:nth-child(3){width:28%}.mpc-item-results-table th:nth-child(4),.mpc-item-results-table td:nth-child(4){width:118px}.mpc-item-results-table th:nth-child(5),.mpc-item-results-table td:nth-child(5){width:88px}.mpc-item-results-table th:nth-child(6),.mpc-item-results-table td:nth-child(6){width:52px}.mpc-item-results-table .input{width:100%;height:36px;padding:7px 9px}.mpc-item-results-table textarea.input{height:54px;min-height:54px;line-height:1.4;resize:vertical}.mpc-item-results-table select.input{appearance:auto}.mpc-executor-self:disabled{opacity:1;cursor:not-allowed;background:var(--bg-soft);color:var(--txt-1);-webkit-text-fill-color:var(--txt-1)}.mpc-result-no{font-size:11px;font-weight:750;color:var(--seed-primary)}.mpc-result-required{font-size:10px;color:var(--txt-3)}.mpc-remove-result{width:max-content;padding:0;border:0;background:none;color:var(--danger);font:inherit;font-size:10px;cursor:pointer}.mpc-remove-result:hover{text-decoration:underline}.mpc-remove-result:focus-visible{outline:2px solid var(--seed-primary);outline-offset:2px;border-radius:3px}
@media(max-width:760px){.mpc-drawer{width:100vw}.mpc-drawer-head{align-items:flex-start;flex-wrap:wrap}.mpc-head-actions{width:100%;justify-content:flex-end}.mpc-action-status{right:16px}.mpc-basic-grid{grid-template-columns:1fr 1fr}.mpc-linked{align-items:flex-start;flex-direction:column;gap:10px}.mpc-options{width:100%;overflow-x:auto;padding-bottom:4px}.mpc-selection{margin-left:0}.mpc-item-main{grid-template-columns:1fr}}
@media(max-width:480px){.mpc-drawer-head{padding:16px}.mpc-drawer-body{padding:16px}.mpc-section{padding:16px}.mpc-basic-grid{grid-template-columns:1fr}}
.mpc-sync-source{display:inline-flex;align-items:center;padding:4px 9px;border-radius:8px;background:var(--bg-violet-soft);color:var(--seed-primary);font-size:12px;line-height:1.5;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.mpc-synced-item .input:disabled{opacity:1;background:var(--bg-soft);color:var(--txt-1);-webkit-text-fill-color:var(--txt-1);cursor:default}
.mpc-synced-item .mpc-item-card-title{flex-wrap:wrap}
.mpc-synced-item button:disabled{opacity:.45;cursor:not-allowed}
.mp-create-page,.mpc-section,.mpc-item-card-list,.mpc-item-card,.mpc-item-main,.mpc-item-field,.mpc-item-results{min-width:0}
@media(max-width:760px){.mpc-synced-item .mpc-item-card-head{flex-wrap:wrap}.mpc-synced-item .mpc-item-card-title{min-width:0}.mpc-synced-item .mpc-sync-source{flex-basis:100%}}
