.bulk-check-page {
    background: #f8fafc;
    padding: 32px 16px 56px;
    overflow-x: hidden;
}

.bulk-check-container {
    max-width: 960px;
    margin: 0 auto;
    min-width: 0;
}

.bulk-intro {
    max-width: 680px;
    margin-bottom: 24px;
}

.bulk-eyebrow {
    margin: 0 0 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.bulk-intro h1,
.bulk-panel h2,
.draw-panel h2,
.result-summary h2 {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0;
}

.bulk-intro h1 {
    font-size: 30px;
    line-height: 1.25;
}

.bulk-intro > p:last-child {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.bulk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.bulk-panel,
.draw-panel,
.results-panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}

.bulk-panel {
    padding: 24px;
}

.bulk-panel-heading,
.result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bulk-panel h2,
.draw-panel h2 {
    font-size: 19px;
}

.bulk-panel-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.icon-action {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #2563eb;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}

.icon-action:hover:not(:disabled) {
    border-color: #93c5fd;
    background: #eff6ff;
}

.icon-action:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.icon-action svg,
.remove-ticket svg {
    width: 18px;
    height: 18px;
}

.ticket-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ticket-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.ticket-row:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 12%);
}

.ticket-index {
    padding: 0 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.ticket-row input {
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0;
}

.ticket-row input::placeholder {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.remove-ticket {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.remove-ticket:hover {
    color: #dc2626;
}

.bulk-status {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 13px;
}

.bulk-status.is-error {
    color: #dc2626;
}

.bulk-status.is-success {
    color: #047857;
}

.paste-area {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.paste-area label,
.draw-panel label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.paste-row {
    display: flex;
    gap: 8px;
}

.paste-row textarea,
.draw-panel select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    outline: 0;
}

.paste-row textarea {
    min-height: 54px;
    padding: 8px 10px;
    resize: vertical;
    font-size: 13px;
}

.paste-row textarea:focus,
.draw-panel select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgb(59 130 246 / 12%);
}

.paste-area p,
.entertainment-note {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.primary-button,
.secondary-button,
.text-button {
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

.primary-button:hover:not(:disabled) {
    background: #1d4ed8;
}

.primary-button:disabled {
    cursor: wait;
    opacity: .7;
}

.secondary-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.secondary-button:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.text-button {
    min-height: 36px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #64748b;
}

.text-button:hover {
    color: #dc2626;
}

.draw-panel {
    padding: 20px;
}

.draw-panel h2 {
    margin-bottom: 18px;
}

.draw-panel select {
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
}

.draw-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.draw-note strong {
    color: #334155;
    font-size: 13px;
}

.draw-note ol {
    margin: 9px 0 0;
    padding-left: 19px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.entertainment-note {
    margin-top: 18px;
}

.results-panel {
    margin-top: 20px;
    overflow: hidden;
}

.results-panel.hidden {
    display: none;
}

.result-summary {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.result-summary p {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 13px;
}

.result-summary h2 {
    font-size: 18px;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e2e8f0;
}

.result-metrics div {
    padding: 16px 24px;
}

.result-metrics div + div {
    border-left: 1px solid #e2e8f0;
}

.result-metrics span,
.result-metrics small {
    display: block;
}

.result-metrics span {
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
}

.result-metrics small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.result-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-ticket {
    display: flex;
    min-height: 102px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.result-ticket:nth-child(odd) {
    border-right: 1px solid #e2e8f0;
}

.result-ticket.is-winner {
    background: #f0fdf4;
}

.result-number {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
}

.prize-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.prize-label,
.no-prize {
    display: inline-block;
    font-size: 11px;
    line-height: 1.3;
}

.prize-label {
    padding: 3px 6px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #fff;
    color: #047857;
}

.no-prize {
    color: #94a3b8;
}

.result-ticket > strong {
    flex: 0 0 auto;
    color: #0f172a;
    font-size: 15px;
    white-space: nowrap;
}

.is-winner > strong {
    color: #047857;
}

@media (max-width: 700px) {
    .bulk-check-page {
        padding: 24px 12px 40px;
    }

    .bulk-intro h1 {
        font-size: 25px;
    }

    .bulk-layout {
        grid-template-columns: 1fr;
    }

    .bulk-panel {
        padding: 18px;
    }

    .ticket-inputs,
    .result-list {
        grid-template-columns: 1fr;
    }

    .paste-row {
        display: block;
    }

    .paste-row .secondary-button {
        width: 100%;
        margin-top: 8px;
    }

    .result-summary,
    .result-metrics div,
    .result-ticket {
        padding-left: 16px;
        padding-right: 16px;
    }

    .result-metrics div {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .result-metrics span {
        font-size: 17px;
    }

    .result-ticket:nth-child(odd) {
        border-right: 0;
    }
}

@media (max-width: 430px) {
    .result-metrics div {
        padding-left: 10px;
        padding-right: 10px;
    }

    .result-metrics small {
        font-size: 10px;
    }

    .result-ticket {
        min-height: 92px;
    }
}
