/* ==========================================================
   FLORA LEARNING DESIGN SYSTEM
   Version: 0.3
   Global visual authority for Flora Learning
   ========================================================== */

:root {
    --fl-font:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    --fl-bg: #f7f8fb;
    --fl-surface: #ffffff;
    --fl-surface-soft: #f9fafb;
    --fl-surface-accent: #f1f5ff;

    --fl-text: #172033;
    --fl-text-secondary: #667085;
    --fl-text-muted: #98a2b3;

    --fl-border: #e6e9ef;
    --fl-border-strong: #d8dde7;

    --fl-primary: #3157d5;
    --fl-primary-hover: #2949b7;
    --fl-primary-soft: #eef3ff;

    --fl-success: #16845b;
    --fl-success-soft: #ecfdf3;

    --fl-warning: #b54708;
    --fl-warning-soft: #fffaeb;

    --fl-danger: #d92d20;

    --fl-sidebar-width: 272px;
    --fl-topbar-height: 74px;

    --fl-radius-sm: 8px;
    --fl-radius-md: 12px;
    --fl-radius-lg: 18px;

    --fl-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 8px 24px rgba(16, 24, 40, 0.04);

    --fl-content-max: 1480px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--fl-bg);
    color: var(--fl-text);
    font-family: var(--fl-font);
    font-size: 15px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

/* ==========================================================
   APPLICATION SHELL
   ========================================================== */

.fl-app {
    min-height: 100vh;
}

.fl-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--fl-sidebar-width);
    background: var(--fl-surface);
    border-right: 1px solid var(--fl-border);
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.fl-sidebar-brand {
    height: var(--fl-topbar-height);
    min-height: var(--fl-topbar-height);
    flex: 0 0 var(--fl-topbar-height);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--fl-border);
}

.fl-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--fl-primary);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.fl-brand-name {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 780;
    letter-spacing: -.025em;
}

.fl-brand-caption {
    margin-top: 3px;
    color: var(--fl-text-secondary);
    font-size: 11px;
}

.fl-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px 20px;
}

.fl-nav-group {
    margin-bottom: 24px;
}

.fl-nav-label {
    padding: 0 10px;
    margin-bottom: 7px;
    color: var(--fl-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fl-nav-item {
    min-height: 43px;
    padding: 9px 11px;
    margin-bottom: 3px;
    border-radius: var(--fl-radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475467;
    font-size: 14px;
    font-weight: 650;
    transition: .16s ease;
}

.fl-nav-item:hover {
    background: var(--fl-surface-soft);
    color: var(--fl-text);
}

.fl-nav-item.is-active {
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
}

.fl-nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    stroke-width: 1.8;
}

.fl-sidebar-profile {
    padding: 14px;
    border-top: 1px solid var(--fl-border);
}

.fl-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--fl-radius-md);
    background: var(--fl-surface-soft);
}

.fl-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
    font-size: 13px;
    font-weight: 800;
}

.fl-profile-name {
    min-width: 0;
    flex: 1;
    font-size: 13px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fl-profile-role {
    color: var(--fl-text-secondary);
    font-size: 11px;
}

.fl-main {
    min-height: 100vh;
    margin-left: var(--fl-sidebar-width);
}

.fl-topbar {
    height: var(--fl-topbar-height);
    min-height: var(--fl-topbar-height);
    flex: 0 0 var(--fl-topbar-height);
    padding: 0 26px;
    background: rgba(247, 248, 251, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fl-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

.fl-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-page-context {
    color: var(--fl-text-secondary);
    font-size: 13px;
}

.fl-topbar-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fl-content {
    width: 100%;
    max-width: var(--fl-content-max);
    margin: 0 auto;
    padding: 28px 30px 60px;
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

.fl-eyebrow {
    margin-bottom: 7px;
    color: var(--fl-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fl-title {
    margin: 0;
    color: var(--fl-text);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 790;
    letter-spacing: -.035em;
}

.fl-subtitle {
    margin-top: 9px;
    color: var(--fl-text-secondary);
    font-size: 15px;
    max-width: 720px;
}

.fl-section-head {
    margin: 30px 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}

.fl-section-title {
    margin: 0;
    font-size: 19px;
    font-weight: 760;
    letter-spacing: -.02em;
}

.fl-section-copy {
    margin-top: 4px;
    color: var(--fl-text-secondary);
    font-size: 13px;
}

/* ==========================================================
   CARDS
   ========================================================== */

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

.fl-hero {
    padding: 28px 30px;
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(49, 87, 213, .10),
            transparent 220px
        ),
        var(--fl-surface);
}

.fl-grid {
    display: grid;
    gap: 16px;
}

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

.fl-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fl-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================================
   STUDENT DASHBOARD
   ========================================================== */

.fl-student-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
    gap: 16px;
}

.fl-progress-card {
    padding: 23px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fl-progress-label {
    color: var(--fl-text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.fl-progress-value {
    margin-top: 3px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.fl-progress-track {
    height: 9px;
    margin-top: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #eaedf3;
}

.fl-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--fl-primary);
}

.fl-progress-note {
    margin-top: 9px;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

.fl-subject-card {
    padding: 19px;
    min-height: 150px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}

.fl-subject-card:hover {
    transform: translateY(-2px);
    border-color: var(--fl-border-strong);
}

.fl-subject-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
    font-weight: 800;
    font-size: 13px;
}

.fl-subject-name {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 760;
}

.fl-subject-status {
    margin-top: 4px;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

.fl-activity-card {
    padding: 22px;
}

.fl-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.fl-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fl-badge-success {
    background: var(--fl-success-soft);
    color: var(--fl-success);
}

.fl-activity-title {
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -.015em;
}

.fl-activity-copy {
    margin-top: 5px;
    color: var(--fl-text-secondary);
    font-size: 13px;
}

.fl-journey-card {
    padding: 20px;
}

.fl-journey-value {
    font-size: 22px;
    font-weight: 790;
    letter-spacing: -.025em;
}

.fl-journey-label {
    margin-top: 4px;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

/* ==========================================================
   PARENT DASHBOARD
   ========================================================== */

.fl-parent-moment {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #dce4fb;
    border-radius: var(--fl-radius-lg);
    background: var(--fl-surface-accent);
}

.fl-parent-moment-title {
    color: var(--fl-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.fl-parent-moment-copy {
    margin-top: 8px;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 650;
    letter-spacing: -.01em;
}

.fl-child-card {
    padding: 20px;
}

.fl-child-name {
    font-size: 17px;
    font-weight: 760;
}

.fl-child-meta {
    margin-top: 4px;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

/* ==========================================================
   ADMIN
   ========================================================== */

.fl-stat-card {
    padding: 20px;
}

.fl-stat-label {
    color: var(--fl-text-secondary);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fl-stat-value {
    margin-top: 7px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.035em;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.fl-btn {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    color: var(--fl-text);
    font-weight: 700;
    transition: .16s ease;
}

.fl-btn:hover {
    border-color: var(--fl-border-strong);
}

.fl-btn-primary {
    background: var(--fl-primary);
    border-color: var(--fl-primary);
    color: #fff;
}

.fl-btn-primary:hover {
    background: var(--fl-primary-hover);
    border-color: var(--fl-primary-hover);
}

.fl-btn-soft {
    background: var(--fl-surface-soft);
}

/* ==========================================================
   MOBILE
   ========================================================== */

.fl-mobile-menu {
    display: none;
}

.fl-sidebar-overlay {
    display: none;
}

@media (max-width: 1100px) {
    .fl-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .fl-sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    body.fl-sidebar-open .fl-sidebar {
        transform: translateX(0);
    }

    .fl-main {
        margin-left: 0;
    }

    .fl-mobile-menu {
        display: inline-flex;
    }

    .fl-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(16, 24, 40, .34);
        z-index: 40;
    }

    body.fl-sidebar-open .fl-sidebar-overlay {
        display: block;
    }

    .fl-student-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .fl-content {
        padding: 20px 15px 42px;
    }

    .fl-topbar {
        padding: 0 15px;
    }

    .fl-grid-2,
    .fl-grid-3,
    .fl-grid-4 {
        grid-template-columns: 1fr;
    }

    .fl-hero {
        padding: 22px 20px;
    }

    .fl-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}


/* ==========================================================
   FLORA AUTH EXPERIENCE
   ========================================================== */

.fl-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(49, 87, 213, .10),
            transparent 26rem
        ),
        radial-gradient(
            circle at 88% 78%,
            rgba(22, 132, 91, .07),
            transparent 22rem
        ),
        var(--fl-bg);
}

.fl-auth-shell {
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 26px;
    align-items: stretch;
}

.fl-auth-intro {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    background:
        linear-gradient(
            135deg,
            rgba(49, 87, 213, .98),
            rgba(37, 70, 182, .96)
        );
    color: #fff;
    border-radius: 24px;
    box-shadow: var(--fl-shadow);
}

.fl-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-auth-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .20);
    font-size: 17px;
    font-weight: 800;
}

.fl-auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.fl-auth-brand-copy {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .76);
}

.fl-auth-message {
    max-width: 540px;
}

.fl-auth-message h1 {
    margin: 0;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.fl-auth-message p {
    margin: 14px 0 0;
    max-width: 520px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.7;
}

.fl-auth-note {
    color: rgba(255, 255, 255, .70);
    font-size: 12px;
}

.fl-auth-card {
    padding: 34px;
    border: 1px solid var(--fl-border);
    border-radius: 24px;
    background: var(--fl-surface);
    box-shadow: var(--fl-shadow);
    align-self: stretch;
}

.fl-auth-title {
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.fl-auth-subtitle {
    margin: 7px 0 26px;
    color: var(--fl-text-secondary);
    font-size: 14px;
}

.fl-auth-field {
    margin-bottom: 17px;
}

.fl-auth-label {
    display: block;
    margin-bottom: 7px;
    color: var(--fl-text);
    font-size: 13px;
    font-weight: 720;
}

.fl-auth-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--fl-border-strong);
    border-radius: var(--fl-radius-sm);
    background: #fff;
    color: var(--fl-text);
    outline: none;
    transition: .16s ease;
}

.fl-auth-input:focus {
    border-color: #8ba1ef;
    box-shadow: 0 0 0 3px rgba(49, 87, 213, .10);
}

.fl-auth-input::placeholder {
    color: var(--fl-text-muted);
}

.fl-auth-error {
    margin-top: 6px;
    color: var(--fl-danger);
    font-size: 12px;
    font-weight: 650;
}

.fl-auth-row {
    margin: 4px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fl-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fl-text-secondary);
    font-size: 13px;
}

.fl-auth-submit {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--fl-primary);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-primary);
    color: #fff;
    font-weight: 760;
    transition: .16s ease;
}

.fl-auth-submit:hover {
    background: var(--fl-primary-hover);
    border-color: var(--fl-primary-hover);
}

.fl-auth-security {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--fl-border);
    color: var(--fl-text-muted);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .fl-auth-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .fl-auth-intro {
        min-height: 280px;
        padding: 28px;
    }

    .fl-auth-message h1 {
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .fl-auth-page {
        padding: 14px;
    }

    .fl-auth-card {
        padding: 24px 20px;
    }

    .fl-auth-intro {
        border-radius: 18px;
    }

    .fl-auth-card {
        border-radius: 18px;
    }
}


/* ==========================================================
   SUBJECT NAVIGATION
   ========================================================== */

.fl-nav-subitem {
    min-height: 34px;
    padding: 7px 11px 7px 41px;
    margin-bottom: 1px;
    color: var(--fl-text-secondary);
    font-size: 12px;
    font-weight: 620;
}

.fl-nav-subitem:hover {
    color: var(--fl-text);
}

.fl-nav-subitem.is-active {
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
}


/* ==========================================================
   STAGE 2.3 STUDENT SHELL
   ========================================================== */

.fl-sidebar-collapse {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border: 1px solid var(--fl-border);
    border-radius: 8px;
    background: var(--fl-surface-soft);
    color: var(--fl-text-secondary);
    font-size: 20px;
    line-height: 1;
}

.fl-nav-item {
    width: 100%;
    border: 0;
    text-align: left;
}

.fl-nav-toggle {
    background: transparent;
}

.fl-nav-iconbox {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.fl-nav-iconbox .fl-nav-icon {
    width: 17px;
    height: 17px;
}

.fl-tone-blue {
    color: #3157d5;
    background: #eef3ff;
}

.fl-tone-green {
    color: #16845b;
    background: #ecfdf3;
}

.fl-tone-purple {
    color: #7a4cc9;
    background: #f3edff;
}

.fl-tone-orange {
    color: #c86717;
    background: #fff3e7;
}

.fl-tone-yellow {
    color: #a87900;
    background: #fff8dc;
}

.fl-tone-cyan {
    color: #167c91;
    background: #e9f8fb;
}

.fl-nav-chevron {
    margin-left: auto;
    color: var(--fl-text-muted);
    transition: transform .18s ease;
}

.fl-nav-toggle.is-expanded .fl-nav-chevron {
    transform: rotate(180deg);
}

.fl-subject-nav {
    display: none;
    padding-top: 2px;
}

.fl-subject-nav.is-open {
    display: block;
}

.fl-nav-subitem {
    min-height: 32px;
    padding-left: 51px;
    font-size: 12px;
}

.fl-nav-subdot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fl-border-strong);
    flex: 0 0 5px;
}

.fl-nav-subitem.is-active .fl-nav-subdot {
    background: var(--fl-primary);
}

.fl-avatar,
.fl-top-avatar {
    overflow: hidden;
}

.fl-avatar img,
.fl-top-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-top-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 7px 5px 11px;
    border-radius: 10px;
    transition: background .16s ease;
}

.fl-top-profile:hover {
    background: var(--fl-surface);
}

.fl-top-profile-copy {
    text-align: right;
}

.fl-top-profile-name {
    font-size: 13px;
    font-weight: 760;
}

.fl-top-profile-meta {
    margin-top: 1px;
    color: var(--fl-text-secondary);
    font-size: 10px;
}

.fl-top-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
    font-size: 12px;
    font-weight: 800;
}

/* COLLAPSED SIDEBAR */

body.fl-sidebar-collapsed .fl-sidebar {
    width: 82px;
}

body.fl-sidebar-collapsed .fl-main {
    margin-left: 82px;
}

body.fl-sidebar-collapsed .fl-sidebar-brand {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

body.fl-sidebar-collapsed .fl-brand-text,
body.fl-sidebar-collapsed .fl-nav-label,
body.fl-sidebar-collapsed .fl-nav-text,
body.fl-sidebar-collapsed .fl-nav-chevron,
body.fl-sidebar-collapsed .fl-profile-copy,
body.fl-sidebar-collapsed .fl-subject-nav {
    display: none !important;
}

body.fl-sidebar-collapsed .fl-sidebar-collapse {
    position: absolute;
    top: 58px;
    right: -13px;
    background: #fff;
}

body.fl-sidebar-collapsed .fl-nav-item {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

body.fl-sidebar-collapsed .fl-profile-card {
    justify-content: center;
}

body.fl-sidebar-collapsed .fl-sidebar-profile {
    padding-left: 10px;
    padding-right: 10px;
}


/* ==========================================================
   STUDENT SETTINGS
   ========================================================== */

.fl-settings-form {
    margin-top: 18px;
}

.fl-settings-grid {
    display: grid;
    gap: 16px;
}

.fl-settings-panel {
    padding: 24px;
}

.fl-panel-title {
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 760;
    letter-spacing: -.015em;
}

.fl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fl-field {
    min-width: 0;
}

.fl-field-full {
    grid-column: 1 / -1;
}

.fl-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 720;
}

.fl-field-help,
.fl-optional {
    color: var(--fl-text-muted);
    font-size: 10px;
    font-weight: 500;
}

.fl-input,
.fl-select,
.fl-textarea {
    width: 100%;
    border: 1px solid var(--fl-border-strong);
    border-radius: var(--fl-radius-sm);
    background: #fff;
    color: var(--fl-text);
    outline: none;
    transition: .16s ease;
}

.fl-input,
.fl-select {
    min-height: 44px;
    padding: 9px 12px;
}

.fl-textarea {
    min-height: 96px;
    padding: 11px 12px;
    resize: vertical;
}

.fl-input:focus,
.fl-select:focus,
.fl-textarea:focus {
    border-color: #8ba1ef;
    box-shadow: 0 0 0 3px rgba(49,87,213,.09);
}

.fl-readonly {
    background: var(--fl-surface-soft);
    color: var(--fl-text-secondary);
}

.fl-profile-photo-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.fl-photo-preview {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
    font-size: 24px;
    font-weight: 800;
}

.fl-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fl-field-grow {
    flex: 1;
}

.fl-file-input {
    width: 100%;
    font-size: 12px;
}

.fl-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.fl-alert {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: var(--fl-radius-sm);
    font-size: 13px;
}

.fl-alert-success {
    color: var(--fl-success);
    background: var(--fl-success-soft);
}

.fl-alert-danger {
    color: var(--fl-danger);
    background: #fef3f2;
}

.fl-alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

@media (max-width: 860px) {
    body.fl-sidebar-collapsed .fl-main {
        margin-left: 0;
    }

    body.fl-sidebar-collapsed .fl-sidebar {
        width: var(--fl-sidebar-width);
    }

    .fl-sidebar-collapse {
        display: none;
    }
}

@media (max-width: 680px) {
    .fl-form-grid {
        grid-template-columns: 1fr;
    }

    .fl-field-full {
        grid-column: auto;
    }

    .fl-top-profile-copy {
        display: none;
    }
}


/* ==========================================================
   STAGE 2.4B PARENT ONBOARDING
   ========================================================== */

.fl-onboarding-progress {
    margin: 18px 0;
    padding: 10px;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-md);
    background: var(--fl-surface);
}

.fl-onboarding-progress span {
    flex: 1 0 auto;
    min-width: 118px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--fl-text-secondary);
    font-size: 11px;
    font-weight: 720;
    text-align: center;
}

.fl-onboarding-progress span.is-active {
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
}

.fl-onboarding-step {
    display: none;
    margin-top: 16px;
}

.fl-onboarding-step.is-active {
    display: block;
}

.fl-onboarding-actions {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    margin-top: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-md);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    box-shadow: var(--fl-shadow);
}

.fl-onboarding-actions-right {
    display: flex;
    gap: 8px;
}

.fl-choice-section {
    margin-top: 22px;
}

.fl-choice-grid {
    margin-top: 9px;
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 9px;
}

.fl-choice-card {
    min-height: 58px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    cursor: pointer;
}

.fl-choice-card:has(input:checked) {
    border-color: #a9b8ef;
    background: var(--fl-primary-soft);
}

.fl-choice-card strong {
    display: block;
    font-size: 13px;
}

.fl-choice-card small {
    display: block;
    margin-top: 2px;
    color: var(--fl-text-secondary);
    font-size: 10px;
}

.fl-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.fl-check-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fl-text-secondary);
    font-size: 12px;
    font-weight: 650;
}

.fl-review-message {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: var(--fl-radius-md);
    background: var(--fl-primary-soft);
}

.fl-review-message strong {
    font-size: 15px;
}

.fl-review-message p {
    margin: 6px 0 0;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

.fl-onboarding-child-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.fl-profile-view {
    padding: 22px;
}

.fl-profile-view-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 20px;
}

.fl-profile-view-grid span {
    display: block;
    color: var(--fl-text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fl-profile-view-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 720;
}

.fl-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fl-profile-chip {
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .fl-choice-grid,
    .fl-profile-view-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .fl-choice-grid,
    .fl-profile-view-grid {
        grid-template-columns: 1fr;
    }

    .fl-panel-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* ==========================================================
   FLORA ONBOARDING EXPERIENCE V03
   ========================================================== */

.fl-onboarding-progress {
    min-height: 82px;
    padding: 9px;
    gap: 7px;
    align-items: stretch;
}

.fl-onboarding-progress > span {
    position: relative;
    min-width: 145px;
    min-height: 62px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    border: 1px solid transparent;
    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.fl-onboarding-progress > span:hover {
    transform: translateY(-2px);
    background: #f8faff;
    border-color: var(--fl-border);
}

.fl-onboarding-progress > span.is-active {
    border-color: #cdd7fb;
    background: var(--fl-primary-soft);
    box-shadow: 0 5px 16px rgba(49,87,213,.08);
}

.fl-onboarding-progress-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--fl-text-secondary);
    background: #f3f5f9;
    transition:
        transform .18s ease,
        color .18s ease,
        background-color .18s ease;
}

.fl-onboarding-progress-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.9;
}

.fl-onboarding-progress > span.is-active
.fl-onboarding-progress-icon {
    color: var(--fl-primary);
    background: #fff;
    transform: scale(1.04);
}

.fl-onboarding-progress-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fl-onboarding-progress-copy small {
    color: var(--fl-text-muted);
    font-size: 9px;
    line-height: 1.1;
    font-weight: 720;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fl-onboarding-progress-copy strong {
    color: var(--fl-text-secondary);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 760;
    white-space: normal;
}

.fl-onboarding-progress > span.is-active
.fl-onboarding-progress-copy strong {
    color: var(--fl-primary);
}

.fl-onboarding-step.is-active {
    animation: flOnboardingStepIn .22s ease both;
}

@keyframes flOnboardingStepIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fl-choice-card {
    transition:
        transform .16s ease,
        border-color .16s ease,
        background-color .16s ease,
        box-shadow .16s ease;
}

.fl-choice-card:hover {
    transform: translateY(-1px);
    border-color: #c7d1ef;
    box-shadow: 0 5px 14px rgba(31,46,85,.06);
}

.fl-onboarding-package-note {
    margin-top: 9px;
    min-height: 78px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid #dfe6fb;
    border-radius: var(--fl-radius-md);
    background:
        linear-gradient(
            135deg,
            #f8faff 0%,
            #ffffff 100%
        );
}

.fl-onboarding-package-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #7952c7;
    background: #f3efff;
}

.fl-onboarding-package-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
}

.fl-onboarding-package-copy {
    min-width: 0;
    padding-top: 1px;
}

.fl-onboarding-package-copy strong {
    display: block;
    color: var(--fl-text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 760;
}

.fl-onboarding-package-copy .fl-field-help {
    margin-top: 5px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .fl-onboarding-progress {
        min-height: auto;
    }

    .fl-onboarding-progress > span {
        min-width: 132px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fl-onboarding-step.is-active {
        animation: none;
    }

    .fl-onboarding-progress > span,
    .fl-onboarding-progress-icon,
    .fl-choice-card {
        transition: none;
    }
}


/* ==========================================================
   SUPER ADMIN CONTROL CENTER
   ========================================================== */

.fl-admin-body {
    margin: 0;
    background: #f7f8fb;
}

.fl-admin-app {
    min-height: 100vh;
    display: flex;
}

.fl-admin-sidebar {
    width: 250px;
    flex: 0 0 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--fl-border);
    background: #fff;
}

.fl-admin-brand {
    min-height: 78px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--fl-border);
}

.fl-admin-nav {
    flex: 1;
    padding: 14px 11px;
}

.fl-admin-nav-label {
    margin: 18px 10px 7px;
    color: var(--fl-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fl-admin-nav-item {
    min-height: 42px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    color: var(--fl-text-secondary);
    font-size: 13px;
    font-weight: 680;
}

.fl-admin-nav-item:hover,
.fl-admin-nav-item.is-active {
    color: var(--fl-primary);
    background: var(--fl-primary-soft);
}

.fl-admin-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.fl-admin-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

.fl-admin-sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--fl-border);
}

.fl-admin-main {
    min-width: 0;
    flex: 1;
}

.fl-admin-topbar {
    min-height: 78px;
    padding: 16px 26px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--fl-border);
    background: rgba(255,255,255,.95);
}

.fl-admin-page-title {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.fl-admin-page-subtitle {
    margin-top: 3px;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

.fl-admin-content {
    padding: 26px;
}

.fl-admin-kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 14px;
}

.fl-admin-kpi {
    min-height: 100px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--fl-border);
    border-radius: 14px;
    background: #fff;
}

.fl-admin-kpi-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 850;
}

.fl-admin-kpi-value {
    font-size: 27px;
    font-weight: 820;
}

.fl-admin-kpi-label {
    margin-top: 2px;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

.fl-admin-welcome {
    margin-top: 18px;
    padding: 26px;
}

.fl-admin-welcome h2 {
    margin: 6px 0;
    font-size: 22px;
}

.fl-admin-welcome p {
    max-width: 760px;
    margin: 0;
    color: var(--fl-text-secondary);
    line-height: 1.7;
}

.fl-admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--fl-border);
    border-radius: 14px;
    background: #fff;
}

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

.fl-admin-table th,
.fl-admin-table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--fl-border);
    text-align: left;
    vertical-align: top;
    font-size: 12px;
}

.fl-admin-table th {
    color: var(--fl-text-secondary);
    background: #fafbfc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fl-admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.fl-admin-muted {
    margin-top: 2px;
    color: var(--fl-text-muted);
    font-size: 10px;
}

.fl-admin-grade-grid {
    display: grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr));
    gap: 12px;
}

.fl-admin-grade-card {
    min-height: 105px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--fl-border);
    border-radius: 14px;
    background: #fff;
    transition: .16s ease;
}

.fl-admin-grade-card:hover {
    border-color: #b5c1ee;
    box-shadow: 0 6px 18px rgba(25,35,75,.06);
}

.fl-admin-grade-number {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
    font-size: 19px;
    font-weight: 850;
}

.fl-admin-grade-name {
    font-size: 14px;
    font-weight: 760;
}

.fl-admin-grade-meta {
    margin-top: 4px;
    color: var(--fl-text-secondary);
    font-size: 10px;
}

.fl-admin-panel {
    padding: 24px;
}

.fl-admin-panel-title {
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 800;
}

.fl-admin-choice-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 10px;
}

.fl-admin-choice {
    min-height: 64px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--fl-border);
    border-radius: 11px;
    background: #fff;
}

.fl-admin-choice:has(input:checked) {
    border-color: #aab8ee;
    background: var(--fl-primary-soft);
}

.fl-admin-choice strong {
    display: block;
    font-size: 13px;
}

.fl-admin-choice small {
    display: block;
    margin-top: 3px;
    color: var(--fl-text-secondary);
    font-size: 10px;
}

.fl-admin-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.fl-admin-subject-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 12px;
}

.fl-admin-subject-card {
    padding: 18px;
}

.fl-admin-subject-name {
    font-size: 15px;
    font-weight: 780;
}

.fl-admin-subject-code {
    margin-top: 3px;
    color: var(--fl-text-muted);
    font-size: 10px;
}

.fl-admin-discipline-list {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fl-admin-child-row {
    margin-bottom: 5px;
}

@media (max-width: 1100px) {
    .fl-admin-kpi-grid,
    .fl-admin-choice-grid,
    .fl-admin-subject-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .fl-admin-grade-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .fl-admin-sidebar {
        display: none;
    }

    .fl-admin-kpi-grid,
    .fl-admin-choice-grid,
    .fl-admin-subject-grid,
    .fl-admin-grade-grid {
        grid-template-columns: 1fr;
    }

    .fl-admin-content,
    .fl-admin-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ==========================================================
   STAGE 2.5C MANAGEMENT
   ========================================================== */

.fl-admin-create-panel {
    margin-bottom: 18px;
    padding: 20px;
}

.fl-admin-inline-form {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr)) auto;
    gap: 10px;
    align-items: end;
}

.fl-admin-inline-form-parent,
.fl-admin-inline-form-student {
    grid-template-columns:
        repeat(5,minmax(0,1fr)) auto;
}

.fl-admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.fl-admin-row-actions form {
    margin: 0;
}

.fl-admin-card-actions {
    margin-top: 16px;
}

.fl-admin-subject-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fl-admin-grade-card {
    display: block;
}

.fl-admin-grade-card-main {
    display: flex;
    align-items: center;
    gap: 13px;
}

.fl-admin-section-gap {
    margin-top: 28px;
}

.fl-admin-secondary-action {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.fl-admin-registration-note {
    margin-top: -8px;
    margin-bottom: 14px;
    max-width: 780px;
}

.fl-password-wrap {
    position: relative;
    width: 100%;
}

.fl-password-wrap .fl-input,
.fl-password-wrap .fl-auth-input {
    padding-right: 64px;
}

.fl-password-toggle {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 42px;
    min-height: 30px;
    padding: 4px 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--fl-primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    cursor: pointer;
}

.fl-password-toggle:hover {
    background: rgba(49, 87, 213, .08);
}

.fl-password-toggle:focus-visible {
    outline: 2px solid var(--fl-primary);
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    .fl-admin-inline-form,
    .fl-admin-inline-form-parent,
    .fl-admin-inline-form-student {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 620px) {
    .fl-admin-inline-form,
    .fl-admin-inline-form-parent,
    .fl-admin-inline-form-student {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   GRADE LANGUAGE ASSIGNMENT
   ========================================================== */

.fl-grade-language-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fl-grade-language-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.fl-grade-language-required {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fl-text-secondary);
    font-size: 10px;
    font-weight: 720;
    white-space: nowrap;
}


/* ==========================================================
   ADMIN ACCOUNT HEADER
   ========================================================== */

.fl-admin-topbar {
    justify-content: space-between;
    gap: 20px;
}

.fl-admin-account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-admin-account-copy {
    padding-right: 4px;
    text-align: right;
}

.fl-admin-account-copy strong {
    display: block;
    font-size: 12px;
    font-weight: 780;
}

.fl-admin-account-copy span {
    display: block;
    margin-top: 2px;
    color: var(--fl-text-muted);
    font-size: 9px;
}

.fl-admin-account form {
    margin: 0;
}

.fl-admin-header-action {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid var(--fl-border);
    background: transparent;
    color: var(--fl-text-secondary);
    font-family: inherit;
    font-size: 11px;
    font-weight: 680;
    cursor: pointer;
}

.fl-admin-header-action:hover {
    color: var(--fl-primary);
}

.fl-admin-settings-grid {
    display: grid;
    grid-template-columns:
        minmax(0,2fr)
        minmax(280px,1fr);
    gap: 16px;
}

.fl-admin-login-details {
    display: grid;
    gap: 15px;
}

.fl-admin-login-details > div {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--fl-border);
}

.fl-admin-login-details > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.fl-admin-login-details span {
    display: block;
    color: var(--fl-text-muted);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fl-admin-login-details strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 720;
}

@media (max-width: 850px) {

    .fl-admin-settings-grid {
        grid-template-columns: 1fr;
    }

    .fl-admin-account-copy {
        display: none;
    }

}


/* ==========================================================
   SUBJECT CARD LIGHT ACTIONS
   ========================================================== */

.fl-admin-subject-card .fl-admin-row-actions {
    gap: 12px;
}

.fl-admin-subject-card .fl-admin-row-actions .fl-btn,
.fl-admin-subject-card .fl-admin-row-actions button,
.fl-admin-subject-card .fl-admin-row-actions a {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--fl-text-secondary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.fl-admin-subject-card .fl-admin-row-actions .fl-btn:hover,
.fl-admin-subject-card .fl-admin-row-actions button:hover,
.fl-admin-subject-card .fl-admin-row-actions a:hover {
    background: transparent;
    color: var(--fl-primary);
}

/* ==========================================================
   SUBJECT CARD COMPACT ACTION BUTTONS
   ========================================================== */

.fl-admin-subject-card .fl-admin-row-actions {
    gap: 8px;
}

.fl-admin-subject-card .fl-admin-row-actions .fl-btn,
.fl-admin-subject-card .fl-admin-row-actions button,
.fl-admin-subject-card .fl-admin-row-actions a {
    min-height: 30px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--fl-border);
    border-radius: 6px;

    background: #fff;

    color: var(--fl-text-secondary);

    font-size: 11px;
    font-weight: 500;
    line-height: 1;

    box-shadow: none;
}

.fl-admin-subject-card .fl-admin-row-actions .fl-btn:hover,
.fl-admin-subject-card .fl-admin-row-actions button:hover,
.fl-admin-subject-card .fl-admin-row-actions a:hover {
    border-color: #c4cce2;
    background: #f8f9fc;
    color: var(--fl-primary);
}


/* ==========================================================
   GRADE SUBJECT STRUCTURE
   ========================================================== */

.fl-grade-structure-help {
    margin-bottom: 14px;
    max-width: 850px;
}

.fl-grade-subject-selector {
    margin-bottom: 24px;
}

.fl-grade-structure {
    display: grid;
    gap: 8px;
}

.fl-grade-root-drop {
    min-height: 42px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd3e5;
    border-radius: 9px;
    color: var(--fl-text-muted);
    background: #fafbfe;
    font-size: 11px;
    font-weight: 650;
}

.fl-grade-root-drop.is-drop-target {
    border-color: var(--fl-primary);
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
}

.fl-grade-structure-item {
    min-height: 56px;
    padding: 9px 11px;
    display: grid;
    grid-template-columns:
        28px
        minmax(150px,1fr)
        minmax(260px,auto);
    gap: 10px;
    align-items: center;

    border: 1px solid var(--fl-border);
    border-radius: 9px;
    background: #fff;

    transition:
        margin .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.fl-grade-structure-item.is-child {
    margin-left: 36px;
    border-left: 3px solid #c7d3ff;
    background: #fbfcff;
}

.fl-grade-structure-item.is-dragging {
    opacity: .55;
}

.fl-grade-structure-item.is-drop-target {
    border-color: var(--fl-primary);
    background: var(--fl-primary-soft);
}

.fl-grade-drag-handle {
    color: var(--fl-text-muted);
    font-size: 17px;
    cursor: grab;
    user-select: none;
}

.fl-grade-drag-handle:active {
    cursor: grabbing;
}

.fl-grade-structure-name strong {
    display: block;
    font-size: 13px;
}

.fl-grade-structure-name span {
    display: block;
    margin-top: 2px;
    color: var(--fl-text-muted);
    font-size: 9px;
    font-weight: 700;
}

.fl-grade-structure-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.fl-grade-parent-select {
    min-width: 190px;
    height: 34px;
    font-size: 11px;
}

.fl-grade-move {
    width: 32px;
    height: 32px;
    border: 1px solid var(--fl-border);
    border-radius: 6px;
    background: #fff;
    color: var(--fl-text-secondary);
    cursor: pointer;
}

.fl-grade-move:hover {
    color: var(--fl-primary);
    border-color: #c4cce2;
    background: #f8f9fc;
}

@media (max-width: 850px) {

    .fl-grade-structure-item {
        grid-template-columns:
            28px
            1fr;
    }

    .fl-grade-structure-controls {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .fl-grade-parent-select {
        min-width: 0;
        width: 100%;
    }

}


/* ==========================================================
   GRADE SUBJECT BUILDER V2
   ========================================================== */

.fl-grade-builder-help {
    margin-bottom: 14px;
}

.fl-grade-builder-preview {
    min-height: 90px;
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--fl-border);
    border-radius: 10px;
    background: #fafbfe;
}

.fl-grade-builder-empty {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fl-text-muted);
    font-size: 11px;
}

.fl-grade-builder-group {
    border: 1px solid var(--fl-border);
    border-radius: 9px;
    background: #fff;
}

.fl-grade-builder-group.is-dragging {
    opacity: .55;
}

.fl-grade-builder-top {
    min-height: 52px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-grade-builder-drag {
    color: var(--fl-text-muted);
    font-size: 17px;
    cursor: grab;
}

.fl-grade-builder-top strong {
    display: block;
    font-size: 13px;
}

.fl-grade-builder-top span:not(
    .fl-grade-builder-drag
) {
    display: block;
    margin-top: 2px;
    color: var(--fl-text-muted);
    font-size: 9px;
}

.fl-grade-builder-children {
    margin: 0 12px 10px 38px;
    display: grid;
    gap: 5px;
}

.fl-grade-builder-child {
    min-height: 38px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 2px solid #cbd5ff;
    background: #fafbff;
}

.fl-grade-builder-child > span {
    color: var(--fl-primary);
}

.fl-grade-builder-child strong {
    display: block;
    font-size: 11px;
}

.fl-grade-builder-child small {
    display: block;
    margin-top: 1px;
    color: var(--fl-text-muted);
    font-size: 8px;
}

.fl-grade-subject-master {
    display: grid;
    gap: 7px;
}

.fl-grade-subject-master-row {
    min-height: 52px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns:
        minmax(180px,1fr)
        minmax(220px,320px);
    align-items: center;
    gap: 12px;
    border: 1px solid var(--fl-border);
    border-radius: 8px;
    background: #fff;
}

.fl-grade-subject-master-name strong {
    display: block;
    font-size: 12px;
}

.fl-grade-subject-master-name span {
    display: block;
    margin-top: 2px;
    color: var(--fl-text-muted);
    font-size: 9px;
    font-weight: 700;
}

.fl-grade-assignment-select {
    width: 100%;
}

@media (max-width: 700px) {

    .fl-grade-subject-master-row {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   STUDENT ACADEMIC HIERARCHY
   ========================================================== */

.fl-subject-parent-card {
    align-content: start;
}

.fl-subject-child-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fl-subject-child-chip {
    padding: 4px 7px;
    border-radius: 6px;
    background: #f1f4ff;
    color: var(--fl-primary);
    font-size: 9px;
    font-weight: 650;
}

.fl-nav-child-group {
    position: relative;
    margin-left: 24px;
}

.fl-nav-childitem {
    min-height: 31px;
    padding-left: 20px;
    font-size: 10px;
}

.fl-nav-child-line {
    width: 10px;
    height: 12px;
    margin-right: 5px;
    border-left: 1px solid #ccd4e8;
    border-bottom: 1px solid #ccd4e8;
    border-bottom-left-radius: 3px;
}

.fl-nav-childitem.is-active {
    color: var(--fl-primary);
    font-weight: 650;
}

.fl-nav-childitem.is-active .fl-nav-child-line {
    border-color: var(--fl-primary);
}

@media (max-width: 760px) {

    .fl-subject-child-list {
        margin-top: 8px;
    }

}


/* ==========================================================
   SUBJECT METADATA
   ========================================================== */

.fl-admin-subject-short {
    margin-top: 4px;
    color: var(--fl-text-secondary);
    font-size: 10px;
    font-weight: 650;
}

.fl-admin-subject-description {
    max-width: 420px;
    margin-top: 5px;
    color: var(--fl-text-muted);
    font-size: 9px;
    line-height: 1.5;
}

.fl-grade-subject-master-row {
    grid-template-columns:
        minmax(180px,1fr)
        minmax(180px,260px)
        minmax(220px,320px);
}

.fl-grade-display-name {
    width: 100%;
}

@media (max-width: 900px) {
    .fl-grade-subject-master-row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   FLORA ADMIN REGISTER SEARCH
   ========================================================== */

.fl-admin-register-search {
    position: relative;
    width: min(100%, 460px);
    margin: 0 0 16px;
}

.fl-admin-search-input {
    width: 100%;
    padding-left: 40px;
    padding-right: 38px;
}

.fl-admin-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    color: var(--fl-text-muted);
    pointer-events: none;
}

.fl-admin-search-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
}

.fl-admin-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--fl-text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.fl-admin-search-clear:hover {
    background: #f3f5fa;
    color: var(--fl-text);
}

.fl-admin-search-empty {
    grid-column: 1 / -1;
    padding: 26px 18px;
    border: 1px dashed var(--fl-border);
    border-radius: 8px;
    color: var(--fl-text-muted);
    background: #fafbfe;
    text-align: center;
    font-size: 11px;
}


/* ==========================================================
   FLORA KPI ICON FOUNDATION
   ========================================================== */

.fl-kpi-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fl-kpi-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
}

.fl-kpi-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/*
 * Soft semantic tones.
 * Same multi-colour principle as DBONE,
 * but Flora-native.
 */

.fl-kpi-tone-blue {
    color: #3157d5;
    background: #edf2ff;
}

.fl-kpi-tone-purple {
    color: #7952c7;
    background: #f3efff;
}

.fl-kpi-tone-green {
    color: #2f8a68;
    background: #edf8f3;
}

.fl-kpi-tone-orange {
    color: #c47724;
    background: #fff4e8;
}

.fl-kpi-tone-cyan {
    color: #27829a;
    background: #eaf8fb;
}

.fl-kpi-tone-rose {
    color: #b94f6c;
    background: #fff0f4;
}

.fl-kpi-tone-yellow {
    color: #a77816;
    background: #fff8df;
}

.fl-kpi-tone-indigo {
    color: #5355bb;
    background: #eff0ff;
}

.fl-kpi-title {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fl-text-secondary);
}

.fl-kpi-value {
    margin-top: 10px;
    font-size: 25px;
    line-height: 1;
    font-weight: 780;
    color: var(--fl-text);
}

.fl-kpi-note {
    margin-top: 7px;
    color: var(--fl-text-muted);
    font-size: 10px;
    line-height: 1.45;
}


/* ==========================================================
   PEOPLE AND SCHOOL REGISTER V01
   ========================================================== */

.fl-kpi-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.fl-kpi-grid-3 {
    grid-template-columns:
        repeat(3,minmax(0,1fr));
}

.fl-kpi-card {
    min-height: 124px;
    padding: 16px;
}

.fl-admin-create-panel {
    margin-bottom: 16px;
}

.fl-admin-register-search {
    width: min(100%, 560px);
    margin-bottom: 14px;
}


/* Schools */

.fl-school-create-panel {
    padding: 18px;
}

.fl-school-form-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-top: 14px;
}

.fl-school-name-field {
    grid-column: span 2;
}

.fl-school-form-action {
    display: flex;
    align-items: end;
}

.fl-admin-school-grid {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 14px;
}

.fl-admin-school-card {
    min-height: 190px;
    padding: 18px;

    display: flex;
    flex-direction: column;
}

.fl-admin-school-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.fl-admin-school-ident {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.fl-admin-school-name {
    font-size: 14px;
    font-weight: 760;
    line-height: 1.35;
}

.fl-admin-school-address {
    margin-top: 5px;
    color: var(--fl-text-muted);
    font-size: 10px;
    line-height: 1.55;
}

.fl-admin-school-stats {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--fl-border);
}

.fl-admin-school-stats strong {
    display: block;
    font-size: 19px;
    line-height: 1;
}

.fl-admin-school-stats span {
    display: block;
    margin-top: 4px;
    color: var(--fl-text-muted);
    font-size: 9px;
}

.fl-admin-school-card .fl-admin-card-actions {
    margin-top: auto;
    padding-top: 16px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.fl-admin-school-card .fl-btn {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 10px;
    font-weight: 550;
}


/* People tables */

.fl-admin-table-wrap {
    overflow-x: auto;
}

.fl-admin-table {
    width: 100%;
}

.fl-admin-table tbody tr[hidden] {
    display: none;
}

.fl-admin-child-row + .fl-admin-child-row {
    margin-top: 6px;
}


@media (max-width: 1050px) {

    .fl-school-form-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .fl-school-name-field {
        grid-column: span 2;
    }

}


@media (max-width: 850px) {

    .fl-kpi-grid-3,
    .fl-admin-school-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .fl-school-form-grid {
        grid-template-columns: 1fr;
    }

    .fl-school-name-field {
        grid-column: auto;
    }

}


/* ==========================================================
   SCHOOL UI POLISH V01
   ========================================================== */

.fl-school-grade-grid {
    grid-template-columns:
        repeat(5,minmax(0,1fr));
    gap: 12px;
}

.fl-school-grade-card {
    min-height: 128px;
    padding: 14px;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    text-decoration: none;
    color: inherit;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.fl-school-grade-card:hover {
    border-color: #cfd7ef;
    box-shadow: 0 6px 18px rgba(39,61,110,.07);
    transform: translateY(-1px);
}

.fl-school-grade-icon {
    flex: 0 0 auto;
}

.fl-school-grade-copy {
    min-width: 0;
}

.fl-school-grade-name {
    font-size: 13px;
    font-weight: 760;
    line-height: 1.3;
}

.fl-school-grade-curriculum {
    margin-top: 4px;

    color: var(--fl-text-muted);
    font-size: 9px;
    line-height: 1.4;
}

.fl-school-grade-action {
    margin-top: 10px;

    display: flex;
    align-items: center;
    gap: 5px;

    color: var(--fl-primary);
    font-size: 9px;
    font-weight: 680;
}

.fl-school-grade-action span {
    transition: transform .15s ease;
}

.fl-school-grade-card:hover
.fl-school-grade-action span {
    transform: translateX(2px);
}


/* Optional Subject Selection */

.fl-school-option-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 10px;

    margin-top: 14px;
}

.fl-school-option-card {
    position: relative;

    min-height: 112px;
    padding: 13px;

    display: flex;
    gap: 10px;

    border: 1px solid var(--fl-border);
    border-radius: 8px;
    background: #fff;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.fl-school-option-card:hover {
    border-color: #cbd3e8;
    box-shadow: 0 4px 14px rgba(39,61,110,.05);
}

.fl-school-option-card.is-selected {
    border-color: #9eb1f2;
    background: #f6f8ff;
    box-shadow:
        inset 0 0 0 1px rgba(49,87,213,.08);
}

.fl-school-option-card > input {
    width: 15px;
    height: 15px;
    margin: 2px 0 0;

    accent-color: var(--fl-primary);
}

.fl-school-option-content {
    min-width: 0;
    flex: 1;
}

.fl-school-option-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.fl-school-option-name {
    font-size: 12px;
    font-weight: 740;
    line-height: 1.35;
}

.fl-school-option-meta {
    margin-top: 4px;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fl-school-option-meta span {
    padding: 2px 5px;

    border-radius: 4px;
    background: #f3f5fa;

    color: var(--fl-text-secondary);
    font-size: 8px;
    font-weight: 650;
}

.fl-school-option-description {
    margin-top: 8px;

    color: var(--fl-text-muted);
    font-size: 9px;
    line-height: 1.5;
}

.fl-school-option-check {
    width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #e9eefc;
    color: transparent;

    font-size: 11px;
    font-weight: 800;

    transition:
        background .15s ease,
        color .15s ease;
}

.fl-school-option-card.is-selected
.fl-school-option-check {
    background: var(--fl-primary);
    color: #fff;
}

.fl-school-grade-actions {
    margin-top: 18px;
}


@media (max-width: 1180px) {

    .fl-school-grade-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


@media (max-width: 900px) {

    .fl-school-option-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 720px) {

    .fl-school-grade-grid,
    .fl-school-option-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   FLORA ADMIN UI FOUNDATION V02
   Global admin shell + academic registers
   ========================================================== */

/* Sticky sidebar */

.fl-admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.fl-admin-main {
    min-height: 100vh;
}


/* Sidebar hierarchy */

.fl-admin-nav {
    padding-top: 12px;
    padding-bottom: 22px;
}

.fl-admin-nav-label {
    position: relative;
    margin: 20px 10px 7px;
    padding-left: 9px;

    color: #7b8498;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fl-admin-nav-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 2px;

    border-radius: 2px;
    background: #d9dfea;
}

.fl-admin-nav-item {
    min-height: 42px;
    margin: 1px 0;
    padding: 6px 10px;

    color: #354052;
    font-size: 13px;
    font-weight: 680;

    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.fl-admin-nav-item:hover {
    color: var(--fl-primary);
    transform: translateX(1px);
}

.fl-admin-nav-item.is-active {
    color: var(--fl-primary);
    background: var(--fl-primary-soft);
}

.fl-admin-nav-text {
    color: inherit;
}


/* KPI refinement */

.fl-kpi-card {
    position: relative;
    overflow: hidden;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.fl-kpi-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -38px;

    width: 100px;
    height: 100px;

    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(49,87,213,.045),
            transparent 68%
        );

    pointer-events: none;
}

.fl-kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(36,53,92,.055);
}


/* Grade cards */

.fl-admin-grade-grid {
    align-items: stretch;
}

.fl-admin-grade-card {
    min-height: 145px;
    padding: 17px;

    align-items: flex-start;
    justify-content: space-between;
}

.fl-admin-grade-card-main {
    min-width: 0;
    flex: 1;

    display: flex;
    align-items: flex-start;
    gap: 13px;

    color: inherit;
    text-decoration: none;
}

.fl-admin-grade-card-copy {
    min-width: 0;
}

.fl-admin-grade-open {
    margin-top: 13px;

    display: flex;
    align-items: center;
    gap: 5px;

    color: var(--fl-primary);
    font-size: 9px;
    font-weight: 680;
}

.fl-admin-grade-open span {
    transition: transform .15s ease;
}

.fl-admin-grade-card:hover
.fl-admin-grade-open span {
    transform: translateX(2px);
}


/* Subject metadata */

.fl-admin-subject-meta {
    margin-top: 5px;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fl-admin-subject-meta span {
    padding: 2px 6px;

    border-radius: 4px;
    background: #f3f5fa;

    color: var(--fl-text-secondary);
    font-size: 8px;
    font-weight: 680;
}

.fl-admin-subject-description {
    margin-top: 8px;
    max-width: 460px;

    color: var(--fl-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.fl-admin-subject-card {
    min-height: 158px;

    display: flex;
    flex-direction: column;
}

.fl-admin-subject-card
.fl-admin-card-actions {
    margin-top: auto;
}


/* Languages */

.fl-admin-language-form {
    grid-template-columns:
        minmax(180px,1fr)
        minmax(180px,1fr)
        minmax(110px,.45fr)
        auto;
}

.fl-admin-language-code {
    display: inline-flex;
    align-items: center;

    min-height: 24px;
    padding: 3px 7px;

    border-radius: 5px;
    background: #f1f4fb;

    color: #44516a;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .04em;
}


/* Search spacing */

.fl-admin-register-search {
    margin-top: 4px;
    margin-bottom: 14px;
}


/* General academic motion */

.fl-admin-grade-card,
.fl-admin-subject-card,
.fl-school-grade-card,
.fl-school-option-card {
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        background .16s ease;
}

.fl-admin-grade-card:hover,
.fl-admin-subject-card:hover {
    transform: translateY(-1px);
}


/* Responsive shell */

@media (max-width: 950px) {

    .fl-admin-sidebar {
        position: relative;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .fl-admin-language-form {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}

@media (max-width: 650px) {

    .fl-admin-language-form {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   FLORA ONBOARDING V04 CORRECTIONS
   ========================================================== */

.fl-onboarding-progress-icon svg,
.fl-onboarding-package-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-choice-card > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: var(--fl-primary);
}

.fl-choice-card:has(
    input[type="checkbox"]:checked
) {
    border-color: #a9b8ef;
    background: var(--fl-primary-soft);
    box-shadow:
        0 4px 14px rgba(49,87,213,.07);
}



/* ==========================================================
   FLORA ONBOARDING STEPPER V05
   Student-oriented connected journey stepper
   ========================================================== */

.fl-onboarding-progress {
    position: relative;

    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 0;

    min-height: 108px;
    margin: 18px 0 20px;
    padding: 14px 12px 12px;

    overflow: visible;

    border: 1px solid var(--fl-border);
    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcff 100%
        );

    box-shadow:
        0 5px 18px rgba(32, 48, 87, .045);
}


/* individual step */

.fl-onboarding-progress
[data-fl-progress-step] {
    position: relative;
    z-index: 2;

    min-width: 0;
    min-height: 78px;

    padding: 8px 8px 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 6px;

    border: 0;
    border-radius: 12px;

    background: transparent;

    text-align: center;

    transition:
        transform .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}


/* connector line */

.fl-onboarding-progress
[data-fl-progress-step]::after {
    content: "";

    position: absolute;
    z-index: -1;

    top: 25px;
    left: calc(50% + 22px);

    width: calc(100% - 44px);
    height: 2px;

    background: #e7eaf1;

    transition:
        background-color .2s ease;
}

.fl-onboarding-progress
[data-fl-progress-step]:last-child::after {
    display: none;
}


/* icon */

.fl-onboarding-progress-icon {
    position: relative;
    z-index: 3;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 13px;

    background: #f3f5f9;
    color: #8690a3;

    box-shadow:
        0 2px 7px rgba(32, 48, 87, .045);

    transition:
        transform .18s ease,
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.fl-onboarding-progress-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* playful Flora pastel identity */

.fl-onboarding-progress
[data-fl-progress-step]:nth-child(1)
.fl-onboarding-progress-icon {
    background: #edf3ff;
    color: #5374cc;
}

.fl-onboarding-progress
[data-fl-progress-step]:nth-child(2)
.fl-onboarding-progress-icon {
    background: #edf8f3;
    color: #408a6c;
}

.fl-onboarding-progress
[data-fl-progress-step]:nth-child(3)
.fl-onboarding-progress-icon {
    background: #f5efff;
    color: #7b5bb6;
}

.fl-onboarding-progress
[data-fl-progress-step]:nth-child(4)
.fl-onboarding-progress-icon {
    background: #fff5e9;
    color: #ba762d;
}

.fl-onboarding-progress
[data-fl-progress-step]:nth-child(5)
.fl-onboarding-progress-icon {
    background: #eaf8fb;
    color: #328197;
}

.fl-onboarding-progress
[data-fl-progress-step]:nth-child(6)
.fl-onboarding-progress-icon {
    background: #fff0f4;
    color: #b75f78;
}


/* copy */

.fl-onboarding-progress-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 2px;
}

.fl-onboarding-progress-copy small {
    display: block;

    color: #a0a7b5;

    font-size: 8px;
    line-height: 1.15;
    font-weight: 760;

    letter-spacing: .055em;
    text-transform: uppercase;
}

.fl-onboarding-progress-copy strong {
    display: block;

    max-width: 125px;

    color: #566073;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 720;

    white-space: normal;
}


/* active */

.fl-onboarding-progress
[data-fl-progress-step].is-active {
    transform: translateY(-2px);

    background:
        linear-gradient(
            180deg,
            #f4f7ff 0%,
            #edf2ff 100%
        );

    box-shadow:
        0 7px 18px rgba(49,87,213,.09);
}

.fl-onboarding-progress
[data-fl-progress-step].is-active
.fl-onboarding-progress-icon {
    transform: scale(1.08);

    color: #fff;
    background: var(--fl-primary);
    border-color: var(--fl-primary);

    box-shadow:
        0 6px 14px rgba(49,87,213,.20);
}

.fl-onboarding-progress
[data-fl-progress-step].is-active
.fl-onboarding-progress-copy small,
.fl-onboarding-progress
[data-fl-progress-step].is-active
.fl-onboarding-progress-copy strong {
    color: var(--fl-primary);
}


/* completed */

.fl-onboarding-progress
[data-fl-progress-step].is-complete
.fl-onboarding-progress-icon {
    color: #28765b;
    background: #e8f6ef;
    border-color: #c7eadb;
}

.fl-onboarding-progress
[data-fl-progress-step].is-complete::after {
    background: #a9dac5;
}

.fl-onboarding-progress
[data-fl-progress-step].is-complete
.fl-onboarding-progress-copy strong {
    color: #3e5e53;
}


/* upcoming */

.fl-onboarding-progress
[data-fl-progress-step].is-upcoming {
    opacity: .78;
}


/* hover, very subtle */

.fl-onboarding-progress
[data-fl-progress-step]:hover {
    transform: translateY(-2px);
}


/* step panel transition */

.fl-onboarding-step.is-active {
    animation:
        flOnboardingPanelReveal
        .24s
        cubic-bezier(.2,.7,.3,1)
        both;
}

@keyframes flOnboardingPanelReveal {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* actions visually belong to current step */

.fl-onboarding-actions {
    margin-top: 14px;

    border-radius: 14px;

    box-shadow:
        0 7px 20px rgba(36, 53, 92, .065);
}

.fl-onboarding-actions
.fl-btn-primary {
    min-width: 116px;
}


/* Tablet: three steps per row, never horizontal scroll */

@media (max-width: 980px) {

    .fl-onboarding-progress {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        row-gap: 8px;
    }

    .fl-onboarding-progress
    [data-fl-progress-step]::after {
        display: none;
    }
}


/* Mobile: two steps per row */

@media (max-width: 620px) {

    .fl-onboarding-progress {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        padding: 10px;
        gap: 7px;
    }

    .fl-onboarding-progress
    [data-fl-progress-step] {
        min-height: 74px;
    }

    .fl-onboarding-progress-copy strong {
        font-size: 10px;
    }

}


/* Tiny mobile */

@media (max-width: 390px) {

    .fl-onboarding-progress {
        grid-template-columns: 1fr;
    }

}


/* Motion accessibility */

@media (prefers-reduced-motion: reduce) {

    .fl-onboarding-step.is-active {
        animation: none;
    }

    .fl-onboarding-progress
    [data-fl-progress-step],
    .fl-onboarding-progress-icon {
        transition: none;
    }

}


/* ==========================================================
   FLORA STUDENT SUBJECT WORKSPACE V01
   ========================================================== */


/* ----------------------------------------------------------
   Fix wasted vertical space on Student subject workspace
   ---------------------------------------------------------- */

body:has(.fl-student-subject-page) .fl-main {
    min-height: 100vh;
}

body:has(.fl-student-subject-page) .fl-content {
    padding-top: 22px;
}

body:has(.fl-student-subject-page) .fl-topbar {
    margin-top: 0;
}


/* ----------------------------------------------------------
   Main workspace
   ---------------------------------------------------------- */

.fl-student-subject-page {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* ----------------------------------------------------------
   Subject hero
   ---------------------------------------------------------- */

.fl-learning-hero {
    position: relative;

    min-height: 216px;

    padding: 25px 32px;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbfcff 58%,
            #f7f4ff 100%
        );
}

.fl-learning-hero-main {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 32px;
}

.fl-learning-hero-visual {
    position: relative;

    width: 132px;
    height: 132px;

    flex: 0 0 132px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.fl-learning-hero:hover
.fl-learning-hero-visual {
    transform:
        translateY(-3px)
        rotate(-1deg);
}

.fl-learning-hero-visual svg {
    width: 63px;
    height: 63px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* hero tones */

.fl-learning-tone-blue {
    color: #3157d5;

    background:
        linear-gradient(
            145deg,
            #edf2ff,
            #dde7ff
        );
}

.fl-learning-tone-green {
    color: #27815f;

    background:
        linear-gradient(
            145deg,
            #edf9f3,
            #dff3e8
        );
}

.fl-learning-tone-purple {
    color: #7652ba;

    background:
        linear-gradient(
            145deg,
            #f4efff,
            #e9ddff
        );
}

.fl-learning-tone-orange {
    color: #bd7426;

    background:
        linear-gradient(
            145deg,
            #fff5e9,
            #ffe8cc
        );
}

.fl-learning-tone-cyan {
    color: #247f98;

    background:
        linear-gradient(
            145deg,
            #eaf8fb,
            #d9f1f6
        );
}

.fl-learning-tone-rose {
    color: #b95070;

    background:
        linear-gradient(
            145deg,
            #fff0f4,
            #ffe0ea
        );
}


/* sparkles */

.fl-learning-spark {
    position: absolute;

    color: currentColor;
    opacity: .42;

    font-size: 18px;

    animation:
        flLearningSparkle
        3.4s ease-in-out infinite;
}

.fl-learning-spark-one {
    top: 10px;
    right: 15px;
}

.fl-learning-spark-two {
    left: 12px;
    bottom: 17px;

    animation-delay: 1.1s;
}

@keyframes flLearningSparkle {

    0%,
    100% {
        transform: scale(.8) rotate(0);
        opacity: .25;
    }

    50% {
        transform: scale(1.15) rotate(15deg);
        opacity: .7;
    }

}


/* hero copy */

.fl-learning-hero-copy {
    max-width: 720px;
}

.fl-learning-title {
    margin: 5px 0 10px;

    color: var(--fl-text);

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    font-weight: 820;

    letter-spacing: -.035em;
}

.fl-learning-lead {
    max-width: 670px;

    margin: 0;

    color: var(--fl-text-secondary);

    font-size: 15px;
    line-height: 1.65;
}

.fl-learning-parent-note {
    margin-top: 13px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--fl-text-muted);

    font-size: 11px;
}

.fl-learning-parent-note strong {
    color: var(--fl-primary);
}


/* decorative background */

.fl-learning-hero-decoration {
    position: absolute;

    right: 24px;
    bottom: 16px;

    width: 260px;
    height: 130px;

    pointer-events: none;

    opacity: .46;
}

.fl-learning-hero-decoration span {
    position: absolute;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(120,92,190,.15),
            rgba(120,92,190,0)
        );
}

.fl-learning-hero-decoration span:nth-child(1) {
    width: 150px;
    height: 150px;

    right: 0;
    bottom: -40px;
}

.fl-learning-hero-decoration span:nth-child(2) {
    width: 105px;
    height: 105px;

    right: 105px;
    bottom: -30px;
}

.fl-learning-hero-decoration span:nth-child(3) {
    width: 66px;
    height: 66px;

    right: 185px;
    bottom: -10px;
}


/* ----------------------------------------------------------
   Motivation strip
   ---------------------------------------------------------- */

.fl-learning-motivation {
    min-height: 116px;

    padding: 20px 24px;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 0;

    border-radius: 18px;
}

.fl-learning-motivation-item {
    min-width: 0;

    padding: 4px 26px;

    display: flex;
    align-items: center;

    gap: 14px;

    border-right:
        1px solid var(--fl-border);
}

.fl-learning-motivation-item:first-child {
    padding-left: 8px;
}

.fl-learning-motivation-item:last-child {
    border-right: 0;
}

.fl-learning-mini-icon {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;
}

.fl-learning-mini-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-learning-mini-purple {
    color: #7652ba;
    background: #f3efff;
}

.fl-learning-mini-green {
    color: #21884d;
    background: #eaf8ef;
}

.fl-learning-mini-orange {
    color: #e28618;
    background: #fff2df;
}

.fl-learning-motivation-item strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 780;
}

.fl-learning-motivation-item:nth-child(1)
strong {
    color: #6745ac;
}

.fl-learning-motivation-item:nth-child(2)
strong {
    color: #20844c;
}

.fl-learning-motivation-item:nth-child(3)
strong {
    color: #d27608;
}

.fl-learning-motivation-item span:not(
    .fl-learning-mini-icon
) {
    display: block;

    max-width: 180px;

    color: var(--fl-text-secondary);

    font-size: 11px;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */

.fl-learning-section {
    padding-top: 4px;
}

.fl-learning-section-head {
    margin-bottom: 12px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.fl-learning-section-head h2 {
    margin: 3px 0 3px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 790;
}

.fl-learning-section-head p {
    margin: 0;

    color: var(--fl-text-muted);

    font-size: 11px;
}


/* ----------------------------------------------------------
   Learning areas
   ---------------------------------------------------------- */

.fl-learning-area-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.fl-learning-area-card {
    min-height: 110px;

    padding: 15px;

    display: flex;
    align-items: center;

    gap: 13px;

    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.fl-learning-area-card:hover {
    transform: translateY(-3px);

    border-color: #cdd7f2;

    box-shadow:
        0 9px 24px rgba(35,53,95,.07);
}

.fl-learning-area-number {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 11px;
    font-weight: 820;
}

.fl-learning-area-tone-1 {
    color: #3157d5;
    background: #edf2ff;
}

.fl-learning-area-tone-2 {
    color: #25845e;
    background: #edf8f3;
}

.fl-learning-area-tone-3 {
    color: #7552b5;
    background: #f3efff;
}

.fl-learning-area-tone-4 {
    color: #bd7426;
    background: #fff3e6;
}

.fl-learning-area-copy {
    min-width: 0;

    flex: 1;
}

.fl-learning-area-copy strong {
    display: block;

    color: var(--fl-text);

    font-size: 13px;
    line-height: 1.3;
    font-weight: 760;
}

.fl-learning-area-copy span {
    display: block;

    margin-top: 4px;

    color: var(--fl-text-muted);

    font-size: 10px;
    line-height: 1.4;
}

.fl-learning-area-arrow {
    color: #9aa4b8;

    font-size: 18px;

    transition:
        transform .18s ease,
        color .18s ease;
}

.fl-learning-area-card:hover
.fl-learning-area-arrow {
    color: var(--fl-primary);

    transform: translateX(3px);
}


/* ----------------------------------------------------------
   Learning workspace
   ---------------------------------------------------------- */

.fl-learning-workspace {
    position: relative;

    padding: 30px;

    overflow: hidden;

    border-radius: 18px;
}

.fl-learning-workspace-head {
    min-height: 190px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.fl-learning-workspace-head h2 {
    margin: 5px 0 8px;

    color: var(--fl-text);

    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.08;
    font-weight: 810;

    letter-spacing: -.025em;
}

.fl-learning-workspace-head p {
    max-width: 600px;

    margin: 0;

    color: var(--fl-text-secondary);

    font-size: 13px;
    line-height: 1.6;
}

.fl-learning-workspace-art {
    width: 220px;
    height: 150px;

    flex: 0 0 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
}

.fl-learning-workspace-art svg {
    width: 138px;
    height: 105px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* learning actions */

.fl-learning-action-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.fl-learning-action-card {
    min-height: 96px;

    padding: 14px 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    border: 1px solid var(--fl-border);
    border-radius: 14px;

    background: #fff;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.fl-learning-action-card:hover {
    transform: translateY(-3px);

    border-color: #cdd7f1;

    box-shadow:
        0 8px 20px rgba(35,53,95,.065);
}

.fl-learning-action-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;
}

.fl-learning-action-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-learning-action-blue {
    color: #3157d5;
    background: #edf2ff;
}

.fl-learning-action-green {
    color: #198745;
    background: #eaf8ef;
}

.fl-learning-action-purple {
    color: #7652ba;
    background: #f3efff;
}

.fl-learning-action-orange {
    color: #d2770c;
    background: #fff2df;
}

.fl-learning-action-card strong {
    display: block;

    color: var(--fl-text);

    font-size: 13px;
    line-height: 1.3;
    font-weight: 760;
}

.fl-learning-action-card span:not(
    .fl-learning-action-icon
) {
    display: block;

    margin-top: 3px;

    color: var(--fl-text-muted);

    font-size: 10px;
}


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

@media (max-width: 980px) {

    .fl-learning-area-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .fl-learning-action-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .fl-learning-motivation {
        grid-template-columns: 1fr;
    }

    .fl-learning-motivation-item {
        padding: 13px 8px;

        border-right: 0;
        border-bottom:
            1px solid var(--fl-border);
    }

    .fl-learning-motivation-item:last-child {
        border-bottom: 0;
    }

}


@media (max-width: 720px) {

    .fl-learning-hero {
        padding: 26px 22px;
    }

    .fl-learning-hero-main {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;
    }

    .fl-learning-hero-visual {
        width: 112px;
        height: 112px;

        flex-basis: 112px;
    }

    .fl-learning-hero-visual svg {
        width: 52px;
        height: 52px;
    }

    .fl-learning-workspace-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .fl-learning-workspace-art {
        width: 100%;
        height: 130px;

        flex-basis: auto;
    }

}


@media (max-width: 560px) {

    .fl-learning-area-grid,
    .fl-learning-action-grid {
        grid-template-columns: 1fr;
    }

    .fl-learning-title {
        font-size: 31px;
    }

    .fl-learning-workspace {
        padding: 22px 18px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .fl-learning-spark {
        animation: none;
    }

    .fl-learning-hero-visual,
    .fl-learning-area-card,
    .fl-learning-action-card {
        transition: none;
    }

}



/* ==========================================================
   FLORA GLOBAL APPLICATION SHELL NORMALIZATION V01
   Student + Parent shared layout authority
   ========================================================== */

/*
 * User-facing application pages must always begin directly
 * beneath the fixed/sticky application header.
 * No inherited offset, transform or vertical positioning
 * may push the complete main workspace downward.
 */

.fl-app {
    position: relative;
    top: 0;
    margin-top: 0;
    padding-top: 0;
    transform: none;
}

.fl-main {
    position: relative;
    top: 0;
    margin-top: 0;
    padding-top: 0;
    transform: none;
    vertical-align: top;
}

.fl-topbar {
    top: 0;
    margin-top: 0;
    transform: none;
}

.fl-content {
    position: relative;
    top: 0;
    margin-top: 0;
    transform: none;
}

/*
 * Main content begins with normal Flora breathing room,
 * not an additional page-height gap.
 */

.fl-main > .fl-content {
    padding-top: 24px;
}


/* Mobile keeps the established compact spacing. */

@media (max-width: 680px) {

    .fl-main > .fl-content {
        padding-top: 20px;
    }

}



/* ==========================================================
   FLORA USER WORKSPACE SHELL V02
   Shared Student + Parent application shell
   ========================================================== */

/*
 * Sidebar remains fixed.
 * Main workspace is pinned to the viewport and owns scrolling.
 * This permanently eliminates vertical displacement before
 * the topbar on Student and Parent pages.
 */

.fl-app {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}


/* ----------------------------------------------------------
   Sidebar
   ---------------------------------------------------------- */

.fl-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;

    width: var(--fl-sidebar-width);
    height: 100vh;

    overflow: visible;

    z-index: 50;
}


/* ----------------------------------------------------------
   Main scrolling workspace
   ---------------------------------------------------------- */

.fl-main {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: var(--fl-sidebar-width);

    width: auto;
    height: 100vh;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--fl-bg);

    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}


/* ----------------------------------------------------------
   Topbar
   ---------------------------------------------------------- */

.fl-topbar {
    position: sticky;

    top: 0;

    width: 100%;
    height: var(--fl-topbar-height);

    margin: 0;

    z-index: 30;

    flex: 0 0 var(--fl-topbar-height);
}


/* ----------------------------------------------------------
   Page content
   ---------------------------------------------------------- */

.fl-content {
    position: relative;

    width: 100%;
    max-width: var(--fl-content-max);

    margin: 0 auto;

    padding:
        22px
        30px
        60px;
}


/* ----------------------------------------------------------
   Collapsed sidebar
   ---------------------------------------------------------- */

body.fl-sidebar-collapsed .fl-main {
    left: 82px;
    margin-left: 0;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 860px) {

    .fl-main,
    body.fl-sidebar-collapsed .fl-main {
        left: 0;
        margin-left: 0;
    }

    .fl-sidebar {
        width: var(--fl-sidebar-width);
    }

}


@media (max-width: 680px) {

    .fl-content {
        padding:
            18px
            15px
            42px;
    }

}



/* ==========================================================
   FLORA SIDEBAR COLLAPSE CONTROL V01
   ========================================================== */

/*
 * The control sits exactly where the sidebar vertical
 * divider meets the header horizontal divider.
 */

.fl-sidebar-collapse,
body.fl-sidebar-collapsed .fl-sidebar-collapse {
    position: absolute;

    top: var(--fl-topbar-height);
    right: 0;

    width: 30px;
    height: 30px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translate(58%, -50%);

    border: 1px solid var(--fl-border);
    border-radius: 50%;

    background: #ffffff;

    color: var(--fl-text-secondary);

    font-size: 0;

    box-shadow:
        0 3px 10px rgba(31, 46, 85, .08);

    z-index: 90;

    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


/* Expanded sidebar → arrow points LEFT */

.fl-sidebar-collapse::before {
    content: "‹";

    display: block;

    font-size: 20px;
    line-height: 1;

    font-weight: 700;

    transform: translateY(-1px);
}


/* Collapsed sidebar → arrow points RIGHT */

body.fl-sidebar-collapsed
.fl-sidebar-collapse::before {
    content: "›";
}


.fl-sidebar-collapse:hover {
    color: var(--fl-primary);

    border-color: #cbd5f4;

    background: var(--fl-primary-soft);

    box-shadow:
        0 5px 14px rgba(49, 87, 213, .13);
}


/*
 * Preserve perfect divider positioning even while
 * the sidebar width changes.
 */

body.fl-sidebar-collapsed
.fl-sidebar-collapse {
    right: 0;

    transform: translate(58%, -50%);
}


/* Mobile uses the mobile menu instead. */

@media (max-width: 860px) {

    .fl-sidebar-collapse,
    body.fl-sidebar-collapsed
    .fl-sidebar-collapse {
        display: none;
    }

}



/* ==========================================================
   FLORA SIDEBAR COLLAPSE CLIP FIX V03
   ========================================================== */

/*
 * Sidebar itself may overflow so the collapse control can
 * straddle the vertical divider.
 *
 * Scrolling remains confined to the internal sidebar area.
 */

.fl-sidebar {
    overflow: visible;
}

.fl-sidebar-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.fl-sidebar-collapse,
body.fl-sidebar-collapsed .fl-sidebar-collapse {
    right: 0;
    transform: translate(50%, -50%);
    z-index: 100;
}



/* ==========================================================
   FLORA STUDENT LEARNING EXPERIENCE V01
   ========================================================== */

.fl-nav-language-item {
    min-height: 42px;
}

.fl-nav-language-static {
    cursor: default;
    opacity: .72;
}


/* ----------------------------------------------------------
   Course / textbook
   ---------------------------------------------------------- */

.fl-course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.fl-course-card {
    padding: 24px;
    border-radius: 18px;
}

.fl-course-card-head {
    display: flex;
    align-items: flex-start;
    gap: 17px;
}

.fl-course-book-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;
}

.fl-course-book-icon svg {
    width: 31px;
    height: 31px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-course-meta {
    margin-bottom: 4px;

    color: var(--fl-primary);
    font-size: 9px;
    font-weight: 760;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.fl-course-card-copy h3 {
    margin: 0;

    color: var(--fl-text);

    font-size: 21px;
    font-weight: 800;
}

.fl-course-card-copy p {
    max-width: 720px;

    margin: 7px 0 0;

    color: var(--fl-text-secondary);

    font-size: 11px;
    line-height: 1.55;
}

.fl-course-unit-list {
    margin-top: 20px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.fl-course-unit {
    padding: 15px;

    border: 1px solid var(--fl-border);
    border-radius: 14px;

    background: var(--fl-surface-soft);
}

.fl-course-unit-head {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 12px;
}

.fl-course-unit-number {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #3157d5;
    background: #edf2ff;

    font-size: 11px;
    font-weight: 800;
}

.fl-course-unit-head strong {
    display: block;

    font-size: 12px;
    font-weight: 780;
}

.fl-course-lessons {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.fl-course-lesson {
    min-height: 62px;

    padding: 11px 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid var(--fl-border);
    border-radius: 12px;

    background: #fff;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.fl-course-lesson:hover {
    transform: translateY(-2px);

    border-color: #ccd7f5;

    box-shadow:
        0 7px 18px rgba(35,53,95,.06);
}

.fl-course-lesson-type {
    padding: 4px 6px;

    border-radius: 7px;

    color: #3157d5;
    background: #edf2ff;

    font-size: 7px;
    font-weight: 800;
}

.fl-course-lesson-type.is-poem {
    color: #8254b8;
    background: #f4efff;
}

.fl-course-lesson-title {
    min-width: 0;
    flex: 1;

    color: var(--fl-text);

    font-size: 11px;
    font-weight: 720;
}

.fl-course-lesson-action {
    white-space: nowrap;

    color: var(--fl-primary);

    font-size: 9px;
    font-weight: 760;
}


/* ----------------------------------------------------------
   Lesson page
   ---------------------------------------------------------- */

.fl-lesson-page {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 17px;
}

.fl-lesson-hero {
    min-height: 238px;

    padding: 30px 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f6f8ff 58%,
            #f5efff 100%
        );
}

.fl-lesson-hero-copy {
    max-width: 760px;
}

.fl-lesson-hero h1 {
    margin: 5px 0 5px;

    color: var(--fl-text);

    font-size: clamp(29px, 4vw, 44px);
    line-height: 1.06;
    font-weight: 830;

    letter-spacing: -.035em;
}

.fl-lesson-author {
    color: #7552b5;

    font-size: 11px;
    font-weight: 720;
}

.fl-lesson-hero p {
    max-width: 690px;

    margin: 13px 0 0;

    color: var(--fl-text-secondary);

    font-size: 13px;
    line-height: 1.65;
}

.fl-lesson-hero-actions {
    margin-top: 18px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.fl-lesson-source-chip {
    padding: 7px 10px;

    border-radius: 9px;

    color: #7250b2;
    background: #f1ebff;

    font-size: 8px;
    font-weight: 800;
}

.fl-lesson-hero-visual {
    width: 210px;

    flex: 0 0 210px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-lesson-book-visual {
    position: relative;

    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #7252b3;

    background:
        linear-gradient(
            145deg,
            #f3efff,
            #e6dcff
        );
}

.fl-lesson-book-visual svg {
    width: 68px;
    height: 68px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* KPI */

.fl-lesson-overview {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 11px;
}

.fl-lesson-kpi {
    min-height: 88px;

    padding: 15px 17px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.fl-lesson-kpi strong {
    display: block;

    color: var(--fl-text);

    font-size: 21px;
    font-weight: 820;
}

.fl-lesson-kpi span:not(.fl-kpi-icon) {
    display: block;

    margin-top: 4px;

    color: var(--fl-text-muted);

    font-size: 9px;
}


/* Journey */

.fl-lesson-stage-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.fl-lesson-stage {
    min-height: 110px;

    padding: 16px 17px;

    display: grid;
    grid-template-columns:
        48px minmax(0, 1fr) auto;

    align-items: center;

    gap: 14px;

    border-radius: 15px;
}

.fl-lesson-stage.is-current {
    border-color: #cad6fa;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #f7f9ff
        );
}

.fl-lesson-stage-number {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #3157d5;
    background: #edf2ff;

    font-size: 10px;
    font-weight: 820;
}

.fl-lesson-stage:nth-child(2n)
.fl-lesson-stage-number {
    color: #27815f;
    background: #edf8f3;
}

.fl-lesson-stage:nth-child(3n)
.fl-lesson-stage-number {
    color: #7552b5;
    background: #f3efff;
}

.fl-lesson-stage-copy {
    min-width: 0;
}

.fl-lesson-stage-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.fl-lesson-stage-source {
    color: var(--fl-text-muted);

    font-size: 8px;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.fl-lesson-stage h3 {
    margin: 2px 0 0;

    color: var(--fl-text);

    font-size: 14px;
    font-weight: 790;
}

.fl-lesson-stage-badges {
    display: flex;
    gap: 5px;
}

.fl-lesson-badge {
    padding: 4px 7px;

    border-radius: 7px;

    color: #3157d5;
    background: #edf2ff;

    font-size: 7px;
    font-weight: 780;
}

.fl-lesson-badge.is-voice {
    color: #7652ba;
    background: #f3efff;
}

.fl-lesson-first-item {
    margin-top: 8px;

    display: flex;
    gap: 5px;
}

.fl-lesson-first-item span {
    color: var(--fl-text-muted);

    font-size: 8px;
}

.fl-lesson-first-item strong {
    color: var(--fl-text-secondary);

    font-size: 10px;
}

.fl-lesson-item-list {
    margin-top: 7px;

    display: flex;
    flex-wrap: wrap;

    gap: 5px 12px;
}

.fl-lesson-item {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--fl-text-secondary);

    font-size: 9px;
}

.fl-lesson-item-dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #b7c1d8;
}

.fl-lesson-stage-lock {
    padding: 5px 8px;

    border-radius: 8px;

    color: var(--fl-text-muted);
    background: #f4f5f7;

    font-size: 8px;
    font-weight: 700;
}


/* Philosophy */

.fl-lesson-philosophy {
    padding: 18px 21px;

    display: flex;
    align-items: center;

    gap: 14px;

    border-radius: 16px;

    background:
        linear-gradient(
            90deg,
            #f4fbf7,
            #fbfdfc
        );
}

.fl-lesson-philosophy-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #e5f7ed;

    font-size: 20px;
}

.fl-lesson-philosophy strong {
    color: #267154;

    font-size: 12px;
}

.fl-lesson-philosophy p {
    margin: 4px 0 0;

    color: var(--fl-text-secondary);

    font-size: 10px;
    line-height: 1.55;
}


@media (max-width: 900px) {

    .fl-course-lessons {
        grid-template-columns: 1fr;
    }

    .fl-lesson-overview {
        grid-template-columns: 1fr;
    }

    .fl-lesson-stage {
        grid-template-columns:
            44px minmax(0, 1fr);
    }

    .fl-lesson-stage-action {
        grid-column: 2;
    }

}


@media (max-width: 680px) {

    .fl-course-card {
        padding: 18px;
    }

    .fl-lesson-hero {
        padding: 24px 20px;

        align-items: flex-start;
        flex-direction: column;
    }

    .fl-lesson-hero-visual {
        width: 100%;
        flex-basis: auto;
    }

}



/* ==========================================================
   FLORA LIVE TEACHING EXPERIENCE V01
   ========================================================== */

.fl-teach-page {
    width: 100%;
    max-width: 1080px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 16px;
}


.fl-teach-context {
    padding: 22px 25px;

    display: flex;
    align-items: center;

    gap: 15px;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7f5ff
        );
}


.fl-teach-context-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: #7654bc;
    background: #f1ebff;

    font-size: 21px;
}


.fl-teach-context h1 {
    margin: 2px 0 0;

    color: var(--fl-text);

    font-size: 22px;
    line-height: 1.2;

    font-weight: 810;
}


.fl-teach-context p {
    margin: 4px 0 0;

    color: var(--fl-text-muted);

    font-size: 10px;
}


/* Conversation */

.fl-teach-conversation {
    padding: 12px 4px;

    display: flex;
    flex-direction: column;

    gap: 17px;
}


.fl-teach-message {
    max-width: 83%;

    display: flex;
    align-items: flex-start;

    gap: 10px;
}


.fl-teach-message.is-student {
    align-self: flex-end;

    flex-direction: row-reverse;
}


.fl-teach-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #fff;
    background: var(--fl-primary);

    font-size: 13px;
    font-weight: 820;
}


.fl-teach-avatar.is-student {
    color: #7652ba;
    background: #f0eaff;
}


.fl-teach-bubble {
    padding: 15px 17px;

    border: 1px solid var(--fl-border);
    border-radius: 5px 16px 16px 16px;

    background: #fff;

    box-shadow:
        0 5px 15px rgba(
            32,
            49,
            86,
            .035
        );
}


.fl-teach-message.is-student
.fl-teach-bubble {
    border-radius:
        16px 5px 16px 16px;

    background: #f6f8ff;
}


.fl-teach-speaker {
    margin-bottom: 5px;

    color: var(--fl-primary);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .045em;
}


.fl-teach-message.is-student
.fl-teach-speaker {
    color: #7652ba;
}


.fl-teach-bubble p {
    margin: 0;

    color: var(--fl-text);

    font-size: 13px;
    line-height: 1.65;
}


.fl-teach-bubble
.fl-teach-follow-up {
    margin-top: 10px;

    color: var(--fl-text-secondary);

    font-weight: 650;
}


.fl-teach-listen {
    margin-top: 10px;
    padding: 0;

    border: 0;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--fl-primary);
    background: transparent;

    font-size: 9px;
    font-weight: 720;
}


.fl-teach-feedback-actions {
    margin-top: 3px;
}


/* Response */

.fl-teach-response-card {
    padding: 22px 24px;

    border-radius: 17px;
}


.fl-teach-response-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 15px;
}


.fl-teach-response-head h2 {
    margin: 2px 0 0;

    color: var(--fl-text);

    font-size: 17px;
    font-weight: 790;
}


.fl-teach-response-head p {
    margin: 5px 0 0;

    color: var(--fl-text-secondary);

    font-size: 12px;
}


.fl-teach-voice-chip {
    padding: 6px 9px;

    white-space: nowrap;

    border-radius: 9px;

    color: #7652ba;
    background: #f2edff;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 770;
}


.fl-teach-textarea {
    width: 100%;

    min-height: 125px;

    resize: vertical;

    line-height: 1.6;
}


.fl-teach-response-actions {
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.fl-teach-input-tools {
    display: flex;
    align-items: center;

    gap: 9px;
}


.fl-teach-mic-status {
    color: var(--fl-text-muted);

    font-size: 9px;
}


[data-fl-start-voice].is-listening {
    color: #b54708;

    background: #fff4e8;
}


/* Principle */

.fl-teach-principle {
    padding: 11px 15px;

    display: flex;
    align-items: center;

    gap: 9px;

    border-radius: 12px;

    background: #f3faf6;
}


.fl-teach-principle p {
    margin: 0;

    color: #4f6f61;

    font-size: 11px;
    line-height: 1.5;
}


.fl-teach-back {
    padding-bottom: 20px;
}


@media (max-width: 680px) {

    .fl-teach-message {
        max-width: 95%;
    }

    .fl-teach-response-head,
    .fl-teach-response-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fl-teach-input-tools {
        flex-wrap: wrap;
    }

}



/* ==========================================================
   FLORA NATURAL VOICE V01
   ========================================================== */

.fl-teach-listen {
    transition:
        color .18s ease,
        opacity .18s ease;
}

.fl-teach-listen:hover {
    color: #7652ba;
}

.fl-teach-listen:disabled {
    cursor: wait;
    opacity: .68;
}

.fl-ai-voice-note {
    display: block;

    margin-top: 3px;

    color: var(--fl-text-muted);

    font-size: 10px;
    line-height: 1.4;
}


/* ==========================================================
   FLORA VOICE LAB
   ========================================================== */

.fl-voice-lab-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fl-voice-lab-badge {
    min-width: 150px;
    padding: 14px 18px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-md);
    background: rgba(255,255,255,.78);
    display: flex;
    flex-direction: column;
}

.fl-voice-lab-badge strong {
    font-size: 18px;
}

.fl-voice-lab-badge span {
    color: var(--fl-text-secondary);
    font-size: 12px;
}

.fl-voice-lab-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fl-voice-lab-card {
    padding: 22px;
}

.fl-voice-lab-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.fl-voice-lab-card h2 {
    margin: 0;
    font-size: 18px;
}

.fl-voice-lab-description {
    color: var(--fl-text-secondary);
    font-size: 13px;
}

.fl-voice-lab-card blockquote {
    margin: 18px 0;
    padding: 16px 18px;
    border-left: 3px solid var(--fl-primary);
    background: var(--fl-surface-soft);
    border-radius: var(--fl-radius-sm);
    font-size: 14px;
}

.fl-voice-lab-dot {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--fl-primary);
    box-shadow: 0 0 0 5px var(--fl-primary-soft);
}

.fl-voice-lab-status {
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    color: var(--fl-text-secondary);
    font-size: 13px;
}

@media (max-width: 860px) {
    .fl-voice-lab-grid {
        grid-template-columns: 1fr;
    }

    .fl-voice-lab-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================
   FLORA VOICE LAB SPEED V01
   ========================================================== */

.fl-voice-speed-panel {
    margin-top: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-md);
    background: var(--fl-surface);
}

.fl-voice-speed-copy strong {
    display: block;
    margin-top: 3px;
    font-size: 15px;
}

.fl-voice-speed-copy p {
    margin: 5px 0 0;
    color: var(--fl-text-secondary);
    font-size: 12px;
}

.fl-voice-speed-options {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.fl-voice-speed-button {
    min-width: 84px;
    padding: 9px 12px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    color: var(--fl-text);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.fl-voice-speed-button span {
    display: block;
    margin-top: 2px;
    color: var(--fl-text-secondary);
    font-size: 10px;
}

.fl-voice-speed-button.is-active {
    border-color: var(--fl-primary);
    background: var(--fl-primary-soft);
    color: var(--fl-primary);
}

@media (max-width: 760px) {
    .fl-voice-speed-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .fl-voice-speed-options {
        width: 100%;
    }

    .fl-voice-speed-button {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================================
   FLORA NATURAL V01 MOOD TEST
   ========================================================== */

.fl-voice-mood-test {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--fl-border);
}

.fl-voice-mood-test-head {
    max-width: 720px;
    margin-bottom: 18px;
}

.fl-voice-mood-test-head h2 {
    margin: 4px 0 6px;
    font-size: 22px;
}

.fl-voice-mood-test-head p {
    margin: 0;
    color: var(--fl-text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

/* ==========================================================
   STUDENT SETTINGS V01
   ========================================================== */

.fl-settings-page {
    max-width: 980px;
}

.fl-settings-panel {
    margin-top: 20px;
    padding: 24px;
}

.fl-settings-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.fl-settings-panel-head h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.fl-settings-panel-head p {
    margin: 5px 0 0;
    color: var(--fl-text-secondary);
    font-size: 13px;
}

.fl-settings-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--fl-primary-soft);
    font-size: 19px;
}

.fl-settings-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fl-settings-choice {
    position: relative;
    min-height: 155px;
    padding: 18px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-md);
    background: var(--fl-surface);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition:
        border-color .16s ease,
        background .16s ease,
        transform .16s ease;
}

.fl-settings-choice:hover {
    transform: translateY(-1px);
}

.fl-settings-choice.is-selected {
    border-color: var(--fl-primary);
    background: var(--fl-primary-soft);
}

.fl-settings-choice input {
    position: absolute;
    top: 14px;
    right: 14px;
}

.fl-settings-choice-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

.fl-settings-choice strong {
    font-size: 14px;
}

.fl-settings-choice > span:not(.fl-settings-choice-icon) {
    margin-top: 2px;
    color: var(--fl-primary);
    font-size: 12px;
    font-weight: 750;
}

.fl-settings-choice small {
    margin-top: 8px;
    color: var(--fl-text-secondary);
    font-size: 11px;
    line-height: 1.5;
}

.fl-settings-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .fl-settings-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   FLORA CHAT TYPING V01
   ========================================================== */

.fl-teach-typing-message .fl-teach-bubble {
    min-width: 116px;
}

.fl-teach-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding-top: 3px;
}

.fl-teach-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .34;
    animation:
        fl-teach-typing-dot 1.15s infinite ease-in-out;
}

.fl-teach-typing span:nth-child(2) {
    animation-delay: .14s;
}

.fl-teach-typing span:nth-child(3) {
    animation-delay: .28s;
}

@keyframes fl-teach-typing-dot {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .30;
    }

    30% {
        transform: translateY(-4px);
        opacity: .90;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fl-teach-typing span {
        animation: none;
        opacity: .55;
    }
}

/* ==========================================================
   FLORA CHAT KEYBOARD HINT V01
   ========================================================== */

.fl-teach-keyboard-hint {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
    opacity: .62;
}


/* ==========================================================
   FLORA LISTEN CONTROL V01.1
   ========================================================== */

.fl-teach-listen {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 9px 4px 5px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
}

.fl-teach-listen > span {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--fl-primary-soft);
    font-size: 14px;
    line-height: 1;
}

.fl-teach-listen:hover > span {
    transform: scale(1.05);
}


/* ==========================================================
   PARENT LEARNING JOURNEY V01
   ========================================================== */

.fl-child-card-actions {
    margin-top: 16px;
}

.fl-parent-journey {
    display: grid;
    gap: 20px;
}

.fl-parent-journey-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.fl-parent-journey-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--fl-primary-soft);
    font-size: 12px;
    font-weight: 650;
}

.fl-parent-subject-card {
    padding: 18px;
}

.fl-parent-subject-title {
    font-size: 16px;
    font-weight: 750;
}

.fl-parent-subject-stats {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-size: 12px;
    opacity: .72;
}

.fl-parent-subject-stats strong {
    font-size: 14px;
}

.fl-parent-activity-card,
.fl-parent-skill-card {
    overflow: hidden;
}

.fl-parent-activity-row,
.fl-parent-skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--fl-border);
}

.fl-parent-activity-row:last-child,
.fl-parent-skill-row:last-child {
    border-bottom: 0;
}

.fl-parent-activity-title,
.fl-parent-skill-name {
    font-size: 14px;
    font-weight: 700;
}

.fl-parent-activity-meta,
.fl-parent-skill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    opacity: .68;
}

.fl-parent-activity-side {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.fl-parent-assessment {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--fl-primary-soft);
    font-weight: 650;
    text-transform: capitalize;
}

.fl-parent-skill-score {
    font-size: 14px;
    font-weight: 750;
}

.fl-parent-journey-empty {
    padding: 20px;
    font-size: 13px;
    opacity: .70;
}

.fl-parent-journey-back {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 760px) {
    .fl-parent-activity-row,
    .fl-parent-skill-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .fl-parent-activity-side {
        white-space: normal;
    }
}

/* ==========================================================
   PARENT JOURNEY ACTIONS V01
   ========================================================== */

.fl-child-card-actions,
.fl-parent-journey-back {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}


/* ==========================================================
   FLORA VOICE WARMTH BENCHMARK V01
   ========================================================== */

.fl-voice-benchmark {
    display: grid;
    gap: 20px;
    margin-top: 28px;
    padding: 24px;
}

.fl-voice-benchmark .fl-section-title {
    margin: 0;
}

.fl-voice-benchmark .fl-section-copy {
    max-width: 760px;
    margin: 0;
}

.fl-voice-benchmark-text {
    padding: 16px 18px;
    border: 1px solid var(--fl-border);
    border-radius: 10px;
    background: var(--fl-surface-soft, #f8fafc);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.fl-voice-benchmark-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fl-voice-benchmark-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 210px;
    padding: 18px;
    border: 1px solid var(--fl-border);
    border-radius: 12px;
    background: #fff;
}

.fl-voice-benchmark-option-label {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 6px;
    background: var(--fl-primary-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .07em;
}

.fl-voice-benchmark-option strong {
    font-size: 15px;
    line-height: 1.4;
}

.fl-voice-benchmark-option p {
    min-height: 42px;
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    opacity: .72;
}

.fl-voice-benchmark-option .fl-btn {
    align-self: flex-start;
    width: auto;
    min-width: 150px;
    margin-top: auto;
}

.fl-voice-benchmark-option [data-fl-voice-benchmark-result] {
    min-height: 18px;
    margin-top: 2px;
    font-weight: 650;
}

.fl-voice-benchmark > [data-fl-voice-benchmark-status] {
    padding-top: 2px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .fl-voice-benchmark-grid {
        grid-template-columns: 1fr;
    }

    .fl-voice-benchmark-option {
        min-height: 0;
    }
}

/* ==========================================================
   FLORA STUDENT DASHBOARD WRAPPER V01
   ========================================================== */

.fl-student-dashboard {
    display: contents;
}



/* ==========================================================
   FLORA STUDENT READABILITY V01
   Children-first typography foundation
   ========================================================== */

/*
 * Student interfaces may remain visually refined,
 * but supporting text must never become difficult
 * for a child to read.
 */


/* ----------------------------------------------------------
   FLORA CONVERSATION
   ---------------------------------------------------------- */

.fl-teach-bubble p {
    font-size: 16.5px;
    line-height: 1.62;
}

.fl-teach-speaker {
    font-size: 13.5px;
    line-height: 1.35;
}

.fl-teach-follow-up {
    font-size: 16.5px;
    line-height: 1.62;
}

.fl-teach-encouragement {
}

.fl-teach-listen {
    font-size: 14px;
}

.fl-teach-message input,
.fl-teach-message textarea,
.fl-teach-page input,
.fl-teach-page textarea {
    font-size: 16px;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   CHAPTER / TEACHING JOURNEY
   ---------------------------------------------------------- */

.fl-lesson-stage h3 {
    font-size: 17px;
    line-height: 1.35;
}

.fl-lesson-stage-source {
    font-size: 12.5px;
    line-height: 1.4;
}

.fl-lesson-first-item {
    font-size: 14px;
    line-height: 1.5;
}

.fl-lesson-item {
    font-size: 14px;
    line-height: 1.5;
}

.fl-lesson-item-practice {
    margin-left: 2px;

    color: var(--fl-primary);

    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;

    text-decoration: none;
}

.fl-lesson-item-practice:hover {
    text-decoration: underline;
}

.fl-lesson-badge {
    font-size: 11.5px;
    line-height: 1.3;
}

.fl-lesson-stage-lock {
    font-size: 13px;
    line-height: 1.4;
}

.fl-lesson-philosophy p {
    font-size: 14.5px;
    line-height: 1.55;
}

.fl-lesson-philosophy strong {
    font-size: 15px;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   STUDENT DASHBOARD / SUBJECT AREAS
   ---------------------------------------------------------- */

.fl-student-dashboard .fl-subtitle,
.fl-student-subject-page .fl-subtitle,
.fl-lesson-page .fl-subtitle {
    font-size: 15px;
    line-height: 1.55;
}

.fl-student-dashboard .fl-section-copy,
.fl-student-subject-page .fl-section-copy,
.fl-lesson-page .fl-section-copy {
    font-size: 14px;
    line-height: 1.5;
}

.fl-student-dashboard .fl-progress-note,
.fl-student-subject-page .fl-progress-note {
    font-size: 13.5px;
    line-height: 1.5;
}

.fl-student-dashboard .fl-progress-label,
.fl-student-subject-page .fl-progress-label {
    font-size: 13px;
}

.fl-student-dashboard .fl-activity-copy,
.fl-student-subject-page .fl-activity-copy {
    font-size: 14px;
    line-height: 1.5;
}

.fl-student-dashboard .fl-activity-title,
.fl-student-subject-page .fl-activity-title {
    font-size: 16px;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   GENERIC STUDENT-FACING SECONDARY TEXT
   ---------------------------------------------------------- */

.fl-teach-page .fl-field-help,
.fl-lesson-page .fl-field-help,
.fl-student-dashboard .fl-field-help,
.fl-student-subject-page .fl-field-help {
    font-size: 13px;
    line-height: 1.5;
}

.fl-teach-page label,
.fl-lesson-page label,
.fl-student-dashboard label,
.fl-student-subject-page label {
    font-size: 14px;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   BUTTON READABILITY
   ---------------------------------------------------------- */

.fl-teach-page .fl-btn,
.fl-lesson-page .fl-btn,
.fl-student-dashboard .fl-btn,
.fl-student-subject-page .fl-btn {
    font-size: 14px;
    line-height: 1.25;
}


/* ----------------------------------------------------------
   SMALL SCREEN SAFETY
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .fl-teach-bubble p,
    .fl-teach-follow-up {
        font-size: 16px;
    }

    .fl-lesson-item,
    .fl-lesson-first-item,
    .fl-student-dashboard .fl-section-copy,
    .fl-student-subject-page .fl-section-copy {
        font-size: 14px;
    }

}



/* ==========================================================
   FLORA STUDENT READABILITY V01.2
   Calm spacing + subject landing refinement
   ========================================================== */


/* ----------------------------------------------------------
   1. FLORA CHAT
   Reduce only one point from V01.
   ---------------------------------------------------------- */

.fl-teach-bubble p,
.fl-teach-follow-up {
    font-size: 15.5px;
}

/*
 * FLORA FEEDBACK PARAGRAPH CONSISTENCY V01
 *
 * Encouragement remains a distinct paragraph while using
 * the same readable size as Flora's main feedback.
 */
.fl-teach-encouragement {
    display: block;
    margin-top: 12px;
}


/* ----------------------------------------------------------
   2. TEACHING JOURNEY
   Give each stage more breathing space.
   ---------------------------------------------------------- */

.fl-lesson-stage {
    padding-top: 22px;
    padding-bottom: 22px;
}

.fl-lesson-stage-copy {
    row-gap: 14px;
}

.fl-lesson-stage-top {
    margin-bottom: 10px;
}

.fl-lesson-first-item {
    margin-top: 8px;
    margin-bottom: 10px;
}

.fl-lesson-item-list {
    gap: 10px;
    margin-top: 10px;
}

.fl-lesson-item {
    padding-top: 3px;
    padding-bottom: 3px;
}

.fl-lesson-stage + .fl-lesson-stage {
    margin-top: 14px;
}


/* ----------------------------------------------------------
   3. ENGLISH / SUBJECT LANDING
   Larger, calmer textbook / unit / chapter presentation.
   ---------------------------------------------------------- */

.fl-student-subject-page .fl-card {
    padding-top: 24px;
    padding-bottom: 24px;
}

.fl-student-subject-page h2,
.fl-student-subject-page h3 {
    line-height: 1.35;
}

.fl-student-subject-page .fl-section-title {
    font-size: 21px;
}

.fl-student-subject-page .fl-section-copy {
    font-size: 15px;
    line-height: 1.55;
}


/*
 * Unit headings.
 */
.fl-student-subject-page [class*="unit"] strong,
.fl-student-subject-page [class*="unit"] h3 {
    font-size: 16px;
    line-height: 1.4;
}


/*
 * Chapter / learning-text titles.
 * Scoped only to student subject pages.
 */
.fl-student-subject-page a[href*="/student/learning/"] {
    min-height: 64px;
}

.fl-student-subject-page a[href*="/student/learning/"] strong,
.fl-student-subject-page a[href*="/student/learning/"] span:not(.fl-badge) {
    font-size: 14px;
    line-height: 1.45;
}


/*
 * Small source metadata can remain secondary,
 * but must still be readable by a student.
 */
.fl-student-subject-page .fl-eyebrow {
    font-size: 12.5px;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   4. MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .fl-lesson-stage {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .fl-student-subject-page a[href*="/student/learning/"] {
        min-height: 60px;
    }

}



/* ==========================================================
   FLORA JOURNEY READABILITY FINAL REFINEMENT
   ========================================================== */


/* KPI supporting labels - child-readable */

.fl-lesson-stat-label {
    font-size: 13px;
    line-height: 1.45;
}


/* Teaching Journey introduction - calm breathing space */

.fl-lesson-journey-head {
    padding-top: 28px;
    padding-bottom: 24px;
}


/* Journey supporting sentence */

.fl-lesson-journey-head .fl-section-copy {
    font-size: 14px;
    line-height: 1.5;
}


/* Journey eyebrow */

.fl-lesson-journey-head .fl-eyebrow {
    font-size: 12.5px;
    line-height: 1.4;
}


@media (max-width: 700px) {

    .fl-lesson-journey-head {
        padding-top: 22px;
        padding-bottom: 20px;
    }

}



/* ==========================================================
   FLORA JOURNEY FINAL READABILITY FIX
   Exact production selectors
   ========================================================== */


/* KPI supporting labels */

.fl-lesson-kpi span:not(.fl-kpi-icon) {
    font-size: 13px !important;
    line-height: 1.45;
}


/* Flora Teaching Journey heading area */

.fl-learning-section-head {
    padding-top: 28px;
    padding-bottom: 26px;
}


/* Supporting line below the Journey title */

.fl-learning-section-head p {
    font-size: 14px;
    line-height: 1.5;
}


/* Journey eyebrow */

.fl-learning-section-head .fl-eyebrow {
    font-size: 12.5px;
    line-height: 1.4;
}


@media (max-width: 700px) {

    .fl-learning-section-head {
        padding-top: 22px;
        padding-bottom: 22px;
    }

}



/* ==========================================================
   FLORA TEACHING JOURNEY V01.1
   Item-level progress clarity
   ========================================================== */

.fl-lesson-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fl-lesson-item-status {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
}

.fl-lesson-item-title {
    min-width: 0;
}

.fl-lesson-item.is-current .fl-lesson-item-title {
    font-weight: 700;
}

.fl-lesson-item.is-complete .fl-lesson-item-title {
    opacity: .72;
}

.fl-lesson-item-state {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
}

.fl-lesson-item-state.is-complete {
    opacity: .7;
}

.fl-lesson-item-voice {
    flex: 0 0 auto;
}


@media (max-width: 700px) {

    .fl-lesson-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

}



/* ==========================================================
   FLORA GUIDED PROGRESSION V01.2
   ========================================================== */

.fl-teach-feedback-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fl-teach-continue {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
}

@media (max-width: 700px) {

    .fl-teach-feedback-actions {
        gap: 10px;
    }

    .fl-teach-continue {
        width: auto;
    }

}



/* FLORA CHAT FINETUNE V01
   Student conversation text reduced by one point only.
   Keep all other children-first readability rules intact.
*/
.fl-teach-message .fl-teach-bubble p,
.fl-teach-message .fl-teach-bubble [data-fl-feedback-text],
.fl-teach-message .fl-teach-bubble .fl-teach-encouragement,
.fl-teach-message .fl-teach-bubble [data-fl-follow-up-text] {
}



/* ==========================================================
   FLORA TEACHING FINETUNE V01
   ========================================================== */

/*
 * Final chat refinement:
 * one pixel smaller than the approved readability pass.
 */
.fl-teach-message .fl-teach-bubble p,
.fl-teach-message .fl-teach-bubble [data-fl-feedback-text],
.fl-teach-message .fl-teach-bubble .fl-teach-follow-up {
    font-size: 14.5px;
}

.fl-teach-message .fl-teach-bubble .fl-teach-encouragement {
}


/*
 * Completion acknowledgement.
 */
.fl-teach-completion {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}




/* =========================================================
   READ WITH FLORA V01
   ========================================================= */

.fl-read-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 26px 28px;
    margin-bottom: 28px;
}

.fl-read-entry-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff7d6;
}

.fl-read-entry-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fl-read-entry-copy h2 {
    margin: 5px 0 7px;
    font-size: 21px;
    line-height: 1.25;
}

.fl-read-entry-copy p {
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.6;
}

.fl-read-entry-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    opacity: .72;
}

.fl-reader-page {
    max-width: 1380px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.fl-reader-top {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.fl-reader-back {
    width: fit-content;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fl-reader-title h1 {
    margin: 4px 0 4px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.15;
}

.fl-reader-title p {
    margin: 0;
    font-size: 15px;
    opacity: .72;
}

.fl-reader-progress-card {
    padding: 18px 22px;
    margin-bottom: 22px;
}

.fl-reader-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 14px;
}

.fl-reader-progress-copy strong {
    font-size: 15px;
}

.fl-reader-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(31, 41, 55, .09);
}

.fl-reader-progress-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #e7b928;
    transition: width .25s ease;
}

.fl-reader-workspace {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.fl-reader-map {
    padding: 18px;
    position: sticky;
    top: 20px;
}

.fl-reader-map-head {
    display: grid;
    gap: 3px;
    margin-bottom: 14px;
}

.fl-reader-map-head strong {
    font-size: 15px;
}

.fl-reader-map-head span {
    font-size: 13px;
    opacity: .65;
}

.fl-reader-map-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.fl-reader-map-item {
    min-width: 0;
    min-height: 72px;
    padding: 10px 5px;
    border: 1px solid rgba(31, 41, 55, .12);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.fl-reader-map-item span,
.fl-reader-map-item small {
    display: block;
}

.fl-reader-map-item span {
    font-size: 20px;
    font-weight: 800;
}

.fl-reader-map-item small {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
    opacity: .68;
    white-space: nowrap;
}

.fl-reader-map-item.is-current {
    border-color: #e7b928;
    background: #fff8dc;
}

.fl-reader-map-item.is-complete:not(.is-current) {
    background: rgba(40, 160, 90, .07);
}

.fl-reader-book {
    min-width: 0;
    padding: clamp(24px, 4vw, 48px);
}

.fl-reader-book-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(31, 41, 55, .1);
}

.fl-reader-book-head strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.fl-reader-page-chip {
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(31, 41, 55, .06);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.fl-reader-book-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 10px;
}

.fl-reader-speed-control {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--fl-text-secondary);

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.fl-reader-speed-control select {
    min-height: 34px;
    padding: 6px 28px 6px 10px;

    border: 1px solid var(--fl-border);
    border-radius: 6px;

    color: var(--fl-text);
    background: #fff;

    font: inherit;
    cursor: pointer;
}

.fl-reader-speed-control select:focus {
    outline: 2px solid rgba(49, 88, 224, .18);
    outline-offset: 2px;
}

.fl-reader-speed-control select:disabled {
    cursor: wait;
    opacity: .7;
}


.fl-reader-passage {
    display: none;
}

.fl-reader-passage.is-active {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.fl-reader-passage-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff4bd;
    font-size: 16px;
    font-weight: 800;
}

.fl-reader-passage p {
    margin: 0;
    max-width: 900px;
    font-size: clamp(19px, 1.7vw, 23px);
    line-height: 1.85;
    letter-spacing: .005em;
}

.fl-reader-controls {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-top: 30px;
    margin-top: 34px;
    border-top: 1px solid rgba(31, 41, 55, .1);
}

.fl-reader-primary-controls {
    display: flex;
    gap: 10px;
}

.fl-reader-controls button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.fl-reader-help {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px 17px;
    margin-top: 24px;
    border-radius: 8px;
    background: rgba(40, 160, 90, .06);
}

.fl-reader-help p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .fl-read-entry {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fl-read-entry-action {
        grid-column: 1 / -1;
    }

    .fl-reader-workspace {
        grid-template-columns: 1fr;
    }

    .fl-reader-map {
        position: static;
    }

    .fl-reader-map-list {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 640px) {
    .fl-read-entry {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .fl-reader-map-list {
        grid-template-columns: repeat(5, 1fr);
    }

    .fl-reader-book {
        padding: 22px 18px;
    }

    .fl-reader-book-head,
    .fl-reader-controls {
        display: grid;
    }

    .fl-reader-passage.is-active {
        grid-template-columns: 1fr;
    }

    .fl-reader-primary-controls {
        display: grid;
    }

    .fl-reader-controls .fl-btn {
        width: 100%;
    }

    .fl-reader-passage p {
        font-size: 19px;
        line-height: 1.75;
    }
}


/* Read With Flora narration V01 */

.fl-reader-word {
    border-radius: 3px;
    transition:
        background-color .08s ease,
        box-shadow .08s ease;
}

.fl-reader-word.is-speaking {
    background: #ffe36e;
    box-shadow:
        0 0 0 2px #ffe36e;
}

.fl-reader-passage.is-reading {
    border-radius: 10px;
}

.fl-reader-audio-unavailable {
    opacity: .55;
}

@media (max-width: 900px) {
    .fl-reader-map-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fl-reader-map-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fl-reader-map-item {
        min-height: 64px;
        padding: 8px 3px;
    }

    .fl-reader-map-item span {
        font-size: 18px;
    }

    .fl-reader-map-item small {
        font-size: 9px;
    }
}


@media (max-width: 680px) {
    .fl-reader-book-head {
        flex-direction: column;
        align-items: stretch;
    }

    .fl-reader-book-meta {
        justify-content: flex-start;
    }

    .fl-reader-speed-control {
        width: 100%;
        justify-content: space-between;
    }

    .fl-reader-speed-control select {
        max-width: 190px;
        width: 100%;
    }
}


/* READ WITH FLORA WORD HELP V01 */

.fl-reader-word-help {
    appearance: none;
    padding: 0 1px;
    border: 0;
    border-bottom: 2px dotted #7652ba;
    border-radius: 2px;
    color: inherit;
    background: transparent;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    cursor: help;
}

.fl-reader-word-help:hover,
.fl-reader-word-help:focus-visible,
.fl-reader-word-help.is-open {
    color: #6841b3;
    background: #f2edff;
    outline: none;
}

.fl-reader-word-help.is-speaking {
    color: inherit;
    background: #ffe36e;
    box-shadow: 0 0 0 2px #ffe36e;
}

.fl-reader-word-popover {
    position: fixed;
    z-index: 1200;
    width: min(290px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid #ddd5f4;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(31, 41, 55, .18);
}

.fl-reader-word-popover[hidden] {
    display: none;
}

.fl-reader-word-popover strong {
    display: block;
    color: #6841b3;
    font-size: 17px;
    line-height: 1.3;
    text-transform: capitalize;
}

.fl-reader-word-popover p {
    margin: 7px 0 12px;
    color: var(--fl-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.fl-reader-word-listen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #d9dfea;
    border-radius: 7px;
    color: #3157d5;
    background: #ffffff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.fl-reader-word-listen:hover {
    background: #f5f7ff;
}

.fl-reader-word-listen:disabled {
    cursor: wait;
    opacity: .65;
}


/* Student pronunciation preference V01 */

.fl-settings-accent-block {
    margin-top: 26px;
    padding-top: 24px;

    border-top:
        1px solid rgba(31, 41, 55, .10);
}

.fl-settings-accent-head {
    margin-bottom: 16px;
}

.fl-settings-accent-head h3 {
    margin: 5px 0 0;

    color: var(--fl-text);

    font-size: 18px;
    line-height: 1.35;
}

.fl-settings-accent-head p {
    margin: 6px 0 0;

    color: var(--fl-text-secondary);

    font-size: 14px;
    line-height: 1.5;
}

.fl-settings-choice-grid.is-accent {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .fl-settings-choice-grid.is-accent {
        grid-template-columns: 1fr;
    }
}


/* Pronunciation preview buttons V01 */

.fl-settings-pronunciation-preview {
    margin-top: 14px;
    padding: 8px 11px;

    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    border:
        1px solid rgba(49, 86, 220, .20);
    border-radius: 8px;

    color: #3156dc;
    background: #ffffff;

    font: inherit;
    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease;
}

.fl-settings-pronunciation-preview:hover {
    border-color: rgba(49, 86, 220, .42);
    background: #f4f7ff;
}

.fl-settings-pronunciation-preview:disabled {
    cursor: wait;
    opacity: .72;
}


/* Flora choice-then-explain activity V01 */

.fl-teach-choice-activity {
    margin: 2px 0 22px;
}

.fl-teach-choice-prompt {
    margin: 0 0 13px;
    color: #172033;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.45;
}

.fl-teach-choice-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fl-teach-choice-card {
    position: relative;
    display: grid;
    grid-template-columns:
        48px minmax(0, 1fr) 26px;
    gap: 13px;
    align-items: center;
    min-height: 100px;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    color: #172033;
    text-align: left;
    cursor: pointer;
    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.fl-teach-choice-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(24, 35, 58, .09);
}

.fl-teach-choice-card:focus-visible {
    outline: 3px solid rgba(53, 91, 225, .28);
    outline-offset: 2px;
}

.fl-teach-choice-card.is-tone-1 {
    background: #fff8df;
}

.fl-teach-choice-card.is-tone-2 {
    background: #f1edff;
}

.fl-teach-choice-card.is-tone-3 {
    background: #eaf7ff;
}

.fl-teach-choice-card.is-tone-4 {
    background: #eaf8ef;
}

.fl-teach-choice-card.is-selected {
    border-color: #355be1;
    box-shadow:
        0 7px 20px rgba(53, 91, 225, .14);
}

.fl-teach-choice-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .82);
    font-size: 25px;
}

.fl-teach-choice-copy {
    min-width: 0;
}

.fl-teach-choice-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.3;
}

.fl-teach-choice-copy small {
    display: block;
    color: #526079;
    font-size: 15px;
    line-height: 1.45;
}

.fl-teach-choice-check {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #355be1;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    opacity: 0;
    transform: scale(.7);
    transition:
        opacity .16s ease,
        transform .16s ease;
}

.fl-teach-choice-card.is-selected
.fl-teach-choice-check {
    opacity: 1;
    transform: scale(1);
}

.fl-teach-choice-help {
    margin: 13px 0 0;
    color: #526079;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .fl-teach-choice-grid {
        grid-template-columns: 1fr;
    }

    .fl-teach-choice-card {
        min-height: 92px;
    }
}


/* Completed Flora activity actions V01 */

.fl-lesson-item-completed-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.fl-lesson-item-completed-actions
.fl-lesson-item-review,
.fl-lesson-item-completed-actions
.fl-lesson-item-practice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.fl-lesson-item-completed-actions
.fl-lesson-item-review {
    border: 1px solid rgba(53, 91, 225, .24);
    background: rgba(53, 91, 225, .08);
    color: #294fc9;
}

.fl-lesson-item-completed-actions
.fl-lesson-item-practice {
    margin-left: 0;
}

.fl-lesson-item-completed-actions
a:hover {
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .fl-lesson-item-completed-actions {
        width: 100%;
        margin: 9px 0 0;
    }
}


/* Guided Memory Builder V01 */

.fl-memory-builder {
    display: grid;
    gap: 22px;
    margin: 2px 0 22px;
    padding: 20px;
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(239, 244, 255, .92),
            rgba(247, 241, 255, .92)
        );
}

.fl-memory-builder-step {
    display: grid;
    gap: 12px;
}

.fl-memory-builder-prompt {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.fl-memory-person-grid,
.fl-memory-moment-grid {
    display: grid;
    gap: 10px;
}

.fl-memory-person-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.fl-memory-moment-grid {
    grid-template-columns:
        repeat(auto-fit, minmax(145px, 1fr));
}

.fl-memory-choice {
    position: relative;
    display: grid;
    grid-template-columns:
        34px minmax(0, 1fr) 23px;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 12px 13px;
    border: 2px solid transparent;
    border-radius: 11px;
    background: rgba(255, 255, 255, .88);
    color: #172033;
    text-align: left;
    cursor: pointer;
    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.fl-memory-choice:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 17px rgba(31, 45, 72, .09);
}

.fl-memory-choice:focus-visible {
    outline: 3px solid rgba(53, 91, 225, .25);
    outline-offset: 2px;
}

.fl-memory-choice strong {
    font-size: 15.5px;
    line-height: 1.35;
}

.fl-memory-choice.is-selected {
    border-color: #355be1;
    background: #fff;
    box-shadow:
        0 6px 17px rgba(53, 91, 225, .13);
}

.fl-memory-choice-check {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #355be1;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: scale(.7);
    transition:
        opacity .15s ease,
        transform .15s ease;
}

.fl-memory-choice.is-selected
.fl-memory-choice-check {
    opacity: 1;
    transform: scale(1);
}

.fl-memory-builder-help {
    margin: -3px 0 0;
    color: #526079;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .fl-memory-person-grid,
    .fl-memory-moment-grid {
        grid-template-columns: 1fr;
    }

    .fl-memory-builder {
        padding: 16px;
    }
}

/* ==========================================================
   FLORA MOTIVATIONAL PARAGRAPH FINAL V01.1
   ========================================================== */

.fl-teach-bubble p.fl-teach-encouragement {
    display: block;
    margin: 0;
    padding-top: 14px;
    color: #3f6f5b;
}

/* ==========================================================
   FLORA MOTIVATION EXACT TYPOGRAPHY V01
   ========================================================== */

/*
 * No font properties are declared here.
 * As a normal paragraph inside .fl-teach-bubble, this element
 * now receives exactly the same font family, size, weight and
 * line height as Flora's main feedback paragraph.
 */
.fl-teach-bubble p.fl-teach-encouragement {
    display: block;
    margin: 0;
    padding-top: 14px;
    color: #3f6f5b;
}

/* ==========================================================
   FLORA MOTIVATION TYPOGRAPHY DEFINITIVE V01
   ========================================================== */

.fl-teach-bubble .fl-teach-encouragement {
    display: block !important;
    margin: 0 !important;
    padding-top: 14px !important;
    font-family: inherit !important;
    font-size: 15.5px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #3f6f5b !important;
}



/* FLORA CAUSE-AND-EFFECT MATCH V01 */

.fl-teach-cause-effect {
    display: grid;
    gap: 14px;
}

.fl-teach-cause-effect-board {
    display: grid;
    grid-template-columns:
        minmax(220px, 0.85fr)
        48px
        minmax(300px, 1.3fr);
    align-items: center;
    gap: 16px;
}

.fl-teach-cause-card {
    display: grid;
    gap: 10px;
    min-height: 150px;
    align-content: center;
    padding: 22px;
    border: 1px solid #f0cf70;
    border-radius: 14px;
    background: #fff8dc;
}

.fl-teach-cause-card span {
    color: #8a6415;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fl-teach-cause-card strong {
    color: #172033;
    font-size: 17px;
    line-height: 1.55;
}

.fl-teach-cause-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #e8eeff;
    color: #315bdd;
    font-size: 24px;
    font-weight: 800;
}

.fl-teach-effect-side {
    display: grid;
    gap: 12px;
}

.fl-teach-effect-prompt {
    margin: 0;
    color: #172033;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.fl-teach-effect-grid {
    display: grid;
    gap: 10px;
}

.fl-teach-effect-card {
    display: grid;
    grid-template-columns: 42px 1fr 28px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e7f1;
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.fl-teach-effect-card:hover {
    border-color: #9db1ee;
    background: #f8faff;
    transform: translateY(-1px);
}

.fl-teach-effect-card.is-selected {
    border-color: #315bdd;
    background: #eef3ff;
}

.fl-teach-effect-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: #f4f6fb;
    font-size: 21px;
}

.fl-teach-effect-card strong {
    font-size: 16px;
    line-height: 1.5;
}

.fl-teach-effect-check {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #315bdd;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    opacity: 0;
}

.fl-teach-effect-card.is-selected
.fl-teach-effect-check {
    opacity: 1;
}

.fl-teach-cause-effect-help {
    margin: 0;
    color: #59667d;
    font-size: 15.5px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .fl-teach-cause-effect-board {
        grid-template-columns: 1fr;
    }

    .fl-teach-cause-card {
        min-height: auto;
    }

    .fl-teach-cause-arrow {
        margin-inline: auto;
        transform: rotate(90deg);
    }
}


/* FLORA CONCLUSION DETECTIVE V01 */

.fl-teach-conclusion-quiz {
    display: grid;
    gap: 16px;
}

.fl-teach-conclusion-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #f0edff;
    color: #5d46b5;
    font-size: 15.5px;
    line-height: 1.5;
}

.fl-teach-conclusion-status span {
    font-weight: 800;
}

.fl-teach-conclusion-status strong {
    color: #172033;
    font-size: 15.5px;
}

.fl-teach-conclusion-list {
    display: grid;
    gap: 12px;
}

.fl-teach-conclusion-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border: 2px solid #e3e7ef;
    border-radius: 13px;
    background: #ffffff;
}

.fl-teach-conclusion-card.is-answered {
    border-color: #b7c5ed;
    background: #fafbff;
}

.fl-teach-conclusion-number {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: #eef2ff;
    color: #315bdd;
    font-size: 17px;
    font-weight: 800;
}

.fl-teach-conclusion-card p {
    margin: 0;
    color: #172033;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.55;
}

.fl-teach-conclusion-choices {
    display: flex;
    gap: 8px;
}

.fl-teach-conclusion-choices button {
    min-width: 88px;
    padding: 10px 14px;
    border: 2px solid #dde3ed;
    border-radius: 10px;
    background: #ffffff;
    color: #344054;
    font-size: 15.5px;
    font-weight: 750;
    cursor: pointer;
}

.fl-teach-conclusion-choices button:hover {
    border-color: #9eb0e5;
    background: #f7f9ff;
}

.fl-teach-conclusion-choices button.is-selected {
    border-color: #315bdd;
    background: #315bdd;
    color: #ffffff;
}

.fl-teach-conclusion-help {
    margin: 0;
    color: #59667d;
    font-size: 15.5px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .fl-teach-conclusion-card {
        grid-template-columns: 40px 1fr;
    }

    .fl-teach-conclusion-choices {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .fl-teach-conclusion-choices button {
        width: 100%;
    }
}


/* FLORA STORY BRIDGE V01 */

.fl-teach-story-bridge {
    display: grid;
    gap: 16px;
}

.fl-teach-story-bridge-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #edf7f2;
    color: #28705b;
    font-size: 15.5px;
    line-height: 1.5;
}

.fl-teach-story-bridge-head span,
.fl-teach-story-bridge-head strong {
    font-size: 15.5px;
    font-weight: 800;
}

.fl-teach-story-bridge-head strong {
    color: #172033;
}

.fl-teach-story-bridge-track {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        38px
        minmax(0, 1fr)
        38px
        minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
}

.fl-teach-story-step {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 17px;
    border: 2px solid #e2e7ef;
    border-radius: 14px;
    background: #ffffff;
}

.fl-teach-story-step.is-step-1 {
    background: #fff9e8;
}

.fl-teach-story-step.is-step-2 {
    background: #f3efff;
}

.fl-teach-story-step.is-step-3 {
    background: #eef9f3;
}

.fl-teach-story-step.is-ready {
    border-color: #6684dd;
}

.fl-teach-story-step-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-teach-story-step-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 21px;
}

.fl-teach-story-step-label {
    color: #315bdd;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fl-teach-story-step-prompt {
    margin: 0;
    color: #172033;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
}

.fl-teach-story-step-options {
    display: grid;
    gap: 9px;
}

.fl-teach-story-step-options button {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 9px;
    width: 100%;
    padding: 11px;
    border: 2px solid rgba(87, 101, 128, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: #344054;
    text-align: left;
    cursor: pointer;
}

.fl-teach-story-step-options button > span {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border: 2px solid #9aa6ba;
    border-radius: 50%;
    background: #ffffff;
}

.fl-teach-story-step-options button strong {
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.5;
}

.fl-teach-story-step-options button.is-selected {
    border-color: #315bdd;
    background: #eef3ff;
    color: #172033;
}

.fl-teach-story-step-options
button.is-selected > span {
    border: 5px solid #315bdd;
}

.fl-teach-story-bridge-arrow {
    display: grid;
    place-items: center;
    color: #6684dd;
    font-size: 25px;
    font-weight: 800;
}

.fl-teach-story-bridge-help {
    margin: 0;
    color: #59667d;
    font-size: 15.5px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .fl-teach-story-bridge-track {
        grid-template-columns: 1fr;
    }

    .fl-teach-story-bridge-arrow {
        min-height: 30px;
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .fl-teach-story-bridge-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* FLORA TAKE A STAND V01 */

.fl-teach-take-stand {
    display: grid;
    gap: 16px;
}

.fl-teach-stand-statement {
    display: grid;
    gap: 7px;
    padding: 18px 20px;
    border: 1px solid #d8def0;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #f4f6ff,
        #faf8ff
    );
}

.fl-teach-stand-statement span {
    color: #315bdd;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fl-teach-stand-statement strong {
    color: #172033;
    font-size: 19px;
    line-height: 1.5;
}

.fl-teach-stand-scale {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.fl-teach-stand-option {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 9px;
    min-height: 120px;
    padding: 17px;
    border: 2px solid #e1e6ef;
    border-radius: 14px;
    background: #ffffff;
    color: #172033;
    cursor: pointer;
}

.fl-teach-stand-option.is-position-1 {
    background: #eef9f3;
}

.fl-teach-stand-option.is-position-2 {
    background: #fff8e5;
}

.fl-teach-stand-option.is-position-3 {
    background: #fff1f1;
}

.fl-teach-stand-option:hover,
.fl-teach-stand-option.is-selected {
    border-color: #315bdd;
    transform: translateY(-1px);
}

.fl-teach-stand-icon {
    font-size: 28px;
    line-height: 1;
}

.fl-teach-stand-option strong {
    font-size: 16px;
    line-height: 1.5;
}

.fl-teach-stand-check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #315bdd;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
}

.fl-teach-stand-option.is-selected
.fl-teach-stand-check {
    opacity: 1;
}

.fl-teach-stand-help {
    margin: 0;
    color: #59667d;
    font-size: 15.5px;
    line-height: 1.55;
}

.fl-teach-stand-input {
    min-height: 54px;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .fl-teach-stand-scale {
        grid-template-columns: 1fr;
    }

    .fl-teach-stand-option {
        grid-template-columns: 42px 1fr 26px;
        justify-items: start;
        align-items: center;
        min-height: auto;
        text-align: left;
    }

    .fl-teach-stand-check {
        position: static;
    }
}


/* FLORA BINOMIAL MATCH & LOCK V01 */

.fl-teach-binomial-match {
    display: grid;
    gap: 16px;
}

.fl-teach-binomial-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #eef3ff;
    font-size: 15.5px;
    line-height: 1.5;
}

.fl-teach-binomial-progress span {
    color: #315bdd;
    font-weight: 800;
}

.fl-teach-binomial-progress strong {
    color: #172033;
    font-size: 15.5px;
}

.fl-teach-binomial-board {
    display: grid;
    grid-template-columns: 0.85fr 1.35fr;
    gap: 18px;
}

.fl-teach-binomial-column {
    display: grid;
    align-content: start;
    gap: 11px;
}

.fl-teach-binomial-column h3 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.5;
}

.fl-teach-binomial-list {
    display: grid;
    gap: 9px;
}

.fl-teach-binomial-term,
.fl-teach-binomial-meaning {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 57px;
    padding: 12px 14px;
    border: 2px solid #e1e6ef;
    border-radius: 11px;
    background: #ffffff;
    color: #344054;
    text-align: left;
    cursor: pointer;
}

.fl-teach-binomial-term strong,
.fl-teach-binomial-meaning strong {
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.45;
}

.fl-teach-binomial-term > span,
.fl-teach-binomial-meaning > span {
    color: #8995a8;
    font-size: 19px;
    font-weight: 800;
}

.fl-teach-binomial-term:hover,
.fl-teach-binomial-meaning:hover,
.fl-teach-binomial-term.is-selected {
    border-color: #718ce1;
    background: #f5f7ff;
}

.fl-teach-binomial-term.is-selected > span {
    color: #315bdd;
}

.fl-teach-binomial-term.is-matched,
.fl-teach-binomial-meaning.is-matched {
    border-color: #67ad91;
    background: #eef9f3;
    color: #24634f;
    cursor: default;
    opacity: 1;
}

.fl-teach-binomial-term.is-matched > span,
.fl-teach-binomial-meaning.is-matched > span {
    color: #2f8b69;
}

.fl-teach-binomial-term.is-matched > span::before,
.fl-teach-binomial-meaning.is-matched > span::before {
    content: "✓";
}

.fl-teach-binomial-term.is-matched > span,
.fl-teach-binomial-meaning.is-matched > span {
    font-size: 0;
}

.fl-teach-binomial-term.is-matched > span::before,
.fl-teach-binomial-meaning.is-matched > span::before {
    font-size: 17px;
}

.fl-teach-binomial-term.is-wrong,
.fl-teach-binomial-meaning.is-wrong {
    border-color: #dc7777;
    background: #fff2f2;
}

.fl-teach-binomial-help {
    margin: 0;
    color: #59667d;
    font-size: 15.5px;
    line-height: 1.55;
}

.fl-teach-binomial-challenge {
    display: grid;
    gap: 13px;
    padding: 18px;
    border: 1px solid #e1cf78;
    border-radius: 14px;
    background: #fff9df;
}

.fl-teach-binomial-challenge[hidden] {
    display: none;
}

.fl-teach-binomial-challenge > div {
    display: grid;
    gap: 5px;
}

.fl-teach-binomial-challenge span {
    color: #8b681e;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fl-teach-binomial-challenge p {
    margin: 0;
    color: #172033;
    font-size: 16px;
    line-height: 1.55;
}

.fl-teach-binomial-sentence {
    min-height: 54px;
    font-size: 16px;
}

.fl-teach-binomial-challenge small {
    color: #59667d;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .fl-teach-binomial-board {
        grid-template-columns: 1fr;
    }

    .fl-teach-binomial-progress {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================
   FLORA DESIGN SYSTEM: PROGRESS AND GUIDED ACTIVITIES
   Shared components, governed by the existing global tokens.
   Views contain content and state only. The approved subject,
   reader and chapter styles above remain unchanged.
   ========================================================== */
:root {
    --fl-copy-size: 16px;
    --fl-copy-leading: 1.65;
    --fl-space-1: 6px;
    --fl-space-2: 12px;
    --fl-space-3: 18px;
    --fl-space-4: 24px;
    --fl-space-5: 32px;
}

/* Shared text and meters. Native progress uses values, never inline CSS. */
.fl-component-copy, .fl-progress-page { font-family: var(--fl-font); font-size: var(--fl-copy-size); line-height: var(--fl-copy-leading); color: var(--fl-text); }
.fl-component-copy :is(p, input, textarea, select, legend), .fl-progress-page p { font-family: inherit; font-size: inherit; line-height: inherit; }
.fl-component-copy p, .fl-progress-page p { margin-block: 0; }
.fl-component-copy .fl-eyebrow, .fl-progress-page .fl-eyebrow { font-size: 11px; line-height: 1.5; }
.fl-progress-meter { display: block; width: 100%; height: 10px; border: 0; border-radius: var(--fl-radius-sm); overflow: hidden; appearance: none; background: var(--fl-border); color: var(--fl-success); }
.fl-progress-meter::-webkit-progress-bar { background: var(--fl-border); border-radius: var(--fl-radius-sm); }
.fl-progress-meter::-webkit-progress-value { background: var(--fl-success); border-radius: var(--fl-radius-sm); }
.fl-progress-meter::-moz-progress-bar { background: var(--fl-success); border-radius: var(--fl-radius-sm); }
.fl-progress-meter-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--fl-space-1); margin-bottom: var(--fl-space-2); }
.fl-progress-meter-label span { color: var(--fl-text-secondary); }
.fl-progress-muted, .fl-progress-caption, .fl-progress-privacy { color: var(--fl-text-secondary); }
.fl-progress-success { color: var(--fl-success); }
.fl-progress-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fl-space-2); }
.fl-progress-page :is(a, summary):focus-visible, .fl-workshop :is(button, input, select, textarea, a, summary):focus-visible { outline: 3px solid var(--fl-primary); outline-offset: 3px; }
.fl-workshop [hidden], .fl-progress-page [hidden] { display: none !important; }

/* Parent progress: the same hero, cards, headings and buttons as Flora. */
.fl-progress-page { padding-bottom: var(--fl-space-4); }
.fl-progress-page > .fl-btn { margin-bottom: var(--fl-space-3); }
.fl-progress-family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fl-space-4); }
.fl-progress-child { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.fl-progress-child-header { display: flex; align-items: center; gap: var(--fl-space-3); padding: var(--fl-space-4); border-bottom: 1px solid var(--fl-border); }
.fl-progress-avatar { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: var(--fl-radius-md); background: var(--fl-primary-soft); color: var(--fl-primary); font-size: 22px; font-weight: 700; }
.fl-progress-child-body { display: flex; flex-direction: column; flex: 1; gap: var(--fl-space-4); padding: var(--fl-space-4); }
.fl-progress-child-body > .fl-progress-actions { margin-top: auto; padding-top: var(--fl-space-1); }
.fl-progress-page .fl-section-title { line-height: 1.4; }
.fl-progress-child-header p { margin-top: var(--fl-space-1); }
.fl-progress-current { border-left: 3px solid var(--fl-primary); padding: var(--fl-space-2) var(--fl-space-3); background: var(--fl-surface-accent); border-radius: var(--fl-radius-sm); }
.fl-progress-current > strong { display: block; margin-top: var(--fl-space-1); }
.fl-progress-empty { display: grid; align-content: start; gap: var(--fl-space-2); padding-block: var(--fl-space-2); }
.fl-progress-panel { padding: var(--fl-space-4); margin-bottom: var(--fl-space-4); }
.fl-progress-panel > p { margin-top: var(--fl-space-2); }
.fl-progress-support { display: flex; gap: var(--fl-space-3); align-items: flex-start; margin-block: var(--fl-space-4); padding: var(--fl-space-4); }
.fl-progress-support > div { display: grid; gap: var(--fl-space-2); min-width: 0; }
.fl-progress-support > .fl-kpi-icon { flex-shrink: 0; }
.fl-progress-support-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--fl-radius-md); color: var(--fl-success); background: var(--fl-success-soft); font-size: 24px; }
.fl-progress-privacy { margin-block: var(--fl-space-4) !important; padding-top: var(--fl-space-3); border-top: 1px solid var(--fl-border); }
.fl-progress-profile { display: flex; align-items: center; gap: var(--fl-space-3); padding: var(--fl-space-5); margin-bottom: var(--fl-space-4); }
.fl-progress-profile p { margin-top: var(--fl-space-2); color: var(--fl-text-secondary); }
.fl-progress-child-switch { display: flex; flex-wrap: wrap; gap: var(--fl-space-2); margin-bottom: var(--fl-space-4); }
.fl-progress-child-switch [aria-current] { color: var(--fl-primary); background: var(--fl-primary-soft); border-color: var(--fl-primary); }
.fl-progress-skills { display: flex; flex-wrap: wrap; gap: var(--fl-space-2); margin-top: var(--fl-space-3); }
.fl-progress-skills > span { padding: var(--fl-space-1) var(--fl-space-2); background: var(--fl-success-soft); color: var(--fl-success); border-radius: var(--fl-radius-sm); }
.fl-progress-chapter-heading { margin-bottom: var(--fl-space-4); }
.fl-progress-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fl-space-4); padding-block: var(--fl-space-4); }
.fl-progress-facts > div > span { display: block; margin-bottom: var(--fl-space-1); color: var(--fl-text-secondary); }
.fl-progress-stages { border-top: 1px solid var(--fl-border); }
.fl-progress-stage { border-bottom: 1px solid var(--fl-border); }
.fl-progress-stage > summary { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fl-space-2); padding-block: var(--fl-space-3); font-weight: 600; cursor: pointer; }
.fl-progress-stage > summary::after { content: '+'; margin-left: var(--fl-space-1); color: var(--fl-primary); }
.fl-progress-stage[open] > summary::after { content: '−'; }
.fl-progress-stage-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--fl-radius-sm); color: var(--fl-primary); background: var(--fl-primary-soft); }
.fl-progress-stage-count { margin-left: auto; color: var(--fl-text-secondary); font-weight: 400; }
.fl-progress-stage ul { list-style: none; padding: 0 0 var(--fl-space-3) 48px; margin: 0; }
.fl-progress-stage li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--fl-space-3); padding: var(--fl-space-2) 0; }
.fl-progress-status { color: var(--fl-text-secondary); text-align: right; }
.fl-progress-done { color: var(--fl-success); }

/* Guided activities 11–17. fw-* retain existing behavior hooks; visual
   primitives are fl-card, fl-btn, fl-input, fl-eyebrow and fl-section-title. */
.fl-workshop { padding-bottom: var(--fl-space-4); }
.fl-workshop .fw-back { display: inline-flex; align-items: center; margin-bottom: var(--fl-space-4); }
.fl-workshop .fw-card { padding: var(--fl-space-4); }
.fl-workshop .fw-session-note { margin-top: var(--fl-space-3); padding: var(--fl-space-3); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-md); background: var(--fl-primary-soft); }
.fl-workshop .fw-status-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--fl-space-2); margin-block: var(--fl-space-4) var(--fl-space-2); }
.fl-workshop .fw-progress-label { font-weight: 600; }
.fl-workshop :is(.fw-save-status, .fw-intro, .fw-optional, .fw-dictation-status, .fw-voice-note, .fw-example) { color: var(--fl-text-secondary); }
.fl-workshop .fw-round-nav { display: flex; flex-wrap: wrap; gap: var(--fl-space-2); margin-block: var(--fl-space-3) var(--fl-space-4); }
.fl-workshop .fw-round-button { min-width: 44px; min-height: 44px; }
.fl-workshop .fw-round-button[aria-current] { background: var(--fl-primary); border-color: var(--fl-primary); color: var(--fl-surface); }
.fl-workshop button:disabled { opacity: .65; cursor: default; }
.fl-workshop .fw-stage { scroll-margin-top: var(--fl-space-4); }
.fl-workshop .fw-round { display: grid; gap: var(--fl-space-3); }
.fl-workshop .fw-instruction { font-weight: 600; }
.fl-workshop .fw-lesson { display: grid; gap: var(--fl-space-1); padding: var(--fl-space-3); border-radius: var(--fl-radius-md); background: var(--fl-primary-soft); border-left: 3px solid var(--fl-primary); }
.fl-workshop :is(.fw-form, .fw-fields) { display: grid; gap: var(--fl-space-3); }
.fl-workshop .fw-field { min-width: 0; margin: 0; padding: var(--fl-space-3); border: 1px solid var(--fl-border); border-radius: var(--fl-radius-md); background: var(--fl-surface-soft); }
.fl-workshop .fw-field legend { max-width: 100%; padding-inline: var(--fl-space-1); font-weight: 600; white-space: normal; }
.fl-workshop .fw-optional { font-weight: 400; }
.fl-workshop .fw-field-prompt { margin-bottom: var(--fl-space-2); white-space: pre-wrap; }
.fl-workshop .fw-options { display: flex; flex-wrap: wrap; gap: var(--fl-space-2); padding-top: var(--fl-space-1); }
.fl-workshop .fw-option { min-height: 48px; min-width: 76px; max-width: 100%; border: 1px solid var(--fl-border-strong); border-radius: var(--fl-radius-md); padding: var(--fl-space-2) var(--fl-space-3); background: var(--fl-surface); color: var(--fl-text); text-align: left; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.fl-workshop .fw-option:hover:not(:disabled) { border-color: var(--fl-primary); background: var(--fl-primary-soft); }
.fl-workshop .fw-option.is-selected { border-color: var(--fl-primary); background: var(--fl-primary-soft); color: var(--fl-primary); box-shadow: 0 0 0 1px var(--fl-primary); }
.fl-workshop .fw-option:disabled { opacity: 1; }
.fl-workshop .fw-input { display: block; width: 100%; min-height: 48px; resize: vertical; }
.fl-workshop textarea.fw-input { min-height: 126px; }
.fl-workshop .fw-input:read-only { background: var(--fl-surface-soft); }
.fl-workshop .fw-dictate { margin-top: var(--fl-space-2); }
.fl-workshop .fw-dictate[aria-pressed=true] { color: var(--fl-danger); }
.fl-workshop .fw-dictation-status:empty { display: none; }
.fl-workshop :is(.fw-form-actions, .fw-next-actions, .fw-timer-controls) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fl-space-2); }
.fl-workshop .fw-next-actions:not(:empty) { margin-top: var(--fl-space-3); }
.fl-workshop .fw-error { border: 1px solid var(--fl-danger); border-radius: var(--fl-radius-md); padding: var(--fl-space-3); margin-bottom: var(--fl-space-4); background: var(--fl-surface); color: var(--fl-danger); }
.fl-workshop .fw-error .fl-btn { margin-top: var(--fl-space-2); }
.fl-workshop .fw-feedback { display: grid; gap: 0; margin-top: var(--fl-space-4); }
.fl-workshop :is(.fw-feedback, .fw-review-feedback) .fl-eyebrow { margin-bottom: var(--fl-space-2); }
.fl-workshop p.fw-feedback-text { margin: 0; color: var(--fl-text); font-family: inherit; font-size: inherit; font-weight: 400; line-height: inherit; white-space: pre-wrap; }
.fl-workshop p.fw-feedback-text + p.fw-feedback-text { margin-top: var(--fl-space-3); }
.fl-workshop p.fw-encouragement { color: var(--fl-success); }
.fl-workshop p.fw-follow-up { color: var(--fl-text-secondary); }
.fl-workshop .fw-audio-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fl-space-2); padding: var(--fl-space-3); border-radius: var(--fl-radius-md); background: var(--fl-success-soft); }
.fl-workshop .fw-audio-tools label { display: flex; align-items: center; gap: var(--fl-space-2); }
.fl-workshop .fw-speed { width: auto; min-height: 44px; }
.fl-workshop .fw-timer { padding: var(--fl-space-3); border-radius: var(--fl-radius-md); background: var(--fl-warning-soft); }
.fl-workshop .fw-timer-controls { margin-top: var(--fl-space-2); }
.fl-workshop .fw-timer-value { min-width: 75px; font-size: 22px; font-weight: 700; }
.fl-workshop .fw-kind-choice .fw-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-workshop .fw-kind-choice .fw-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-workshop .fw-kind-choice .fw-option { text-align: center; min-width: 0; }
.fl-workshop .fw-kind-writing textarea { min-height: 176px; }
.fl-workshop .fw-kind-language .fw-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-workshop .fw-kind-language .fw-field:first-child { grid-column: 1 / -1; }
.fl-workshop .fw-round-complete { color: var(--fl-success); }
.fl-workshop .fw-review { display: grid; gap: var(--fl-space-3); margin-top: var(--fl-space-4); }
.fl-workshop .fw-completion { display: grid; justify-items: start; gap: var(--fl-space-2); }
.fl-workshop .fw-completion-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--fl-radius-md); color: var(--fl-success); background: var(--fl-success-soft); font-size: 28px; }
.fl-workshop .fw-review-round { display: grid; gap: var(--fl-space-2); }
.fl-workshop .fw-review-answers { margin: 0; }
.fl-workshop .fw-review-answers dt { margin-top: var(--fl-space-3); font-weight: 600; }
.fl-workshop .fw-review-answers dd { margin: var(--fl-space-1) 0 0; padding: var(--fl-space-2) var(--fl-space-3); border-radius: var(--fl-radius-sm); background: var(--fl-surface-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-workshop .fw-review-feedback { padding-top: var(--fl-space-3); margin-top: var(--fl-space-2); border-top: 1px solid var(--fl-border); }
.fl-workshop :is(.fw-letter-preview, .fw-language-preview) h2 { margin-bottom: var(--fl-space-3); }
.fl-workshop .fw-letter-paper { max-width: 790px; margin-inline: auto; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm); background: var(--fl-surface-soft); padding: var(--fl-space-5); }
.fl-workshop .fw-letter-paper p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: var(--fl-space-3); }
.fl-workshop .fw-letter-paper p.fw-letter-meta { margin-bottom: var(--fl-space-1); }
.fl-workshop .fw-letter-subject { font-weight: 600; padding-top: var(--fl-space-3); }
.fl-workshop .fw-legacy { margin-top: var(--fl-space-4); }
.fl-workshop .fw-legacy summary { cursor: pointer; font-weight: 600; }
.fl-workshop .fw-legacy-turn { padding-top: var(--fl-space-4); margin-top: var(--fl-space-4); border-top: 1px solid var(--fl-border); }
.fl-workshop .fw-legacy-turn > p { margin-top: var(--fl-space-2); white-space: pre-wrap; }
.fl-workshop .fw-voice-note { margin-top: var(--fl-space-4); }
.fl-workshop .fw-table-scroll { width: 100%; overflow-x: auto; }
.fl-workshop .fw-language-table { width: 100%; border-collapse: collapse; font-size: inherit; }
.fl-workshop .fw-language-table caption { text-align: left; padding-bottom: var(--fl-space-2); color: var(--fl-text-secondary); }
.fl-workshop .fw-language-table :is(th, td) { padding: var(--fl-space-2); border: 1px solid var(--fl-border); min-width: 120px; text-align: start; line-height: inherit; }
.fl-workshop .fw-language-table thead { background: var(--fl-surface-soft); }
.fl-workshop .fw-language-table th { font-weight: 600; }
.fl-workshop .fw-feedback-listen { justify-self: start; margin-top: var(--fl-space-3); }
.fl-workshop .fw-conflict-draft { margin-top: var(--fl-space-3); }
.fl-workshop .fw-conflict-draft pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: var(--fl-space-3); border-radius: var(--fl-radius-sm); background: var(--fl-surface); user-select: text; }

@media (max-width: 1100px) {
    .fl-progress-family-grid { grid-template-columns: 1fr; }
    .fl-workshop .fw-kind-choice .fw-fields { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .fl-progress-profile { align-items: flex-start; padding: var(--fl-space-4); }
    .fl-progress-facts { grid-template-columns: 1fr; gap: var(--fl-space-3); }
    .fl-progress-stage-count { width: 100%; margin-left: 48px; }
    .fl-progress-stage > summary::after { display: none; }
    .fl-progress-stage li { flex-direction: column; gap: var(--fl-space-1); }
    .fl-progress-status { text-align: left; }
    .fl-progress-actions > .fl-btn { width: 100%; }
    .fl-progress-child-header, .fl-progress-child-body, .fl-progress-panel, .fl-progress-support, .fl-workshop .fw-card { padding: var(--fl-space-3); }
    .fl-workshop .fw-field { padding: var(--fl-space-2); }
    .fl-workshop .fw-kind-language .fw-fields { grid-template-columns: 1fr; }
    .fl-workshop .fw-form-actions > .fl-btn { flex: 1 1 100%; }
    .fl-workshop .fw-letter-paper { padding: var(--fl-space-3); }
}

.fl-progress-stage-symbol.is-complete { color: var(--fl-success); background: var(--fl-success-soft); }

/* Grade 3 reader and picture-choice extensions use the shared Flora system. */
.fl-reader-illustration {
    grid-column: 2;
    width: min(520px, 100%);
    margin: 0 0 var(--fl-space-3);
}
.fl-reader-illustration img {
    display: block;
    width: 100%;
    max-height: 340px;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-md);
    object-fit: contain;
    background: var(--fl-surface-soft);
}

/*
 * Decorative chapter scene. The soft artwork stays behind
 * the passage and never competes with or narrows the text.
 */
.fl-reader-page[data-reader-theme="sinbad-sea"]
    .fl-reader-passage-stage {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-lg);
    background:
        url('/assets/learning/tulips-grade3-sinbad/sinbad-reader-background.jpg')
        center / cover no-repeat;
}

.fl-reader-page[data-reader-theme="sinbad-sea"]
    .fl-reader-passage {
    position: relative;
    z-index: 1;
}

.fl-reader-page[data-reader-theme="sinbad-sea"]
    .fl-reader-passage p {
    max-width: 820px;
    padding: clamp(18px, 2.5vw, 30px);
    border-radius: var(--fl-radius-md);
    background: var(--fl-surface);
    box-shadow: var(--fl-shadow);
}
.fl-reader-page[data-fl-grade-band="primary"] .fl-reader-passage p {
    font-size: clamp(21px, 2vw, 25px);
    line-height: 1.9;
}
.fl-reader-page[data-fl-grade-band="primary"] :is(
    .fl-reader-progress-copy,
    .fl-reader-help p,
    .fl-reader-map-head,
    .fl-reader-speed-control,
    .fl-reader-page-chip
) { font-size: 16px; }
.fl-workshop .fw-option.has-image {
    display: grid;
    align-content: start;
    gap: var(--fl-space-2);
    min-width: min(190px, 100%);
    padding: var(--fl-space-2);
}
.fl-workshop .fw-option-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--fl-radius-sm);
    object-fit: cover;
    background: var(--fl-surface-soft);
}
.fl-workshop .fw-option-label { display: block; font-weight: 600; }
.fl-workshop[data-fl-grade-band="primary"] {
    --fl-copy-size: 18px;
    --fl-copy-leading: 1.65;
}
.fl-workshop[data-fl-grade-band="primary"] .fw-option { min-height: 56px; }
@media (max-width: 640px) {
    .fl-reader-illustration { grid-column: 1; }

    .fl-reader-page[data-reader-theme="sinbad-sea"]
        .fl-reader-passage-stage {
        min-height: 320px;
        padding: var(--fl-space-3);
    }
}
