.pb-wrap {
    --pb-bg: #fffdf9;
    --pb-card: #ffffff;
    --pb-card-soft: linear-gradient(135deg, rgba(255, 247, 238, 0.96) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(255, 243, 221, 0.96) 100%);
    --pb-border: #ecd9c6;
    --pb-border-strong: #d78c2c;
    --pb-ink: #4a2f22;
    --pb-muted: #7a685b;
    --pb-heading: #7f240f;
    --pb-accent: #ab2f0d;
    --pb-accent-strong: #8f2207;
    --pb-accent-soft: #fff3e2;
    --pb-accent-glow: rgba(167, 61, 23, 0.14);
    --pb-gold: #d89b3a;
    --pb-shadow: 0 20px 44px rgba(129, 67, 34, 0.09);
    --pb-shadow-soft: 0 14px 32px rgba(129, 67, 34, 0.08);
    color: var(--pb-ink);
}

.pb-wrap *,
.pb-wrap *::before,
.pb-wrap *::after {
    box-sizing: border-box;
}

.pb-wrap {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 18px;
}

.pb-wrap h1,
.pb-wrap h2,
.pb-wrap h3,
.pb-wrap h4,
.pb-wrap h5,
.pb-wrap h6 {
    margin: 0;
    color: var(--pb-heading);
    line-height: 1.18;
}

.pb-wrap p {
    margin: 0;
    color: var(--pb-muted);
    line-height: 1.72;
}

.pb-wrap button,
.pb-wrap input,
.pb-wrap select,
.pb-wrap textarea {
    font: inherit;
}

.pb-hero,
.pb-stat-card,
.pb-filter-card,
.pb-procedure-card,
.pb-empty-state,
.pb-modal-dialog {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pb-border);
    border-radius: 28px;
    background: var(--pb-card-soft);
    box-shadow: var(--pb-shadow);
}

.pb-procedure-card::before,
.pb-empty-state::before,
.pb-modal-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--pb-accent) 0%, var(--pb-gold) 100%);
}

.pb-hero {
    padding: 26px 30px;
    border-radius: 30px;
    border: 1px solid rgba(183, 133, 33, 0.12);
    background:
        radial-gradient(circle at 100% 0%, rgba(243, 199, 86, 0.16) 0%, rgba(243, 199, 86, 0) 26%),
        radial-gradient(circle at 0% 100%, rgba(154, 51, 23, 0.09) 0%, rgba(154, 51, 23, 0) 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 247, 240, 0.98) 56%, rgba(246, 236, 220, 0.97) 100%);
    box-shadow:
        0 22px 48px rgba(93, 60, 36, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-height: 0;
}

.pb-hero::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 24px;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8f2f18 0%, #d8a94e 100%);
}

.pb-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.pb-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.pb-kicker,
.pb-filter-badge,
.pb-section-kicker,
.pb-modal-badges .pb-badge,
.pb-badge,
.pb-flow-step-label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.pb-kicker {
    display: inline-block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #b77c1a;
    box-shadow: none;
}

.pb-hero h1 {
    margin: 12px 0 10px;
    max-width: 720px;
    color: #70210f;
    font-family: "Play", sans-serif;
    font-size: clamp(1.95rem, 2.8vw, 2.55rem);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pb-hero p {
    margin: 0;
    max-width: 720px;
    color: #65594f;
    font-family: "Gudea", sans-serif;
    font-size: 14.25px;
    line-height: 1.76;
}

.pb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pb-stat-card {
    min-width: 0;
    min-height: 108px;
    padding: 18px 18px 15px;
    border-radius: 24px;
    border: 1px solid rgba(183, 133, 33, 0.12);
    border-top: 4px solid rgba(186, 112, 37, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 242, 0.98) 100%);
    box-shadow:
        0 15px 30px rgba(93, 60, 36, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pb-stat-card::before,
.pb-filter-card::before {
    display: none;
}

.pb-stat-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 38px rgba(93, 60, 36, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pb-stat-card span,
.pb-modal-summary-card span,
.pb-detail-card span {
    display: block;
    margin-bottom: 8px;
    color: #8b7467;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.pb-stat-card strong {
    display: block;
    color: #3b3029;
    font-family: "Play", sans-serif;
    font-size: clamp(20px, 1.4vw, 24px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pb-stat-card small {
    display: block;
    margin-top: 5px;
    color: #9b8b81;
    font-size: 11.5px;
    line-height: 1.45;
}

.pb-stat-card--accent strong {
    color: var(--pb-accent);
}

.pb-stat-card--pidana strong {
    color: #8f2f18;
}

.pb-stat-card--neutral strong {
    color: #705745;
}

.pb-stat-card--perdata strong {
    color: #295e8b;
}

.pb-stat-card--pidana {
    border-top-color: rgba(145, 48, 24, 0.96);
}

.pb-stat-card--perdata {
    border-top-color: rgba(41, 94, 139, 0.90);
}

.pb-filter-card {
    padding: 22px 24px 24px;
    border-radius: 26px;
    border: 1px solid rgba(183, 133, 33, 0.12);
    background:
        radial-gradient(circle at 100% 0%, rgba(243, 199, 86, 0.14) 0%, rgba(243, 199, 86, 0) 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 248, 241, 0.98) 52%, rgba(247, 239, 228, 0.97) 100%);
    box-shadow:
        0 18px 36px rgba(93, 60, 36, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pb-filter-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.pb-filter-copy {
    max-width: 760px;
}

.pb-filter-copy h2 {
    margin: 10px 0 4px;
    color: #7d2c16;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.pb-filter-copy p {
    margin: 0;
    color: #7f746b;
    font-family: "Gudea", sans-serif;
    font-size: 13px;
    line-height: 1.62;
}

.pb-filter-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(222, 198, 162, 0.78);
    border-radius: 999px;
    background: rgba(183, 133, 33, 0.10);
    color: #8a5a18;
}

.pb-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(222, 198, 162, 0.78);
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.92) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: #8a5a18;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.pb-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(240px, 1.15fr);
    gap: 14px 16px;
    align-items: end;
}

.pb-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.pb-filter-actions .pb-primary-button,
.pb-filter-actions .pb-secondary-button {
    min-width: 144px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 16px;
    font-family: "Gudea", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.pb-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.pb-field span {
    color: #7b675a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pb-input-shell,
.pb-select-shell {
    position: relative;
}

.pb-input-shell input,
.pb-select-shell select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(183, 133, 33, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #3f342d;
    font-size: 13px;
    line-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pb-input-shell input {
    padding-left: 46px;
}

.pb-select-shell select {
    padding-right: 42px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.pb-input-shell input::placeholder {
    color: #a7968a;
}

.pb-input-shell input:focus,
.pb-select-shell select:focus {
    outline: none;
    border-color: rgba(154, 51, 23, 0.42);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(154, 51, 23, 0.08);
}

.pb-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-style: normal;
}

.pb-symbol::before {
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    color: currentColor;
}

.pb-symbol--search::before {
    content: "\2315";
}

.pb-symbol--scale::before,
.pb-symbol--gavel::before {
    content: "\2696";
}

.pb-symbol--document::before {
    content: "\25A4";
}

.pb-symbol--traffic::before {
    content: "\25A3";
}

.pb-symbol--person::before {
    content: "\25C9";
}

.pb-symbol--edit::before {
    content: "\270E";
}

.pb-symbol--check::before {
    content: "\2713";
}

.pb-symbol--clipboard::before,
.pb-symbol--steps::before {
    content: "\2630";
}

.pb-symbol--clock::before {
    content: "\25F7";
}

.pb-symbol--money::before {
    content: "Rp";
    font-size: 0.76rem;
    letter-spacing: 0;
}

.pb-symbol--close::before {
    content: "\00D7";
}

.pb-symbol--chevron::before {
    content: "\203A";
}

.pb-symbol--info::before {
    content: "i";
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.74rem;
}

.pb-input-shell .pb-symbol,
.pb-select-shell .pb-symbol {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #8a5a18;
    pointer-events: none;
}

.pb-input-shell .pb-symbol {
    left: 14px;
    font-size: 0.92rem;
}

.pb-select-shell .pb-symbol {
    right: 14px;
    font-size: 0.92rem;
}

.pb-primary-button,
.pb-secondary-button {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pb-primary-button {
    background: linear-gradient(135deg, #a72f0c 0%, #cc7a1f 100%);
    color: #fff;
    box-shadow: 0 18px 32px rgba(171, 79, 28, 0.22);
}

.pb-primary-button:hover,
.pb-primary-button:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(171, 79, 28, 0.26);
}

.pb-secondary-button {
    background: rgba(255, 255, 255, 0.94);
    color: var(--pb-heading);
    border-color: var(--pb-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pb-secondary-button:hover,
.pb-secondary-button:focus {
    color: var(--pb-heading);
    text-decoration: none;
    border-color: rgba(196, 115, 37, 0.55);
    background: rgba(255, 252, 247, 1);
}

.pb-secondary-button.is-disabled,
.pb-secondary-button:disabled,
.pb-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.pb-filter-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(183, 133, 33, 0.12);
}

.pb-filter-status {
    color: #6a5b50;
    font-size: 13px;
    line-height: 1.55;
}

.pb-filter-status strong {
    color: #8b3014;
    font-size: 15px;
    font-weight: 800;
}

.pb-filter-meta {
    color: #8b7467;
    font-size: 12px;
    line-height: 1.5;
}

.pb-filter-actions .pb-primary-button {
    border: 0;
    background: linear-gradient(135deg, #9a3317 0%, #7f2711 52%, #c79136 100%);
    color: #fff8ed;
    box-shadow: 0 12px 24px rgba(123, 41, 20, 0.18);
    text-shadow: none;
}

.pb-filter-actions .pb-primary-button:hover,
.pb-filter-actions .pb-primary-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(123, 41, 20, 0.22);
    filter: saturate(1.04);
}

.pb-filter-actions .pb-secondary-button {
    background: rgba(255, 251, 245, 0.96);
    border: 1px solid rgba(168, 129, 74, 0.20);
    color: #744827;
    box-shadow: 0 10px 22px rgba(93, 60, 36, 0.08);
}

.pb-filter-actions .pb-secondary-button:hover,
.pb-filter-actions .pb-secondary-button:focus {
    background: #fff;
    border-color: rgba(154, 51, 23, 0.20);
    color: #6b311f;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(93, 60, 36, 0.10);
}

.pb-results-section {
    display: grid;
    gap: 16px;
}

.pb-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.pb-results-head h2 {
    margin-top: 8px;
    font-size: clamp(1.5rem, 2.2vw, 1.86rem);
}

.pb-section-kicker {
    color: #b0792f;
}

.pb-results-list {
    display: grid;
    gap: 18px;
}

.pb-procedure-card {
    padding: 22px 22px 20px;
}

.pb-procedure-top {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.pb-procedure-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 244, 227, 1) 0%, rgba(255, 235, 212, 1) 100%);
    border: 1px solid rgba(227, 195, 158, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.pb-procedure-icon .pb-symbol {
    color: var(--pb-accent);
    font-size: 1.52rem;
}

.pb-procedure-copy {
    display: grid;
    gap: 10px;
}

.pb-procedure-badges,
.pb-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(224, 198, 170, 0.88);
    background: rgba(255, 249, 241, 0.94);
    color: #a56c1e;
}

.pb-badge--perdata {
    background: rgba(235, 243, 255, 0.95);
    border-color: rgba(170, 196, 229, 0.9);
    color: #295e8b;
}

.pb-badge--pidana {
    background: rgba(255, 239, 235, 0.95);
    border-color: rgba(225, 179, 165, 0.9);
    color: #a7381c;
}

.pb-badge--light {
    color: #8b5f3d;
}

.pb-procedure-copy h3 {
    font-size: clamp(1.36rem, 2vw, 1.7rem);
}

.pb-procedure-copy p {
    max-width: 860px;
}

.pb-procedure-aside {
    display: flex;
    justify-content: flex-end;
}

.pb-step-pill {
    display: grid;
    justify-items: center;
    min-width: 118px;
    padding: 12px 14px 10px;
    border-radius: 20px;
    border: 1px solid rgba(221, 194, 160, 0.78);
    background: rgba(255, 252, 247, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.pb-step-pill strong {
    font-size: 1.4rem;
    color: var(--pb-heading);
    line-height: 1;
}

.pb-step-pill span {
    margin-top: 6px;
    color: #8d6b55;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pb-procedure-compact-meta,
.pb-procedure-empty {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(235, 216, 196, 0.94);
    background: rgba(255, 252, 247, 0.92);
}

.pb-procedure-compact-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.pb-procedure-compact-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(228, 186, 122, 0.88);
    background: rgba(255, 246, 230, 0.94);
    color: var(--pb-heading);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.pb-procedure-compact-text {
    color: #8d6b55;
    font-size: 0.91rem;
    line-height: 1.55;
}

.pb-procedure-empty {
    color: #8b684d;
}

.pb-procedure-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(231, 211, 190, 0.88);
}

.pb-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 42px 28px 38px;
    text-align: center;
}

.pb-empty-state[hidden] {
    display: none !important;
}

.pb-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    border: 1px solid rgba(230, 196, 153, 0.7);
    background: linear-gradient(180deg, rgba(255, 247, 234, 1) 0%, rgba(255, 239, 216, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-empty-icon .pb-symbol {
    color: var(--pb-accent);
    font-size: 1.5rem;
}

.pb-empty-state h3 {
    font-size: 1.5rem;
}

.pb-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(36, 20, 11, 0.52);
    z-index: 10060;
}

.pb-modal.is-open {
    display: flex;
}

.pb-modal-dialog {
    width: min(1040px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fffdfa;
}

.pb-step-modal .pb-modal-dialog {
    width: min(880px, calc(100vw - 56px));
}

.pb-modal-head {
    position: relative;
    padding: 28px 30px 26px;
    background: linear-gradient(135deg, #923114 0%, #cf842e 100%);
    color: #fff9f3;
}

.pb-modal-head::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.pb-modal-head h3,
.pb-modal-head p {
    color: inherit;
}

.pb-modal-head h3 {
    margin-top: 16px;
    max-width: calc(100% - 76px);
    font-size: clamp(1.75rem, 2.6vw, 2.45rem);
}

.pb-step-modal .pb-modal-head h3 {
    font-size: clamp(1.48rem, 2.2vw, 1.88rem);
}

.pb-modal-head p {
    margin-top: 12px;
    max-width: 760px;
}

.pb-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 249, 242, 0.96);
    color: #7f2a14;
    box-shadow: 0 12px 24px rgba(86, 36, 12, 0.18);
}

.pb-modal-close:hover,
.pb-modal-close:focus {
    background: #fff;
    color: #6d200d;
}

.pb-modal-close .pb-symbol {
    font-size: 1.28rem;
}

.pb-modal-body {
    padding: 26px 30px;
    overflow: auto;
    background: #fffdfa;
}

.pb-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 30px 22px;
    border-top: 1px solid rgba(232, 215, 197, 0.94);
    background: rgba(255, 252, 247, 0.97);
}

.pb-modal-footer span {
    color: var(--pb-muted);
    font-size: 0.95rem;
}

.pb-modal-footer--actions {
    justify-content: flex-end;
}

.pb-modal-intro,
.pb-detail-section,
.pb-flow-step-card,
.pb-detail-card,
.pb-modal-summary-card {
    border: 1px solid rgba(232, 215, 197, 0.94);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}

.pb-modal-intro {
    padding: 18px 18px 16px;
}

.pb-modal-summary,
.pb-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pb-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
}

.pb-modal-summary-card,
.pb-detail-card {
    padding: 18px 18px 16px;
}

.pb-modal-summary-card strong,
.pb-detail-card strong {
    display: block;
    margin-top: 10px;
    color: var(--pb-heading);
    font-size: 1.08rem;
    line-height: 1.44;
}

.pb-flow-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.pb-flow-step {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.pb-flow-step-no {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(228, 186, 122, 0.92);
    background: linear-gradient(180deg, rgba(255, 248, 233, 1) 0%, rgba(255, 239, 215, 1) 100%);
    color: var(--pb-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.pb-flow-step-card {
    padding: 18px;
}

.pb-flow-step-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.pb-flow-step-head h4 {
    margin-top: 8px;
    font-size: 1.24rem;
}

.pb-flow-step-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.pb-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(229, 208, 187, 0.92);
    background: rgba(255, 250, 243, 0.96);
    color: #8d6440;
    font-size: 0.92rem;
    font-weight: 600;
}

.pb-mini-pill .pb-symbol {
    color: #a96a1f;
}

.pb-flow-step-card p {
    margin-top: 12px;
}

.pb-flow-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(232, 215, 197, 0.94);
}

.pb-flow-step-note {
    color: var(--pb-muted);
    font-size: 0.94rem;
}

.pb-detail-sections {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.pb-detail-section {
    padding: 18px;
}

.pb-detail-section h4 {
    margin-bottom: 12px;
    font-size: 1.04rem;
    color: #975d27;
}

.pb-html-content,
.pb-html-content * {
    color: inherit;
}

.pb-html-content {
    color: var(--pb-muted);
    line-height: 1.76;
}

.pb-html-content p + p,
.pb-html-content ul + p,
.pb-html-content ol + p,
.pb-html-content p + ul,
.pb-html-content p + ol {
    margin-top: 10px;
}

.pb-html-content ul,
.pb-html-content ol {
    margin: 0;
    padding-left: 20px;
}

.pb-html-content li + li {
    margin-top: 6px;
}

.pb-empty-text {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 248, 239, 0.95);
    border: 1px dashed rgba(221, 191, 157, 0.8);
    color: #8c6a4f;
}

.pb-modal-opened,
.pb-modal-opened body {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .pb-filter-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    .pb-hero {
        padding: 26px 22px 24px;
        border-radius: 24px;
    }

    .pb-hero::before {
        left: 22px;
        top: 22px;
        width: 74px;
    }

    .pb-hero h1 {
        font-size: 28px;
    }

    .pb-filter-card {
        padding: 20px 18px 22px;
    }

    .pb-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pb-filter-head,
    .pb-filter-footer {
        display: block;
    }

    .pb-result-pill,
    .pb-filter-meta {
        margin-top: 12px;
    }

    .pb-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pb-field--search {
        grid-column: 1 / -1;
    }

    .pb-procedure-top {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .pb-procedure-aside {
        justify-content: flex-start;
        grid-column: 2;
    }

    .pb-procedure-actions,
    .pb-flow-step-actions,
    .pb-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-flow-step-head {
        flex-direction: column;
    }

    .pb-flow-step-pills {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .pb-wrap {
        gap: 14px;
    }

    .pb-hero,
    .pb-filter-card,
    .pb-procedure-card,
    .pb-modal-body,
    .pb-modal-head,
    .pb-modal-footer,
    .pb-stat-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pb-hero,
    .pb-stat-card,
    .pb-filter-card,
    .pb-procedure-card,
    .pb-empty-state,
    .pb-modal-dialog {
        border-radius: 24px;
    }

    .pb-stats,
    .pb-filter-grid,
    .pb-modal-summary,
    .pb-detail-grid {
        grid-template-columns: 1fr;
    }

    .pb-filter-actions {
        flex-direction: column;
    }

    .pb-filter-actions .pb-primary-button,
    .pb-filter-actions .pb-secondary-button {
        width: 100%;
        min-width: 0;
    }

    .pb-filter-head,
    .pb-filter-footer,
    .pb-results-head,
    .pb-procedure-top {
        flex-direction: column;
        display: flex;
    }

    .pb-filter-meta {
        margin-top: 10px;
    }

    .pb-procedure-compact-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pb-procedure-icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }

    .pb-procedure-aside {
        width: 100%;
    }

    .pb-step-pill {
        width: 100%;
    }

    .pb-flow-step {
        grid-template-columns: 1fr;
    }

    .pb-flow-step-no {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .pb-modal {
        padding: 12px;
    }

    .pb-modal-dialog,
    .pb-step-modal .pb-modal-dialog {
        width: min(100vw - 24px, 100%);
        max-height: calc(100vh - 24px);
    }

    .pb-modal-head h3 {
        max-width: calc(100% - 56px);
        font-size: 1.6rem;
    }

    .pb-modal-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .pb-flow-step-pills {
        width: 100%;
    }

    .pb-mini-pill {
        width: 100%;
        justify-content: center;
    }
}
