.pi-card { margin-bottom: 22px; }
.pi-auto-summary { margin: 0 0 16px; padding: 10px 12px; border-radius: 7px; background: #f0f5fb; color: var(--brand); font-size: 13px; overflow-wrap: anywhere; }
.pi-autofill-warnings:not(:empty) { background: #fff6e5; border: 1px solid #f2dfbc; border-radius: 7px; color: #815715; padding: 12px; margin-bottom: 15px; font-size: 12px; overflow-wrap: anywhere; }
.pi-autofill-warnings ul { padding-left: 18px; margin: 6px 0 10px; }
.pi-confirm-suggestions { margin-bottom: 14px; }
.pi-confirm-suggestions[hidden] { display: none; }
.pi-field-evidence { font-size: 12px; min-width: 0; }
.pi-source { display: inline-block; font-size: 11px; line-height: 1.7; border-radius: 4px; padding: 0 6px; color: #526a7f; background: #eef3f7; }
.pi-source-review { color: #915b15; background: #fff1d5; }
.pi-review-hint { margin-left: 6px; color: #91621f; font-size: 11px; }
.pi-evidence-details { margin-top: 5px; }
.pi-evidence-details > summary { cursor: pointer; color: var(--brand); font-size: 12px; }
.pi-candidate { border-left: 2px solid #dce6f0; padding: 8px 10px; margin-top: 8px; overflow-wrap: anywhere; background: #f8fafc; border-radius: 0 5px 5px 0; }
.pi-candidate > small { color: #69788d; }
.pi-candidate p { margin: 5px 0; white-space: pre-wrap; font-size: 12px; font-weight: 400; }
.pi-candidate blockquote { margin: 6px 0; padding-left: 9px; border-left: 2px solid #d7e0eb; color: #6b7786; white-space: pre-wrap; font-size: 11px; font-weight: 400; }
.pi-candidate button { margin-top: 5px; }
.pi-scans-table-wrap { width: 100%; overflow-x: auto; }
.pi-scans-table-wrap table { min-width: 830px; }
.pi-scans-table-wrap td:last-child { white-space: nowrap; }
.pi-scan-card > .hint { margin: -3px 0 13px; }
#patentIntakeMount { scroll-margin-top: 20px; }
.pi-card-head, .pi-history-head, .pi-history-row, .pi-actions, .pi-upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pi-card-head h3 { font-size: 18px; }
.pi-card-head p, .pi-context { margin: 5px 0 0; color: var(--ink-2); font-size: 13px; }
.pi-badge { color: var(--brand); background: #edf3fa; padding: 3px 12px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.pi-context { border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 18px; overflow-wrap: anywhere; }
.pi-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; }
.pi-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; font-size: 13px; }
.pi-field > span { font-weight: 600; }
.pi-required { color: var(--danger); }
.pi-field input, .pi-field textarea, .pi-field select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d7dfe9; border-radius: 7px; color: var(--ink); font: inherit; background: #fff; }
.pi-field textarea { resize: vertical; line-height: 1.6; }
.pi-field input:focus, .pi-field textarea:focus, .pi-field select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(29,99,168,.1); }
.pi-field small, .pi-file-total { color: #69788d; line-height: 1.55; font-size: 12px; }
.pi-wide { grid-column: 1 / -1; }
.pi-credentials { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.pi-credentials summary { cursor: pointer; color: var(--brand); font-size: 13px; font-weight: 600; }
.pi-credentials .pi-grid { margin-top: 12px; }
.pi-attachments > .hint { margin: 5px 0 11px; }
.pi-upload-actions { justify-content: flex-start; flex-wrap: wrap; }
.pi-upload { position: relative; margin: 0; cursor: pointer; }
.pi-files { margin: 12px 0 5px; padding: 0; list-style: none; }
.pi-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef1f5; }
.pi-files li > span { min-width: 0; overflow-wrap: anywhere; }
.pi-files b { font-size: 12px; color: var(--brand); margin-right: 6px; }
.pi-files small { margin-left: 8px; color: var(--ink-2); white-space: nowrap; }
.pi-message { min-height: 21px; margin: 16px 0 8px; color: var(--ok); font-size: 13px; overflow-wrap: anywhere; }
.pi-message.pi-error { color: var(--danger); }
.pi-actions { justify-content: flex-end; flex-wrap: wrap; }
.pi-actions [hidden] { display: none; }
.pi-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 12px; line-height: 1.8; max-height: 440px; overflow-y: auto; margin: 16px 0 0; }
.pi-preview[hidden] { display: none; }
.pi-history-head { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.pi-history-head h4 { margin: 0; font-size: 14px; }
.pi-history-row { border-top: 1px solid #eef1f5; margin-top: 10px; padding: 12px 0 0; }
.pi-history-row strong { font-size: 13px; margin-right: 12px; }
.pi-history-row span { font-size: 12px; color: var(--ink-2); }
.pi-history-row p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.pi-record-details { margin: 10px 0 0; padding-bottom: 4px; }
.pi-record-details > summary { cursor: pointer; color: var(--brand); font-size: 13px; }
.pi-record-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; margin: 12px 0; }
.pi-record-data > div { min-width: 0; }
.pi-record-data dt { font-size: 12px; color: #69788d; }
.pi-record-data dd { margin: 3px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pi-record-files-title { font-size: 13px; }
.pi-record-files { margin: 6px 0 12px; padding-left: 18px; font-size: 13px; overflow-wrap: anywhere; }
.pi-record-files b { font-size: 12px; color: var(--brand); margin-right: 6px; }
.pi-fieldset:disabled .pi-upload { opacity: .55; cursor: default; }
@media (max-width: 600px) {
  .pi-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pi-field input, .pi-field textarea, .pi-field select { font-size: 16px; }
  .pi-actions { justify-content: stretch; }
  .pi-actions > .btn { flex: 1; }
  .pi-history-row { align-items: flex-start; }
  .pi-history-row > div { min-width: 0; }
  .pi-history-row span { display: block; margin-top: 2px; }
  .pi-card-head { align-items: flex-start; }
  .pi-record-data { grid-template-columns: minmax(0, 1fr); }
}

.pi-kind-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.pi-kind-hint{color:#637087;font-size:13px;line-height:1.6;margin:8px 0 16px}.pi-kind-hint .btn{margin-left:8px}.pi-business-eligibility-mount:empty{display:none}@media(max-width:600px){.pi-kind-tabs .btn{flex:1}.pi-kind-hint .btn{display:block;margin:8px 0 0}}

.pi-eligibility{padding:16px;background:#f7f9fc;border:1px solid #dce4ef;border-radius:10px;margin:14px 0 18px}.pi-eligibility h4{margin:0 0 14px}.pi-scan-choices{display:grid;gap:8px;margin:10px 0}.pi-scan-choices label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:8px;min-width:0;margin:0;font-size:13px;line-height:1.6;white-space:normal;cursor:pointer}.pi-scan-choices input[type="checkbox"]{width:16px;height:16px;min-width:16px;min-height:16px;padding:0;margin:3px 0 0;justify-self:start}.pi-scan-name{min-width:0;overflow-wrap:anywhere;word-break:normal}.pi-exception{margin-top:14px;border-left:3px solid #c78b26;padding-left:12px}.pi-approval-state{color:#805715;line-height:1.7;font-size:13px}.pi-request-row{padding:12px 0;border-bottom:1px solid #e2e8f0}.pi-request-row p{font-size:13px;margin:6px 0}.pi-request-head{margin:20px 0 8px}

.pi-card [hidden] { display: none !important; }
.pi-final-review { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; }

.pi-success-dialog { width: min(420px, calc(100vw - 40px)); border: 0; border-radius: 14px; padding: 28px; box-shadow: 0 16px 60px #102f5570; }
.pi-success-dialog::backdrop { background: #102f5570; }
.pi-success-dialog h3 { margin: 0 0 16px; color: #176442; }
.pi-success-dialog p { margin: 12px 0; }
.pi-success-dialog button { margin-top: 12px; }
