.yp-portal{margin-top:20px}.yp-portal-history{padding:0!important;overflow:hidden}.yp-portal-heading{display:flex;align-items:center;gap:12px;padding:18px 20px}.yp-portal-heading h2{font-size:18px;margin:0;display:flex;align-items:center;gap:8px}.yp-portal-heading>span{font-size:12px;color:var(--muted)}.yp-portal-heading>button{margin-left:auto}.yp-portal-toolbar,.yp-portal-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:0 20px 12px}.yp-portal-toolbar input{flex:1;min-width:150px}.yp-portal input,.yp-portal-dialog input,.yp-portal-dialog select,.yp-portal-dialog textarea{box-sizing:border-box;min-width:0;border:1px solid var(--line,#e3e8f3);border-radius:8px;padding:8px 10px;background:var(--white,#fff);color:var(--ink,#19273f);font:inherit}.yp-portal-batch{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;border-top:1px solid var(--line,#e3e8f3);background:transparent;padding:13px 20px;color:inherit;cursor:pointer}.yp-portal-batch:hover{background:var(--soft,#f5f7fd)}.yp-portal-batch-icon{background:#eef0ff;color:#5260df;border-radius:9px;display:grid;place-items:center;width:32px;height:32px;font-size:20px;flex:none}.yp-portal-batch>span:nth-child(2){flex:1;min-width:0}.yp-portal-batch strong{display:block;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.yp-portal-batch small{display:block;font-size:11px;color:var(--muted,#8794aa);font-weight:400}.yp-portal-batch>b{font-size:16px;color:#ae7b32;text-align:right;white-space:nowrap}.yp-portal-batch>b>small{display:inline}.yp-portal-pager{display:flex;align-items:center;gap:8px;padding:12px 20px;flex-wrap:wrap;font-size:12px}.yp-portal-pager>span:first-child{margin-right:auto}.yp-portal-pager label{display:flex;gap:5px;align-items:center;margin:0}.yp-portal-pager input{width:52px}.yp-portal-pager .quiet-btn{padding:5px 10px;min-height:30px}.yp-portal-pager select{padding:5px}.yp-portal-empty{padding:32px;text-align:center;color:var(--muted)}#yp-portal-status{padding:0 20px;font-size:13px;color:#ac7c37}.yp-portal-dialog{box-sizing:border-box;width:min(1180px,calc(100vw - 24px));max-width:1180px;max-height:90vh;padding:0;border:1px solid var(--line,#e3e8f3);border-radius:16px;background:var(--white,#fff);color:var(--ink,#19273f);box-shadow:0 24px 90px #16274635}.yp-portal-dialog::backdrop{background:#24334c66;backdrop-filter:blur(4px)}.yp-portal-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line,#e3e8f3)}.yp-portal-dialog-head h2{font-size:17px;margin:0;overflow-wrap:anywhere}.yp-portal-dialog-head>button{display:grid;place-items:center;flex:none;width:30px;height:30px;padding:0;border:0;background:transparent;color:#8b9ab2;font-size:25px;cursor:pointer}.yp-portal-dialog-body{padding:12px 20px}.yp-portal-dialog-body .yp-portal-toolbar{padding:12px 0 8px}.yp-portal-dialog-body .yp-portal-tools{padding:0 0 10px}.yp-portal-tools small,#yp-portal-summary{font-size:12px;color:var(--muted,#8190a7)}.yp-portal-tools label{margin:0;cursor:pointer}.yp-portal-table-wrap{max-height:48vh;overflow:auto;border:1px solid var(--line,#e3e8f3);border-radius:8px}.yp-portal-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.yp-portal-table th{position:sticky;top:0;z-index:1;background:var(--soft,#f4f6fb);text-align:left;font-weight:500;color:var(--muted,#8290a7)}.yp-portal-table th,.yp-portal-table td{padding:8px 10px;border-bottom:1px solid var(--line,#e3e8f3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:38px}.yp-portal-table th:first-child{width:100px}.yp-portal-table th:nth-child(2){width:25%}.yp-portal-table th:nth-child(4){width:76px}.yp-portal-table th:last-child{width:118px}.yp-portal-drive{display:flex;align-items:center;gap:7px}.yp-portal-drive img{width:21px;height:21px;object-fit:contain}.yp-portal-row-actions{display:flex;gap:12px}.yp-portal-row-actions button{padding:0;border:0;background:transparent;font:inherit;color:var(--blue,#5260df);cursor:pointer;white-space:nowrap}.yp-portal-row-actions button:disabled{opacity:.5;cursor:default}.yp-portal-small{width:min(540px,calc(100vw - 24px))}.yp-portal-small label{display:block;margin:12px 0;font-size:13px;font-weight:600}.yp-portal-small label small{color:var(--muted);font-weight:400}.yp-portal-small input,.yp-portal-small textarea{display:block;width:100%;margin-top:6px}.yp-portal-footer{display:flex;justify-content:flex-end;gap:8px;margin:18px 0 4px}.yp-portal-form-status{font-size:12px;color:#af7b38;overflow-wrap:anywhere}.yp-portal-response{display:block;overflow:hidden;text-overflow:ellipsis;color:var(--muted,#8290a7)}.yp-portal-reply{padding:12px 20px;border-top:1px solid var(--line,#e3e8f3);font-size:12px}.yp-portal-reply strong,.yp-portal-reply span{display:block}.yp-portal-reply p{margin:5px 0}.yp-portal-import-errors{max-height:140px;overflow:auto;font-size:12px;color:#b64155}.yp-portal-admin-edit{display:grid;grid-template-columns:1fr 2fr 100px;gap:10px}.yp-portal-admin-edit input{display:block;width:100%;min-width:0}
@media(max-width:700px){.yp-portal-heading{padding:12px;gap:7px;flex-wrap:wrap}.yp-portal-heading h2{font-size:16px}.yp-portal-heading>span{font-size:10px}.yp-portal-heading>button{font-size:11px}.yp-portal-toolbar,.yp-portal-tools{padding:0 12px 10px}.yp-portal-batch{padding:12px;gap:8px}.yp-portal-batch strong{font-size:12px}.yp-portal-batch small{font-size:10px}.yp-portal-batch>b{font-size:14px}.yp-portal-batch>b>small{display:block;font-size:9px}.yp-portal-dialog{max-height:94vh;border-radius:12px}.yp-portal-dialog-head{padding:12px}.yp-portal-dialog-body{padding:10px}.yp-portal-table{min-width:700px}.yp-portal-table th:first-child,.yp-portal-table td:first-child{position:sticky;left:0;z-index:1;background:var(--white,#fff)}.yp-portal-table th:first-child{z-index:2;background:var(--soft,#f4f6fb)}.yp-portal-pager{padding:10px 0;gap:5px;font-size:10px}.yp-portal-pager>span:first-child{width:100%}.yp-portal-pager .quiet-btn{font-size:10px;padding:4px 6px}.yp-portal-pager input{width:38px;padding:4px}.yp-portal-pager select{width:52px}.yp-portal-tools .quiet-btn{font-size:10px;padding:5px 8px}.yp-portal-tools small{font-size:10px;width:100%}.yp-portal-dialog-body .yp-portal-toolbar{display:grid;grid-template-columns:1fr 1fr}.yp-portal-dialog-body .yp-portal-toolbar input{grid-column:1/-1;width:100%}.yp-portal-dialog select{max-width:100%}.yp-portal-admin-edit{grid-template-columns:1fr}}

html[data-theme=dark] .yp-portal-row-actions button{color:#a5b2ff}html[data-theme=dark] .yp-portal-row-actions button:disabled{color:#92a0ba;opacity:.55}

/* Direct link column, while retaining one compact table row per resource. */
.yp-portal-table th:nth-child(2){width:19%}.yp-portal-table th:nth-child(3){width:27%}.yp-portal-table th:nth-child(4){width:auto}.yp-portal-table th:nth-child(5){width:76px}.yp-portal-share-url{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--blue)}.yp-portal-share-url:hover{text-decoration:underline}.yp-portal-table td.yp-portal-loading-cell{height:150px;padding:20px;text-align:center}.yp-portal-loading{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--blue);font-size:15px}.yp-portal-loading>span{width:32px;height:32px;border:3px solid rgba(76,99,223,.16);border-top-color:var(--blue);border-radius:50%;animation:yp-portal-spin .8s linear infinite;flex:none}.yp-portal-pager[aria-busy=true]{pointer-events:none;opacity:.55}@keyframes yp-portal-spin{to{transform:rotate(360deg)}}html[data-theme=dark] .yp-portal-share-url,html[data-theme=dark] .yp-portal-loading{color:#a5b2ff}html[data-theme=dark] .yp-portal-loading>span{border-top-color:#a5b2ff}@media(prefers-reduced-motion:reduce){.yp-portal-loading>span{animation-duration:2s}}@media(max-width:700px){.yp-portal-table{min-width:950px}.yp-portal-loading{font-size:14px}.yp-portal-table td.yp-portal-loading-cell{height:140px}}

/* Shared workspace separates the two tasks with a short divider instead of stacked page padding. */
.yp-submission-workspace>.submit-page{max-width:1100px;padding-bottom:0;margin-bottom:20px}.yp-submission-workspace>.yp-portal{padding-top:20px;margin-top:0;border-top:1px solid var(--line);padding-bottom:44px}.yp-portal-composer{border:1px solid #d9dff7;box-shadow:0 7px 25px rgba(65,81,165,.055)}.yp-portal-section-head{display:flex;align-items:center;gap:10px;padding:15px 22px;background:linear-gradient(110deg,#eef1ff,#fafbff);border-bottom:1px solid #e0e5fa}.yp-portal-section-head>span{display:grid;place-items:center;width:32px;height:32px;background:#5260df;color:#fff;border-radius:9px;flex:none}.yp-portal-section-head svg{width:20px;height:20px}.yp-portal-section-head>strong{font-size:17px;color:#34448d}.yp-portal-section-head>small{font-size:11px;color:#8390af;margin-left:auto}.yp-portal-history{border-color:#dce3ef;box-shadow:0 7px 25px rgba(25,46,91,.045)}.yp-portal-heading{padding:15px 18px;background:var(--soft);border-bottom:1px solid var(--line);margin-bottom:12px}.yp-portal-heading h2>i{background:#e7ecff;color:var(--blue);padding:9px;border-radius:9px}.yp-portal-heading>span{font-size:11px}.yp-portal-batch-header,.yp-portal-batch{display:grid;grid-template-columns:minmax(180px,1fr) repeat(4,74px) 12px;gap:10px;align-items:center}.yp-portal-batch-header{padding:9px 20px;background:var(--soft);font-size:11px;color:var(--muted)}.yp-portal-batch-header>span:not(:first-child){text-align:center}.yp-portal-batch{padding:12px 20px}.yp-portal-batch>span:nth-child(2){flex:initial}.yp-portal-batch-name{display:flex;align-items:center;gap:10px;min-width:0}.yp-portal-batch-name>span:last-child{min-width:0;flex:1}.yp-portal-batch>b{font-size:15px;text-align:center;color:var(--ink);background:none;white-space:nowrap}.yp-portal-batch>b.yp-count-approved{color:#15846c}.yp-portal-batch>b.yp-count-returned{color:#b57c2d}.yp-portal-batch>b.yp-count-processing{color:var(--blue)}.yp-submit-admission{box-sizing:border-box;width:min(1100px,calc(100% - 48px));margin:0 auto 16px;padding:12px 16px;border:1px solid #f0d8a8;border-radius:9px;background:#fff8e9;color:#9c6b22;font-size:13px}#yp-submit-final[aria-disabled=true]{opacity:.55}html[data-theme=dark] .yp-portal-section-head{background:#243252;border-color:var(--line)}html[data-theme=dark] .yp-portal-section-head>strong{color:#b7c3ff}html[data-theme=dark] .yp-portal-heading h2>i{background:#293a5a;color:#a5b2ff}html[data-theme=dark] .yp-submit-admission{background:#342e23;border-color:#6c5835;color:#e6c68b}html[data-theme=dark] .yp-count-approved{color:#60cdb0!important}html[data-theme=dark] .yp-count-returned{color:#e7bb78!important}@media(max-width:700px){.yp-submission-workspace>.submit-page{padding-bottom:0;margin-bottom:14px}.yp-submission-workspace>.yp-portal{padding-top:14px}.yp-portal-section-head{padding:12px;gap:8px;flex-wrap:wrap}.yp-portal-section-head>strong{font-size:15px}.yp-portal-section-head>small{width:100%;margin:0 0 0 40px;font-size:10px}.yp-portal-heading{padding:12px;gap:7px}.yp-portal-heading>span{font-size:10px}.yp-portal-heading>button{font-size:10px;min-height:30px;padding:5px 8px}.yp-portal-batch-header,.yp-portal-batch{grid-template-columns:minmax(100px,1fr) repeat(4,38px) 8px;gap:3px;padding-left:10px;padding-right:10px}.yp-portal-batch-header{font-size:9px}.yp-portal-batch-name{gap:6px}.yp-portal-batch-name .yp-portal-batch-icon{display:none}.yp-portal-batch strong{font-size:11px}.yp-portal-batch small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yp-portal-batch>b{font-size:12px}.yp-submit-admission{font-size:11px;padding:10px 12px}}

@media(max-width:700px){
 .yp-portal-dialog .yp-portal-table-wrap{overflow:visible;max-height:none;border:0;background:transparent}
 .yp-portal-dialog .yp-portal-table{display:block;min-width:0;width:100%;table-layout:auto}
 .yp-portal-dialog .yp-portal-table thead{display:none}
 .yp-portal-dialog .yp-portal-table tbody{display:block;width:100%}
 .yp-portal-dialog .yp-portal-table tr{display:grid;grid-template-columns:70px minmax(0,1fr);grid-template-areas:"drive title" "link link" "reason reason" "code actions";gap:6px 8px;min-width:0;padding:12px 0;border-bottom:1px solid var(--line)}
 .yp-portal-dialog .yp-portal-table td{display:block!important;width:auto!important;min-width:0;max-width:none;padding:0!important;border:0;white-space:normal;overflow-wrap:anywhere;background:transparent!important}
 .yp-portal-dialog .yp-portal-table td:nth-child(1){grid-area:drive;align-self:center;font-size:11px}
 .yp-portal-dialog .yp-portal-table td:nth-child(2){grid-area:title;align-self:center;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .yp-portal-dialog .yp-portal-table td:nth-child(3){grid-area:link}
 .yp-portal-dialog .yp-portal-table td:nth-child(3) a{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
 .yp-portal-dialog .yp-portal-table td:nth-child(4){grid-area:reason;font-size:11px;line-height:1.6;color:var(--muted)}
 .yp-portal-dialog .yp-portal-table td:nth-child(5){grid-area:code;align-self:center;font-size:11px;white-space:nowrap}
 .yp-portal-dialog .yp-portal-table td:nth-child(5):before{content:"提取码 ";color:var(--muted);font-size:10px}
 .yp-portal-dialog .yp-portal-table td:nth-child(6){grid-area:actions;text-align:right;justify-self:end;align-self:center}
 .yp-portal-dialog .yp-portal-table td.yp-portal-loading-cell{grid-column:1/-1;grid-row:auto;height:150px}
 .yp-portal-dialog .yp-portal-table td.yp-portal-loading-cell:before{content:none}
 .yp-portal-dialog .yp-portal-table tr.yp-portal-loading-row{display:block}
 .yp-portal-dialog .yp-portal-drive img{width:21px;height:21px}
 .yp-portal-dialog .yp-portal-dialog-body{overflow-x:hidden}
}

@media(max-width:700px){.yp-portal-dialog .yp-portal-table tr{height:auto;min-height:0;row-gap:4px}.yp-portal-dialog .yp-portal-table td{height:auto!important;min-height:0!important}.yp-portal-dialog .yp-portal-table td.yp-portal-loading-cell{height:150px!important}.yp-portal-dialog .yp-portal-table tr>td[colspan]{grid-column:1/-1}.yp-portal-dialog .yp-portal-table td:nth-child(6) button{padding:4px 7px;min-height:28px}}

/* Compact batch presentation; submission and review handlers are unchanged. */
.yp-portal-history .yp-portal-batch-header{display:none}
.yp-portal-history .yp-portal-heading{background:var(--white,#fff);margin:0;border:0;padding:14px 20px 10px}
.yp-portal-heading>span{margin-left:auto}
.yp-portal-history>.yp-portal-toolbar{padding:4px 20px 14px;flex-wrap:nowrap}
.yp-portal-history>.yp-portal-toolbar input{max-width:360px;margin-right:auto}
.yp-portal-history>.yp-portal-toolbar .quiet-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.yp-portal-history .yp-portal-batch{grid-template-columns:minmax(0,1fr) repeat(4,74px) 12px;gap:10px;padding:12px 20px;min-height:74px}
.yp-portal-history .yp-portal-batch>b{border-left:1px solid var(--line);font-size:18px;font-weight:650;line-height:1.5}
.yp-portal-history .yp-portal-batch>b:before{display:block;font-size:11px;color:var(--muted);font-weight:400;content:'提交'}
.yp-portal-history .yp-portal-batch>b:nth-child(3):before{content:'已收录'}
.yp-portal-history .yp-portal-batch>b:nth-child(4):before{content:'退回'}
.yp-portal-history .yp-portal-batch>b:nth-child(5):before{content:'处理中'}
.yp-portal-history .yp-portal-batch>b[data-count="0"]{color:var(--muted)!important;font-weight:400}
@media(max-width:700px){
 .yp-portal-history .yp-portal-heading{padding:10px 12px 6px;min-height:44px;flex-wrap:nowrap;gap:7px}
 .yp-portal-history .yp-portal-heading h2{font-size:15px;white-space:nowrap;gap:7px}
 .yp-portal-history .yp-portal-heading h2>i{padding:6px;font-size:14px;border-radius:7px}
 .yp-portal-heading>span{font-size:9px;white-space:nowrap}
 .yp-portal-history>.yp-portal-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px;gap:6px;padding:5px 12px 10px}
 .yp-portal-history>.yp-portal-toolbar input{width:100%;min-width:0;max-width:none;height:32px;font-size:11px;padding:5px 8px;margin:0}
 .yp-portal-history>.yp-portal-toolbar .quiet-btn{width:32px;height:32px;min-height:32px;min-width:0;padding:0;gap:0}
 .yp-portal-history>.yp-portal-toolbar .quiet-btn span{display:none}
 .yp-portal-history>.yp-portal-toolbar .quiet-btn i{font-size:14px}
 .yp-portal-history .yp-portal-batch{grid-template-columns:repeat(4,minmax(0,1fr)) 10px;gap:3px 6px;padding:9px 12px;min-height:75px}
 .yp-portal-batch-name{grid-column:1/5;grid-row:1;gap:8px}
 .yp-portal-batch-name .yp-portal-batch-icon{display:grid;width:27px;height:27px;border-radius:7px;font-size:17px}
 .yp-portal-batch-name strong{font-size:12px}.yp-portal-batch-name small{font-size:9px;margin-top:1px}
 .yp-portal-history .yp-portal-batch>b{grid-row:2;border:0;display:flex;align-items:baseline;justify-content:center;gap:3px;font-size:12px;min-width:0}
 .yp-portal-history .yp-portal-batch>b:before{display:inline;font-size:9px;white-space:nowrap}
 .yp-portal-batch>span:last-child{grid-column:5;grid-row:1;color:var(--muted)}
 .yp-portal-history .yp-portal-pager{padding:9px 12px;gap:5px;font-size:10px}
 .yp-portal-history .yp-portal-pager .quiet-btn{padding:3px 7px;min-height:27px;font-size:10px}
}

/* Compact resource list: title and URL share a column, with restrained dark surfaces. */
#yp-portal-detail{width:min(820px,calc(100vw - 40px));max-width:820px;max-height:84dvh;border-radius:14px}
#yp-portal-detail .yp-portal-dialog-head{padding:14px 18px;border-bottom:1px solid var(--line)}
#yp-portal-detail .yp-portal-dialog-head h2{font-size:16px;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.yp-portal-dialog .yp-portal-dialog-head>button{width:26px;height:26px;font-size:21px;border-radius:6px}
#yp-portal-detail .yp-portal-dialog-body{padding:12px 18px 14px}
#yp-portal-detail #yp-portal-summary{font-size:11px;line-height:1.6;color:var(--muted)}
#yp-portal-detail .yp-portal-toolbar{padding:12px 0 8px;gap:6px;flex-wrap:nowrap}
#yp-portal-detail .yp-portal-tools{padding:0 0 12px;gap:6px}
#yp-portal-detail .yp-portal-tools small{font-size:10px;margin-left:auto}
#yp-portal-detail :is(input,select){font-size:11px;padding:5px 8px;min-height:32px;height:32px}
#yp-portal-detail .quiet-btn{font-size:11px;padding:5px 9px;min-height:32px;font-weight:500;box-shadow:none;display:inline-flex;align-items:center;gap:5px}
#yp-portal-detail .yp-portal-table-wrap{border-width:0;border-radius:0;max-height:48vh}
#yp-portal-detail .yp-portal-table{display:block;min-width:0;font-size:12px}
#yp-portal-detail .yp-portal-table :is(thead,tbody){display:block;width:100%}
#yp-portal-detail .yp-portal-table tr{display:grid;grid-template-columns:68px minmax(0,1fr) minmax(110px,.7fr) 52px 62px;grid-template-areas:"drive title reason code actions" "drive link reason code actions";gap:2px 12px;border-bottom:1px solid var(--line);padding:10px 0;background:transparent}
#yp-portal-detail .yp-portal-table thead tr{padding:7px 0;border-bottom:1px solid var(--line)}
#yp-portal-detail .yp-portal-table :is(th,td){border:0;min-width:0;height:auto!important;padding:0;background:transparent;position:static;align-self:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#yp-portal-detail .yp-portal-table th{font-size:10px;font-weight:500;color:var(--muted)}
#yp-portal-detail .yp-portal-table :is(th,td):nth-child(1){grid-area:drive;width:auto}
#yp-portal-detail .yp-portal-table :is(th,td):nth-child(2){grid-area:title;width:auto}
#yp-portal-detail .yp-portal-table th:nth-child(3){display:none}
#yp-portal-detail .yp-portal-table td:nth-child(3){grid-area:link;font-size:10px;line-height:1.5}
#yp-portal-detail .yp-portal-table :is(th,td):nth-child(4){grid-area:reason;width:auto;font-size:11px}
#yp-portal-detail .yp-portal-table :is(th,td):nth-child(5){grid-area:code;width:auto;font-size:11px;font-variant-numeric:tabular-nums}
#yp-portal-detail .yp-portal-table :is(th,td):nth-child(6){grid-area:actions;width:auto;font-size:11px}
#yp-portal-detail .yp-portal-table td:nth-child(2) strong{font-size:12px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis}
#yp-portal-detail .yp-portal-drive{gap:5px;font-size:11px}#yp-portal-detail .yp-portal-drive img{width:20px;height:20px}
#yp-portal-detail .yp-portal-row-actions{gap:7px}
#yp-portal-detail .yp-portal-table tr.yp-portal-loading-row{display:block;padding:0;border:0}
#yp-portal-detail .yp-portal-table td.yp-portal-loading-cell{display:block;height:130px!important;padding:20px}
#yp-portal-detail .yp-portal-table td[colspan]:not(.yp-portal-loading-cell){grid-column:1/-1;grid-row:1;padding:16px 0}
.yp-portal-pager[data-single-page=true]>:is([data-page],[data-go],b,.yp-portal-jump){display:none}
.yp-portal-pager[data-short-list=true]>label{display:none}
#yp-portal-detail .yp-portal-pager{padding:12px 0 0;gap:6px;font-size:11px;min-height:30px}
#yp-portal-detail .yp-portal-pager .quiet-btn{padding:3px 7px;min-height:28px}
#yp-portal-detail .yp-portal-pager :is(input,select){min-height:28px;height:28px;padding:3px 5px}
html[data-theme=dark] .yp-portal,html[data-theme=dark] .yp-portal-dialog{--ink:#e8eef7;--muted:#a8b6ca;--line:#344154;color:var(--ink)}
html[data-theme=dark] .yp-portal-dialog{background:#1a2433;border-color:#3b4a60;box-shadow:0 24px 80px #0007}
html[data-theme=dark] .yp-portal-dialog::backdrop{background:#070e1a99}
html[data-theme=dark] .yp-portal-dialog-head{background:transparent}
html[data-theme=dark] .yp-portal-dialog-head h2{color:#f0f4fb}
html[data-theme=dark] .yp-portal-dialog-head>button{color:#acbbd0}
html[data-theme=dark] .yp-portal-dialog-head>button:hover{background:#2c394d;color:#fff}
html[data-theme=dark] .yp-portal-history{background:#1a2639;border-color:#36465e}
html[data-theme=dark] .yp-portal-history .yp-portal-heading{background:transparent}
html[data-theme=dark] .yp-portal-heading h2>i,html[data-theme=dark] .yp-portal-batch-icon{background:#2c3a55;color:#b7c9ff}
html[data-theme=dark] .yp-portal input,html[data-theme=dark] .yp-portal-dialog input,html[data-theme=dark] .yp-portal-dialog select,html[data-theme=dark] .yp-portal-dialog textarea{background:#131d2b;border-color:#3b4b62;color:#e7eef9;caret-color:#c5d2ff;color-scheme:dark}
html[data-theme=dark] .yp-portal input::placeholder,html[data-theme=dark] .yp-portal-dialog input::placeholder,html[data-theme=dark] .yp-portal-dialog textarea::placeholder{color:#9babc1;opacity:1}
html[data-theme=dark] .yp-portal .quiet-btn,html[data-theme=dark] .yp-portal-dialog .quiet-btn{background:#243147;border-color:#445773;color:#dce7f8;box-shadow:none}
html[data-theme=dark] .yp-portal-dialog .quiet-btn:hover:not(:disabled),html[data-theme=dark] .yp-portal .quiet-btn:hover:not(:disabled){background:#30405a;border-color:#6a83a7}
html[data-theme=dark] .yp-portal-dialog .quiet-btn:disabled,html[data-theme=dark] .yp-portal .quiet-btn:disabled{background:#202b3c;color:#899ab3;border-color:#34465e;opacity:1}
html[data-theme=dark] .yp-portal-dialog .primary-btn{color:#fff;background:#536de5;border-color:#8497f8}
html[data-theme=dark] .yp-portal-dialog .yp-portal-table-wrap{background:transparent}
html[data-theme=dark] #yp-portal-detail .yp-portal-table :is(th,td){background:transparent}
html[data-theme=dark] #yp-portal-detail .yp-portal-table th{color:#97aac5}
html[data-theme=dark] #yp-portal-detail .yp-portal-table tbody tr:hover{background:#202e42}
html[data-theme=dark] .yp-portal-share-url,html[data-theme=dark] .yp-portal-row-actions button{color:#b2c4ff}
html[data-theme=dark] .yp-portal-row-actions button:disabled{color:#91a3bd;opacity:1}
html[data-theme=dark] .yp-portal-tools small,html[data-theme=dark] #yp-portal-summary,html[data-theme=dark] .yp-portal-small label small,html[data-theme=dark] .yp-portal-response{color:#a8b6ca}
html[data-theme=dark] .yp-portal-form-status,html[data-theme=dark] #yp-portal-status{color:#e9bf80}
html[data-theme=dark] .yp-portal-import-errors{color:#ffacb7}
html[data-theme=dark] .yp-portal-loading{color:#b9caff}
html[data-theme=dark] .yp-portal-loading>span{border-color:#384b6d;border-top-color:#b9caff}
@media(max-width:700px){
 #yp-portal-detail{width:calc(100vw - 20px);max-height:92dvh}
 #yp-portal-detail .yp-portal-dialog-head{padding:12px}
 #yp-portal-detail .yp-portal-dialog-head h2{font-size:14px}
 #yp-portal-detail .yp-portal-dialog-body{padding:10px 12px 12px}
 #yp-portal-detail .yp-portal-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:9px 0 7px}
 #yp-portal-detail .yp-portal-toolbar input{grid-column:1/-1}
 #yp-portal-detail .yp-portal-tools small{width:100%;margin:0;font-size:10px}
 #yp-portal-detail .yp-portal-table thead{display:none}
 #yp-portal-detail .yp-portal-table tr{grid-template-columns:70px minmax(0,1fr);grid-template-areas:"drive title" "link link" "reason reason" "code actions";gap:4px 8px;padding:10px 0}
 #yp-portal-detail .yp-portal-table td{white-space:normal}
 #yp-portal-detail .yp-portal-table td:nth-child(3){font-size:10px;overflow-wrap:anywhere}
 #yp-portal-detail .yp-portal-table td:nth-child(4){font-size:11px;line-height:1.5;color:var(--muted)}
 #yp-portal-detail .yp-portal-table td:nth-child(5){white-space:nowrap}
 #yp-portal-detail .yp-portal-table td:nth-child(6){justify-self:end}
 #yp-portal-detail .yp-portal-pager{font-size:10px;gap:5px;padding-top:10px}
 #yp-portal-detail .yp-portal-pager .quiet-btn{font-size:10px;padding:3px 6px}
}

#yp-portal-detail .yp-portal-pager[data-single-page=true]>:is([data-page],[data-go],b,.yp-portal-jump){display:none!important}
.yp-portal-dialog-head>button:focus-visible{outline:2px solid #8c9dbb;outline-offset:0}

#yp-portal-detail .yp-portal-table thead{position:sticky;top:0;z-index:2;background:var(--white,#fff)}
html[data-theme=dark] #yp-portal-detail .yp-portal-table thead{background:#1a2433}

#yp-portal-summary{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.yp-portal-stat{display:inline-flex;gap:5px;align-items:center;line-height:1.6;font-size:12px;color:var(--ink)}
.yp-portal-stat i{font-size:12px;color:#8b9db9}.yp-portal-stat b{font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}.yp-portal-stat small{font-size:10px;color:var(--muted)}
.yp-portal-stat.approved :is(i,b){color:#25a480}.yp-portal-stat.returned :is(i,b){color:#d7a259}.yp-portal-stat.processing :is(i,b){color:#94aaff}.yp-portal-stat.is-zero :is(i,b){color:var(--muted);font-weight:400}
.yp-portal-mode{margin-left:auto;font-size:11px;color:var(--muted)}
.yp-portal-controls{position:relative;margin:12px 0 8px}
.yp-portal-search-tools{display:flex;gap:6px;align-items:center}
.yp-portal-search-tools>input{flex:1;min-width:0}
#yp-portal-detail .yp-portal-tool-toggle{padding:5px 9px;min-width:32px;height:32px;flex:none;justify-content:center;background:transparent}
#yp-portal-detail .yp-portal-tool-toggle.has-filter{border-color:#8da5ee;color:#b7caff;background:#253a58}
.yp-portal-filter-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 0 3px;animation:yp-portal-panel-in .14s ease-out}
.yp-portal-filter-panel select{width:100%;min-width:0}
.yp-portal-more-panel{position:absolute;right:0;top:38px;z-index:8;width:164px;padding:5px;border:1px solid var(--line);border-radius:9px;background:var(--white,#fff);box-shadow:0 10px 30px #0002;animation:yp-portal-panel-in .14s ease-out}
.yp-portal-more-panel>button,.yp-portal-more-panel>label{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:inherit;font:inherit;font-size:12px;font-weight:400;text-align:left;padding:9px 10px;margin:0;border-radius:5px;cursor:pointer}
.yp-portal-more-panel i{width:14px;color:var(--muted);text-align:center}.yp-portal-more-panel>button:hover,.yp-portal-more-panel>label:hover{background:var(--soft)}
#yp-portal-detail .yp-portal-more-panel [hidden],#yp-portal-detail [hidden]{display:none!important}
html[data-theme=dark] .yp-portal-more-panel{background:#233044;border-color:#42546f;box-shadow:0 10px 30px #0005}
html[data-theme=dark] .yp-portal-more-panel>button:hover,html[data-theme=dark] .yp-portal-more-panel>label:hover{background:#30405a}
#yp-portal-detail .yp-portal-table.yp-portal-readonly tr{grid-template-columns:68px minmax(0,1fr) 130px 62px}
#yp-portal-detail .yp-portal-table.yp-portal-readonly :is(th,td):nth-child(6){display:none}
#yp-portal-detail .yp-portal-table.yp-portal-readonly tr{grid-template-areas:"drive title reason code" "drive link reason code"}
#yp-portal-detail .yp-portal-table tr[data-status=approved] td:nth-child(4){color:#218e70;font-weight:500}
html[data-theme=dark] #yp-portal-detail .yp-portal-table tr[data-status=approved] td:nth-child(4){color:#80cbb2}
#yp-portal-detail .yp-portal-table tr[data-status=approved] td:nth-child(4):before{content:'\f058';font-family:'Font Awesome 5 Free';font-weight:900;margin-right:5px}
#yp-portal-detail .yp-portal-table td:nth-child(5):before{content:'\f084';font-family:'Font Awesome 5 Free';font-weight:900;color:var(--muted);margin-right:4px;font-size:10px}
@keyframes yp-portal-panel-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.yp-portal-filter-panel,.yp-portal-more-panel{animation:none}}
@media(max-width:700px){
 #yp-portal-summary{gap:12px}.yp-portal-stat{gap:4px}.yp-portal-stat b{font-size:13px}.yp-portal-stat small{font-size:10px}
 .yp-portal-controls{margin:10px 0 7px}
 #yp-portal-detail .yp-portal-tool-toggle{width:32px;padding:0}
 .yp-portal-tool-toggle>span{display:none}
 .yp-portal-filter-panel{grid-template-columns:1fr 1fr}.yp-portal-filter-panel select:last-child{grid-column:1/-1}
 #yp-portal-detail .yp-portal-table.yp-portal-readonly tr{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"drive title" "link link" "code reason"}
 #yp-portal-detail .yp-portal-table.yp-portal-readonly td:nth-child(4){justify-self:end;font-size:10px}
 #yp-portal-detail .yp-portal-table td:nth-child(3) .yp-portal-share-url{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
 #yp-portal-detail .yp-portal-table tr{row-gap:6px}
}

#yp-portal-detail .yp-portal-table.yp-portal-readonly :is(th,td):nth-child(6){display:none!important}
.yp-portal-stat.is-zero i{font-weight:900!important}

.yp-portal-mode{display:inline-flex;align-items:center;gap:5px}.yp-portal-mode small{font-size:10px}
@media(max-width:700px){#yp-portal-detail{width:calc(100% - 24px)}}

#yp-portal-detail .yp-portal-table td.yp-portal-code-cell:before{content:none}
.yp-portal-copy-code{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:inherit;font:inherit;padding:5px 0;cursor:pointer;white-space:nowrap;border-radius:4px}
.yp-portal-copy-code>span{user-select:all;-webkit-user-select:all;font-variant-numeric:tabular-nums}
.yp-portal-copy-code>i{font-size:10px;color:var(--muted)}.yp-portal-copy-code .yp-copy-indicator{font-size:9px;opacity:.65}
.yp-portal-copy-code:hover{color:var(--blue)}.yp-portal-copy-code:focus-visible{outline:2px solid #8da5e9;outline-offset:3px}
.yp-portal-copy-code[data-copy-state=done],.yp-portal-copy-code[data-copy-state=done]>i{color:#36b58e}
.yp-portal-copy-code[data-copy-state=error]>i{color:#d7a259}
.yp-portal-copy-notice{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:12;max-width:calc(100% - 30px);padding:6px 12px;border:1px solid var(--line);border-radius:7px;background:var(--white,#fff);color:var(--ink);font-size:11px;box-shadow:0 4px 16px #0002;pointer-events:none;white-space:nowrap}
html[data-theme=dark] .yp-portal-copy-notice{background:#293c54;color:#e5efff;border-color:#526b8f}
