.ai-hero-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ai-intro-layout {
    row-gap: 2rem;
}

.ai-hero-image {
    max-width: 420px;
    margin: 0 auto;
}

.ai-hero-image img {
    border-radius: 12px;
}

.ai-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ai-page-links a {
    background: #f8f8f8;
    border: 1px solid #dedede;
    border-radius: 999px;
    color: #2d2d2d;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
}

.ai-page-links a:hover {
    background: #363636;
    border-color: #363636;
    color: #fff;
}

.ai-card {
    height: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, .08);
}

.ai-start-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.ai-start-options {
    display: grid;
    gap: .8rem;
}

.ai-start-option {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(23, 23, 23, .88);
    border-radius: 8px;
    background: color-mix(in srgb, var(--card-bg) 72%, #ffffff);
    box-shadow: 3px 3px 0 rgba(23, 23, 23, .14);
    color: #222222;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ai-start-option:hover,
.ai-start-option:focus-visible,
.ai-start-option[aria-pressed="true"] {
    background: #9fe7ff;
    box-shadow: 6px 6px 0 rgba(23, 23, 23, .18);
    transform: translate(-2px, -2px);
}

.ai-start-option[aria-pressed="true"] .bru-badge {
    background: #ffffff;
}

.ai-start-option-title,
.ai-start-option-text {
    display: block;
}

.ai-start-option-title {
    margin-bottom: .25rem;
    color: #111111;
    font-weight: 850;
    line-height: 1.25;
}

.ai-start-option-text {
    color: #333333;
    font-size: .95rem;
    font-weight: 550;
    line-height: 1.35;
}

.ai-start-preview {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem;
    border: 2px solid rgba(23, 23, 23, .9);
    border-radius: 8px;
    background: var(--card-bg-hover);
    box-shadow: 6px 6px 0 rgba(23, 23, 23, .16);
}

.ai-start-preview-header {
    display: grid;
    gap: .5rem;
    margin-bottom: 1rem;
}

.ai-start-preview-kicker {
    margin-bottom: 0 !important;
    color: #4a4a4a;
    font-size: .9rem;
    font-weight: 750;
}

.ai-start-preview-title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
    padding: .35rem .6rem;
    border: 1px solid rgba(23, 23, 23, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    margin-bottom: 0 !important;
    color: #111111;
    font-size: .95rem;
    font-weight: 850;
    line-height: 1.25;
}

.ai-start-preview-title i {
    color: #4a4a4a;
    font-size: .85rem;
}

.ai-start-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}

.ai-start-result-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(23, 23, 23, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.ai-chat-card {
    padding: 0;
    border-color: transparent;
    background: transparent;
}

.ai-chat-message {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
}

.ai-chat-message-stacked {
    grid-template-columns: 1fr;
    gap: .55rem;
}

.ai-chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 2px solid #222222;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 1px 1px 0 #000000;
    color: #111111;
    font-size: .9rem;
    font-weight: 700;
}

.ai-chat-bubble {
    min-width: 0;
    padding: .85rem .95rem;
    border: 1px solid rgba(23, 23, 23, .14);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(23, 23, 23, .08);
}

.ai-start-prompt {
    margin-bottom: 0 !important;
    color: #2d2d2d;
    font-weight: 650;
    line-height: 1.5;
}

.ai-step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.ai-step {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    height: 100%;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: var(--card-bg);
    border: 2px solid rgba(23, 23, 23, .88);
    box-shadow: 3px 3px 0 rgba(23, 23, 23, .14);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: box-shadow .16s ease;
}

.ai-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-step:hover,
.ai-step[aria-pressed="true"] {
    box-shadow: 6px 6px 0 rgba(23, 23, 23, .18);
}

.ai-step:hover .ai-step-number,
.ai-step[aria-pressed="true"] .ai-step-number {
    background: #9fe7ff;
    color: #000000;
}

.ai-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 2px solid #222222;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 1px 1px 0 #000000;
    color: #111111;
    font-weight: 700;
}

.ai-step-title {
    color: #111111;
    font-weight: 850;
    margin-bottom: 0 !important;
}

.ai-prompt-builder {
    margin-top: 1.25rem;
    padding: 1.15rem;
    border: 2px solid rgba(23, 23, 23, .9);
    border-radius: 8px;
    background: var(--card-bg-hover);
    box-shadow: 6px 6px 0 rgba(23, 23, 23, .16);
}

.ai-prompt-builder-title {
    color: #111111;
    font-weight: 850;
    margin-bottom: .8rem !important;
}

.ai-prompt-preview {
    color: #2d2d2d;
    font-weight: 650;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.ai-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ai-review-item {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    height: 100%;
    padding: 1rem;
    border: 2px solid rgba(23, 23, 23, .88);
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: 3px 3px 0 rgba(23, 23, 23, .14);
}

.ai-review-item p:last-child {
    margin-bottom: 0 !important;
}

.ai-review-title {
    color: #111111;
    font-weight: 850;
    margin-bottom: 0 !important;
}

.ai-task-flow {
    display: grid;
    gap: 1rem;
}

.ai-task-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.ai-task-review-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-width: 0;
    height: 100%;
    padding: 1rem;
    border: 2px solid rgba(23, 23, 23, .88);
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: 3px 3px 0 rgba(23, 23, 23, .14);
}

.ai-task-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ai-task-card-header p {
    margin-bottom: 0 !important;
    color: #111111;
    font-weight: 850;
}

.ai-task-review-card .ai-chat-bubble {
    box-shadow: none;
}

.ai-task-answer-card {
    gap: 1rem;
}

.ai-task-dialog-message {
    display: grid;
    gap: .65rem;
}

.ai-task-dialog-header {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ai-task-message-label {
    margin-bottom: 0 !important;
    color: #111111;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.25;
}

.ai-task-prompt-text {
    margin-bottom: 0 !important;
    color: #2d2d2d;
    font-weight: 650;
    line-height: 1.5;
}

.ai-task-requirement-text,
.ai-task-answer-table-wrapper,
.ai-task-answer-table {
    margin-bottom: 0 !important;
}

.ai-task-answer-table {
    width: 100%;
    background: transparent;
    color: #2d2d2d;
}

.ai-task-answer-table th,
.ai-task-answer-table td {
    border-color: rgba(23, 23, 23, .12);
    padding: .45rem .5rem;
    vertical-align: top;
}

.ai-task-answer-table th {
    color: #111111;
    font-size: .9rem;
    font-weight: 850;
}

.ai-task-answer-table td:first-child {
    width: 8rem;
    color: #111111;
    font-weight: 800;
}

.ai-task-counter {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ai-task-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.ai-task-options-grid .field {
    margin-bottom: 0;
}

.ai-task-choice {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 100%;
    padding: .9rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: #ffffff;
    font-weight: 650;
    line-height: 1.35;
    transition: background-color .16s ease, border-color .16s ease;
}

.ai-task-choice:hover,
.ai-task-choice:focus-within {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .42);
}

.ai-task-choice:has(input:checked) {
    background: rgba(239, 173, 87, .16);
    border-color: #efad57;
}

.ai-task-choice input {
    accent-color: #363636;
}

.ai-task-choice-text {
    min-width: 0;
    color: #ffffff;
    font-size: 1rem !important;
    font-weight: 650;
    line-height: 1.35;
}

.ai-task-choice input[type="checkbox"] + .ai-task-choice-text:before {
    border-color: #ffffff;
}

@media screen and (max-width: 1024px) {
    .ai-start-panel,
    .ai-start-preview-grid,
    .ai-task-input-grid {
        grid-template-columns: 1fr;
    }

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

@media screen and (max-width: 640px) {
    .ai-start-option,
    .ai-start-preview,
    .ai-review-item,
    .ai-task-review-card {
        box-shadow: 3px 3px 0 rgba(23, 23, 23, .14);
    }

    .ai-start-option:hover,
    .ai-start-option:focus-visible,
    .ai-start-option[aria-pressed="true"],
    .ai-step:hover,
    .ai-step[aria-pressed="true"],
    .ai-task-choice:hover,
    .ai-task-choice:focus-within {
        transform: none;
    }

    .ai-step-list,
    .ai-review-grid,
    .ai-task-options-grid {
        grid-template-columns: 1fr;
    }
}
