/* ============================================================
   前台授权签约中心 · 门户样式
   基础样式来自官网 style.css（品牌蓝 #2B69E5 / 冷白底），
   这里只补充门户页面与表单组件。
   ============================================================ */

/* ---------- 基础 ---------- */
.portal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 85% -100px, rgba(43, 105, 229, 0.10), transparent 60%),
    var(--cream);
}
.portal-main { flex: 1; padding: 34px 0 60px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- 头部 ---------- */
.portal-header .header-inner { height: 72px; }
.portal-logo { gap: 12px; }
.portal-logo-mark {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-brand);
}
.portal-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.portal-logo-text strong { font-size: 17px; color: var(--ink-900); }
.portal-logo-text em { font-style: normal; font-size: 12px; color: var(--ink-500); letter-spacing: 2px; }

.portal-nav { display: flex; gap: 6px; }
.portal-nav .nav-item { font-size: 15px; padding: 8px 16px; border-radius: 999px; }
.portal-nav .nav-item.active { background: var(--brand-100); font-weight: 600; }

.portal-userbox { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.portal-userno {
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-600);
  font-weight: 600; letter-spacing: .4px;
}
.portal-mobile { color: var(--ink-500); }
.portal-logout {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--ink-100);
  color: var(--ink-700); background: #fff;
  transition: all var(--transition);
}
.portal-logout:hover { border-color: var(--brand-300); color: var(--brand-600); background: var(--brand-100); }

/* ---------- 页脚 ---------- */
.portal-footer { border-top: 1px solid var(--ink-100); background: #fff; }
.portal-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 22px 0; font-size: 13px; color: var(--ink-500); flex-wrap: wrap;
}

/* ---------- 页面标题 ---------- */
.pf-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.pf-page-head h1 { font-size: 26px; letter-spacing: -0.01em; }
.pf-page-head p { margin-top: 6px; color: var(--ink-500); font-size: 14px; }
.pf-usertag {
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--ink-100);
  color: var(--ink-600); font-size: 13px;
}

/* ---------- 提示 ---------- */
.pf-alert {
  padding: 13px 16px; border-radius: var(--radius-md);
  border: 1px solid transparent; margin-bottom: 16px; font-size: 14px; line-height: 1.6;
}
.pf-alert-success { background: #EAF7F0; border-color: #BFE8D2; color: #1E7145; }
.pf-alert-warn    { background: #FFF7E8; border-color: #F5DCA8; color: #8A5A00; }
.pf-alert-danger  { background: #FDECEA; border-color: #F3C4BE; color: #A0271A; }
.pf-alert-info    { background: var(--brand-100); border-color: #C7DAFB; color: var(--brand-600); }
.pf-err-list { margin: 8px 0 0 18px; list-style: disc; }
.pf-err-list li { margin: 2px 0; }

/* ---------- 卡片 ---------- */
.pf-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px 26px; margin-bottom: 18px;
}
.pf-card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: var(--ink-900);
  margin-bottom: 18px;
}
.pf-card-sub { color: var(--ink-500); font-size: 13px; margin: -10px 0 14px; }
.pf-step {
  width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-100); color: var(--brand-600);
  font-size: 13px; font-weight: 700;
}

/* ---------- 栅格与字段 ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 18px; }
.pf-span-3 { grid-column: span 3; }
.pf-span-4 { grid-column: span 4; }
.pf-span-6 { grid-column: span 6; }
.pf-span-8 { grid-column: span 8; }
.pf-span-12 { grid-column: span 12; }

.pf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.pf-field > label em { font-style: normal; color: var(--danger); }

.pf-input,
.pf-select {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--ink-300); border-radius: var(--radius-md);
  background: #fff; color: var(--ink-900); font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pf-select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236D7F95' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.pf-input::placeholder { color: #A3AFBE; }
.pf-input:focus,
.pf-select:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(43, 105, 229, 0.12); }
.pf-input[readonly] { background: var(--cream); color: var(--ink-500); }
.pf-input.is-error,
.pf-select.is-error { border-color: var(--danger); }

.pf-hint { font-size: 12.5px; color: var(--ink-500); line-height: 1.55; }
.pf-error { font-size: 12.5px; color: var(--danger); }

/* ---------- 单选卡片 ---------- */
.pf-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-seg-item {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 13px 15px 13px 42px; border: 1px solid var(--ink-300);
  border-radius: var(--radius-md); cursor: pointer; background: #fff;
  transition: all var(--transition);
}
.pf-seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.pf-seg-item::before {
  content: ''; position: absolute; left: 15px; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--ink-300); background: #fff; transition: all var(--transition);
}
.pf-seg-item.selected,
.pf-seg-item:has(input:checked) { border-color: var(--brand-400); background: var(--brand-100); }
.pf-seg-item.selected::before,
.pf-seg-item:has(input:checked)::before {
  border-color: var(--brand-500);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 10px var(--brand-500);
}
.pf-seg-title { font-weight: 600; color: var(--ink-900); font-size: 14.5px; }
.pf-seg-desc { font-size: 12.5px; color: var(--ink-500); }

/* ---------- 地址行 ---------- */
.pf-addr-row { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 10px; }

/* ---------- 提示条 ---------- */
.pf-note {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--brand-100); color: var(--brand-600); font-size: 13px; line-height: 1.6;
}

/* ---------- 上传 ---------- */
.pf-upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pf-upload-item { border: 1px solid var(--ink-100); border-radius: var(--radius-md); padding: 12px; background: #fff; }
.pf-upload-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.pf-upload-box {
  display: block; border: 1px dashed var(--ink-300); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; background: var(--cream);
  min-height: 116px; position: relative; transition: border-color var(--transition);
}
.pf-upload-box:hover { border-color: var(--brand-400); }
.pf-upload-box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-upload-inner { display: flex; align-items: center; justify-content: center; min-height: 116px; }
.pf-upload-inner img { width: 100%; height: 116px; object-fit: cover; display: block; }
.pf-upload-placeholder { color: var(--ink-500); font-size: 13px; }
.pf-upload-file { font-size: 12px; color: var(--brand-600); margin-top: 6px; word-break: break-all; }
.pf-upload-tip { font-size: 12px; color: var(--ink-500); margin-top: 4px; line-height: 1.5; }

/* ---------- 按钮 ---------- */
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition);
}
.pf-btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff; box-shadow: var(--shadow-brand);
}
.pf-btn-primary:hover { transform: translateY(-1px); color: #fff; }
.pf-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.pf-btn-ghost { background: #fff; border-color: var(--ink-300); color: var(--ink-700); }
.pf-btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-600); }
.pf-btn-outline { background: var(--brand-100); color: var(--brand-600); border-color: transparent; }
.pf-btn-outline:hover { background: #DCE8FD; }
.pf-btn-block { width: 100%; }
.pf-actions { display: flex; justify-content: flex-end; gap: 12px; margin: 6px 0 26px; }

/* ---------- 我的申请 ---------- */
.pf-my { margin-top: 8px; }
.pf-table-wrap { overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-table th, .pf-table td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.pf-table th { font-size: 12.5px; color: var(--ink-500); font-weight: 600; background: var(--cream); }
.pf-sub { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.pf-clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-reject { color: var(--danger); }
.pf-link { color: var(--brand-600); font-weight: 600; }
.pf-link:hover { text-decoration: underline; }
.pf-empty { text-align: center; padding: 34px 10px; color: var(--ink-500); font-size: 14px; }
.pf-empty .pf-btn { margin-top: 16px; }
.pf-empty p + p { margin-top: 8px; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-green  { background: #EAF7F0; color: #1E7145; }
.badge-blue   { background: var(--brand-100); color: var(--brand-600); }
.badge-orange { background: #FFF3E0; color: #A65B00; }
.badge-purple { background: #F1ECFE; color: #5B3BB5; }
.badge-red    { background: #FDECEA; color: #A0271A; }
.badge-gray   { background: var(--ink-100); color: var(--ink-600); }

/* ---------- 续期 ---------- */
.pf-renew-list { display: flex; flex-direction: column; gap: 18px; }
.pf-renew-card { margin-bottom: 0; }
.pf-renew-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pf-renew-head h3 { font-size: 18px; }
.pf-renew-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--cream);
}
.pf-renew-meta span { display: block; font-size: 12.5px; color: var(--ink-500); margin-bottom: 3px; }
.pf-renew-meta strong { font-size: 14px; color: var(--ink-900); font-weight: 600; }
.pf-renew-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-renew-form { display: flex; align-items: center; gap: 12px; }

/* ---------- 签约管理 ---------- */
.pf-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-order-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--ink-100); padding-top: 14px; margin-top: 2px;
}
.pf-order-foot .pf-sub { margin-top: 0; }
.pf-actions-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-actions-inline form { margin: 0; }
.pf-hint-inline {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  background: #FFF3E0; color: #A65B00; font-size: 12.5px;
}

/* ---------- 签署地址卡片 ---------- */
.pf-sign-box {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F5F0FF 0%, #EEF6FF 100%);
  border: 1px solid #E4DAFF;
}
.pf-sign-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: #3B2D70; font-size: 14px;
  margin-bottom: 10px;
}
.pf-sign-row {
  display: flex; align-items: stretch; gap: 10px;
}
.pf-sign-link {
  flex: 1; min-width: 0;
  padding: 10px 14px; border-radius: 8px;
  background: #fff; border: 1px solid #DCD1FF;
  color: #3B5BB5; font-size: 13px; font-family: ui-monospace, Consolas, monospace;
  text-decoration: none; word-break: break-all; line-height: 1.5;
  transition: border-color .15s;
}
.pf-sign-link:hover { border-color: #5B3BB5; text-decoration: underline; }
.pf-sign-row .pf-copy-btn {
  white-space: nowrap; align-self: center;
}
.pf-sign-hint {
  margin-top: 8px; color: #666; font-size: 12px;
}
.pf-sign-wait {
  display: flex; align-items: center; gap: 10px;
  background: #F8F6FF; border-color: #E8E0FF;
  font-size: 13px; color: #6B5CA5;
}

/* ---------- 授权证书卡片 ---------- */
.pf-cert-box {
  background: linear-gradient(135deg, #F3FBEF 0%, #EEF6FF 100%);
  border-color: #D6EFC8;
}
.pf-cert-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-bottom: 4px;
}
.pf-cert-meta > div {
  background: #fff; border: 1px solid #E2F0DA; border-radius: 8px;
  padding: 8px 12px;
}
.pf-cert-meta span { display: block; color: #7A8C73; font-size: 12px; margin-bottom: 4px; }
.pf-cert-meta strong { color: #24531B; font-size: 13px; word-break: break-all; }
.pf-cert-code { margin-top: 10px; }
.pf-cert-code-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: #3B5B2D; margin-bottom: 6px;
}
.pf-cert-code pre {
  margin: 0; padding: 10px 12px; border-radius: 8px;
  background: #fff; border: 1px solid #E2F0DA;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  color: #3B5BB5; white-space: pre-wrap; word-break: break-all; line-height: 1.5;
}
@media (max-width: 640px) {
  .pf-cert-meta { grid-template-columns: 1fr; }
}

/* ---------- 登录页 ---------- */
.portal-body-auth {
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(66, 133, 244, .22), transparent 60%),
    linear-gradient(180deg, var(--ink-900), #0D1B35);
}
.pf-login {
  max-width: 560px; margin: 60px auto;
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  background: #fff;
}
.pf-login-card { padding: 48px 48px; }
.pf-login-head { margin-bottom: 28px; text-align: center; }
.pf-login-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff; font-weight: 700; letter-spacing: 1px; font-size: 16px;
  box-shadow: var(--shadow-brand); margin-bottom: 16px;
}
.pf-login-head h1 { font-size: 26px; margin-bottom: 6px; text-align: center; }
.pf-login-head p { color: var(--ink-500); font-size: 14px; }
.pf-login-form { display: flex; flex-direction: column; gap: 16px; }
.pf-code-row { display: flex; gap: 10px; }
.pf-code-row .pf-input { flex: 1; }
.pf-code-btn { white-space: nowrap; padding: 0 16px; }
.pf-debug-code { margin-top: 8px; font-size: 13px; }
.pf-debug-code strong { font-size: 18px; letter-spacing: 3px; color: var(--brand-600); }
.pf-login-slogan {
  margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--ink-100);
  text-align: center;
}
.pf-login-slogan h3 {
  font-size: 15px; font-weight: 600; color: var(--ink-800);
  margin-bottom: 6px;
}
.pf-login-slogan p {
  font-size: 13px; color: var(--ink-500); line-height: 1.7;
}
.pf-login-tips {
  margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--ink-100);
  display: flex; flex-direction: column; gap: 8px;
}
.pf-login-tips li { position: relative; padding-left: 18px; font-size: 12.5px; color: var(--ink-500); line-height: 1.6; }
.pf-login-tips li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-300);
}
.pf-login-side {
  padding: 44px 40px; color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(91, 141, 239, .45), transparent 60%),
    linear-gradient(160deg, var(--ink-900), #1B2F55 70%, #21406F);
  display: flex; flex-direction: column; justify-content: center;
}
.pf-login-side h2 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.pf-login-side > p { color: rgba(255, 255, 255, .72); font-size: 14px; margin-bottom: 26px; line-height: 1.7; }
.pf-login-side ul { display: flex; flex-direction: column; gap: 16px; }
.pf-login-side li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .9); line-height: 1.6; }
.pf-login-side li span {
  flex: 0 0 36px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .pf-login { max-width: 100%; margin: 20px 16px; }
  .pf-login-card { padding: 30px 24px; }
  .pf-span-3, .pf-span-4 { grid-column: span 6; }
}

@media (max-width: 768px) {
  .portal-header .header-inner { height: 64px; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .portal-header .portal-nav { display: flex; order: 3; width: 100%; justify-content: center; }
  .portal-logo-text em { display: none; }
  .portal-userbox { gap: 8px; }
  .portal-mobile { display: none; }
  .portal-main { padding: 22px 0 44px; }
  .pf-card { padding: 20px 18px; }
  .pf-page-head h1 { font-size: 22px; }
  .pf-span-3, .pf-span-4, .pf-span-6, .pf-span-8 { grid-column: span 12; }
  .pf-addr-row { grid-template-columns: 1fr 1fr; }
  .pf-addr-row .pf-input { grid-column: span 2; }
  .pf-renew-meta { grid-template-columns: 1fr; }
  .pf-renew-form { flex-direction: column; align-items: stretch; }
  .pf-actions { flex-direction: column-reverse; }
  .pf-actions .pf-btn { width: 100%; }
  .pf-seg { grid-template-columns: 1fr; }
}

/* ---------- 列表筛选工具栏 ---------- */
.pf-filter {
  background: #fff; border: 1px solid var(--ink-100); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.pf-filter-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; align-items: end;
}
.pf-filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-filter-item > span { font-size: 12px; color: var(--ink-500); }
.pf-filter .pf-input,
.pf-filter .pf-select { height: 34px; padding: 0 10px; font-size: 13px; }
.pf-filter-actions { display: flex; gap: 8px; }
.pf-filter-actions .pf-btn { height: 34px; padding: 0 16px; font-size: 13px; }

/* ---------- 紧凑表格 ---------- */
.pf-table-compact th,
.pf-table-compact td { padding: 7px 10px; vertical-align: middle; }
.pf-table-compact th { font-size: 12px; }
.pf-table-compact td { font-size: 13px; }
.pf-table-compact .pf-sub { margin-top: 1px; }

.pf-row-actions { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.pf-btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.pf-btn-soft { background: #EAF1FD; color: var(--brand-600); border-color: transparent; }
.pf-btn-soft:hover { background: #DCE8FD; color: var(--brand-600); }

.pf-table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px 2px; flex-wrap: wrap;
}

/* ---------- 分页 ---------- */
.pf-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-pager-btn {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #D9E1EC; background: #fff; color: var(--ink-700);
  font-size: 13px; text-decoration: none; line-height: 1;
}
.pf-pager-btn:hover { border-color: var(--brand-400); color: var(--brand-600); }
.pf-pager-btn.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }
.pf-pager-btn.disabled { opacity: .45; pointer-events: none; }
.pf-pager-gap { color: #98A6B8; padding: 0 2px; }

/* ---------- 授权证书弹窗 ---------- */
.pf-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pf-modal[hidden] { display: none; }
.pf-modal-mask { position: absolute; inset: 0; background: rgba(13, 27, 53, .55); }
.pf-modal-dialog {
  position: relative; z-index: 1; width: 100%; max-width: 620px; max-height: 84vh;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(13, 27, 53, .28);
  display: flex; flex-direction: column; overflow: hidden;
}
.pf-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #EEF1F6;
  font-weight: 600; font-size: 15px; color: var(--ink-900);
}
.pf-modal-x {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  color: #8A97A8; cursor: pointer; padding: 0 4px;
}
.pf-modal-x:hover { color: #354659; }
.pf-modal-body { padding: 16px 18px; overflow-y: auto; }
.pf-modal-body .pf-cert-meta { margin-bottom: 4px; }

@media (max-width: 768px) {
  .pf-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-filter-actions { grid-column: 1 / -1; }
  .pf-row-actions { justify-content: flex-start; }
  .pf-table-foot { flex-direction: column; align-items: flex-start; }
}
