/*
 * eBook2video AI - public course pages and student members area
 * (loaded after app.css, which provides tokens, buttons, forms and alerts)
 *
 * 1. Page frame (owner bar, header, footer)
 * 2. Course page (two columns, preview, thumbnails, curriculum)
 * 3. Buy card and checkout modal
 * 4. Sign-in and password pages
 * 5. Classroom (sidebar, video stage, notes)
 * 6. Community and Resources tabs
 * 7. Utilities
 * 8. Responsive
 */

/* 1. Page frame -------------------------------------------------------- */
.learn-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.owner-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem 1rem;
    padding: .5rem 20px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: .85rem;
}

.owner-bar a {
    color: #fdba74;
}

.learn-top {
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
}

.learn-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.learn-brand {
    overflow: hidden;
    color: var(--c-text);
    font-size: 1.05rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learn-brand:hover {
    text-decoration: none;
}

.learn-nav {
    display: flex;
    flex: none;
    align-items: center;
    gap: 1rem;
    font-size: .9rem;
}

.learn-user {
    color: var(--c-muted);
}

.learn-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.learn-foot {
    padding-bottom: 2rem;
    color: var(--c-muted);
    font-size: .85rem;
}

/* 2. Course page ------------------------------------------------------- */
.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 2rem;
    align-items: start;
}

.course-title {
    font-size: 2rem;
    line-height: 1.2;
}

.course-subtitle {
    margin: .5rem 0 1.25rem;
    color: var(--c-muted);
    font-size: 1.1rem;
}

.course-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: #000000;
}

.course-preview {
    position: relative;
}

.preview-label {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, .72);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 600;
    pointer-events: none;
}

.preview-end {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(17, 24, 39, .88);
    color: #ffffff;
    text-align: center;
}

/* AutoFlow: email opt-in in front of the preview, and the affiliate recruitment link. */
.preview-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: 1.5rem;
    background: linear-gradient(rgba(15, 23, 42, .78), rgba(15, 23, 42, .78)), var(--gate-bg, #0f172a) center / cover;
}

.preview-gate-form {
    width: 100%;
    max-width: 520px;
    color: #ffffff;
    text-align: center;
}

.preview-gate-title {
    margin: 0 0 .4rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.preview-gate-text {
    margin: 0 0 1rem;
    color: #cbd5e1;
    font-size: .9rem;
}

.preview-gate-fields {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: .5rem;
}

.recruit-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border: 1px dashed #86efac;
    border-radius: var(--radius);
    background: #f0fdf4;
    color: var(--c-text);
}

.recruit-link:hover {
    text-decoration: none;
}

.recruit-link > span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.recruit-link > span:first-child {
    font-size: 1.6rem;
}

/* Studio Pro: the quiz over the classroom player. */
.player {
    position: relative;
}

.quiz-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 1.5rem;
    overflow-y: auto;
    border-radius: inherit;
    background: rgba(15, 23, 42, .94);
    color: #ffffff;
    text-align: center;
}

.quiz-overlay[hidden] {
    display: none;
}

.quiz-kicker {
    margin: 0;
    color: #fdba74;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.quiz-question {
    max-width: 640px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    width: 100%;
    max-width: 640px;
}

.quiz-choice {
    padding: .7rem .9rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.quiz-choice:hover:not(:disabled) {
    background: rgba(255, 255, 255, .16);
}

.quiz-choice.is-right {
    border-color: #4ade80;
    background: rgba(74, 222, 128, .2);
}

.quiz-choice.is-wrong {
    border-color: #f87171;
    background: rgba(248, 113, 113, .2);
}

.quiz-feedback {
    max-width: 640px;
    margin: 0;
    color: #e2e8f0;
}

/* Bundle Builder: the public bundle page. */
.bundle-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 2rem;
    align-items: start;
}

.bundle-title {
    margin: .5rem 0;
    font-size: 2rem;
}

.bundle-text {
    color: var(--c-muted);
    font-size: 1.05rem;
}

.bundle-courses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.bundle-course {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bundle-course img {
    width: 180px;
    height: auto;
    border-radius: 8px;
}

.bundle-course h2 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
}

.bundle-buy {
    position: sticky;
    top: 1.5rem;
}

.bundle-save {
    margin: 0 0 1rem;
    color: var(--c-success);
    font-weight: 600;
}

/* Bundle Builder: the order bump in the checkout. */
.order-bump {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: .25rem 0 1rem;
    padding: .8rem;
    border: 2px dashed #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    font-size: .9rem;
    cursor: pointer;
}

.order-bump input {
    margin-top: .2rem;
}

.order-bump > span {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

/* Traffic Domination: the AI live-chat closer. */
.sales-chat {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
}

.sales-chat-toggle {
    padding: .7rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--c-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.sales-chat-panel {
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 2.5rem));
    max-height: min(520px, calc(100vh - 6rem));
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.sales-chat-panel[hidden] {
    display: none;
}

.sales-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--c-border);
}

.sales-chat-close {
    border: 0;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.sales-chat-log {
    flex: 1;
    overflow-y: auto;
    padding: .75rem 1rem;
}

.chat-msg {
    max-width: 85%;
    margin: 0 0 .6rem;
    padding: .55rem .8rem;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.45;
}

.chat-msg-assistant {
    background: var(--c-bg);
}

.chat-msg-visitor {
    margin-left: auto;
    background: var(--c-primary-soft);
}

.chat-msg-error {
    background: var(--c-danger-soft);
    color: var(--c-danger);
}

.chat-join {
    display: inline-block;
    margin-top: .35rem;
    font-weight: 700;
}

.sales-chat-form {
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem 0;
}

.sales-chat-note {
    margin: .4rem 1rem .75rem;
    color: var(--c-muted);
    font-size: .72rem;
}

.preview-end[hidden] {
    display: none;
}

.preview-end-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.preview-end-text {
    margin: 0 0 .75rem;
    color: #d1d5db;
}

.preview-end-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.preview-end .btn-ghost {
    border-color: rgba(255, 255, 255, .4);
    background: transparent;
    color: #ffffff;
}

.thumb-strip {
    display: flex;
    gap: .75rem;
    margin: .9rem 0 0;
    padding: 0 0 .5rem;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
}

.thumb-strip li {
    flex: none;
    width: 200px;
    scroll-snap-align: start;
}

.thumb-strip img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--c-border);
    border-radius: 8px;
}

.course-section {
    margin-top: 2.25rem;
}

.course-section h2 {
    margin-bottom: .75rem;
    font-size: 1.3rem;
}

.benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits li {
    position: relative;
    margin-bottom: .6rem;
    padding-left: 1.8rem;
}

.benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-primary);
    font-weight: 700;
}

.curriculum-module {
    margin-top: 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    overflow: hidden;
}

.curriculum-module h3 {
    margin: 0;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
    font-size: 1rem;
}

.curriculum-lessons {
    margin: 0;
    padding: 0;
    list-style: none;
}

.curriculum-lessons li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--c-border);
    font-size: .95rem;
}

.curriculum-lessons li:last-child {
    border-bottom: 0;
}

.curriculum-icon {
    flex: none;
    width: 1.2rem;
    color: var(--c-muted);
    font-size: .85rem;
    text-align: center;
}

.curriculum-time {
    margin-left: auto;
    color: var(--c-muted);
    font-size: .85rem;
}

/* 3. Buy card and checkout modal --------------------------------------- */
.course-side {
    position: sticky;
    top: 1.5rem;
}

.buy-card {
    padding: 1.25rem;
}

.buy-cover {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.buy-title {
    font-size: 1.15rem;
    line-height: 1.3;
}

.buy-creator {
    margin: .25rem 0 0;
    font-size: .9rem;
}

.trust {
    margin: 1rem 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
}

.trust li {
    margin-bottom: .35rem;
}

.trust li::before {
    content: "✓ ";
    color: var(--c-primary);
    font-weight: 700;
}

/* Trust Badge Pack (Starter Pack & Business Edition). */
.verified-seal {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: .4rem 0 0;
    padding: .2rem .65rem .2rem .35rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 700;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .6rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: var(--c-bg);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.25;
}

.trust-badge::before {
    flex: none;
    font-size: 1rem;
}

.trust-badge-secure::before {
    content: "🔒";
}

.trust-badge-lifetime::before {
    content: "♾️";
}

.trust-badge-guarantee::before {
    content: "🛡️";
}

.trust-badge-support::before {
    content: "💬";
}

.buy-price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: 0 0 .9rem;
}

.buy-price strong {
    font-size: 2rem;
}

.btn-cta {
    padding: .9rem 1rem;
    font-size: 1rem;
    letter-spacing: .02em;
    white-space: normal;
}

.buy-signin {
    margin: .75rem 0 0;
    font-size: .85rem;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal:target {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: .6rem;
    right: .9rem;
    color: var(--c-muted);
    font-size: 1.6rem;
    line-height: 1;
}

.modal-close:hover {
    text-decoration: none;
}

.pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.pay-methods legend {
    margin-bottom: .4rem;
}

.pay-method {
    display: flex;
    flex: 1;
    align-items: center;
    gap: .5rem;
    padding: .65rem .8rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.pay-method:has(input:checked) {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
}

.pay-method input {
    accent-color: var(--c-primary);
}

/* 4. Sign-in and password pages ---------------------------------------- */
.learn-narrow {
    max-width: 440px;
    margin: 1rem auto 0;
}

.forgot {
    margin-top: 1.25rem;
    font-size: .9rem;
}

.forgot summary {
    color: var(--c-primary);
    cursor: pointer;
}

.forgot .form {
    margin-top: .75rem;
}

/* 5. Classroom --------------------------------------------------------- */
.class-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--c-border);
}

.class-tabs a {
    padding: .5rem 0;
    border-bottom: 2px solid transparent;
    color: var(--c-muted);
    font-weight: 600;
}

.class-tabs a:hover {
    text-decoration: none;
}

.class-tabs .is-active {
    border-bottom-color: var(--c-primary);
    color: var(--c-text);
}

.class-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 1.5rem;
    align-items: start;
}

.class-side {
    padding: 1.1rem;
}

.class-course {
    font-size: 1.05rem;
    line-height: 1.3;
}

.class-progress {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin: .75rem 0 1rem;
    color: var(--c-primary-ink);
    font-size: .85rem;
    font-weight: 600;
}

.class-module {
    border-top: 1px solid var(--c-border);
}

.class-module summary {
    position: relative;
    padding: .7rem 1.5rem .7rem 0;
    font-size: .95rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.class-module summary::-webkit-details-marker {
    display: none;
}

.class-module summary::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: .25rem;
    color: var(--c-muted);
    font-size: 1.3rem;
    transform: translateY(-50%);
}

.class-module[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.class-module .module-label {
    display: block;
    font-size: .72rem;
}

.class-lessons {
    margin: 0 0 .6rem;
    padding: 0;
    list-style: none;
}

.class-lesson {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .45rem .5rem;
    border-radius: 6px;
    color: var(--c-text);
    font-size: .9rem;
}

.class-lesson:hover {
    background: var(--c-bg);
    text-decoration: none;
}

.class-lesson.is-current {
    background: var(--c-primary-soft);
    font-weight: 600;
}

.class-check {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: .1rem;
    border: 1.5px solid var(--c-border);
    border-radius: 50%;
    color: #ffffff;
    font-size: .7rem;
}

.class-lesson.is-done .class-check {
    border-color: var(--c-primary);
    background: var(--c-primary);
}

.class-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: #000000;
}

.speed {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    margin-top: .5rem;
    font-size: .85rem;
}

.speed-btn {
    padding: .2rem .55rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
}

.speed-btn.is-active {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-weight: 600;
}

.class-notes {
    margin-top: 1rem;
}

.class-notes .module-label {
    margin: 0 0 .25rem;
}

.class-title {
    font-size: 1.4rem;
}

.class-subhead {
    margin: 1.25rem 0 .6rem;
    font-size: 1rem;
}

.class-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--c-border);
}

.class-actions-left {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* 6. Community and Resources tabs -------------------------------------- */
.community,
.resources {
    max-width: 780px;
}

.community-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .7rem 1rem;
    border-radius: var(--radius);
    background: var(--c-primary-soft);
    font-size: .9rem;
}

.community-new {
    margin-bottom: 1.25rem;
}

.community-new .field {
    margin: 0;
}

.community-new-row {
    display: flex;
    gap: .75rem;
}

.community-new-row .field {
    flex: 1;
    min-width: 0;
}

.community-new .hint {
    margin: 0;
}

.post {
    margin-bottom: 1rem;
}

.post.is-pinned {
    border-color: var(--c-primary);
}

.post-head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.avatar {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
}

.avatar-sm {
    width: 30px;
    height: 30px;
    font-size: .85rem;
}

.avatar-creator {
    background: var(--c-primary);
    color: #ffffff;
}

.avatar-tutor {
    background: #0f172a;
    color: #ffffff;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem .5rem;
    font-size: .9rem;
}

.post-meta .badge {
    margin: 0;
}

.post-meta .muted {
    margin: 0;
    font-size: .8rem;
}

.post-body {
    margin-top: .6rem;
    overflow-wrap: anywhere;
}

.post-actions {
    display: flex;
    gap: .4rem;
    margin-top: .75rem;
}

.replies {
    margin-top: 1rem;
    padding-top: .25rem;
    border-top: 1px solid var(--c-border);
}

.reply {
    display: flex;
    gap: .65rem;
    padding: .75rem 0 .25rem;
}

.reply > div {
    flex: 1;
    min-width: 0;
}

.reply .post-body {
    margin-top: .25rem;
    font-size: .95rem;
}

.reply-delete {
    display: inline;
}

.btn-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
}

.tutor-pending {
    margin: .75rem 0 0;
    font-size: .9rem;
}

.reply-box {
    margin-top: .75rem;
    font-size: .9rem;
}

.reply-box summary {
    color: var(--c-primary);
    font-weight: 600;
    cursor: pointer;
}

.reply-box .form {
    margin-top: .5rem;
}

.reply-box .btn {
    align-self: flex-start;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.resource {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1.1rem;
}

.resource-icon {
    flex: none;
    font-size: 1.4rem;
}

.resource-text {
    flex: 1;
    min-width: 0;
}

.resource-text strong,
.resource-text .muted {
    display: block;
}

.resource-text .muted {
    font-size: .85rem;
}

.resource .btn .muted {
    margin: 0;
    font-size: .75rem;
}

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

/* 8. Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
    /* minmax(0, ...): the scrolling thumbnail strip must not widen the column. */
    .course-layout,
    .class-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-side {
        position: static;
    }

    .preview-gate {
        aspect-ratio: auto;
        min-height: 16rem;
    }

    .bundle-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .bundle-buy {
        position: static;
    }

    .bundle-course {
        flex-direction: column;
    }

    .preview-gate-fields {
        grid-template-columns: 1fr;
    }

    /* On phones the video comes first, the lesson list after it. */
    .class-stage {
        order: -1;
    }
}

@media (max-width: 600px) {
    .course-title {
        font-size: 1.5rem;
    }

    .learn-user {
        display: none;
    }

    .community-new-row {
        flex-direction: column;
    }

    .resource {
        flex-wrap: wrap;
    }

    .preview-end {
        padding: .75rem;
    }

    .preview-end-title {
        font-size: 1rem;
    }

    .preview-end-text {
        display: none;
    }

    .preview-end .btn {
        padding: .45rem .8rem;
        font-size: .85rem;
    }
}
