/**
 * Intelleqt Platform v2 — Admin panel refit (a0.45.0)
 *
 * Visual alignment of the Case Manager with the v2 work screen:
 * system font stack, slate/indigo palette, segmented pill tabs, flat
 * buttons, crisp inputs. CSS-only — the 196KB admin template's markup
 * and inline <style> block are untouched; !important is used where the
 * inline block would otherwise win the cascade.
 *
 * Loaded ONLY on the pages.admin slug.
 */

/* ─── Typography ──────────────────────────────────────────────────
   Parent themes leak serif headings and decorative textarea fonts
   (form controls don't inherit font-family). One stack everywhere. */

body.ip-page .ip-wrap,
body.ip-page .ip-main-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif !important;
}
body.ip-page .ip-main-card h1,
body.ip-page .ip-main-card h2,
body.ip-page .ip-main-card h3,
body.ip-page .ip-main-card h4 {
    font-family: inherit !important;
    letter-spacing: -0.01em;
    color: #0f172a;
}
body.ip-page .ip-main-card input,
body.ip-page .ip-main-card textarea,
body.ip-page .ip-main-card select,
body.ip-page .ip-main-card button {
    font-family: inherit !important;
}
/* Config key-path hints (branding.app_name etc.) read better mono. */
body.ip-page .ip-main-card code,
body.ip-page .ip-config-path,
body.ip-page .ip-field-path {
    font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo,
                 Consolas, monospace !important;
    font-size: 11px;
    color: #94a3b8;
}

/* ─── SVG icon set (a0.46.0 — replaces emoji) ────────────────────── */

body.ip-page .ip-svg-icon {
    vertical-align: -2px;
    flex: 0 0 auto;
}
/* Section nav icons sit in their own span; align as flex. */
body.ip-page .ip-config-section-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
body.ip-page .ip-config-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
}
body.ip-page .ip-config-section-head h3 .ip-svg-icon {
    width: 16px;
    height: 16px;
    vertical-align: -2.5px;
    color: #6366f1;
}
/* Nav tab + toolbar icons inherit text color naturally (currentColor). */
body.ip-page .ip-admin-nav-btn .ip-svg-icon { margin-right: 5px; }
body.ip-page .ip-btn .ip-svg-icon { margin-right: 4px; }

/* a0.46.1 — large placeholder glyphs (case-card heroes + empty states). */
body.ip-page .ip-admin-case-card-hero-empty .ip-svg-icon {
    width: 42px;
    height: 42px;
    color: #cbd5e1;
    stroke-width: 1;
}
body.ip-page .ip-empty-icon .ip-svg-icon {
    width: 46px;
    height: 46px;
    color: #cbd5e1;
    stroke-width: 1;
}
/* Read-only padlock badge on protected config keys. */
body.ip-page .ip-config-secret-badge .ip-svg-icon {
    width: 11px;
    height: 11px;
    vertical-align: -1px;
    color: #94a3b8;
}

/* Modal titles + page kicker icons. */
body.ip-page .ip-page-title-label .ip-svg-icon {
    width: 12px;
    height: 12px;
    vertical-align: -1.5px;
}
body.ip-page h3 .ip-svg-icon {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    color: #6366f1;
}

/* ─── Top-level nav → segmented pill group ───────────────────────── */

body.ip-page .ip-admin-nav {
    display: inline-flex !important;
    align-items: center;
    gap: 2px !important;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 3px !important;
    margin-bottom: 22px;
    box-shadow: none !important;
}
body.ip-page .ip-admin-nav-btn {
    background: transparent !important;
    border: 0 !important;
    color: #475569 !important;
    padding: 6px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
    box-shadow: none !important;
}
body.ip-page .ip-admin-nav-btn:hover { color: #0f172a !important; }
body.ip-page .ip-admin-nav-btn.active {
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

/* ─── Buttons — flat indigo replaces the gradient era ────────────── */

body.ip-page .ip-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 120ms ease, border-color 120ms ease,
                color 120ms ease, transform 80ms ease, box-shadow 120ms ease !important;
}
body.ip-page .ip-btn:active { transform: translateY(1px); }
body.ip-page .ip-btn-primary {
    background: #6366f1 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.3) !important;
}
body.ip-page .ip-btn-primary:hover {
    background: #5558d4 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}
body.ip-page .ip-btn-ghost {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
body.ip-page .ip-btn-ghost:hover {
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
body.ip-page .ip-btn-success { background: #10b981 !important; }
body.ip-page .ip-btn-success:hover { background: #059669 !important; }
body.ip-page .ip-btn-danger { background: #ef4444 !important; }
body.ip-page .ip-btn-danger:hover { background: #dc2626 !important; }

/* ─── Inputs — 1px borders, indigo focus ring ────────────────────── */

body.ip-page .ip-field input,
body.ip-page .ip-field select,
body.ip-page .ip-field textarea,
body.ip-page .ip-main-card input[type="text"],
body.ip-page .ip-main-card input[type="search"],
body.ip-page .ip-main-card input[type="number"],
body.ip-page .ip-main-card input[type="url"],
body.ip-page .ip-main-card select,
body.ip-page .ip-main-card textarea {
    border: 1px solid #e2e8f0 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    transition: border-color 120ms ease, box-shadow 120ms ease !important;
}
body.ip-page .ip-field input:focus,
body.ip-page .ip-field select:focus,
body.ip-page .ip-field textarea:focus,
body.ip-page .ip-main-card input:focus,
body.ip-page .ip-main-card select:focus,
body.ip-page .ip-main-card textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16) !important;
    outline: none !important;
}
body.ip-page .ip-field label {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    color: #475569 !important;
}

/* ─── Cards (case grid) ──────────────────────────────────────────── */

body.ip-page .ip-case-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: border-color 120ms ease, box-shadow 120ms ease,
                transform 100ms ease !important;
}
body.ip-page .ip-case-card:hover {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-2px);
}
body.ip-page .ip-case-card h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Badges → uppercase micro-chips (match the work screen pills). */
body.ip-page .ip-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase;
    padding: 3px 9px !important;
    border-radius: 999px !important;
}

/* Status pills keep their dot language. */
body.ip-page .ip-status-pill {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── AI Import dropzone ─────────────────────────────────────────── */

body.ip-page .ip-admin-aicard {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}
body.ip-page .ip-admin-aicard [class*="drop"],
body.ip-page .ip-admin-aicard label[for],
body.ip-page #ip-ai-dropzone {
    border-radius: 12px !important;
}
body.ip-page .ip-admin-aicard-title {
    font-weight: 750 !important;
    letter-spacing: -0.01em;
}

/* ─── Page header strip ──────────────────────────────────────────── */

body.ip-page .ip-page-title-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: #94a3b8 !important;
}
body.ip-page .ip-page-title-static {
    font-size: 22px !important;
    font-weight: 750 !important;
    letter-spacing: -0.015em !important;
    color: #0f172a !important;
}

/* ─── Toolbar selects (Show / Sort) ──────────────────────────────── */

body.ip-page .ip-admin-toolbar-label {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    color: #94a3b8 !important;
}

/* ─── Usage tab — stat cards + tables ────────────────────────────── */

body.ip-page .ip-main-card table th {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase;
    color: #64748b !important;
    border-bottom: 2px solid #e2e8f0 !important;
}
body.ip-page .ip-main-card table td {
    font-size: 13px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-variant-numeric: tabular-nums;
}

/* ─── Configuration tab ──────────────────────────────────────────── */

/* Section list (Branding / Entities / …) — active item indigo chip. */
body.ip-page .ip-config-nav button,
body.ip-page [class*="config-section"] button {
    border-radius: 9px !important;
    font-weight: 600 !important;
}

/* Version pill + history strip. */
body.ip-page .ip-config-version-pill {
    font-weight: 700 !important;
    letter-spacing: 0.04em;
}

/* Config textareas (AI prompts) — readable working type, NOT the
   theme's decorative font. Slightly smaller + taller line for prose. */
body.ip-page .ip-main-card textarea {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #1e293b !important;
}

/* ─── Flavors card (a0.47.0) ─────────────────────────────────────── */

body.ip-page .ip-flavor-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 20px 22px;
    margin: 18px 0 22px;
    background: #fff;
}
body.ip-page .ip-flavor-card-head h3 { margin: 0 0 4px; font-size: 16px; }
body.ip-page .ip-flavor-card-sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
    max-width: 640px;
}
body.ip-page .ip-flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}
body.ip-page .ip-flavor-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
body.ip-page .ip-flavor-option:hover { border-color: #cbd5e1; }
body.ip-page .ip-flavor-option.is-active {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}
body.ip-page .ip-flavor-option input { position: absolute; opacity: 0; }
body.ip-page .ip-flavor-option-name { font-size: 13.5px; font-weight: 700; color: #0f172a; }
body.ip-page .ip-flavor-option-desc { font-size: 12px; line-height: 1.45; color: #64748b; }
body.ip-page .ip-flavor-card-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}
body.ip-page #ip-flavor-status { font-size: 12.5px; color: #64748b; }

/* a0.48.0 — custom-flavor lifecycle on the cards. */
body.ip-page .ip-flavor-new-btn { float: right; margin-top: -3px; }
body.ip-page .ip-flavor-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: 1px;
}
body.ip-page .ip-flavor-tag.is-off { color: #64748b; background: rgba(15, 23, 42, 0.07); }
body.ip-page .ip-flavor-option.is-inactive { opacity: 0.6; }
body.ip-page .ip-flavor-option-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
body.ip-page .ip-flavor-option-actions button {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 100ms ease, color 100ms ease;
}
body.ip-page .ip-flavor-option-actions button:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* a0.48.0 — flavor editor modal. */
body.ip-page .ip-flavor-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 9800;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
body.ip-page .ip-flavor-editor-overlay[hidden] { display: none; }
body.ip-page .ip-flavor-editor {
    background: #fff;
    border-radius: 14px;
    width: min(720px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
}
body.ip-page .ip-flavor-editor > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 12px;
    border-bottom: 1px solid #e2e8f0;
}
body.ip-page .ip-flavor-editor > header h3 { margin: 0; font-size: 16px; }
body.ip-page .ip-flavor-editor-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
body.ip-page .ip-flavor-editor-close:hover { color: #0f172a; }
body.ip-page .ip-flavor-editor-body {
    padding: 16px 22px;
    overflow-y: auto;
}
body.ip-page .ip-flavor-editor-ai {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
body.ip-page .ip-flavor-editor-ai > label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 8px;
}
body.ip-page .ip-flavor-editor-ai-row { display: flex; gap: 8px; }
body.ip-page .ip-flavor-editor-ai-row input { flex: 1; }
body.ip-page .ip-flavor-editor-ai-status {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}
body.ip-page .ip-flavor-editor #ip-flavor-edit-json {
    font-family: ui-monospace, "Cascadia Code", Menlo, monospace !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}
body.ip-page .ip-flavor-edit-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
body.ip-page .ip-flavor-editor > footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 22px 16px;
    border-top: 1px solid #e2e8f0;
}

/* a0.47.1 — override preview shown when a flavor card is selected. */
body.ip-page .ip-flavor-preview {
    margin-top: 14px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(99, 102, 241, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
}
body.ip-page .ip-flavor-preview-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 10px;
}
body.ip-page .ip-flavor-preview-note {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: #94a3b8;
}
body.ip-page .ip-flavor-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}
body.ip-page .ip-flavor-preview-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
body.ip-page .ip-flavor-preview-row code {
    font-family: ui-monospace, "Cascadia Code", Menlo, monospace !important;
    font-size: 10.5px;
    color: #6366f1;
    background: none;
}
body.ip-page .ip-flavor-preview-row span {
    font-size: 12.5px;
    line-height: 1.5;
    color: #334155;
}

/* ─── Forms (the .ip-form wells) ─────────────────────────────────── */

body.ip-page .ip-form {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
}
body.ip-page .ip-item-row {
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
}
body.ip-page .ip-item-row:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   a0.49.0 — Form templates validation card
   ═══════════════════════════════════════════════════════════════════ */

.ip-formtpl-list { display: flex; flex-direction: column; gap: 10px; }

.ip-formtpl-row {
    border: 1px solid var(--ip-border, #e2e8f0);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--ip-surface, #fff);
}
.ip-formtpl-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ip-formtpl-row-title {
    font-size: 13.5px;
    color: var(--ip-text, #1e293b);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.ip-formtpl-row-title code {
    font-size: 11.5px;
    padding: 1px 7px;
    border-radius: 6px;
    background: var(--ip-surface-sunken, #f8fafc);
    border: 1px solid var(--ip-border, #e2e8f0);
}
.ip-formtpl-rev {
    font-size: 11.5px;
    color: var(--ip-text-secondary, #64748b);
}
.ip-formtpl-row-actions { display: inline-flex; align-items: center; gap: 10px; }

.ip-formtpl-score {
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 999px;
}
.ip-formtpl-score.is-high { color: #15803d; background: rgba(34,197,94,0.12); }
.ip-formtpl-score.is-mid  { color: #a16207; background: rgba(234,179,8,0.14); }
.ip-formtpl-score.is-low  { color: #b91c1c; background: rgba(239,68,68,0.12); }

.ip-formtpl-report {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--ip-border, #e2e8f0);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ip-text-secondary, #64748b);
}
.ip-formtpl-report-block { margin-bottom: 12px; }
.ip-formtpl-report-block:last-child { margin-bottom: 0; }
.ip-formtpl-report-block > strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ip-text, #1e293b);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ip-formtpl-verdict {
    margin: 2px 0 8px;
    font-style: italic;
    color: var(--ip-text, #1e293b);
}
.ip-formtpl-check { padding: 2px 0; }
.ip-formtpl-check span { display: inline-block; width: 16px; font-weight: 700; }
.ip-formtpl-check.is-ok span      { color: #16a34a; }
.ip-formtpl-check.is-error        { color: #b91c1c; }
.ip-formtpl-check.is-error span   { color: #dc2626; }
.ip-formtpl-check.is-warning      { color: #a16207; }
.ip-formtpl-check.is-warning span { color: #ca8a04; }
.ip-formtpl-check.is-info span    { color: #6366f1; }
.ip-formtpl-check em { font-style: normal; opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════════
   a0.50.0 — Official PDF forms card + calibration review table
   ═══════════════════════════════════════════════════════════════════ */

.ip-pdfform-empty {
    padding: 14px;
    font-size: 13px;
    color: var(--ip-text-secondary, #64748b);
    border: 1px dashed var(--ip-border, #e2e8f0);
    border-radius: 10px;
    text-align: center;
}

.ip-pdfmap-toolbar {
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--ip-text-secondary, #64748b);
}
.ip-pdfmap-toolbar strong { color: var(--ip-text, #1e293b); }

.ip-pdfmap-scroll {
    max-height: 440px;
    overflow-y: auto;
    border: 1px solid var(--ip-border, #e2e8f0);
    border-radius: 8px;
}
.ip-pdfmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.ip-pdfmap-table thead th {
    position: sticky;
    top: 0;
    background: var(--ip-surface-sunken, #f8fafc);
    text-align: left;
    padding: 8px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ip-text-secondary, #64748b);
    border-bottom: 1px solid var(--ip-border, #e2e8f0);
    z-index: 1;
}
.ip-pdfmap-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--ip-border, #eef2f7);
    vertical-align: top;
}
.ip-pdfmap-table tr:last-child td { border-bottom: none; }
.ip-pdfmap-name { max-width: 200px; }
.ip-pdfmap-name code { font-size: 11px; word-break: break-all; }
.ip-pdfmap-name small { color: var(--ip-text-secondary, #94a3b8); }
.ip-pdfmap-table input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 12.5px;
    padding: 5px 8px;
    border: 1px solid var(--ip-border, #e2e8f0);
    border-radius: 6px;
    background: var(--ip-surface, #fff);
    color: var(--ip-text, #1e293b);
    font-family: inherit;
}
.ip-pdfmap-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}
.ip-pdfmap-status { font-size: 12.5px; color: var(--ip-text-secondary, #64748b); }

/* ═══════════════════════════════════════════════════════════════════
   a0.50.3 — Recommended-forms catalog
   ═══════════════════════════════════════════════════════════════════ */

.ip-pdfcat {
    border: 1px solid var(--ip-border, #e2e8f0);
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--ip-surface-sunken, #f8fafc);
    margin-bottom: 4px;
}
.ip-pdfcat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ip-pdfcat-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ip-text-secondary, #64748b);
}
.ip-pdfcat-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid var(--ip-border, #e9eef5);
}
.ip-pdfcat-row:first-of-type { border-top: none; }
.ip-pdfcat-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ip-pdfcat-name {
    font-size: 13px;
    color: var(--ip-text, #1e293b);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ip-pdfcat-agency { font-size: 12px; color: var(--ip-text-secondary, #64748b); }
.ip-pdfcat-purpose {
    font-size: 12px;
    line-height: 1.45;
    color: var(--ip-text-secondary, #64748b);
    max-width: 62ch;
}
.ip-pdfcat-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}