.crg-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
}
.crg-rail-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.crg-rail-pill svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: currentColor;
}
.crg-rail-pill.is-needed {
    border-color: #fecdd3;
    background: #fff7f8;
    color: #be123c;
}
.crg-rail-pill.is-reviewing {
    border-color: #fb5f00;
    background: #fff4ec;
    color: #c2410c;
    box-shadow: 0 0 0 3px rgba(251, 95, 0, 0.12);
}
.crg-rail-pill.is-saved {
    border-color: #86efac;
    background: #ecfdf3;
    color: #15803d;
}
.crg-rail-pill.is-rejected {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}
.crg-guidance {
    display: none;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f7f8fc;
    color: #172033;
}
.crg-guidance.is-visible {
    display: block;
}
.crg-guidance.is-keep {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.crg-guidance.is-warn {
    border-color: #fcd34d;
    background: #fffbeb;
}
.crg-guidance.is-block {
    border-color: #fecaca;
    background: #fff1f2;
}
.crg-guidance-kicker {
    margin: 0 0 4px;
    color: #020546;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.crg-guidance-title {
    margin: 0 0 6px;
    color: #020546;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
}
.crg-guidance-copy {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}
.crg-guidance-steps {
    margin: 10px 0 0;
    padding: 0 0 0 18px;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.5;
}
.crg-guidance-steps li + li {
    margin-top: 4px;
}
.crg-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}
.crg-compare.is-collapsed {
    display: none;
}
.crg-compare-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 132px;
    padding: 14px 14px 16px;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    background: #fff;
}
.crg-compare-card.is-good {
    border-color: #bbf7d0;
    background: #f8fff9;
}
.crg-compare-card.is-bad {
    border-color: #fecaca;
    background: #fff8f8;
}
.crg-compare-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.crg-compare-card.is-good .crg-compare-icon {
    background: #dcfce7;
    color: #3f7d04;
}
.crg-compare-card.is-bad .crg-compare-icon {
    background: #fee2e2;
    color: #be123c;
}
.crg-compare-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.crg-compare-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.crg-compare-card.is-good .crg-compare-label {
    color: #3f7d04;
}
.crg-compare-card.is-bad .crg-compare-label {
    color: #be123c;
}
.crg-compare-copy {
    margin: 0;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
}
.crg-howto {
    margin: 0 0 16px;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.crg-howto-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: #020546;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.crg-howto-toggle:focus-visible {
    outline: 3px solid rgba(251, 95, 0, 0.25);
    outline-offset: -3px;
}
.crg-howto-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 160ms ease;
}
.crg-howto.is-open .crg-howto-toggle svg {
    transform: rotate(180deg);
}
.crg-howto-body {
    display: none;
    padding: 0 14px 14px;
}
.crg-howto-lead {
    margin: 0 0 12px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
}
.crg-howto.is-open .crg-howto-body {
    display: block;
}
.crg-howto-steps {
    margin: 0 0 12px;
    padding: 0 0 0 18px;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.55;
}
.crg-howto-steps li + li {
    margin-top: 6px;
}
.crg-howto-iphone {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}
.crg-howto-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fb5f00;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.crg-howto-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}
.crg-confirm {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}
.crg-confirm.is-visible {
    display: block;
}
.crg-slots {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}
.crg-slots.is-visible {
    display: grid;
}
.crg-slot {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-content: start;
    align-items: center;
    gap: 8px 10px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #dbe3ef;
    border-radius: 13px;
    background: #fff;
    text-align: left;
    cursor: default;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.crg-slot::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: #fb5f00;
    opacity: 0;
    content: "";
}
.crg-slot.is-dragover {
    border-color: #fb5f00;
    background: #fffaf6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), 0 0 0 3px rgba(251, 95, 0, 0.08);
    transform: translateY(-2px);
}
.crg-slot.is-dragover::before {
    opacity: 1;
}
.crg-slot.is-saved {
    border-style: solid;
    border-color: #86efac;
    background: #ecfdf3;
    cursor: default;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.05);
}
.crg-slot.is-saved::before {
    background: #16a34a;
    opacity: 1;
}
.crg-slot.is-saved:hover,
.crg-slot.is-saved:focus-within {
    border-color: #86efac;
    background: #ecfdf3;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.05);
    transform: none;
}
.crg-slot.is-hidden {
    display: none;
}
.crg-slot-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    cursor: default;
    font-size: 0;
}
.crg-slot.is-saved .crg-slot-input {
    display: none;
}
.crg-slot-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff1f2;
    color: #be123c;
}
.crg-slot-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
.crg-slot-icon-check {
    display: none;
}
.crg-slot.is-saved .crg-slot-icon-check,
.crg-slot.is-reviewing .crg-slot-icon-check {
    display: block;
}
.crg-slot.is-saved .crg-slot-icon-missing,
.crg-slot.is-reviewing .crg-slot-icon-missing {
    display: none;
}
.crg-slot.is-saved .crg-slot-icon {
    background: #d1fae5;
    color: #15803d;
}
.crg-slot-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.crg-slot-name {
    color: #172033;
    font-size: 0.86rem;
    font-weight: 800;
}
.crg-slot-hint {
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.35;
}
.crg-slot.is-saved .crg-slot-hint {
    color: #3f7d04;
    font-weight: 700;
}
.crg-slot.is-reviewing {
    border-style: solid;
    border-color: #fdba74;
    background: #fff7ed;
}
.crg-slot.is-reviewing::before {
    background: #fb5f00;
    opacity: 1;
}
.crg-slot.is-reviewing .crg-slot-hint {
    color: #c2410c;
    font-weight: 700;
}
.crg-slot.is-rejected {
    border-style: solid;
    border-color: #fecaca;
    background: #fff1f2;
}
.crg-slot.is-rejected::before {
    background: #e11d48;
    opacity: 1;
}
.crg-slots.is-stacked {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.crg-assign {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
}
.crg-assign.is-visible {
    display: flex;
}
.crg-assign-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    background: #fff;
}
.crg-assign-name {
    color: #172033;
    font-size: 0.86rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crg-assign-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.crg-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.crg-chip:hover,
.crg-chip:focus-visible {
    border-color: #fb5f00;
    color: #c2410c;
    outline: none;
}
.crg-chip.is-selected {
    border-color: #fb5f00;
    background: #fb5f00;
    color: #fff;
}
.crg-intercept {
    display: none;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}
.crg-intercept.is-visible {
    display: block;
}
.crg-intercept.is-warn {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
}
.crg-intercept.is-block {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
}
.crg-dropzone-alt {
    display: none;
    margin: 0 0 4px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}
.crg-dropzone-alt.is-visible {
    display: block;
}
.crg-overlay-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 16px;
}
.crg-overlay-rail .crg-rail-pill {
    min-height: 36px;
    font-size: 0.7rem;
}
.is-crg-assign-hidden {
    display: none !important;
}
.cr-upload-context {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 16px;
    padding: 17px 18px;
    border: 1px solid #dce2ed;
    border-radius: 14px;
    background: #f7f8fc;
    text-align: left;
}
.cr-upload-context__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #e8eaf6;
    color: #020546;
}
.cr-upload-context__icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}
.cr-upload-context h2 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}
.cr-upload-context p {
    margin: 0;
    color: #4f5d73;
    font-size: 0.84rem;
    line-height: 1.55;
}
.cr-upload-context p + p {
    margin-top: 7px;
}
.cr-review-expect {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0 0;
    padding: 16px 17px;
    border: 1px solid #d9e2f0;
    border-radius: 14px;
    background: #f5f8fc;
    color: #334155;
    text-align: left;
}
.cr-review-expect__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #e7ebf7;
    color: #020546;
}
.cr-review-expect__icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}
.cr-review-expect strong,
.cr-review-expect strong + span {
    display: block;
}
.cr-review-expect strong {
    margin: 0 0 3px;
    color: #172033;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
}
.cr-review-expect strong + span {
    color: #5d697d;
    font-size: 0.82rem;
    line-height: 1.5;
}
.cr-upload-next {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #dfe4ee;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7f8fc 0%, #fff 58%, #fff8f3 100%);
    text-align: left;
    box-shadow: 0 8px 24px rgba(2, 5, 70, 0.045);
}
.cr-upload-next__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.cr-upload-next__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #020546;
    color: #fff;
}
.cr-upload-next__mark svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cr-upload-next__eyebrow {
    margin: 0 0 2px;
    color: #fb5f00;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}
.cr-upload-next h2 {
    margin: 0;
    color: #020546;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}
.cr-upload-next__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cr-upload-next__steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.cr-upload-next__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid #ffd4bf;
    border-radius: 50%;
    background: #fff3ec;
    color: #d94708;
    font-size: 0.74rem;
    font-weight: 800;
}
.cr-upload-next__steps strong,
.cr-upload-next__steps small {
    display: block;
}
.cr-upload-next__steps strong {
    margin: 2px 0 4px;
    color: #172033;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}
.cr-upload-next__steps small {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
}
.cr-upload-next__note {
    margin: 18px 0 0;
    padding-top: 13px;
    border-top: 1px solid #e4e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.45;
}
@media (max-width: 680px) {
    .crg-rail {
        gap: 6px;
    }
    .crg-rail-pill {
        flex-direction: column;
        gap: 3px;
        padding: 8px 4px;
        font-size: 0.7rem;
    }
    .crg-compare,
    .crg-slots {
        grid-template-columns: 1fr;
    }
    .crg-slots.is-stacked {
        grid-template-columns: 1fr;
    }
    .crg-slot {
        min-height: 68px;
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 11px 12px;
    }
    .crg-slot-icon {
        width: 36px;
        height: 36px;
    }
    .cr-upload-next {
        padding: 19px 17px;
    }
    .cr-upload-context {
        padding: 16px;
    }
    .cr-upload-next__steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
