.pi-shell,
.pi-public {
    color: #17202a;
    font-family: inherit;
}

.pi-shell *,
.pi-public * {
    box-sizing: border-box;
}

.pi-shell {
    max-width: 1180px;
    margin: 28px auto;
    padding: 0 16px;
}

.pi-auth {
    max-width: 560px;
}

.pi-auth,
.pi-panel,
.pi-pet-card,
.pi-public-card {
    background: #fff;
    border: 1px solid #dde5e8;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(22, 34, 51, .10);
}

.pi-auth,
.pi-panel {
    padding: 26px;
}

.pi-auth-header,
.pi-panel-heading {
    margin-bottom: 18px;
}

.pi-auth-header h2,
.pi-dashboard-header h2,
.pi-panel-heading h3 {
    color: #101828;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 8px 0 6px;
}

.pi-auth-header h2 {
    font-size: 34px;
}

.pi-dashboard-header h2 {
    font-size: 38px;
}

.pi-panel-heading h3 {
    font-size: 24px;
}

.pi-auth-header p,
.pi-dashboard-header p,
.pi-muted {
    color: #667085;
    margin: 0;
}

.pi-panel-heading span {
    color: #0f766e;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pi-dashboard-header {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.pi-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
}

.pi-form {
    display: grid;
    gap: 16px;
}

.pi-form-section {
    background: #fbfcfc;
    border: 1px solid #e6ecef;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.pi-photo-field {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: 150px minmax(0, 1fr);
}

.pi-photo-preview {
    align-items: center;
    background: #eef8f5;
    border: 1px dashed #7bc9bb;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
}

.pi-photo-preview img {
    height: 100%;
    max-height: 190px;
    object-fit: cover;
    width: 100%;
}

.pi-photo-empty {
    align-items: center;
    color: #0f766e;
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 16px;
    text-align: center;
}

.pi-photo-empty .dashicons {
    font-size: 36px;
    height: 36px;
    width: 36px;
}

.pi-section-title {
    align-items: center;
    display: flex;
    gap: 10px;
}

.pi-section-title .dashicons {
    align-items: center;
    background: #0f766e;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.pi-section-title h4 {
    color: #101828;
    font-size: 18px;
    margin: 0;
}

.pi-form label {
    color: #344054;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
}

.pi-form input,
.pi-form select,
.pi-form textarea,
#loginform input.input {
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    color: #17202a;
    font: inherit;
    min-height: 46px;
    outline: none;
    padding: 10px 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.pi-form textarea {
    line-height: 1.45;
    resize: vertical;
}

.pi-form input:focus,
.pi-form select:focus,
.pi-form textarea:focus,
#loginform input.input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .13);
}

.pi-form input[type="file"] {
    align-items: center;
    cursor: pointer;
    padding: 10px;
}

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

.pi-button,
#loginform .button {
    align-items: center;
    background: #0f766e;
    border: 1px solid #0f766e;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(15, 118, 110, .20);
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    line-height: 1.1;
    min-height: 46px;
    padding: 11px 18px;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pi-button:hover,
#loginform .button:hover {
    background: #115e59;
    border-color: #115e59;
    box-shadow: 0 12px 24px rgba(15, 118, 110, .26);
    transform: translateY(-1px);
}

.pi-button-secondary {
    background: #fff;
    border-color: #c7d0d5;
    box-shadow: none;
    color: #344054 !important;
}

.pi-button-secondary:hover {
    background: #f5f7f8;
    border-color: #98a2b3;
    box-shadow: none;
}

.pi-button-small {
    font-size: 13px;
    min-height: 36px;
    padding: 7px 12px;
}

.pi-badge {
    background: #e7f6f2;
    border: 1px solid #b7e4d8;
    border-radius: 999px;
    color: #0f766e;
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    padding: 6px 11px;
    text-transform: uppercase;
}

.pi-pet-list {
    display: grid;
    gap: 14px;
}

.pi-pet-card {
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 16px;
}

.pi-pet-card-main {
    align-items: center;
    display: grid;
    gap: 13px;
    grid-template-columns: 78px minmax(0, 1fr);
}

.pi-pet-card-main strong {
    color: #101828;
    display: block;
    font-size: 18px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.pi-pet-card-main span,
.pi-pet-card-main a {
    display: block;
    overflow-wrap: anywhere;
}

.pi-pet-card-main span {
    color: #667085;
    margin-top: 4px;
}

.pi-pet-card-main a {
    color: #0f766e;
    font-size: 13px;
    margin-top: 4px;
}

.pi-pet-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    height: 78px;
    object-fit: cover;
    width: 78px;
}

.pi-pet-photo-placeholder {
    align-items: center;
    background: #e7f6f2;
    border: 1px solid #b7e4d8;
    color: #0f766e;
    display: flex;
    font-weight: 900;
    justify-content: center;
}

.pi-qr-row {
    align-items: center;
    background: #f8faf9;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 12px;
}

.pi-qr-row img {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    height: 92px;
    padding: 6px;
    width: 92px;
}

.pi-card-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pi-link-danger {
    background: transparent;
    border: 0;
    color: #b42318;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
}

.pi-current-photo img {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    height: auto;
    max-width: 170px;
    padding: 4px;
}

.pi-notice {
    border-radius: 8px;
    font-weight: 700;
    margin: 0 0 16px;
    padding: 13px 15px;
}

.pi-notice-success {
    background: #ecfdf3;
    color: #027a48;
}

.pi-notice-error {
    background: #fef3f2;
    color: #b42318;
}

.pi-notice-info {
    background: #eff8ff;
    color: #175cd3;
}

.pi-public-body {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .10), rgba(245, 158, 11, .08)),
        #f4f7fb;
    margin: 0;
}

.pi-public {
    margin: 0 auto;
    max-width: 980px;
    padding: 28px 16px;
}

.pi-public-card {
    overflow: hidden;
    padding: 0;
}

.pi-public-topbar {
    align-items: center;
    background: #102a43;
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 22px;
}

.pi-public-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .11), rgba(245, 158, 11, .08)),
        #fff;
    display: grid;
    gap: 22px;
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 30px 28px 24px;
}

.pi-public-hero .pi-pet-photo {
    border: 5px solid #fff;
    box-shadow: 0 18px 36px rgba(16, 24, 40, .16);
    height: 150px;
    width: 150px;
}

.pi-public h1 {
    color: #101828;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: 0;
    line-height: 1;
    margin: 10px 0 8px;
    overflow-wrap: anywhere;
}

.pi-public-hero p {
    color: #475467;
    font-size: 18px;
    margin: 0;
}

.pi-public-actions {
    background: #fff;
    border-bottom: 1px solid #eaecf0;
    border-top: 1px solid #eaecf0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 28px;
}

.pi-info-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 28px 28px;
}

.pi-info {
    background: #f8faf9;
    border: 1px solid #e3e8eb;
    border-radius: 8px;
    padding: 16px;
}

.pi-info.wide {
    grid-column: 1 / -1;
}

.pi-info.urgent {
    background: #fff7ed;
    border-color: #fed7aa;
}

.pi-info strong {
    color: #475467;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.pi-info p {
    color: #17202a;
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

#loginform {
    display: grid;
    gap: 13px;
}

#loginform p {
    margin: 0;
}

#loginform label {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .pi-grid,
    .pi-photo-field,
    .pi-form-row,
    .pi-info-grid {
        grid-template-columns: 1fr;
    }

    .pi-dashboard-header {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .pi-shell {
        margin: 16px auto;
        padding: 0 12px;
    }

    .pi-auth,
    .pi-panel {
        padding: 18px;
    }

    .pi-auth-header h2,
    .pi-dashboard-header h2 {
        font-size: 30px;
    }

    .pi-public {
        padding: 12px;
    }

    .pi-public-topbar,
    .pi-public-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pi-public-hero {
        grid-template-columns: 1fr;
        padding: 24px 18px 20px;
        text-align: center;
    }

    .pi-public-hero .pi-pet-photo {
        margin: 0 auto;
    }

    .pi-public-actions,
    .pi-info-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pi-qr-row {
        grid-template-columns: 1fr;
    }
}
