.ppr-wrap {
    width: 100%;
    padding: 20px 0;
}

.ppr-card {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eadcc7;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 35, 67, 0.08);
    padding: 28px;
    color: #0f2343;
    box-sizing: border-box;
}

.ppr-head {
    margin-bottom: 24px;
}

.ppr-head h3 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.15;
    color: #0f2343;
}

.ppr-head p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #5b6472;
}

.ppr-grid {
    display: grid;
    gap: 16px;
}

.ppr-grid-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}

.ppr-field,
.ppr-inline-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ppr-field span,
.ppr-inline-field span {
    font-size: 14px;
    font-weight: 700;
    color: #0f2343;
}

.ppr-field input,
.ppr-field select,
.ppr-inline-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8dfe8;
    border-radius: 14px;
    background: #fff;
    padding: 0 14px;
    font-size: 16px;
    line-height: 1.2;
    color: #0f2343;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(15, 35, 67, 0.03);
}

.ppr-field input:focus,
.ppr-field select:focus,
.ppr-inline-field input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.ppr-profile-note {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px solid #e8edf3;
    font-size: 13px;
    color: #5b6472;
}

.ppr-search-box,
.ppr-selected-box,
.ppr-chart-card,
.ppr-stats,
.ppr-session-box,
.ppr-reminder-box {
    margin-top: 24px;
}

.ppr-field-full {
    width: 100%;
}

.ppr-search-results {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ppr-result-card {
    border: 1px solid #eadcc7;
    border-radius: 18px;
    background: #fffaf4;
    padding: 16px;
}

.ppr-result-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.ppr-result-image {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 64px;
}

.ppr-result-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ppr-result-info {
    min-width: 0;
    flex: 1;
}

.ppr-result-title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f2343;
    word-break: break-word;
}

.ppr-result-meta {
    margin-top: 4px;
    font-size: 15px;
    color: #5b6472;
}

.ppr-result-actions {
    display: grid;
    grid-template-columns: 140px minmax(220px, 1fr) 170px;
    gap: 14px;
    align-items: end;
}

.ppr-inline-field-wide {
    min-width: 0;
}

.ppr-inline-button-wrap {
    display: flex;
    align-items: end;
}

.ppr-app .ppr-btn-primary,
.ppr-app .ppr-btn-secondary,
.ppr-app .ppr-btn-ghost,
.ppr-app .ppr-btn-delete {
    min-height: 48px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.ppr-app .ppr-btn-primary {
    width: 100%;
    border: none;
    background: #ff8c00 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.22);
    padding: 0 18px;
}

.ppr-app .ppr-btn-primary:hover {
    background: #ea8100 !important;
    color: #ffffff !important;
}

.ppr-app .ppr-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ppr-app .ppr-btn-secondary {
    width: 100%;
    border: 1px solid #c7d3e1;
    background: #f8fbff;
    color: #0f2343;
    padding: 0 18px;
}

.ppr-app .ppr-btn-secondary:hover {
    background: #eef5ff;
}

.ppr-app .ppr-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ppr-app .ppr-btn-ghost {
    width: 100%;
    border: 1px solid #eadcc7;
    background: #fffaf4;
    color: #7a6144;
    padding: 0 18px;
}

.ppr-app .ppr-btn-ghost:hover {
    background: #fff4e8;
}

.ppr-btn-label {
    color: inherit !important;
    white-space: normal;
    line-height: 1.3;
}

.ppr-section-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 14px;
    color: #0f2343;
}

.ppr-drinks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ppr-favorites-box {
    margin-bottom: 20px;
}

.ppr-favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ppr-favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: #fffdf9;
}

.ppr-favorite-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.ppr-favorite-item-left img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8edf3;
    flex: 0 0 44px;
}

.ppr-favorite-item-text {
    min-width: 0;
}

.ppr-favorite-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f2343;
    word-break: break-word;
}

.ppr-favorite-item-meta {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6472;
    word-break: break-word;
}

.ppr-favorite-item-actions,
.ppr-selected-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ppr-favorites-empty {
    padding: 16px;
    border: 1px dashed #d8dfe8;
    border-radius: 14px;
    background: #fafafa;
    color: #5b6472;
    font-size: 15px;
}

.ppr-inline-button-wrap-double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


.ppr-selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: #f8fbff;
}

.ppr-selected-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.ppr-selected-item-left img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8edf3;
    flex: 0 0 44px;
}

.ppr-selected-item-text {
    min-width: 0;
}

.ppr-selected-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f2343;
    word-break: break-word;
}

.ppr-selected-item-meta {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6472;
    word-break: break-word;
}

.ppr-app .ppr-btn-delete {
    border: 1px solid #e4c7c7;
    background: #fff5f5;
    color: #b54747;
    padding: 0 16px;
    white-space: nowrap;
}

.ppr-app .ppr-btn-delete:hover {
    background: #ffeaea;
}

.ppr-empty-state,
.ppr-no-result {
    padding: 16px;
    border: 1px dashed #d8dfe8;
    border-radius: 14px;
    background: #fafafa;
    color: #5b6472;
    font-size: 15px;
}

.ppr-result-box {
    background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
    border: 1px solid #eadcc7;
    border-radius: 20px;
    padding: 18px;
}

.ppr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.ppr-stat-card {
    background: #f6e7d1;
    border: 1px solid #eadcc7;
    border-radius: 18px;
    padding: 18px 20px;
}

.ppr-stat-card--primary {
    background: linear-gradient(180deg, #ffe7c2 0%, #f6d9aa 100%);
}

.ppr-stat-label {
    font-size: 14px;
    font-weight: 700;
    color: #7a6144;
    margin-bottom: 4px;
}

.ppr-stat-value {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f2343;
}

.ppr-stat-value-small {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.ppr-result-actions-bar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 12px;
}

.ppr-session-box {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e8edf3;
    background: #f8fbff;
}

.ppr-session-box.is-saving {
    background: #fffaf4;
    border-color: #eadcc7;
}

.ppr-session-box.is-saved {
    background: #eefaf1;
    border-color: #cfe7d5;
}

.ppr-session-box.is-error {
    background: #fff3f3;
    border-color: #f1cccc;
}

.ppr-session-state {
    font-size: 15px;
    font-weight: 700;
    color: #0f2343;
}

.ppr-session-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #5b6472;
    word-break: break-word;
}

.ppr-reminder-box {
    padding: 20px;
    border: 1px solid #eadcc7;
    border-radius: 20px;
    background: #fffaf4;
}

.ppr-reminder-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.ppr-reminder-helper {
    margin: 4px 0 0;
    color: #5b6472;
    font-size: 15px;
    line-height: 1.6;
}

.ppr-reminder-preview {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e8edf3;
    background: #f8fbff;
}

.ppr-reminder-preview.is-ready {
    background: #eefaf1;
    border-color: #cfe7d5;
}

.ppr-reminder-preview.is-warning {
    background: #fff8e8;
    border-color: #eadcc7;
}

.ppr-reminder-preview-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a6144;
    margin-bottom: 6px;
}

.ppr-reminder-preview-text {
    font-size: 15px;
    line-height: 1.6;
    color: #0f2343;
}

.ppr-reminder-grid {
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    margin-bottom: 14px;
}

.ppr-reminder-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6472;
}

.ppr-reminder-consent input {
    margin-top: 3px;
}

.ppr-reminder-submit {
    width: 100%;
}

.ppr-reminder-status {
    margin-top: 14px;
    min-height: 22px;
    font-size: 14px;
    line-height: 1.5;
    color: #5b6472;
}

.ppr-reminder-status.is-success {
    color: #17633a;
    font-weight: 700;
}

.ppr-reminder-status.is-error {
    color: #b54747;
    font-weight: 700;
}

.ppr-reminder-status.is-pending {
    color: #7a6144;
    font-weight: 700;
}

.ppr-chart-card {
    background: #ffffff;
    border: 1px solid #eadcc7;
    border-radius: 18px;
    padding: 18px;
}

.ppr-canvas-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    margin-top: 8px;
}

.ppr-table-wrap {
    margin-top: 16px;
}

.ppr-table-card {
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.ppr-table-title {
    padding: 14px 16px;
    background: #f8fbff;
    border-bottom: 1px solid #e8edf3;
    font-size: 16px;
    font-weight: 700;
    color: #0f2343;
}

.ppr-table-scroll {
    overflow-x: auto;
}

.ppr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.ppr-table th,
.ppr-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f6;
    color: #0f2343;
}

.ppr-table th {
    background: #fffaf4;
    font-weight: 700;
}

.ppr-table tr.is-below-limit td {
    background: #fff8d9;
}

.ppr-note {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fffaf4;
    border: 1px solid #eadcc7;
    border-radius: 14px;
    color: #7a6144;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .ppr-card {
        padding: 22px;
    }

    .ppr-result-actions {
        grid-template-columns: 1fr 1fr;
    }

    .ppr-inline-button-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .ppr-card {
        padding: 18px;
        border-radius: 18px;
    }

    .ppr-head h3 {
        font-size: 28px;
    }

    .ppr-grid-top,
    .ppr-reminder-grid,
    .ppr-result-actions-bar,
    .ppr-result-actions {
        grid-template-columns: 1fr;
    }

    .ppr-result-main {
        align-items: flex-start;
    }

    .ppr-result-title {
        font-size: 18px;
    }

    .ppr-selected-item {
        flex-direction: column;
        align-items: stretch;
    }

    .ppr-app .ppr-btn-delete {
        width: 100%;
    }

    .ppr-canvas-wrap {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .ppr-wrap {
        padding: 10px 0;
    }

    .ppr-card {
        padding: 14px;
    }

    .ppr-head h3 {
        font-size: 24px;
    }

    .ppr-section-title {
        font-size: 20px;
    }

    .ppr-stat-value {
        font-size: 28px;
    }

    .ppr-result-card {
        padding: 14px;
    }

    .ppr-result-image {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .ppr-canvas-wrap {
        height: 220px;
    }

    .ppr-table th,
    .ppr-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .ppr-result-actions {
        grid-template-columns: 1fr;
    }

    .ppr-inline-button-wrap-double {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ppr-favorite-item,
    .ppr-selected-item {
        flex-direction: column;
        align-items: stretch;
    }

    .ppr-favorite-item-actions,
    .ppr-selected-item-actions {
        width: 100%;
        justify-content: stretch;
    }

    .ppr-favorite-item-actions .ppr-btn-secondary,
    .ppr-favorite-item-actions .ppr-btn-ghost,
    .ppr-selected-item-actions .ppr-btn-ghost,
    .ppr-selected-item-actions .ppr-btn-delete {
        width: 100%;
    }
}


.ppr-search-hint {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #6b7280;
}
