body.agent-patch-open { overflow: hidden; }
.agent-patch-screen { position: fixed; inset: 0; z-index: 91; display: grid; grid-template-rows: auto 1fr; padding: 38px 54px; background: radial-gradient(circle at 38% 46%, rgba(105,112,108,.26), transparent 34%), linear-gradient(180deg,#252a2c,#171b1d); color: #d9e0e2; }
.agent-patch-header { display: flex; justify-content: space-between; align-items: start; }
.agent-patch-header h1 { margin: 0; font-size: 22px; letter-spacing: .05em; }
.agent-patch-header p { margin: 6px 0 0; color: #889295; font-size: 11px; }
.agent-patch-close { border: 0; background: transparent; color: #aab2b5; font: inherit; cursor: pointer; }
.agent-patch-body { display: grid; grid-template-columns: minmax(420px,1fr) minmax(300px,380px); gap: 40px; min-height: 0; align-items: center; }
.agent-patch-stage { position: relative; min-height: min(72vh,720px); display: grid; place-items: center; overflow: hidden; }
.agent-patch-light { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,rgba(170,181,179,.14),transparent 70%); }
.agent-patch-agent { position: relative; z-index: 1; max-width: 80%; max-height: 68vh; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(0,0,0,.42)); }
.agent-patch-applied { position: absolute; z-index: 3; width: 58px; height: 58px; object-fit: contain; transform: translate(-50%,-50%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.agent-patch-applied.is-preview { opacity: .92; outline: 1px dashed rgba(231,238,239,.55); outline-offset: 7px; }
.agent-patch-applied.is-selected { outline: 2px solid #c8594d; outline-offset: 7px; }
.agent-patch-agent-copy { position: absolute; left: 6%; bottom: 6%; display: grid; z-index: 4; }
.agent-patch-agent-copy strong { font-size: 15px; }
.agent-patch-agent-copy span { color: #899397; font-size: 11px; }
.agent-patch-panel { align-self: center; min-height: 430px; display: flex; flex-direction: column; gap: 13px; padding: 18px; border: 1px solid rgba(205,216,219,.12); background: rgba(9,12,13,.42); }
.agent-patch-panel-title { color: #9aa4a7; font-size: 10px; letter-spacing: .09em; }
.agent-patch-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; max-height: 250px; overflow: auto; }
.agent-patch-option { min-height: 100px; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 4px; border: 1px solid rgba(200,212,215,.1); background: rgba(44,50,52,.38); color: #b8c1c3; cursor: pointer; }
.agent-patch-option.is-selected { outline: 1px solid rgba(228,235,237,.8); background: rgba(105,116,119,.24); }
.agent-patch-option img { width: 72px; height: 65px; object-fit: contain; }
.agent-patch-option span { width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 5px 7px; font-size: 9px; }
.agent-patch-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.agent-patch-slot { padding: 10px 5px; border: 1px solid rgba(205,216,219,.12); background: rgba(54,61,63,.42); color: #9da7aa; font: inherit; font-size: 9px; cursor: pointer; }
.agent-patch-slot.is-selected { border-color: rgba(223,232,234,.72); color: #e0e7e9; }
.agent-patch-slot:disabled { opacity: .25; cursor: default; }
.agent-patch-warning { margin: auto 0 0; color: #858f92; font-size: 10px; line-height: 1.45; }
.agent-patch-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.agent-patch-apply,.agent-patch-remove,.agent-patch-cancel { padding: 12px 14px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.agent-patch-apply { background: #728b55; color: #edf1ea; }
.agent-patch-remove { background: #964a42; color: #f2e9e7; }
.agent-patch-cancel { background: rgba(92,102,105,.42); color: #c5cdcf; }
.agent-patch-apply:disabled,.agent-patch-remove:disabled { opacity: .35; cursor: default; }
.agent-patch-empty,.agent-patch-image-fallback { color: #788285; font-size: 10px; }
@media(max-width:820px){.agent-patch-screen{padding:22px 18px;overflow:auto}.agent-patch-body{grid-template-columns:1fr}.agent-patch-stage{min-height:420px}.agent-patch-panel{min-height:auto}.agent-patch-agent{max-height:390px}}
