.tv-setup-page {
    max-width: 1040px;
    margin: 0 auto;
}

.tv-setup-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.tv-setup-heading h2 {
    margin: 0;
    color: #381f1c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.tv-setup-heading .page-description {
    max-width: 720px;
    font-size: 14px;
    line-height: 1.7;
}

.tv-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.tv-platform-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    border: 1px solid #e5dbd0;
    border-radius: 8px;
    background: #fffdfa;
    box-shadow: 0 4px 14px rgba(67, 20, 23, .05);
    color: #381f1c;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tv-platform-card:hover {
    transform: translateY(-3px);
    border-color: #c9a99a;
    box-shadow: 0 10px 24px rgba(67, 20, 23, .1);
    color: #381f1c;
    text-decoration: none;
}

.tv-platform-card:focus {
    outline: 3px solid rgba(181, 43, 45, .35);
    outline-offset: 3px;
}

.tv-platform-icon {
    display: flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: #f5eee7;
    font-size: 42px;
}

.tv-platform-icon.is-windows {
    color: #0078d4;
}

.tv-platform-icon.is-android {
    color: #3a9b50;
}

.tv-platform-title {
    margin-bottom: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.2;
}

.tv-platform-description {
    color: #806b62;
    font-size: 13px;
    line-height: 1.7;
}

.tv-platform-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 24px;
    color: #a9252b;
    font-size: 12px;
    font-weight: 700;
}

.tv-platform-card:hover .tv-platform-action {
    color: #7f1e23;
}

.tv-back-action {
    margin-top: 2px;
}

.android-setup-page {
    max-width: 900px;
    margin: 0 auto;
}

.android-setup-heading {
    margin-bottom: 24px;
}

.android-setup-progress {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #e5dbd0;
    border-radius: 8px;
    background: #fffdfa;
}

.android-setup-progress ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.android-setup-progress a {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 9px;
    color: #604b43;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.android-setup-progress a:hover {
    color: #a9252b;
    text-decoration: underline;
}

.progress-number,
.android-step-number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5eee7;
    color: #a9252b;
    font-weight: 700;
}

.progress-number {
    width: 30px;
    height: 30px;
}

.android-setup-steps {
    display: grid;
    gap: 18px;
}

.android-setup-card {
    scroll-margin-top: 24px;
    padding: 26px;
    border: 1px solid #e5dbd0;
    border-radius: 8px;
    background: #fffdfa;
    box-shadow: 0 4px 14px rgba(67, 20, 23, .04);
    color: #604b43;
    font-size: 13px;
    line-height: 1.7;
}

.android-setup-card > p {
    margin: 0 0 16px;
}

.android-step-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.android-step-number {
    width: 48px;
    height: 48px;
    background: #f7e9e3;
    font-size: 22px;
}

.android-step-heading .eyebrow {
    margin-bottom: 3px;
}

.android-step-heading h3,
.android-setup-complete h3 {
    margin: 0;
    color: #381f1c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
}

.android-download-url {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-wrap: anywhere;
    margin: 18px 0 12px;
    padding: 14px 16px;
    border: 1px solid #ead8cd;
    border-radius: 5px;
    background: #faf4ef;
    color: #7d2529;
    font-size: 13px;
    font-weight: 600;
}

.android-download-url:hover {
    color: #641d22;
}

.android-download-button {
    min-height: 48px;
}

.android-setup-notice,
.android-setup-tip {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: 5px;
}

.android-setup-notice {
    border: 1px solid #ead8cd;
    background: #fbf5ef;
    color: #604b43;
}

.android-setup-notice > i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #a9252b;
}

.android-setup-notice p,
.android-setup-tip p {
    margin: 0;
}

.android-setup-tip {
    display: block;
    border-left: 3px solid #d5a34f;
    background: #fff9eb;
}

.android-setup-tip > strong {
    display: block;
    margin-bottom: 4px;
    color: #563f22;
}

.android-setup-tip ul {
    margin: 10px 0;
    padding-left: 21px;
}

.android-instruction-list {
    display: grid;
    gap: 9px;
    margin: 16px 0;
    padding-left: 22px;
}

.android-instruction-list li {
    padding-left: 3px;
}

.android-setup-card code {
    padding: 2px 5px;
    border-radius: 3px;
    background: #f5eee7;
    color: #542821;
    font-size: .95em;
}

.android-small-note {
    margin: 12px 0 0;
    color: #806b62;
    font-size: 12px;
    line-height: 1.6;
}

.android-visual-placeholder {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0;
    padding: 20px;
    border: 1px dashed #cdbeb1;
    border-radius: 6px;
    background: #faf8f5;
    color: #725e55;
    text-align: center;
}

.android-visual-placeholder > i {
    color: #a9252b;
    font-size: 27px;
}

.android-visual-placeholder > span {
    font-size: 12px;
    font-weight: 600;
}

.android-visual-placeholder > small {
    color: #8e746b;
    font-size: 10px;
}

.android-permission-item {
    display: flex;
    gap: 14px;
    margin: 18px 0;
    padding: 17px;
    border: 1px solid #eee6dd;
    border-radius: 6px;
    background: #fff;
}

.android-permission-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5eee7;
    color: #a9252b;
}

.android-permission-item h4,
.android-substep h4 {
    margin: 0 0 5px;
    color: #381f1c;
    font-size: 14px;
    font-weight: 700;
}

.android-permission-item p,
.android-substep p {
    margin: 0;
}

.android-substep {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 10px;
}

.android-substep-number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    border-radius: 15px;
    background: #f5eee7;
    color: #a9252b;
    font-size: 11px;
    font-weight: 700;
}

.android-setup-complete {
    display: flex;
    gap: 18px;
    margin-top: 20px;
    padding: 24px;
    border: 1px solid #c9dfc7;
    border-radius: 8px;
    background: #f5faf2;
    color: #4f644b;
}

.android-complete-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2f0df;
    color: #34713a;
    font-size: 20px;
}

.android-setup-complete h3 {
    font-size: 21px;
}

.android-setup-complete p {
    margin: 9px 0 16px;
    font-size: 13px;
    line-height: 1.7;
}

.android-dashboard-link {
    width: fit-content;
}

.windows-example-block,
.windows-attention-block,
.windows-command-box,
.windows-collapsible {
    margin-top: 18px;
}

.windows-example-block,
.windows-attention-block,
.windows-command-box {
    padding: 16px 18px;
    border: 1px solid #ead8cd;
    border-radius: 6px;
    background: #fffdfa;
}

.windows-example-block p,
.windows-attention-block p {
    margin: 0 0 12px;
    color: #604b43;
    font-weight: 600;
}

.windows-example-block code,
.windows-command-box code {
    display: block;
    overflow-wrap: anywhere;
    color: #381f1c;
    font-size: 12px;
    line-height: 1.6;
}

.windows-attention-block {
    border-color: #f1c57b;
    background: #fffaf0;
}

.windows-attention-block strong {
    color: #7b4b13;
}

.windows-command-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.windows-copy-button {
    border: 0;
    border-radius: 4px;
    background: #a9252b;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 12px;
}

.windows-copy-button:hover {
    background: #7f1e23;
}

.windows-checklist {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding-left: 20px;
    color: #381f1c;
    font-weight: 600;
}

.windows-collapsible {
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid #e5dbd0;
    border-radius: 8px;
    background: #fffdfa;
}

.windows-collapsible summary {
    cursor: pointer;
    padding: 16px 18px;
    color: #381f1c;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
}

.windows-collapsible summary::-webkit-details-marker {
    display: none;
}

.windows-collapsible[open] summary {
    border-bottom: 1px solid #eee6dd;
}

.windows-collapsible-body {
    padding: 18px;
}

.windows-faq-item + .windows-faq-item {
    margin-top: 18px;
}

.windows-faq-item h4 {
    margin: 0 0 8px;
    color: #381f1c;
    font-size: 14px;
}

@media (max-width: 700px) {
    .tv-platform-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tv-platform-card {
        min-height: 0;
        padding: 24px;
    }

    .android-setup-progress {
        padding: 14px;
    }

    .android-setup-progress ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 8px;
    }

    .android-setup-card {
        padding: 20px;
    }

    .android-setup-complete {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .android-setup-progress ol {
        grid-template-columns: 1fr;
    }

    .android-step-heading h3 {
        font-size: 19px;
    }

    .android-setup-complete {
        flex-direction: column;
    }
}
