/* heyUP! Together — mockup styles */

:root {
    --bg: #FCFBF9;
    --surface: #FFFFFF;
    --ink: #121826;
    --muted: #6B7280;
    --muted-soft: #9CA3AF;
    --purple: #5A2DE2;
    --purple-deep: #4F37A3;
    --purple-soft: #EEF0FF;
    --lime: #D4FF00;
    --lime-soft: #F4FFB8;
    --border: #E5E7EB;
    --border-warm: #EDE9E3;
    --yellow-badge: #F5C542;
    --script-blue: #5B8DEF;
    --pink-scribble: #F4A0C0;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-hard: 3px 3px 0 #111827;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    --container: 1120px;
    --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-script: 'Caveat', cursive;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

/* ---------- Utilities ---------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.highlighter {
    position: relative;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background-image: linear-gradient(
        transparent 58%,
        rgba(212, 255, 0, 0.85) 58%,
        rgba(212, 255, 0, 0.85) 92%,
        transparent 92%
    );
    padding: 0 0.08em;
}

.script-note {
    font-family: var(--font-script);
    font-weight: 600;
    color: var(--purple);
    line-height: 1.1;
}

.sparkle {
    display: inline-block;
    color: var(--purple);
    font-size: 1.1rem;
    line-height: 1;
}

.label-caps {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    cursor: pointer;
    font-weight: 800;
    border-radius: var(--radius-pill);
    padding: 0.72rem 1.25rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lime {
    background: var(--lime);
    color: var(--ink);
    box-shadow: var(--shadow-hard);
}

.btn-lime:hover {
    box-shadow: 4px 4px 0 #111827;
}

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--ink);
    box-shadow: none;
}

.btn-outline:hover {
    background: #FAFAFA;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 251, 249, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-warm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.site-header__logo img {
    height: 28px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-header__nav a {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
}

.site-header__nav a.is-active {
    color: var(--purple);
    font-weight: 800;
}

.site-header__actions .btn {
    padding: 0.62rem 1.15rem;
}

/* ---------- Page shell ---------- */

.page {
    padding: 2.25rem 0 3.5rem;
}

.page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.page-hero__greeting {
    color: var(--purple);
    margin-bottom: 0.45rem;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.2vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}

.page-hero__lead {
    margin-top: 0.65rem;
    color: var(--muted);
    max-width: 36rem;
    font-size: 1rem;
}

.page-hero__aside {
    flex-shrink: 0;
}

/* ---------- Cards ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ---------- Course tabs ---------- */

.course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.course-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    max-width: 100%;
}

.course-tab.is-active {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.course-tab__badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    background: #F3F4F6;
    color: var(--muted);
    flex-shrink: 0;
}

.course-tab.is-active .course-tab__badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.course-tab__title {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
}

.course-tab__meta {
    font-size: 0.78rem;
    opacity: 0.8;
    margin-top: 0.1rem;
}

/* ---------- Group overview ---------- */

.group-card {
    padding: 1.6rem 1.6rem 1.35rem;
    margin-bottom: 2.25rem;
}

.group-card__label {
    color: var(--purple);
    margin-bottom: 0.55rem;
}

.group-card__title {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.group-card__title .title-glow {
    display: inline;
    background-image: linear-gradient(
        transparent 62%,
        rgba(212, 255, 0, 0.75) 62%,
        rgba(212, 255, 0, 0.75) 94%,
        transparent 94%
    );
}

.group-card__desc {
    color: var(--muted);
    margin-bottom: 1.25rem;
    max-width: 40rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.stat-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.05rem;
    background: #FCFCFD;
}

.stat-box__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.stat-box__label svg {
    width: 16px;
    height: 16px;
    color: var(--purple);
    flex-shrink: 0;
}

.stat-box__value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
}

.progress-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}

.progress-track {
    height: 10px;
    background: #F1F2F4;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--lime);
    border-radius: var(--radius-pill);
}

/* ---------- Meetings ---------- */

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-head h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-head p {
    color: var(--muted);
    margin-top: 0.2rem;
    font-size: 0.95rem;
}

.section-head .script-note {
    font-size: 1.55rem;
    padding-top: 0.15rem;
}

.meeting-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.meeting-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.meeting-row--next {
    border: 2.5px solid var(--lime);
    background: #FCFFF3;
    box-shadow: 0 8px 20px rgba(212, 255, 0, 0.18);
}

.meeting-row__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: #F3F4F6;
    color: var(--muted);
}

.meeting-row__icon--done {
    background: var(--purple-soft);
    color: var(--purple);
}

.meeting-row__icon--next {
    background: var(--lime);
    color: var(--ink);
}

.meeting-row__body {
    flex: 1;
    min-width: 0;
}

.meeting-row__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.2rem;
}

.meeting-row__title {
    font-weight: 800;
    font-size: 1.02rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-pill);
}

.badge-done {
    background: var(--purple-soft);
    color: var(--purple);
}

.badge-next {
    background: var(--purple);
    color: #fff;
}

.meeting-row__meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.meeting-row__action {
    flex-shrink: 0;
}

/* ---------- Bottom CTA cards ---------- */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cta-card {
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.45rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.cta-card--purple {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.cta-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    background: var(--yellow-badge);
    color: var(--ink);
}

.cta-card--purple .cta-card__icon {
    background: var(--lime);
}

.cta-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.cta-card p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cta-card--purple p {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Invoices ---------- */

.total-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.25rem;
    min-width: 170px;
}

.total-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.total-card__value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.invoice-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 2rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table thead th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    background: #F4F6FA;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

.invoice-table tbody td {
    padding: 1.05rem 1.1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.95rem;
}

.invoice-table tbody tr:last-child td {
    border-bottom: none;
}

.invoice-num {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
}

.invoice-num__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invoice-date {
    color: var(--muted);
}

.invoice-desc strong {
    display: block;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.invoice-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 700;
}

.invoice-status svg {
    width: 14px;
    height: 14px;
}

.invoice-amount {
    font-weight: 800;
}

.invoice-cards {
    display: none;
}

.page-footer-note {
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.75rem;
    color: var(--purple);
    font-weight: 600;
}

/* ---------- Profile ---------- */

.flash {
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.flash--ok {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.flash--err {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.profile-card {
    max-width: 760px;
}

.profile-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
    margin-top: 0.5rem;
}

.profile-form__full {
    grid-column: 1 / -1;
}

.profile-form .form-group input {
    width: 100%;
    border: 1.5px solid var(--border);
    background: #F9FAFB;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.profile-form .form-group input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(90, 45, 226, 0.12);
    background: #fff;
}

.profile-form__check {
    margin: 1.15rem 0 1.4rem;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.profile-form__check input {
    margin-top: 0.15rem;
    flex-shrink: 0;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.profile-form__check input:checked {
    border-color: var(--purple);
    background: var(--purple);
}

.profile-form__check input:checked::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.profile-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 700px) {
    .profile-form__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Login ---------- */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
}

.login-grid {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}

.login-copy__logo {
    height: 30px;
    width: auto;
    margin-bottom: 1.35rem;
}

.login-copy__overline {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.login-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.1rem;
    color: var(--ink);
}

.login-copy__highlights {
    margin-bottom: 1.15rem;
}

.login-copy__highlights p {
    font-family: var(--font-script);
    font-size: clamp(1.7rem, 2.8vw, 2.15rem);
    font-weight: 600;
    color: var(--script-blue);
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.login-copy__highlights .highlighter {
    background-image: linear-gradient(
        transparent 52%,
        rgba(212, 255, 0, 0.9) 52%,
        rgba(212, 255, 0, 0.9) 90%,
        transparent 90%
    );
}

.login-copy__body {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 28rem;
    margin-bottom: 2rem;
}

.login-copy__sparkle {
    font-size: 1.35rem;
    color: var(--purple);
}

.login-card-wrap {
    position: relative;
}

.login-float {
    position: absolute;
    top: -1.55rem;
    right: 1.2rem;
    z-index: 2;
    text-align: right;
}

.login-float .script-note {
    font-size: 1.55rem;
    color: var(--purple-deep);
}

.login-float__scribble {
    display: block;
    width: 42px;
    height: 10px;
    margin-left: auto;
    margin-top: -0.15rem;
}

.login-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 2rem 1.85rem 1.65rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow:
        0 0 0 8px rgba(212, 255, 0, 0.12),
        0 0 48px rgba(212, 255, 0, 0.28),
        0 18px 40px rgba(18, 24, 38, 0.08);
}

.login-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.login-card__sub {
    color: var(--muted);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted-soft);
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    border: 1.5px solid var(--border);
    background: #F9FAFB;
    border-radius: 14px;
    padding: 0.85rem 1rem 0.85rem 2.7rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input-with-icon input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(90, 45, 226, 0.12);
    background: #fff;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.85rem 0 1.25rem;
    font-size: 0.92rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    color: var(--ink);
    font-weight: 600;
}

.checkbox input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--purple);
    border-radius: 5px;
    display: inline-grid;
    place-content: center;
    background: var(--purple);
}

.checkbox input::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.form-row a {
    color: var(--purple);
    font-weight: 700;
}

.login-card .btn-lime {
    margin-bottom: 1.1rem;
    padding: 0.95rem 1.25rem;
    font-size: 1.02rem;
}

.login-card__footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.login-card__footer a {
    color: var(--purple);
    font-weight: 800;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 520px;
    }

    .login-copy {
        text-align: left;
    }

    .page-hero {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .site-header__nav {
        gap: 1.1rem;
    }
}

@media (max-width: 640px) {
    .container,
    .login-grid {
        padding: 0 18px;
    }

    .site-header__inner {
        min-height: 64px;
    }

    .site-header__logo img {
        height: 24px;
    }

    .site-header__nav a {
        font-size: 0.88rem;
    }

    .site-header__actions .btn span.hide-sm {
        display: none;
    }

    .page {
        padding: 1.5rem 0 2.5rem;
    }

    .course-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .course-tab {
        flex-shrink: 0;
    }

    .meeting-row {
        flex-wrap: wrap;
    }

    .meeting-row__action {
        width: 100%;
    }

    .meeting-row__action .btn {
        width: 100%;
    }

    .section-head {
        flex-direction: column;
    }

    .invoice-table-wrap {
        display: none;
    }

    .invoice-cards {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .invoice-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.1rem;
        box-shadow: var(--shadow-card);
    }

    .invoice-card__top {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .invoice-card__meta {
        color: var(--muted);
        font-size: 0.88rem;
        margin: 0.35rem 0 0.85rem;
    }

    .invoice-card .btn {
        width: 100%;
    }

    .login-card {
        padding: 1.5rem 1.2rem 1.35rem;
        box-shadow:
            0 0 0 5px rgba(212, 255, 0, 0.1),
            0 0 28px rgba(212, 255, 0, 0.22),
            0 12px 28px rgba(18, 24, 38, 0.07);
    }

    .login-float {
        top: -1.35rem;
        right: 0.75rem;
    }

    .total-card {
        width: 100%;
    }
}


/* Composition pending banner + calendario composer */
.composition-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.35rem 1.5rem;
    border: 1.5px solid rgba(90, 45, 226, 0.22);
    background: linear-gradient(135deg, #f1ebff, #fff6fb);
}
.composition-banner .group-card__title {
    margin: 0.35rem 0 0.4rem;
}
.page-hero__sub {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 36rem;
}
.ty-compose { margin: 0 0 2rem; }
.ty-compose-card {
    padding: 1.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #f1ebff, #fff6fb);
    box-shadow: var(--shadow-card);
}
.ty-compose-head { max-width: 40rem; margin-bottom: 1.25rem; }
.ty-compose-head h2 { margin: 0.2rem 0 0.5rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.ty-compose-head p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.ty-compose-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.ty-compose-filter {
    min-height: 2.1rem;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: 700 0.82rem/1 var(--font);
    cursor: pointer;
}
.ty-compose-filter.is-active {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
}
.ty-compose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.1rem;
    align-items: start;
}
.ty-compose-slots {
    display: grid;
    gap: 0.65rem;
    max-height: 28rem;
    overflow: auto;
    padding-right: 0.25rem;
}
.ty-compose .ld-composer-slot {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ty-compose .ld-composer-slot:hover:not(:disabled) {
    border-color: rgba(90, 45, 226, 0.35);
    transform: translateY(-1px);
}
.ty-compose .ld-composer-slot.is-selected {
    border-color: var(--purple);
    background: linear-gradient(180deg, #f7f4ff, #fff);
    box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.35);
}
.ty-compose .ld-composer-slot.is-dimmed,
.ty-compose .ld-composer-slot:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.ty-compose .ld-composer-slot-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    margin-top: 0.1rem;
}
.ty-compose .ld-composer-slot.is-selected .ld-composer-slot-check {
    border-color: transparent;
    background: var(--lime);
}
.ty-compose .ld-composer-slot-body { display: grid; gap: 0.2rem; min-width: 0; }
.ty-compose .ld-composer-slot-when {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
}
.ty-compose .ld-composer-slot-when strong { font-size: 0.92rem; font-weight: 750; }
.ty-compose .ld-composer-slot-when span { font-size: 0.86rem; font-weight: 650; color: var(--purple); }
.ty-compose .ld-composer-slot-title { font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.ty-compose .ld-composer-slot-desc {
    font-size: 0.82rem;
    font-weight: 500;
    color: #3d4250;
    line-height: 1.45;
    margin-top: 0.1rem;
}
.ty-compose .ld-composer-slot-meta { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.ty-compose .ld-composer-empty { margin: 0; padding: 1.4rem 0.6rem; color: var(--muted); font-size: 0.9rem; }
.ty-compose-side {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
}
.ty-compose-progress { margin: 0; font-size: 0.9rem; font-weight: 800; }
.ty-compose-message { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.ty-compose-message.is-error { color: #b73552; }
.ty-compose-confirm { width: 100%; }
.ty-compose-confirm:disabled { opacity: 0.45; cursor: not-allowed; }
.ty-compose-empty { margin: 0; padding: 1.4rem 0.6rem; color: var(--muted); font-size: 0.9rem; }
.ty-compose-note { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.ty-compose-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 22px;
    background: #fff;
    border: 1.5px solid rgba(90, 45, 226, 0.1);
    box-shadow: 0 10px 28px rgba(28, 35, 70, 0.06);
}
.ty-compose-success-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 0 1rem;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
}
.ty-compose-success-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--purple);
}
.ty-compose-success h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.ty-compose-success > p {
    margin: 0;
    max-width: 28rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
}
.ty-compose-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem 1.1rem;
    margin-top: 1.35rem;
}
@media (max-width: 860px) {
    .ty-compose-grid { grid-template-columns: 1fr; }
    .ty-compose-slots { max-height: none; }
}
