:root {
    --pp-ink: #111315;
    --pp-muted: #667085;
    --pp-teal: #087f8c;
    --pp-teal-dark: #075e68;
    --pp-ice: #eff8f8;
    --pp-line: #dbe6e6;
    --pp-paper: #ffffff;
    --pp-soft: #f7fafa;
    --pp-danger: #a62b2b;
    --pp-danger-bg: #fff1f0;
    --pp-danger-line: #f3b8b3;
    --pp-shadow: 0 14px 38px rgba(17, 19, 21, 0.07);
    --pp-radius: 22px;
    --pp-max: 1040px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--pp-soft);
}

body {
    margin: 0;
    background: var(--pp-soft);
    color: var(--pp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Core layout */

/* Global PetPass header */
.pp-global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--pp-line);
    background: rgba(255, 255, 255, 0.98);
}

.pp-global-header-inner {
    width: min(var(--pp-max), calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Reserve the fixed header height */
body {
    padding-top: 68px;
}

.pp-global-nav-link {
    color: var(--pp-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.pp-global-nav-link:hover {
    color: var(--pp-ink);
}


.pp-page {
    width: min(var(--pp-max), calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.pp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 42px;
}

.pp-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pp-ink);
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.pp-brand sup {
    margin-left: 2px;
    font-size: 9px;
    font-weight: 800;
}

.pp-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.pp-logout {
    color: var(--pp-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.pp-hero {
    margin-bottom: 30px;
}

.pp-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.pp-hero p {
    margin: 0;
    color: var(--pp-muted);
    font-size: 16px;
    line-height: 1.5;
}

.pp-section-title {
    margin: 34px 0 16px;
    font-size: 19px;
}

.pp-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--pp-teal-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Alerts */

.pp-message {
    margin-bottom: 24px;
    padding: 15px 17px;
    border: 1px solid var(--pp-danger-line);
    border-radius: 14px;
    background: var(--pp-danger-bg);
    color: #7c2525;
}

/* Buttons */

.pp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 11px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.pp-button-primary {
    background: var(--pp-teal);
    color: #ffffff;
}

.pp-button-dark {
    background: var(--pp-ink);
    color: #ffffff;
}

.pp-button-light {
    background: var(--pp-ice);
    color: var(--pp-teal-dark);
}

.pp-button-wide {
    width: 100%;
}

.pp-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pp-small-note {
    margin: 13px 0 0;
    color: var(--pp-muted);
    font-size: 12px;
}

/* Dashboard */

.pp-ecosystem-card {
    margin-bottom: 34px;
    padding: 24px;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-ecosystem-card.is-unlocked {
    border-color: #9fcfd3;
}

.pp-ecosystem-head,
.pp-ecosystem-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.pp-ecosystem-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.pp-ecosystem-card > p {
    max-width: 780px;
    margin: 14px 0 20px;
    color: var(--pp-muted);
    line-height: 1.65;
}

.pp-plan-pill,
.pp-mini-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef1f2;
    color: #59636a;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.pp-plan-pill {
    padding: 7px 10px;
    font-size: 10px;
    white-space: nowrap;
}

.pp-mini-plan {
    padding: 5px 8px;
    font-size: 9px;
}

.pp-plan-pill.is-plus,
.pp-mini-plan.is-plus {
    background: var(--pp-ice);
    color: var(--pp-teal-dark);
}

.pp-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.pp-benefit {
    padding: 15px;
    border: 1px solid var(--pp-line);
    border-radius: 15px;
    background: #ffffff;
}

.pp-benefit span,
.pp-info-box span,
.pp-public-id span {
    display: block;
    margin-bottom: 5px;
    color: var(--pp-muted);
    font-size: 12px;
}

.pp-benefit strong {
    font-size: 14px;
}

.pp-ecosystem-footer {
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #e8eeee;
}

.pp-ecosystem-footer strong,
.pp-ecosystem-footer span {
    display: block;
}

.pp-ecosystem-footer span {
    margin-top: 3px;
    color: var(--pp-muted);
    font-size: 13px;
}

.pp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pp-card {
    padding: 22px;
    border: 1px solid rgba(219, 230, 230, 0.85);
    border-radius: var(--pp-radius);
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pp-card-main {
    min-width: 0;
    flex: 1;
}

.pp-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.pp-pet-photo,
.pp-pet-photo-placeholder {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border: 1px solid var(--pp-line);
    border-radius: 50%;
    background: var(--pp-ice);
    object-fit: cover;
}

.pp-pet-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-teal);
    font-size: 30px;
    font-weight: 800;
}

.pp-pet-name {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 23px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.pp-status::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--pp-muted);
}

.pp-status-active {
    color: var(--pp-teal-dark);
}

.pp-status-active::before {
    background: var(--pp-teal);
}

.pp-status-neutral {
    color: var(--pp-muted);
}

.pp-card-note {
    margin: 0 0 20px;
    color: var(--pp-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pp-empty {
    padding: 28px;
    border-radius: var(--pp-radius);
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-empty h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.pp-empty p {
    margin: 0;
    color: var(--pp-muted);
    line-height: 1.5;
}

/* Forms / edit pages */

.pp-form-card {
    padding: 28px;
    border-radius: var(--pp-radius);
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-field {
    margin-bottom: 20px;
}

.pp-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

.pp-field input,
.pp-field select,
.pp-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ccd5d5;
    border-radius: 11px;
    background: #ffffff;
    color: var(--pp-ink);
}

.pp-field input:focus,
.pp-field select:focus,
.pp-field textarea:focus {
    outline: 2px solid var(--pp-teal);
    outline-offset: 1px;
}

/* Public profile */

.pp-public-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, var(--pp-soft) 100%);
}

.pp-public-header {
    border-bottom: 1px solid #e8eeee;
    background: rgba(255, 255, 255, 0.95);
}

.pp-public-nav {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pp-public-code {
    color: var(--pp-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pp-public-page {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.pp-public-card {
    overflow: hidden;
    border: 1px solid var(--pp-line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(17, 19, 21, 0.09);
}

.pp-public-card-compact {
    padding: 30px;
}

.pp-public-card-compact h1 {
    margin: 14px 0 10px;
    font-size: clamp(32px, 7vw, 46px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.pp-public-card-compact p {
    margin: 0 0 22px;
    color: var(--pp-muted);
    line-height: 1.6;
}

.pp-lost-banner {
    display: grid;
    gap: 4px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--pp-danger-line);
    background: var(--pp-danger-bg);
    color: var(--pp-danger);
}

.pp-lost-banner strong {
    font-size: 15px;
}

.pp-lost-banner span {
    font-size: 13px;
    line-height: 1.45;
}

.pp-public-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 28px 22px;
}

.pp-public-photo {
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    border-radius: 24px;
    border: 1px solid var(--pp-line);
    object-fit: cover;
    background: var(--pp-ice);
}

.pp-public-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--pp-teal);
    font-size: 42px;
}

.pp-public-heading h1 {
    margin: 8px 0 5px;
    font-size: clamp(38px, 9vw, 62px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.pp-public-heading p {
    margin: 0;
    color: var(--pp-muted);
    font-weight: 700;
}

.pp-public-bio {
    margin: 0 28px 22px;
    padding: 18px;
    border-radius: 16px;
    background: var(--pp-soft);
    color: #394348;
    line-height: 1.65;
}

.pp-public-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 28px 26px;
}

.pp-info-box {
    padding: 15px;
    border: 1px solid var(--pp-line);
    border-radius: 15px;
}

.pp-info-box strong {
    display: block;
    overflow-wrap: anywhere;
}

.pp-contact-panel,
.pp-found-panel {
    margin: 0 28px 22px;
    padding: 20px;
    border-radius: 18px;
}

.pp-contact-panel {
    border: 1px solid var(--pp-danger-line);
    background: var(--pp-danger-bg);
}

.pp-contact-panel h2,
.pp-found-panel h2 {
    margin: 0 0 7px;
    font-size: 20px;
}

.pp-contact-panel p,
.pp-found-panel p {
    margin: 0;
    color: var(--pp-muted);
    font-size: 13px;
    line-height: 1.55;
}

.pp-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.pp-found-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid var(--pp-line);
    background: var(--pp-ice);
}

.pp-found-panel .pp-button {
    flex: 0 0 auto;
}

.pp-public-id {
    padding: 18px 28px 24px;
    border-top: 1px solid #edf1f1;
    background: #111315;
    color: #ffffff;
}

.pp-public-id span {
    color: #b7c0c4;
}

.pp-public-id strong {
    letter-spacing: 0.09em;
}

.pp-public-footer {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 34px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--pp-muted);
    font-size: 12px;
}

@media (max-width: 700px) {
    .pp-page {
        width: min(100% - 24px, var(--pp-max));
        padding-top: 20px;
    }

    .pp-topbar {
        margin-bottom: 30px;
    }

    .pp-ecosystem-head,
    .pp-ecosystem-footer,
    .pp-found-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .pp-benefit-grid,
    .pp-public-info-grid,
    .pp-contact-actions {
        grid-template-columns: 1fr;
    }

    .pp-card {
        padding: 20px;
    }

    .pp-public-nav,
    .pp-public-page,
    .pp-public-footer {
        width: calc(100% - 24px);
    }

    .pp-public-page {
        padding-top: 22px;
    }

    .pp-public-hero {
        align-items: flex-start;
        padding: 22px;
    }

    .pp-public-photo {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
        border-radius: 20px;
    }

    .pp-public-heading h1 {
        font-size: 40px;
    }

    .pp-public-bio,
    .pp-contact-panel,
    .pp-found-panel {
        margin-left: 22px;
        margin-right: 22px;
    }

    .pp-public-info-grid {
        padding-left: 22px;
        padding-right: 22px;
    }

    .pp-public-id {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 420px) {
    .pp-public-hero {
        display: block;
    }

    .pp-public-photo {
        margin-bottom: 17px;
    }

    .pp-card-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Pet profile tabs */

.pp-tabs {
    display: flex;
    gap: 8px;
    margin: 6px 0 28px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: var(--pp-soft);
    scrollbar-width: none;
}

.pp-tabs::-webkit-scrollbar {
    display: none;
}

.pp-tab {
    flex: 1 0 auto;
    min-height: 42px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pp-muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.pp-tab:hover {
    color: var(--pp-ink);
}

.pp-tab.is-active {
    background: var(--pp-paper);
    color: var(--pp-teal-dark);
    box-shadow: 0 3px 12px rgba(17, 19, 21, 0.07);
}

.pp-tab:focus-visible {
    outline: 2px solid var(--pp-teal);
    outline-offset: 2px;
}

.pp-tab-panel {
    animation: pp-tab-in 0.16s ease-out;
}

.pp-tab-panel[hidden] {
    display: none !important;
}

@keyframes pp-tab-in {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .pp-tabs {
        margin-left: -4px;
        margin-right: -4px;
    }

    .pp-tab {
        flex: 0 0 auto;
    }
}

/* Authentication / activation */

.pp-auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(8, 127, 140, 0.08), transparent 34rem),
        var(--pp-soft);
}

.pp-auth-shell {
    width: min(480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.pp-auth-brand {
    margin-bottom: 28px;
}

.pp-auth-card {
    padding: 30px;
    border: 1px solid var(--pp-line);
    border-radius: 28px;
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-auth-heading {
    margin-bottom: 24px;
}

.pp-auth-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 8vw, 46px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.pp-auth-heading p,
.pp-auth-copy p {
    margin: 0;
    color: var(--pp-muted);
    line-height: 1.6;
}

.pp-auth-copy {
    margin: 0 0 22px;
}

.pp-auth-copy h2 {
    margin: 0 0 7px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.pp-auth-form .pp-field:last-of-type {
    margin-bottom: 22px;
}

.pp-auth-links {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    color: var(--pp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pp-auth-links a {
    color: var(--pp-teal-dark);
    font-weight: 800;
}

.pp-auth-note {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--pp-line);
    color: var(--pp-muted);
    font-size: 12px;
    line-height: 1.55;
}

.pp-activation-code,
.pp-context-banner {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: var(--pp-soft);
}

.pp-activation-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pp-activation-code span,
.pp-context-banner span,
.pp-context-banner small {
    color: var(--pp-muted);
    font-size: 12px;
}

.pp-activation-code strong,
.pp-context-banner strong {
    letter-spacing: 0.08em;
}

.pp-context-banner {
    display: grid;
    gap: 4px;
}

.pp-context-banner small {
    margin-top: 3px;
    line-height: 1.45;
}

.pp-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(8, 127, 140, 0.035);
}

.pp-step-number {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--pp-ink);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.pp-step.is-complete .pp-step-number {
    background: var(--pp-teal);
}

/* Activation PIN lock icon: pure HTML/CSS, no image or icon library */
.pp-step-lock {
    width: 26px;
    height: 30px;
    flex: 0 0 26px;
    border-radius: 0;
    background: transparent;
    color: var(--pp-teal-dark);
}

.pp-lock-shape {
    position: relative;
    display: block !important;
    width: 15px;
    height: 12px;
    margin-top: 6px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.pp-lock-shape::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 2px;
    width: 7px;
    height: 8px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.pp-lock-shape::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 2px;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
    transform: translateX(-50%);
}

.pp-step strong,
.pp-step span {
    display: block;
}

.pp-step div > span {
    margin-top: 2px;
    color: var(--pp-muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .pp-auth-shell {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .pp-auth-card {
        padding: 22px;
        border-radius: 22px;
    }

    .pp-activation-code {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* Dashboard account navigation */

.pp-account-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pp-config-menu {
    position: relative;
}

.pp-config-menu > summary {
    list-style: none;
    color: var(--pp-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.pp-config-menu > summary::-webkit-details-marker {
    display: none;
}

.pp-config-menu > summary:hover,
.pp-config-menu[open] > summary {
    color: var(--pp-ink);
}

.pp-config-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    padding: 8px;
    border: 1px solid var(--pp-line);
    border-radius: 14px;
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-config-item {
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--pp-ink);
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pp-config-item:hover,
.pp-config-item:focus-visible {
    background: var(--pp-soft);
    outline: none;
}

.pp-section-title-secondary {
    margin-top: 44px;
}

.pp-ecosystem-card:last-child {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .pp-account-nav {
        gap: 12px;
    }

    .pp-config-dropdown {
        position: fixed;
        top: 74px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}



/* Home */
.pp-home-page {
    min-height: 100vh;
}

.pp-home-login {
    color: var(--pp-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.pp-home-login:hover {
    color: var(--pp-ink);
}

.pp-home-hero {
    max-width: 780px;
    padding: 18px 0 54px;
}

.pp-home-hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    font-size: clamp(46px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.pp-home-lead {
    max-width: 670px;
    margin: 0;
    color: var(--pp-muted);
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.55;
}

.pp-home-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.pp-home-panel {
    padding: 26px;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-home-panel h2 {
    margin: 0 0 9px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.pp-home-panel p {
    max-width: 760px;
    margin: 0;
    color: var(--pp-muted);
    line-height: 1.6;
}

.pp-home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.pp-home-step {
    padding: 16px;
    border: 1px solid var(--pp-line);
    border-radius: 15px;
}

.pp-home-step strong,
.pp-home-step span {
    display: block;
}

.pp-home-step strong {
    margin-bottom: 5px;
}

.pp-home-step span {
    color: var(--pp-muted);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 700px) {

    .pp-home-hero {
        padding-top: 6px;
        padding-bottom: 38px;
    }

    .pp-home-steps {
        grid-template-columns: 1fr;
    }
}


/* Activation PIN cleanup */
.pp-auth-form .pp-field {
    margin-bottom: 18px;
}

.pp-field-error {
    margin: 8px 2px 0;
    color: #b42318;
    font-size: 12px;
    line-height: 1.45;
}

.pp-auth-card .pp-message {
    margin-bottom: 16px;
}


/* Activation page refinement */
.pp-activation-shell {
    width: min(520px, calc(100% - 32px));
}

.pp-activation-card {
    padding: 34px;
}

.pp-activation-card .pp-auth-heading {
    margin-bottom: 22px;
}

.pp-activation-card .pp-auth-heading h1 {
    font-size: clamp(36px, 7vw, 42px);
}

.pp-activation-card .pp-activation-code {
    margin-bottom: 24px;
    padding: 15px 16px;
    background: #f8fbfb;
}

.pp-inline-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.pp-inline-status.is-success {
    color: var(--pp-teal-dark);
}

.pp-inline-status-mark {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(8, 127, 140, 0.12);
    font-size: 12px;
    font-weight: 900;
}

.pp-activation-card .pp-auth-copy {
    margin-bottom: 24px;
}

.pp-activation-card .pp-auth-copy h2 {
    margin-bottom: 8px;
    font-size: 23px;
}

.pp-activation-card .pp-auth-note {
    margin-top: 26px;
    padding-top: 16px;
    text-align: center;
}

.pp-activation-card .pp-field-error {
    margin-top: 8px;
}

@media (max-width: 520px) {
    .pp-activation-shell {
        width: calc(100% - 24px);
    }

    .pp-activation-card {
        padding: 24px;
    }
}


/* Pet create */
.pp-pet-create-body {
    min-height: 100vh;
}

.pp-pet-create-shell {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 72px;
}

.pp-pet-create-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.pp-pet-create-back {
    color: var(--pp-muted);
    font-size: 13px;
    font-weight: 800;
}

.pp-pet-create-back:hover {
    color: var(--pp-ink);
}

.pp-pet-create-card {
    padding: 34px;
    border: 1px solid var(--pp-line);
    border-radius: 28px;
    background: var(--pp-paper);
    box-shadow: var(--pp-shadow);
}

.pp-pet-create-heading {
    margin-bottom: 24px;
}

.pp-pet-create-heading h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 6vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.pp-pet-create-heading p,
.pp-form-section-heading p {
    margin: 0;
    color: var(--pp-muted);
    line-height: 1.6;
}

.pp-pet-create-tag {
    display: grid;
    gap: 4px;
    margin: 0 0 26px;
    padding: 15px 17px;
    border: 1px solid var(--pp-line);
    border-radius: 15px;
    background: var(--pp-soft);
}

.pp-pet-create-tag span,
.pp-pet-create-tag small {
    color: var(--pp-muted);
    font-size: 12px;
}

.pp-pet-create-tag strong {
    font-size: 15px;
    letter-spacing: 0.04em;
}

.pp-pet-create-form {
    display: grid;
    gap: 28px;
}

.pp-form-section {
    display: grid;
    gap: 18px;
}

.pp-form-section-secondary {
    padding-top: 26px;
    border-top: 1px solid var(--pp-line);
}

.pp-form-section-heading h2 {
    margin: 0 0 5px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.pp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pp-pet-create-form .pp-field {
    margin: 0;
}

.pp-pet-create-form .pp-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.pp-pet-create-form input,
.pp-pet-create-form select,
.pp-pet-create-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--pp-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pp-ink);
    font: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pp-pet-create-form input,
.pp-pet-create-form select {
    min-height: 46px;
    padding: 0 13px;
}

.pp-pet-create-form textarea {
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
}

.pp-pet-create-form input:focus,
.pp-pet-create-form select:focus,
.pp-pet-create-form textarea:focus {
    border-color: var(--pp-teal);
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.10);
}

.pp-field-disabled {
    opacity: 0.72;
}

.pp-field-help {
    display: block;
    margin-top: 7px;
    color: var(--pp-muted);
    font-size: 12px;
    line-height: 1.45;
}

.pp-info-note {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--pp-soft);
    color: var(--pp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 26px;
    border-top: 1px solid var(--pp-line);
}

.pp-button-secondary {
    background: var(--pp-soft);
    color: var(--pp-ink);
}

.pp-button-secondary:hover {
    filter: brightness(0.98);
}

@media (max-width: 640px) {
    .pp-pet-create-shell {
        width: calc(100% - 24px);
        padding-top: 22px;
    }

    .pp-pet-create-topbar {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .pp-pet-create-card {
        padding: 22px;
        border-radius: 22px;
    }

    .pp-form-grid {
        grid-template-columns: 1fr;
    }

    .pp-form-actions {
        flex-direction: column-reverse;
    }

    .pp-form-actions .pp-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    body {
        padding-top: 62px;
    }

    .pp-global-header-inner {
        min-height: 62px;
        gap: 12px;
    }

    .pp-account-nav {
        gap: 10px;
    }

    .pp-global-nav-link,
    .pp-config-menu > summary,
    .pp-logout,
    .pp-home-login {
        font-size: 12px;
    }
}
