.stanloop-paths,
.stanloop-path-detail,
.stanloop-paths-manage {
    max-width: 980px;
    margin: 0 auto 28px;
}

.stanloop-paths__header,
.stanloop-path-detail__header {
    margin-bottom: 20px;
}

.stanloop-paths__header h2,
.stanloop-path-detail__header h2,
.stanloop-paths-manage h3 {
    margin: 0 0 8px;
}

.stanloop-paths__header p,
.stanloop-path-goal,
.stanloop-path-intro,
.stanloop-help {
    color: #555;
}

.stanloop-paths__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.stanloop-path-card,
.stanloop-path-step,
.stanloop-step-edit-row,
.stanloop-paths-manage,
.stanloop-path-detail {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.stanloop-path-card__cover,
.stanloop-path-cover {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
    background: #f3f4f6;
}

.stanloop-path-card h3 {
    margin: 8px 0;
}

.stanloop-path-meta {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.stanloop-path-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.stanloop-path-steps {
    margin-top: 24px;
}

.stanloop-path-step {
    margin-bottom: 14px;
}

.stanloop-path-step__number {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
}

.stanloop-path-step h4,
.stanloop-step-edit-row h5 {
    margin: 0 0 8px;
}

.stanloop-step-time {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 14px;
}

.stanloop-step-time-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) minmax(160px, 0.8fr);
    gap: 12px;
    align-items: end;
}

.stanloop-path-step-fields {
    margin: 20px 0;
}

.stanloop-step-edit-row {
    margin: 14px 0;
}

.stanloop-field input,
.stanloop-field textarea,
.stanloop-field select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stanloop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

.stanloop-button:hover,
.stanloop-button:focus {
    color: #fff;
    text-decoration: none;
}

.stanloop-button--secondary,
.stanloop-back-link {
    background: #fff;
    color: #111827;
    border-color: #d1d5db;
}

.stanloop-button--secondary:hover,
.stanloop-button--secondary:focus,
.stanloop-back-link:hover,
.stanloop-back-link:focus {
    color: #111827;
}

.stanloop-back-link {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 600;
}

.stanloop-manage-list {
    margin-top: 22px;
}

.stanloop-manage-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
}

.stanloop-notice {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 12px;
}

.stanloop-notice--success {
    background: #ecfdf5;
    color: #065f46;
}

.stanloop-empty {
    padding: 14px;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
}

@media (max-width: 640px) {
    .stanloop-path-card__footer,
    .stanloop-manage-row,
    .stanloop-step-time-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .stanloop-step-time-controls {
        display: flex;
        gap: 0;
    }

    .stanloop-button {
        width: 100%;
    }
}


.stanloop-path-actions,
.stanloop-path-card__actions,
.stanloop-path-complete-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.stanloop-progress-form {
    display: inline-flex;
    margin: 0;
}

.stanloop-progress-form--step {
    margin-top: 12px;
}

.stanloop-progress-pill,
.stanloop-progress-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.stanloop-progress-pill {
    background: #eef2ff;
    color: #3730a3;
}

.stanloop-progress-pill--done,
.stanloop-progress-status--done,
.stanloop-progress-status--completed {
    background: #ecfdf5;
    color: #065f46;
}

.stanloop-progress-status--in_progress {
    background: #eff6ff;
    color: #1d4ed8;
}

.stanloop-progress-status--pending {
    background: #f3f4f6;
    color: #4b5563;
}

.stanloop-step-current-status {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 14px;
}

.stanloop-path-progress {
    max-width: 980px;
    margin: 0 auto 28px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.stanloop-progress-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
}

.stanloop-progress-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.stanloop-progress-table th,
.stanloop-progress-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.stanloop-progress-table th {
    background: #f9fafb;
    font-weight: 700;
}

.stanloop-notice--warning {
    background: #fffbeb;
    color: #92400e;
}

@media (max-width: 640px) {
    .stanloop-path-actions,
    .stanloop-path-card__actions,
    .stanloop-path-complete-box,
    .stanloop-progress-form {
        width: 100%;
    }
}

.stanloop-progress-pill--locked {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

/* v0.1.21 Path proof upload and preview */
.stanloop-proof-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
}

.stanloop-proof-upload {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 420px;
    font-weight: 600;
    color: #374151;
}

.stanloop-proof-upload input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    font-weight: 500;
}

.stanloop-proof-help {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.stanloop-step-proof-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
}

.stanloop-proof-wrap {
    position: static;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.stanloop-proof-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.stanloop-proof-preview {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 999999;
    display: none;
    width: min(360px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    transform: translate(-50%, -50%);
    overflow: visible;
}

.stanloop-proof-wrap:hover .stanloop-proof-preview,
.stanloop-proof-wrap:focus-within .stanloop-proof-preview {
    display: block;
}

.stanloop-proof-preview-media {
    display: block;
    width: 100%;
    max-height: min(62vh, 420px);
    object-fit: contain;
    border-radius: 12px;
    background: #111827;
}

.stanloop-progress-table,
.stanloop-progress-table tbody,
.stanloop-progress-table tr,
.stanloop-progress-table td,
.stanloop-progress-table th {
    overflow: visible;
}

@media (max-width: 640px) {
    .stanloop-proof-form,
    .stanloop-proof-upload {
        width: 100%;
        max-width: none;
    }

    .stanloop-proof-preview {
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        padding: 8px;
    }

    .stanloop-proof-preview-media {
        max-height: 68vh;
    }
}

/* v0.1.22: Fixed proof previews so videos/images are centered and not clipped by progress tables. */

/* v0.1.23: Multi-proof media, creator moderation, and step notes. */
.stanloop-proof-icons,
.stanloop-progress-cell-main {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.stanloop-proof-manage,
.stanloop-step-note-manage {
    width: 100%;
    max-width: 520px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.stanloop-proof-manage summary,
.stanloop-step-note-manage summary {
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}

.stanloop-proof-existing {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.stanloop-proof-remove-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: #374151;
    font-size: 13px;
}

.stanloop-progress-form--proof-update,
.stanloop-progress-form--note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.stanloop-note-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    font-weight: 600;
    color: #374151;
}

.stanloop-note-field textarea {
    width: 100%;
    min-height: 78px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 10px;
    resize: vertical;
    font-weight: 500;
}

.stanloop-note-wrap {
    position: static;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.stanloop-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.stanloop-note-preview {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 999999;
    display: none;
    width: min(340px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    transform: translate(-50%, -50%);
    overflow: auto;
    white-space: normal;
    font-size: 14px;
    line-height: 1.45;
}

.stanloop-note-wrap:hover .stanloop-note-preview,
.stanloop-note-wrap:focus-within .stanloop-note-preview {
    display: block;
}

.stanloop-creator-verified {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.stanloop-creator-verified--complete {
    background: #f5f3ff;
    color: #5b21b6;
}

.stanloop-creator-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    min-width: 220px;
}

.stanloop-creator-progress-form,
.stanloop-creator-tools .stanloop-step-note-manage {
    width: 100%;
}

.stanloop-button--small {
    padding: 6px 10px;
    font-size: 12px;
}

.stanloop-progress-table td {
    vertical-align: top;
}

@media (max-width: 640px) {
    .stanloop-proof-manage,
    .stanloop-step-note-manage,
    .stanloop-creator-tools {
        width: 100%;
        max-width: none;
    }
}

/* v0.1.24: Make 1/2/3 proof upload choices explicit before the fan marks a step done. */
.stanloop-proof-upload-title {
    font-weight: 800;
    color: #374151;
}

.stanloop-proof-upload-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 460px;
}

.stanloop-proof-upload--slot {
    margin: 0;
}

.stanloop-proof-empty-state {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}

@media (max-width: 640px) {
    .stanloop-proof-upload-list {
        max-width: none;
    }
}

/* v0.1.25: Proof slots are fixed positions. Re-uploading in an occupied slot replaces that slot instead of appending. */
.stanloop-proof-slot-manager {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 520px;
}

.stanloop-proof-slot-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.stanloop-proof-slot-row--occupied {
    border-color: #d1d5db;
    background: #f8fafc;
}

.stanloop-proof-slot-head,
.stanloop-proof-existing-slot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.stanloop-proof-slot-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.stanloop-proof-slot-status--empty {
    background: #f3f4f6;
    color: #4b5563;
}

.stanloop-proof-existing-slot span:last-child {
    color: #4b5563;
    font-size: 13px;
}

@media (max-width: 640px) {
    .stanloop-proof-slot-manager {
        max-width: none;
    }
}

/* v0.1.69: Launch-safe Path visual upgrade: cover images, step names, duration, and richer cards. */
.stanloop-paths__grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.stanloop-path-card {
    display: grid;
    grid-template-columns: minmax(220px, 34%) 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    border-color: #e7e5ff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.stanloop-path-card__media {
    min-height: 240px;
    background: linear-gradient(135deg, #f0fdf4, #fff7ed);
}

.stanloop-path-card__cover {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 240px;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.stanloop-path-card__cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stanloop-path-card__body {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.stanloop-path-card__body h3 {
    margin: 10px 0 8px;
    font-size: 24px;
    line-height: 1.18;
}

.stanloop-path-card__goal,
.stanloop-path-card__intro {
    margin: 0 0 10px;
    color: #374151;
}

.stanloop-path-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 6px;
}

.stanloop-path-meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: #f4f2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.stanloop-path-step-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
}

.stanloop-path-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    border-radius: 999px;
    padding: 6px 10px 6px 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.stanloop-path-step-chip__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.stanloop-path-step-chip--more {
    padding: 7px 11px;
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.stanloop-path-card__footer {
    margin-top: auto;
    padding-top: 18px;
}

.stanloop-path-step-count {
    font-weight: 800;
    color: #4b5563;
}

.stanloop-path-detail {
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
}

.stanloop-path-detail .stanloop-back-link {
    margin: 18px 18px 0;
}

.stanloop-path-detail__hero {
    display: grid;
    grid-template-columns: minmax(240px, 38%) 1fr;
    gap: 0;
    margin-top: 16px;
    border-top: 1px solid #eef2ff;
}

.stanloop-path-detail__media {
    min-height: 320px;
    background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

.stanloop-path-detail__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stanloop-path-cover {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 320px;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.stanloop-path-detail__header {
    padding: 28px;
    margin: 0;
}

.stanloop-path-detail__header h2 {
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.stanloop-path-steps,
.stanloop-path-complete-box {
    padding: 0 22px 22px;
}

.stanloop-path-step {
    border-radius: 20px;
    border-color: #eef2ff;
}

.stanloop-path-step__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.stanloop-path-step__number {
    margin-bottom: 0;
}

.stanloop-path-step__title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.stanloop-path-cover-upload {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.stanloop-path-cover-upload input[type="file"] {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
}

.stanloop-path-cover-current {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.stanloop-path-cover-current img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

@media (max-width: 760px) {
    .stanloop-path-card,
    .stanloop-path-detail__hero {
        grid-template-columns: 1fr;
    }

    .stanloop-path-card__media,
    .stanloop-path-card__cover {
        min-height: 220px;
        height: 220px;
    }

    .stanloop-path-detail__media,
    .stanloop-path-cover {
        min-height: 240px;
        height: 240px;
    }

    .stanloop-path-detail__header,
    .stanloop-path-card__body {
        padding: 18px;
    }

    .stanloop-path-steps,
    .stanloop-path-complete-box {
        padding: 0 18px 18px;
    }
}

/* v0.1.86: Existing Paths Rewards Layer V1 — score, rewards, winner wall, and completion card. */
.stanloop-path-rewards-panel,
.stanloop-path-completion-card-wrap {
    margin: 22px;
    border: 1px solid #dcfce7;
    border-radius: 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff7ed 100%);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.stanloop-path-rewards-panel {
    padding: 24px;
}

.stanloop-path-rewards-panel__head {
    max-width: 760px;
    margin-bottom: 18px;
}

.stanloop-path-rewards-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 11px;
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stanloop-path-rewards-panel__head h3,
.stanloop-path-completion-copy h3 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.08;
}

.stanloop-path-rewards-panel__head p,
.stanloop-path-completion-copy p,
.stanloop-path-score-card p,
.stanloop-path-score-rules p,
.stanloop-path-winner-wall__head p,
.stanloop-path-sponsored-note span,
.stanloop-path-reward-slot span,
.stanloop-path-reward-slot em {
    color: #4b5563;
}

.stanloop-path-rewards-grid {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) 1.25fr;
    gap: 16px;
    margin-top: 18px;
}

.stanloop-path-score-card,
.stanloop-path-score-rules,
.stanloop-path-winner-wall,
.stanloop-path-sponsored-note,
.stanloop-path-completion-copy,
.stanloop-path-completion-card {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.stanloop-path-score-card,
.stanloop-path-score-rules,
.stanloop-path-completion-copy,
.stanloop-path-completion-card {
    padding: 18px;
}

.stanloop-path-score-card > span {
    display: block;
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stanloop-path-score-card > strong {
    display: block;
    margin: 8px 0 4px;
    color: #111827;
    font-size: clamp(42px, 7vw, 72px);
    line-height: .95;
    letter-spacing: -0.05em;
}

.stanloop-path-score-mini,
.stanloop-path-score-rule-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.stanloop-path-score-mini span,
.stanloop-path-score-rule-list span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 10px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.stanloop-path-score-rules h4,
.stanloop-path-winner-wall__head h4,
.stanloop-path-completion-card h4 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.stanloop-path-winner-wall {
    margin-top: 16px;
    padding: 18px;
}

.stanloop-path-winner-wall__head {
    margin-bottom: 14px;
}

.stanloop-path-winner-wall__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stanloop-path-reward-slot {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
}

.stanloop-path-reward-slot__label {
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stanloop-path-reward-slot strong {
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
}

.stanloop-path-reward-slot em {
    margin-top: auto;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.stanloop-path-sponsored-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 16px;
    padding: 14px 16px;
}

.stanloop-path-sponsored-note strong {
    color: #111827;
}

.stanloop-path-completion-card-wrap {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
    gap: 18px;
    padding: 22px;
    background: #ffffff;
}

.stanloop-path-completion-card {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, .18), transparent 35%), linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    border-color: rgba(255,255,255,.15);
}

.stanloop-path-completion-card--preview {
    background: radial-gradient(circle at top right, rgba(22, 163, 74, .18), transparent 35%), linear-gradient(135deg, #334155 0%, #111827 100%);
}

.stanloop-path-completion-card__brand {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255,255,255,.12);
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stanloop-path-completion-card h4 {
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 36px);
}

.stanloop-path-completion-card p,
.stanloop-path-completion-card em {
    color: rgba(255,255,255,.82);
}

.stanloop-path-completion-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.stanloop-path-completion-card__meta span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.stanloop-progress-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .stanloop-path-rewards-grid,
    .stanloop-path-completion-card-wrap {
        grid-template-columns: 1fr;
    }

    .stanloop-path-winner-wall__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stanloop-path-rewards-panel,
    .stanloop-path-completion-card-wrap {
        margin: 16px;
        padding: 16px;
    }

    .stanloop-path-winner-wall__grid {
        grid-template-columns: 1fr;
    }
}
