.pp-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pp-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pp-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.pp-subtitle {
    color: #4b5563;
    margin: 0;
}

.pp-status {
    display: flex;
    gap: 0.5rem;
}

.pp-badge {
    background: #111827;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.pp-card {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.pp-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pp-field {
    margin-bottom: 0.75rem;
}

.pp-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.pp-priority-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.pp-priority-badge {
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pp-priority-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.pp-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.pp-detail {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.6rem;
}

.pp-detail-label {
    font-size: 0.7rem;
    color: #6b7280;
}

.pp-detail-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.pp-remaining-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pp-remaining-list li {
    font-size: 0.82rem;
    color: #1f2937;
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#pp-remaining-list,
#pp-remaining-list li {
    list-style: none !important;
}

#pp-remaining-list li::marker {
    content: "" !important;
}

.pp-remaining-row {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.55rem;
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.pp-remaining-text {
    display: block;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-remaining-thumb {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: block;
    flex: 0 0 30px;
    border-radius: 0.2rem;
    object-fit: cover;
    background: #fff;
    border: 1px solid #d1d5db;
}

.pp-progress {
    background: #e5e7eb;
    border-radius: 999px;
    height: 0.6rem;
    overflow: hidden;
}

.pp-progress-bar {
    background: linear-gradient(120deg, #16a34a, #22c55e);
    height: 100%;
    width: 0%;
    transition: width 0.2s ease;
}

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

.pp-hint {
    font-size: 0.8rem;
    color: #6b7280;
}

.pp-scan-banner {
    display: none;
    padding: 0.85rem 1.1rem;
    border-radius: 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.pp-scan-banner.ok {
    display: block;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #16a34a;
}

.pp-scan-banner.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pp-big-toast {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.pp-big-toast.active {
    opacity: 1;
    pointer-events: auto;
}

.pp-big-toast-card {
    background: #22c55e;
    color: #052e16;
    border-radius: 1.5rem;
    padding: 3.2rem 3.8rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    text-align: center;
}

.pp-big-toast-text {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pp-camera {
    display: none;
    position: relative;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #111827;
    margin-bottom: 0.75rem;
}

.pp-camera.active {
    display: block;
}

.pp-camera video {
    width: 100%;
    height: auto;
    display: block;
}

.pp-camera-hint {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.pp-camera-controls {
    display: none;
    gap: 0.75rem;
}

.pp-camera-controls.active {
    display: grid;
}

.pp-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.pp-checklist-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    background: #f9fafb;
}

.pp-checklist-item.done {
    border-color: #16a34a;
    background: #ecfdf3;
    color: #166534;
}

.pp-slide {
    position: relative;
    height: 3rem;
    border-radius: 999px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pp-slide::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--pp-slide-progress, 0%);
    background: linear-gradient(120deg, #86efac, #4ade80);
    transition: width 0.1s ease;
}

.pp-slide-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #92400e;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.pp-slide-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    cursor: ew-resize;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.pp-slide.ready {
    border-color: #16a34a;
}

.pp-slide.ready .pp-slide-label {
    color: #14532d;
}

.pp-slide-input::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
    border: none;
}

.pp-slide-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f59e0b;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    margin-top: 0.4rem;
}

.pp-slide-input::-moz-range-track {
    height: 100%;
    background: transparent;
    border: none;
}

.pp-slide-input::-moz-range-thumb {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f59e0b;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.pp-slide-input:disabled {
    cursor: not-allowed;
}

.pp-slide-input:disabled + .pp-slide-label {
    color: #9ca3af;
}

@media (max-width: 720px) {
    .pp-grid {
        grid-template-columns: 1fr;
    }

    .pp-big-toast-card {
        padding: 2.6rem 2rem;
        margin: 0 1rem;
    }

    .pp-big-toast-text {
        font-size: 2.6rem;
    }

    .pp-remaining-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 721px) {
    .pp-remaining-thumb {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        flex: 0 0 34px;
    }
}
