.portal-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.7fr);gap:16px}
.portal-admin-section.full{grid-column:1/-1}
.portal-wb-key-full{font-family:'Consolas','SFMono-Regular',ui-monospace,monospace;background:#f1f5fa;padding:3px 6px;border-radius:4px;word-break:break-all}
.portal-wb-import-done{background:#daf3e8!important;border-color:#b8ead9!important;color:#087850!important}
.portal-admin-section{border:1px solid #d5e0ec;border-radius:7px;background:#fff;overflow:hidden}
.portal-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #dce5ee}
.portal-admin-head h3{margin:0 0 4px;font-size:15px}
.portal-admin-head p{margin:0;color:#687b92;font-size:12px}
.portal-account-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px;background:#f6f9fc;border-bottom:1px solid #dce5ee}
.portal-account-form label{display:grid;gap:5px;font-size:11px;font-weight:700;color:#52677f}
.portal-account-form input{min-width:0}
.portal-account-form .wide{grid-column:1/-1}
.portal-account-form .actions{grid-column:1/-1;display:flex;align-items:center;gap:10px}
.portal-account-list,.portal-request-list{display:grid}
.portal-account-row,.portal-request-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 16px;border-top:1px solid #e1e8f0}
.portal-account-row:first-child,.portal-request-row:first-child{border-top:0}
.portal-account-name,.portal-request-name{font-weight:750}
.portal-account-meta,.portal-request-meta{margin-top:4px;color:#6d7e92;font-size:12px;line-height:1.45}
.portal-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.portal-row-actions select{min-height:34px;width:150px}
.portal-account-row.portal-wb-account{display:block;padding:0}
.portal-wb-account-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #e1e8f0}
.portal-wb-key{color:#6d7e92;font-size:12px;text-align:right}
.portal-wb-table-wrap{overflow-x:auto}
.portal-wb-table{width:100%;border-collapse:collapse;table-layout:fixed}
.portal-wb-table th,.portal-wb-table td{padding:11px 16px;border-bottom:1px solid #e8eef4;text-align:left;vertical-align:top;font-size:12px;line-height:1.45}
.portal-wb-table th{width:220px;background:#f7f9fc;color:#52677f;font-weight:750}
.portal-wb-table td{color:#25384d;overflow-wrap:anywhere}
.portal-wb-table .status-pill{white-space:normal}
.portal-wb-note{padding:11px 16px;color:#6d7e92;font-size:12px;line-height:1.45;background:#fbfcfe}
.portal-wb-match-warning{margin:12px 16px;border:1px solid #efb7bc;border-radius:7px;background:#fff7f7;color:#7f1d28;overflow:hidden}
.portal-wb-match-warning-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:13px 14px}
.portal-wb-match-warning-head b{display:block;font-size:13px}.portal-wb-match-warning-head p{margin:4px 0 0;color:#8f3a43;font-size:12px;line-height:1.45}
.portal-wb-match-warning-head>span{display:grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:5px;background:#b4232e;color:#fff;font-weight:800}
.portal-wb-match-warning details{border-top:1px solid #f1c9cd}.portal-wb-match-warning summary{padding:10px 14px;cursor:pointer;font-size:12px;font-weight:750}
.portal-wb-match-list{max-height:320px;overflow:auto;background:#fff}.portal-wb-match-row{display:grid;gap:2px;padding:10px 14px;border-top:1px solid #f4dadd}
.portal-wb-match-row:first-child{border-top:0}.portal-wb-match-row b{color:#4b1720;font-size:12px}.portal-wb-match-row span,.portal-wb-match-row small{color:#7b4a51;font-size:11px;line-height:1.4}
.portal-wb-match-foot{padding:9px 14px;border-top:1px solid #f1c9cd;font-size:11px}
.portal-row-actions.portal-wb-actions{justify-content:flex-start;padding:12px 16px;border-top:1px solid #e1e8f0}
.portal-empty{padding:28px 16px;text-align:center;color:#6b7d92}
.portal-admin-message{font-size:12px;color:#bd2f3a}
.portal-link{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border:1px solid #bed1e4;border-radius:6px;color:#075f91;text-decoration:none;font-weight:700}
.portal-company-queue{display:grid;gap:9px;max-height:min(68vh,760px);overflow:auto;padding-right:3px}
.portal-queue-group{display:grid;gap:9px}
.portal-queue-group+.portal-queue-group{margin-top:8px;padding-top:14px;border-top:1px solid #d8e2ed}
.portal-queue-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:2px 2px 0}
.portal-queue-group-head h3{margin:0;color:#172b43;font-size:14px}
.portal-queue-group-head p{margin:3px 0 0;color:#718399;font-size:11px}
.portal-queue-group-head>span{display:inline-flex;min-width:26px;height:26px;align-items:center;justify-content:center;border-radius:4px;background:#e6f1f8;color:#075f91;font-size:12px;font-weight:800}
.portal-queue-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,auto);gap:16px;padding:14px;border:1px solid #d8e2ed;border-radius:7px;background:#fff}
.portal-queue-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.portal-queue-title>span:not(.status-pill){color:#376180;font-size:12px;font-weight:700}
.portal-queue-client{margin-top:6px;color:#172b43;font-weight:750}
.portal-queue-side{display:grid;align-content:start;justify-items:end;gap:7px;text-align:right}
.portal-queue-assignee{display:grid;gap:2px}
.portal-queue-assignee small{color:#718399;font-size:10px;text-transform:uppercase}
.portal-queue-assignee b{font-size:12px}
.portal-queue-document{color:#087443;font-size:12px;font-weight:750}
.portal-queue-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.portal-queue-actions button{min-height:34px}
.portal-danger-action{color:#b4232e!important;border-color:#efb7bc!important;background:#fff7f7!important}
.h-card.integration-card{display:grid;width:100%;grid-template-columns:minmax(0,1fr) 34px;align-items:center;text-align:left;color:inherit;font:inherit;cursor:pointer;appearance:none}
.h-card.integration-card:focus-visible{outline:3px solid rgba(11,165,236,.28);outline-offset:2px;border-color:#0b91c9}
.integration-card .cp-name-link{text-decoration:none}
.integration-card-open{display:grid;place-items:center;width:32px;height:32px;border:1px solid #bed1e4;border-radius:6px;background:#f5f9fd;color:#075f91;font-size:24px;line-height:1}
.integration-marketplace-badge{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border:1px solid #d8c8ff;border-radius:5px;background:#f5f0ff;color:#6d31b5;font-size:10px;font-weight:800;white-space:nowrap}
.integration-modal-overlay{animation:integration-overlay-in .18s ease-out both}
.integration-modal-overlay.closing{animation:integration-overlay-out .16s ease-in both;pointer-events:none}
.integration-modal{width:min(1180px,100%);animation:integration-card-in .24s cubic-bezier(.2,.8,.2,1) both}
.integration-modal-overlay.closing .integration-modal{animation:integration-card-out .16s ease-in both}
.integration-modal-subtitle{margin-top:3px;color:#6d7e92;font-size:11px}
.integration-modal-body{overflow:auto;padding:16px}
.integration-admin-grid{display:grid;gap:14px}
.integration-client-summary{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 14px;border:1px solid #d5e0ec;border-left:4px solid #7c3aed;border-radius:7px;background:#fff}
.integration-client-info b,.integration-client-info span{display:block}.integration-client-info b{font-size:14px}.integration-client-info span{margin-top:3px;color:#6d7e92;font-size:11px}
.integration-client-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eaf4fb;color:#075f91;font-size:17px;font-weight:800}
.integration-scroll-list{max-height:340px;overflow:auto;overscroll-behavior:contain}
@keyframes integration-overlay-in{from{opacity:0}to{opacity:1}}
@keyframes integration-overlay-out{from{opacity:1}to{opacity:0}}
@keyframes integration-card-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes integration-card-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(10px) scale(.99)}}
@media(max-width:1000px){.portal-admin-grid{grid-template-columns:1fr}}
@media(max-width:600px){.portal-account-form{grid-template-columns:1fr}.portal-account-form .wide,.portal-account-form .actions{grid-column:auto}.portal-account-row,.portal-request-row,.portal-queue-row{grid-template-columns:1fr}.portal-row-actions,.portal-queue-actions{justify-content:flex-start}.portal-queue-side{justify-items:start;text-align:left}.portal-wb-account-head{display:block}.portal-wb-key{margin-top:4px;text-align:left}.portal-wb-table{table-layout:auto}.portal-wb-table th{width:145px}.portal-wb-table th,.portal-wb-table td{padding:10px}.portal-wb-match-warning{margin:10px}.portal-wb-match-warning-head{gap:8px;padding:11px}.portal-wb-actions .hc-btn{width:100%}.integration-modal-overlay{padding:0;align-items:stretch}.integration-modal{width:100%;max-height:100vh;border-radius:0;border:0}.integration-modal-body{padding:10px}.integration-client-summary{grid-template-columns:40px minmax(0,1fr)}.integration-client-summary>.integration-marketplace-badge{grid-column:1/-1;width:max-content}.h-card.integration-card{grid-template-columns:minmax(0,1fr) 30px}}
@media(prefers-reduced-motion:reduce){.integration-modal-overlay,.integration-modal-overlay.closing,.integration-modal,.integration-modal-overlay.closing .integration-modal{animation:none!important}.h-card.integration-card{transition:none!important}}
