/* Existing-project imports use the workbench's warm, compact visual language. */
#projectImportButton svg,#composerProjectImport svg{width:18px;height:18px;flex:none}
.project-import-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden;background:#faf8f2;border:1px solid #dfd9cd;border-radius:18px;color:#3d4037;box-shadow:0 24px 90px #37322626}
.project-import-dialog[open]{display:flex;flex-direction:column}.project-import-dialog::backdrop{background:#25262066;backdrop-filter:blur(3px)}
.pi-heading{display:flex;align-items:flex-start;gap:14px;padding:25px 26px 19px;flex:none}.pi-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eee7da;color:#ae6b4e;flex:none}.pi-mark svg{width:23px;height:23px}.pi-heading>div:nth-child(2){flex:1;min-width:0}.pi-heading h2{font-size:21px;letter-spacing:-.5px;font-weight:600;margin:0 0 6px}.pi-heading p{font-size:12px;line-height:1.7;color:#89877b;margin:0}.pi-heading .icon-button{margin:-4px -7px 0 0;color:#88877b}
.pi-body{overflow:auto;min-height:0;padding:0 26px 20px;overscroll-behavior:contain}.pi-source-row{display:flex;align-items:center;gap:9px;background:#f0ece2;padding:12px 14px;border-radius:10px;font-size:12px;line-height:1.6;margin-bottom:15px}.pi-source-row svg{width:17px;height:17px;color:#a0876b;flex:none}.pi-source-row strong{font-weight:500}.pi-source-row small{margin-left:auto;color:#898779;text-align:right}.pi-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0}.pi-actions button{font-size:12px;min-height:36px}.pi-actions .pi-consent{width:100%;font-size:12px;line-height:1.7;color:#7f8175;display:flex;align-items:center;gap:8px;padding:5px 0}.pi-consent input,.pi-project input,.pi-history input{accent-color:#b77255}
.pi-toolbar{display:flex;gap:9px;margin:17px 0 8px}.pi-toolbar input,.pi-toolbar select{box-sizing:border-box;background:#fffefa;border:1px solid #dedbd1;border-radius:8px;padding:9px 10px;color:inherit;font:inherit;font-size:12px;min-width:0}.pi-toolbar input{flex:1}.pi-toolbar select{width:122px}.pi-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:23px;font-size:11px;color:#929286;padding:3px 1px 8px}.pi-caption button{font-size:11px}
.pi-projects{border:1px solid #e4dfd4;background:#fffdf8;border-radius:11px;overflow:hidden;max-height:320px;overflow-y:auto}.pi-project{display:flex;align-items:flex-start;gap:11px;padding:14px 14px;cursor:pointer;border-bottom:1px solid #ede8df}.pi-project:last-child{border-bottom:0}.pi-project:hover{background:#f8f3e9}.pi-project:has(input:checked){background:#f5ecdf}.pi-project input{margin:5px 1px 0;flex:none}.pi-project-main{flex:1;min-width:0}.pi-project-title{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}.pi-project-title strong{font-weight:550;font-size:13px;overflow-wrap:anywhere}.pi-source-tag{font-size:10px;color:#967a60;background:#eee7dc;border-radius:5px;padding:2px 6px;line-height:1.5}.pi-project-path{display:block;overflow-wrap:anywhere;word-break:break-word;color:#8d8c7e;font-size:11px;line-height:1.7;margin-top:4px;font-family:var(--font-mono,monospace)}.pi-project-meta{font-size:10px;color:#989589;display:flex;flex-wrap:wrap;gap:8px;margin-top:5px}.pi-project-meta .pi-needs-grant{color:#ac7958}
.pi-empty{padding:32px 24px;text-align:center;color:#989688;font-size:12px;line-height:1.9}.pi-empty strong{display:block;color:#74786b;font-size:14px;margin-bottom:5px;font-weight:500}.pi-upgrade{padding:17px;border:1px solid #e5d7bd;background:#f5eddd;border-radius:10px;font-size:12px;line-height:1.8}.pi-upgrade p{margin:0 0 10px}.pi-upgrade a{display:inline-block;margin:3px 13px 0 0;color:#9a674b}.pi-history{display:flex;align-items:flex-start;gap:9px;margin:16px 0;font-size:12px;color:#696d60;line-height:1.6}.pi-history input{margin-top:3px}.pi-history span{display:block}.pi-history small{display:block;font-size:11px;color:#929082;margin-top:3px}
.pi-notices{font-size:11px;color:#9a7b58;line-height:1.75;margin-top:10px}.pi-notices details{border:1px solid #e7decd;padding:8px 10px;border-radius:8px}.pi-notices ul{padding-left:18px;margin:7px 0 0}.pi-error:empty,.pi-notices:empty{display:none}.pi-error{font-size:12px;line-height:1.7;color:#aa5242;margin:12px 0 0;overflow-wrap:anywhere}
.pi-footer{padding:14px 26px 18px;border-top:1px solid #e7e1d6;display:flex;align-items:center;gap:10px;flex:none;background:#f8f5ed}.pi-footer>span{font-size:11px;line-height:1.7;color:#979080;flex:1;min-width:0}.pi-footer button{font-size:12px;white-space:nowrap}.pi-jobs{margin-top:19px}.pi-jobs:empty{display:none}.pi-jobs h3{font-size:12px;font-weight:500;margin:0 0 10px;color:#747866}.pi-job{padding:13px 14px;border:1px solid #e3ddce;background:#f8f4eb;border-radius:10px;margin-top:8px}.pi-job-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.pi-job-heading strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.pi-job-state{font-size:10px;color:#9b8368;flex:none}.pi-job p{font-size:11px;color:#898673;line-height:1.6;margin:7px 0;overflow-wrap:anywhere}.pi-job progress{height:4px;width:100%;display:block;margin-top:10px;accent-color:#b77857}.pi-job-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.pi-job-actions button{font-size:11px;padding:4px 0}.pi-busy{display:inline-block;width:10px;height:10px;border:1.5px solid #d4c7b1;border-top-color:#a37153;border-radius:50%;animation:pi-spin .8s linear infinite;margin-right:5px;vertical-align:-1px}@keyframes pi-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pi-busy{animation:none}}
@media(max-width:600px){.project-import-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:14px}.pi-heading{padding:20px 18px 15px;gap:10px}.pi-heading h2{font-size:19px}.pi-body{padding:0 18px 16px}.pi-heading p{font-size:11px}.pi-mark{width:35px;height:35px;border-radius:10px}.pi-footer{padding:12px 18px 16px;flex-wrap:wrap}.pi-footer>span{flex-basis:100%}.pi-footer button:last-child{margin-left:auto}.pi-toolbar input,.pi-toolbar select{font-size:16px;padding:8px}.pi-toolbar select{width:115px}.pi-projects{max-height:300px}.pi-source-row{align-items:flex-start;flex-wrap:wrap}.pi-source-row small{width:100%;text-align:left;margin-left:26px}}
/* Override the workbench's full-width form inputs for compact choice rows. */
.project-import-dialog .pi-project input[type=checkbox],.project-import-dialog .pi-history input[type=checkbox],.project-import-dialog .pi-consent input[type=checkbox]{appearance:auto;box-sizing:border-box;width:14px;height:14px;min-width:14px;max-width:14px;min-height:14px;padding:0;flex:0 0 14px;border-radius:3px;box-shadow:none}
.project-import-dialog .pi-project,.project-import-dialog .pi-history,.project-import-dialog .pi-consent{box-sizing:border-box;grid-template-columns:none;font-weight:400}.project-import-dialog .pi-project{width:100%;margin:0}.project-import-dialog .pi-project-main{display:block}.project-import-dialog .pi-consent input{margin:0}.project-import-dialog:not([open]){display:none}

.project-import-dialog .pi-actions .pi-consent{margin:0}

.pi-chat-notice{margin:8px 30px;padding:10px 13px;border:1px solid #e4d7bc;background:#f6eddb;border-radius:8px;color:#94764e;font-size:12px;line-height:1.6}.pi-chat-notice[hidden]{display:none}@media(max-width:600px){.pi-chat-notice{margin:6px 14px}}
