/* PPID portal panels: one spacing system, restrained corners, shared accent. */
.dlp-request-app.ppid-service-ui {
 --ppid-panel-gap:24px;
 --dlp-theme-panel-radius:4px;
 --dlp-theme-button-radius:4px;
}
.dlp-request-app.ppid-service-ui .dlp-portal-content {
 display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ppid-panel-gap);
}
.dlp-request-app.ppid-service-ui .dlp-portal-content>*,
.dlp-request-app.ppid-service-ui .dlp-admin-dashboard-grid>.dlp-request-panel,
.dlp-request-app.ppid-service-ui .dlp-admin-detail>.dlp-request-panel {min-width:0;margin-bottom:0}
.dlp-request-app.ppid-service-ui .dlp-portal-head {padding:28px;gap:24px;flex-direction:row;align-items:center}
.dlp-request-app.ppid-service-ui .dlp-portal-head h2 {font-size:clamp(24px,2.5vw,30px);font-weight:650;line-height:1.3}
.dlp-request-app.ppid-service-ui .dlp-portal-head p {line-height:1.7}
.dlp-request-app.ppid-service-ui .dlp-user-pill {flex:0 1 320px;width:auto;max-width:40%;padding:12px 16px}
.dlp-request-app.ppid-service-ui .dlp-user-pill>span {min-width:0;overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .dlp-portal-nav {margin:16px 0 24px;padding:8px;gap:8px;flex-wrap:wrap;overflow:visible}
.dlp-request-app.ppid-service-ui .dlp-portal-nav a {min-height:44px;padding:10px 14px;font-size:13px;line-height:1.4;white-space:normal}
.dlp-request-app.ppid-service-ui .dlp-portal-nav a.active {font-weight:650;box-shadow:inset 0 -2px 0 var(--rq-blue)}
.dlp-request-app.ppid-service-ui .dlp-portal-nav .dlp-portal-logout {margin-left:auto}
.dlp-request-app.ppid-service-ui .dlp-request-panel {width:100%;max-width:none;padding:24px;background-image:none}
.dlp-request-app.ppid-service-ui .dlp-panel-title {gap:12px;margin:0 0 22px;padding:14px 16px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--rq-line)}
.dlp-request-app.ppid-service-ui .dlp-panel-title>span:first-child {flex:0 0 38px;width:38px;height:38px}
.dlp-request-app.ppid-service-ui .dlp-panel-title>div {flex:1 1 180px;min-width:0}
.dlp-request-app.ppid-service-ui .dlp-panel-title h3 {font-size:18px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .dlp-panel-title p {font-size:13px;line-height:1.65}
.dlp-request-app.ppid-service-ui .dlp-small-link {padding:8px 12px;min-height:40px;border:1px solid var(--rq-line);border-radius:4px;background:var(--rq-panel,#fff);white-space:nowrap}
.dlp-request-app.ppid-service-ui .dlp-request-stats {grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dlp-request-app.ppid-service-ui .dlp-admin-stat-grid {grid-template-columns:repeat(5,minmax(0,1fr))}
.dlp-request-app.ppid-service-ui .dlp-applicant-stat-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.dlp-request-app.ppid-service-ui .dlp-request-stat {padding:20px 16px;gap:12px;border-top:2px solid var(--rq-blue);min-width:0}
.dlp-request-app.ppid-service-ui .dlp-request-stat>span {flex:0 0 36px;width:36px;height:36px;border-radius:4px}
.dlp-request-app.ppid-service-ui .dlp-request-stat>div {min-width:0;gap:4px}
.dlp-request-app.ppid-service-ui .dlp-request-stat small {font-size:12px;line-height:1.5;letter-spacing:0;text-transform:none;font-weight:600}
.dlp-request-app.ppid-service-ui .dlp-request-stat strong {font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}
.dlp-request-app.ppid-service-ui .dlp-request-stat em {font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .dlp-action-grid {gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.dlp-request-app.ppid-service-ui .dlp-action-card {padding:22px;min-width:0;gap:16px}
.dlp-request-app.ppid-service-ui .dlp-action-card>span {flex:0 0 44px;width:44px;height:44px;border-radius:4px}
.dlp-request-app.ppid-service-ui .dlp-action-card>div {min-width:0}
.dlp-request-app.ppid-service-ui .dlp-action-card strong {font-size:15px;line-height:1.5}
.dlp-request-app.ppid-service-ui .dlp-action-card small {font-size:13px;line-height:1.65}
.dlp-request-app.ppid-service-ui .dlp-admin-dashboard-grid {grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr);gap:24px;align-items:start}
.dlp-request-app.ppid-service-ui .dlp-mini-metrics {gap:10px;margin-bottom:20px}
.dlp-request-app.ppid-service-ui .dlp-mini-metrics>div {padding:14px 10px;min-width:0}
.dlp-request-app.ppid-service-ui .dlp-mini-metrics span {font-size:12px;overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row {grid-template-columns:40px minmax(0,1fr) minmax(0,1.55fr) 106px 82px;gap:12px;padding:14px 12px;align-items:start}
.dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row>span {overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row small {line-height:1.6}
.dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row.is-head {font-size:12px;background:var(--rq-blue-soft)}
.dlp-request-app.ppid-service-ui .dlp-request-list {gap:16px}
.dlp-request-app.ppid-service-ui .dlp-request-item {padding:20px;box-shadow:none}
.dlp-request-app.ppid-service-ui .dlp-request-detail-grid {gap:16px}
.dlp-request-app.ppid-service-ui .dlp-request-detail-grid>div {min-width:0;border-radius:4px}
.dlp-request-app.ppid-service-ui .dlp-request-detail-grid p {overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .dlp-request-empty {padding:32px 20px}
.dlp-request-app.ppid-service-ui :is(.dlp-request-panel,.dlp-request-stat,.dlp-action-card) {box-shadow:0 1px 3px rgba(0,0,0,.04)}
.dlp-request-app.ppid-service-ui a:focus-visible,
.dlp-request-app.ppid-service-ui button:focus-visible {outline:2px solid var(--rq-blue);outline-offset:3px}
@container ppid-portal (max-width:1180px) {
 .dlp-request-app.ppid-service-ui .dlp-admin-dashboard-grid {grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .dlp-request-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
 .dlp-request-app.ppid-service-ui .dlp-admin-stat-grid>.dlp-request-stat:last-child {grid-column:1/-1}
 .dlp-request-app.ppid-service-ui .dlp-applicant-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container ppid-portal (max-width:760px) {
 .dlp-request-app.ppid-service-ui .dlp-portal-content {gap:20px}
 .dlp-request-app.ppid-service-ui .dlp-portal-head {flex-direction:column;align-items:stretch;padding:22px}
 .dlp-request-app.ppid-service-ui .dlp-user-pill {flex:auto;width:100%;max-width:100%}
 .dlp-request-app.ppid-service-ui .dlp-portal-nav .dlp-portal-logout {margin-left:0}
 .dlp-request-app.ppid-service-ui .dlp-action-grid {grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .dlp-request-panel {padding:20px}
 .dlp-request-app.ppid-service-ui .dlp-applicant-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .dlp-request-app.ppid-service-ui .dlp-service-identity-row {grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row.is-head {display:none}
 .dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row:not(.is-head) {grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--rq-line);margin-bottom:12px;padding:16px}
 .dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row>span:nth-child(3) {grid-column:1/-1}
 .dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row>span[data-label]:before {content:attr(data-label);display:block;font-size:11px;opacity:.72;margin-bottom:4px}
 .dlp-request-app.ppid-service-ui .dlp-request-detail-grid {grid-template-columns:minmax(0,1fr)}
}
@container ppid-portal (max-width:440px) {
 .dlp-request-app.ppid-service-ui .dlp-request-stats {grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .dlp-portal-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .dlp-request-app.ppid-service-ui .dlp-portal-nav a {padding:10px;font-size:12px}
 .dlp-request-app.ppid-service-ui .dlp-request-panel {padding:16px}
 .dlp-request-app.ppid-service-ui .dlp-panel-title {padding:12px;gap:10px}
 .dlp-request-app.ppid-service-ui .dlp-panel-title>div {flex-basis:140px}
 .dlp-request-app.ppid-service-ui .is-overview .dlp-admin-request-row:not(.is-head) {grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce) {
 .dlp-request-app.ppid-service-ui .dlp-action-card {transition:none;transform:none}
}

/* Service workflow, private timeline and reports. */
.dlp-request-app.ppid-service-ui .ppid-request-tools {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:20px;padding-top:16px;border-top:1px solid var(--rq-line)}
.dlp-request-app.ppid-service-ui .ppid-request-tools strong {font-size:13px}
.dlp-request-app.ppid-service-ui .ppid-request-tools form {margin:0}
.dlp-request-app.ppid-service-ui .ppid-deadline {display:block;font-size:12px;line-height:1.6;margin-top:6px;color:var(--rq-text);white-space:normal}
.dlp-request-app.ppid-service-ui .ppid-deadline.is-late {font-weight:650;color:#b32d2e}
.dlp-request-app.ppid-service-ui .ppid-timeline {margin-top:28px}
.dlp-request-app.ppid-service-ui .ppid-timeline h3 {font-size:18px;font-weight:650}
.dlp-request-app.ppid-service-ui .ppid-timeline ol {list-style:none;margin:20px 0 0 8px;padding:0 0 0 22px;border-left:2px solid var(--rq-line)}
.dlp-request-app.ppid-service-ui .ppid-timeline li {position:relative;padding:0 0 24px;margin:0}
.dlp-request-app.ppid-service-ui .ppid-timeline li:before {content:'';position:absolute;left:-29px;top:5px;width:12px;height:12px;background:var(--rq-blue);border:2px solid var(--rq-panel,#fff);border-radius:50%}
.dlp-request-app.ppid-service-ui .ppid-timeline strong {font-size:14px}
.dlp-request-app.ppid-service-ui .ppid-timeline time {display:block;font-size:12px;opacity:.75;margin:6px 0}
.dlp-request-app.ppid-service-ui .ppid-timeline p {margin:8px 0 0;font-size:14px;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .ppid-notifications {display:grid;gap:12px}
.dlp-request-app.ppid-service-ui .ppid-notification {padding:18px;border:1px solid var(--rq-line);border-radius:4px}
.dlp-request-app.ppid-service-ui .ppid-notification.is-unread {border-left:3px solid var(--rq-blue);background:var(--rq-blue-soft)}
.dlp-request-app.ppid-service-ui .ppid-notification>span {font-size:12px}
.dlp-request-app.ppid-service-ui .ppid-notification p {margin:10px 0;overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui .ppid-pagination {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:20px;font-size:13px}
.dlp-request-app.ppid-service-ui .ppid-report-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}
.dlp-request-app.ppid-service-ui .ppid-report-stats>div {padding:18px;border:1px solid var(--rq-line);border-radius:4px;background:var(--rq-blue-soft)}
.dlp-request-app.ppid-service-ui .ppid-report-stats span {display:block;font-size:13px}
.dlp-request-app.ppid-service-ui .ppid-report-stats strong {display:block;font-size:28px;font-variant-numeric:tabular-nums}
.dlp-request-app.ppid-service-ui .ppid-table-scroll {overflow-x:auto;margin-top:24px;border:1px solid var(--rq-line)}
.dlp-request-app.ppid-service-ui .ppid-service-table {width:100%;min-width:560px;border-collapse:collapse;margin:0;text-align:left;background:var(--rq-panel,#fff);color:var(--rq-text)}
.dlp-request-app.ppid-service-ui .ppid-service-table caption {text-align:left;padding:16px;font-weight:650}
.dlp-request-app.ppid-service-ui .ppid-service-table :is(th,td) {text-align:left;padding:13px;border:0;border-bottom:1px solid var(--rq-line);font-size:13px;line-height:1.6;vertical-align:top;overflow-wrap:anywhere;max-width:320px}
.dlp-request-app.ppid-service-ui .ppid-service-table th {background:var(--rq-blue-soft);font-weight:650}
.dlp-request-app.ppid-service-ui .ppid-weekdays {display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.dlp-request-app.ppid-service-ui .ppid-weekdays>span {flex-basis:100%}
.dlp-request-app.ppid-service-ui .ppid-weekdays label {display:inline-flex;align-items:center;gap:6px}
.dlp-request-app.ppid-service-ui .ppid-weekdays input {width:18px!important;height:18px;min-height:18px;accent-color:var(--rq-blue)}
.dlp-request-app.ppid-service-ui .ppid-submit-status {padding:12px 16px;border-left:3px solid var(--rq-blue);background:var(--rq-blue-soft);font-size:13px}
.dlp-request-app.ppid-service-ui [data-ppid-submit] {pointer-events:none;opacity:.65;cursor:wait}
@container ppid-portal (max-width:600px) {
 .dlp-request-app.ppid-service-ui .ppid-report-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
 .dlp-request-app.ppid-service-ui .ppid-request-tools {align-items:stretch}
 .dlp-request-app.ppid-service-ui .ppid-request-tools>.dlp-response-actions {width:100%}
 .dlp-request-app.ppid-service-ui .ppid-request-tools form {width:100%}
 .dlp-request-app.ppid-service-ui .ppid-export button {margin-bottom:8px}
}

/* Audit 1.8.1: aligned workflow panels and compact, responsive reports. */
.dlp-request-app.ppid-service-ui .ppid-workflow-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--ppid-panel-gap);align-items:start}
.dlp-request-app.ppid-service-ui .ppid-workflow-grid>.dlp-request-panel {min-width:0;margin:0}
.dlp-request-app.ppid-service-ui .ppid-workflow-grid .ppid-request-tools {margin-top:0;padding-top:0;border-top:0}
.dlp-request-app.ppid-service-ui .ppid-report-filters {padding:18px;border:1px solid var(--rq-line);border-radius:4px;background:var(--rq-blue-soft);gap:16px}
.dlp-request-app.ppid-service-ui .ppid-report-filters .dlp-form-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dlp-request-app.ppid-service-ui .ppid-report-filters button {justify-self:start}
.dlp-request-app.ppid-service-ui .ppid-notification form {margin:12px 0 0}
.dlp-request-app.ppid-service-ui .ppid-table-scroll:focus-visible {outline:2px solid var(--rq-blue);outline-offset:3px}
.dlp-request-app.ppid-service-ui .ppid-service-table tbody tr:last-child td {border-bottom:0}
@container ppid-portal (max-width:850px) {
 .dlp-request-app.ppid-service-ui .ppid-workflow-grid {grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .ppid-report-filters .dlp-form-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container ppid-portal (max-width:480px) {
 .dlp-request-app.ppid-service-ui .ppid-report-filters .dlp-form-grid {grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .ppid-report-filters {padding:14px}
 .dlp-request-app.ppid-service-ui .ppid-pagination {justify-content:flex-start}
}
@media (max-width:600px) {
 .dlp-request-app.ppid-service-ui .ppid-workflow-grid {grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .ppid-report-filters .dlp-form-grid {grid-template-columns:minmax(0,1fr)}
}

/* 1.8.4: prevent long identity text and action bars from expanding panels. */
.dlp-request-app.ppid-service-ui :is(.dlp-admin-detail,.dlp-admin-dashboard-grid,.dlp-form-grid)>* {min-width:0}
.dlp-request-app.ppid-service-ui :is(.dlp-panel-title h3,.dlp-user-pill,.dlp-request-item h4,.dlp-response-note) {overflow-wrap:anywhere}
.dlp-request-app.ppid-service-ui :is(.dlp-response-actions,.dlp-completion-actions,.dlp-account-utilities) {flex-wrap:wrap;gap:10px}
.dlp-service-fullpage .dlp-service-brandmark {width:auto;min-width:42px;padding:0 6px;font-size:12px}
@container ppid-portal (max-width:480px){
 .dlp-request-app.ppid-service-ui .dlp-panel-title>form {width:100%}
 .dlp-request-app.ppid-service-ui .dlp-panel-title>form button {width:100%;white-space:normal}
 .dlp-request-app.ppid-service-ui .dlp-account-utilities {display:grid;grid-template-columns:minmax(0,1fr)}
 .dlp-request-app.ppid-service-ui .dlp-account-utilities button {width:100%;white-space:normal}
}

/* Profile access gate follows the existing theme adapter; no independent dark-mode toggle. */
.dlp-request-app .ppid-profile-gate{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:24px;overflow:auto;background:rgba(255,255,255,.86);backdrop-filter:blur(4px);box-sizing:border-box}
.dlp-request-app[data-dlp-theme="dark"] .ppid-profile-gate{background:rgba(0,0,0,.82)}
.dlp-request-app .ppid-profile-gate-card{width:100%;max-width:460px;padding:28px;border:1px solid var(--rq-line,#ddd);border-radius:4px;background:var(--rq-panel,#fff);color:var(--rq-text,#182033);box-shadow:0 12px 40px rgba(0,0,0,.12);text-align:center;box-sizing:border-box}
.dlp-request-app .ppid-profile-gate-card>svg{width:32px;height:32px;color:var(--rq-blue)}
.dlp-request-app .ppid-profile-gate-card h3{font-size:21px;line-height:1.4;margin:16px 0 10px;color:inherit}
.dlp-request-app .ppid-profile-gate-card p{font-size:14px;line-height:1.7;color:inherit}
.dlp-request-app .ppid-profile-gate-card .dlp-response-actions{justify-content:center;flex-wrap:wrap;margin-top:20px}
.dlp-request-app[data-dlp-theme="dark"] .ppid-profile-gate-card{background:#17191d;color:#f5f7fa;border-color:rgba(255,255,255,.18)}
@media(max-width:480px){.dlp-request-app .ppid-profile-gate{padding:16px}.dlp-request-app .ppid-profile-gate-card{padding:22px}.dlp-request-app .ppid-profile-gate-card .dlp-response-actions>a{width:100%;justify-content:center}}
