.mytake-shell {
    max-width: 1240px;
}

.mytake-intro {
    max-width: 760px;
    margin: 48px 0 34px;
}

.mytake-intro h1 {
    max-width: 720px;
    margin: 10px 0 14px;
    font-size: clamp(2.25rem, 6vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.mytake-intro p {
    max-width: 650px;
    margin: 0;
    color: var(--muted, #5f6c70);
    font-size: 1.08rem;
    line-height: 1.65;
}

.mytake-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
    gap: 28px;
    align-items: start;
}

.mytake-form,
.mytake-preview-panel,
.mytake-notice {
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.mytake-form {
    overflow: hidden;
}

.mytake-step {
    padding: 30px;
    border-bottom: 1px solid rgba(17, 24, 39, .09);
}

.mytake-step-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.mytake-step-heading > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #0f766e;
    color: white;
    font-weight: 900;
}

.mytake-step-heading h2,
.mytake-preview-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
}

.mytake-step-heading p {
    margin: 4px 0 0;
    color: #66717e;
    line-height: 1.45;
}

.mytake-field-label,
.mytake-rating legend {
    display: block;
    margin-bottom: 8px;
    color: #26313d;
    font-weight: 850;
}

.mytake-field-label span {
    margin-left: 6px;
    color: #7b8490;
    font-size: .82rem;
    font-weight: 700;
}

.mytake-search {
    position: relative;
}

.mytake-search input,
.mytake-form textarea {
    width: 100%;
    border: 1px solid #c9d1da;
    border-radius: 13px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.mytake-search input {
    min-height: 50px;
    padding: 0 15px;
}

.mytake-form textarea {
    min-height: 128px;
    padding: 13px 15px;
    line-height: 1.5;
    resize: vertical;
}

.mytake-search input:focus,
.mytake-form textarea:focus,
.mytake-artwork-card:has(input:focus-visible),
.mytake-stars input:focus-visible + label {
    outline: 3px solid rgba(15, 118, 110, .23);
    outline-offset: 2px;
    border-color: #0f766e;
}

.mytake-search-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    max-height: 370px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #ccd3db;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.mytake-search-result {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    width: 100%;
    align-items: center;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111827;
    text-align: left;
    cursor: pointer;
}

.mytake-search-result:hover,
.mytake-search-result.is-active {
    background: #eef8f5;
}

.mytake-search-result img,
.mytake-search-result-placeholder {
    width: 42px;
    height: 62px;
    border-radius: 6px;
    background: #e6ebe9;
    object-fit: cover;
}

.mytake-search-result strong,
.mytake-search-result small {
    display: block;
}

.mytake-search-result small {
    margin-top: 3px;
    color: #6b7280;
}

.mytake-field-status {
    min-height: 20px;
    margin: 7px 0 0;
    color: #68727e;
    font-size: .88rem;
}

.mytake-selected-movie {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 13px;
    align-items: center;
    margin-top: 14px;
    padding: 11px;
    border: 1px solid #c9e5de;
    border-radius: 14px;
    background: #f0faf7;
}

.mytake-selected-movie[hidden] {
    display: none;
}

.mytake-selected-movie img {
    width: 52px;
    height: 72px;
    border-radius: 7px;
    background: #dce8e4;
    object-fit: cover;
}

.mytake-selected-movie span,
.mytake-selected-movie small {
    display: block;
    color: #65716e;
    font-size: .8rem;
}

.mytake-selected-movie strong {
    display: block;
    margin: 3px 0;
}

.mytake-text-button {
    padding: 8px;
    border: 0;
    background: transparent;
    color: #0f766e;
    font-weight: 850;
    cursor: pointer;
}

.mytake-artwork-fieldset,
.mytake-rating {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.mytake-artwork-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mytake-artwork-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #e8eceb;
    cursor: pointer;
}

.mytake-artwork-card:has(input:checked) {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

.mytake-artwork-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.mytake-artwork-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.mytake-artwork-card.is-poster img {
    object-position: center 24%;
}

.mytake-artwork-card span {
    display: block;
    padding: 10px 12px;
    background: #fff;
    color: #1f2937;
    font-weight: 850;
}

.mytake-stars {
    display: inline-flex;
    flex-direction: row;
    gap: 4px;
}

.mytake-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mytake-stars label {
    padding: 2px;
    color: #cbd1d8;
    font-size: 2.45rem;
    line-height: 1;
    cursor: pointer;
    transition: color .12s ease, transform .12s ease;
}

.mytake-stars label:hover {
    transform: translateY(-1px);
}

.mytake-stars:has(input[value="1"]:checked) label:nth-of-type(-n+1),
.mytake-stars:has(input[value="2"]:checked) label:nth-of-type(-n+2),
.mytake-stars:has(input[value="3"]:checked) label:nth-of-type(-n+3),
.mytake-stars:has(input[value="4"]:checked) label:nth-of-type(-n+4),
.mytake-stars:has(input[value="5"]:checked) label:nth-of-type(-n+5) {
    color: #e2aa2f;
}

.mytake-rating-output {
    display: inline-block;
    margin-left: 12px;
    color: #67717d;
    font-weight: 750;
    vertical-align: .35rem;
}

.mytake-review-heading {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    color: #707a87;
    font-size: .85rem;
}

.mytake-error {
    margin: 22px 30px 0;
    padding: 12px 14px;
    border-radius: 11px;
    background: #fff0ef;
    color: #a13029;
    font-weight: 750;
}

.mytake-generate {
    width: calc(100% - 60px);
    min-height: 52px;
    justify-content: center;
    margin: 24px 30px 30px;
}

.mytake-preview-panel {
    position: sticky;
    top: 20px;
    padding: 22px;
}

.mytake-preview-heading {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.mytake-preview-heading .section-label {
    display: block;
    margin-bottom: 5px;
}

.mytake-size {
    flex: none;
    padding: 6px 9px;
    border-radius: 99px;
    background: #edf3f1;
    color: #61706d;
    font-size: .72rem;
    font-weight: 850;
}

.mytake-preview-placeholder {
    display: grid;
    min-height: 520px;
    padding: 42px;
    place-content: center;
    border: 1px dashed #bfc9c6;
    border-radius: 16px;
    background: linear-gradient(145deg, #f5f8f7, #edf4f2);
    color: #65716e;
    text-align: center;
}

.mytake-preview-placeholder > span {
    color: #d5a530;
    font-size: 3.5rem;
}

.mytake-result img {
    display: block;
    width: 100%;
    border-radius: 12px;
    background: #111827;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}

.mytake-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.mytake-result-actions .ghost-button {
    grid-column: 1 / -1;
    justify-content: center;
}

.mytake-notice {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-color: #efcc83;
    background: #fff8e8;
    color: #65460d;
}

.mytake-notice p {
    margin: 4px 0 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 880px) {
    .mytake-layout {
        grid-template-columns: 1fr;
    }

    .mytake-preview-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .mytake-intro {
        margin-top: 30px;
    }

    .mytake-step,
    .mytake-preview-panel {
        padding: 20px;
    }

    .mytake-artwork-options {
        grid-template-columns: 1fr;
    }

    .mytake-generate {
        width: calc(100% - 40px);
        margin: 20px;
    }

    .mytake-error {
        margin-right: 20px;
        margin-left: 20px;
    }

    .mytake-stars label {
        font-size: 2.1rem;
    }

    .mytake-rating-output {
        display: block;
        margin: 9px 0 0;
    }
}
