.claude-page {
    width: min(calc(100% - 32px), 680px);
}

.claude-title-block {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.claude-title-block > img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid #ead8d0;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.claude-title-block > div {
    min-width: 0;
}

.claude-utility-bar {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -8px 0 20px;
    padding: 0 2px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.utility-button {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid #d8c5bc;
    border-radius: 7px;
    color: #8b4b36;
    background: #fff;
    font-size: 13px;
    font-weight: 680;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.utility-button:hover {
    border-color: #d97757;
    background: #fff9f6;
}

.utility-button:focus-visible,
.dialog-close:focus-visible,
.risk-checkbox:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.claude-stepper ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.claude-account-guide {
    margin: 0 0 20px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.claude-account-guide > strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.45;
}

.claude-account-guide > p {
    margin: 5px 0 13px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.58;
}

.claude-verification-warning {
    margin: 0 0 18px;
    padding: 14px 15px;
    border-left: 3px solid #d39a33;
    color: #684b17;
    background: var(--warning-bg);
}

.claude-verification-warning > strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.claude-verification-warning > p {
    margin: 6px 0 11px;
    font-size: 13px;
    line-height: 1.6;
}

.risk-checkbox {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(138, 96, 24, 0.28);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.risk-checkbox input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.risk-checkbox span {
    font-size: 13px;
    font-weight: 620;
    line-height: 1.5;
}

.duplicate-confirmation {
    margin: 0 0 18px;
    padding: 15px;
    border: 1px solid var(--warning-line);
    border-radius: 7px;
    color: var(--warning);
    background: var(--warning-bg);
}

.duplicate-confirmation > strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.duplicate-confirmation > p {
    margin: 6px 0 14px;
    color: #684b17;
    font-size: 13px;
    line-height: 1.6;
}

.claude-result-summary {
    margin-top: 20px;
}

.redelivery-dialog {
    width: min(calc(100% - 32px), 580px);
    max-height: min(760px, calc(100vh - 32px));
    padding: 24px;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text-primary);
    background: #fff;
    box-shadow: 0 22px 70px rgba(31, 42, 55, 0.18);
}

.redelivery-dialog::backdrop {
    background: rgba(31, 42, 55, 0.48);
}

.dialog-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dialog-heading h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 0;
}

.dialog-close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    margin: -8px -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    background: transparent;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.dialog-close:hover {
    color: var(--text-primary);
    background: var(--surface-muted);
}

.dialog-intro {
    margin: 12px 0 20px;
    padding: 12px 14px;
    border-left: 3px solid #d97757;
    color: #6d4639;
    background: #fff8f5;
    font-size: 13px;
    line-height: 1.6;
}

.redelivery-confirm {
    margin-bottom: 18px;
    border-color: var(--line-strong);
    color: #475569;
    background: var(--surface-soft);
}

body:has(.redelivery-dialog[open]) {
    overflow: hidden;
}

@media (max-width: 480px) {
    .claude-title-block {
        align-items: flex-start;
        gap: 12px;
    }

    .claude-title-block > img {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .claude-utility-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 18px;
    }

    .utility-button {
        width: 100%;
    }

    .claude-account-guide .session-guide-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .duplicate-confirmation .button-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .redelivery-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 20px;
    }
}
