/*
Theme Name: Thynk
Theme URI: https://think-ai.test
Author: Muhammad Afdansyah (Digicrati)
Author URI: https://think-ai.test
Description: Thynk Learning Platform
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: thynk
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{

    /* ========================================
       BRAND
    ======================================== */

    --brand-teal:#2FCDCF;
    --brand-teal-hover:#25B5BF;
    --brand-teal-soft:rgba(47, 205, 207, 0.10);
    --brand-navy:#002D4D;


    /* ========================================
       PRIMARY
    ======================================== */

    --primary:#2FCDCF;
    --primary-dark:#002D4D;


    /* ========================================
       SIDEBAR
    ======================================== */

    --sidebar:#002D4D;
    --sidebar-hover:#123F5C;


    /* ========================================
       BACKGROUND
    ======================================== */

    --content-background:#EEF3F6;

    --surface:#FFFFFF;

    --muted-background:#F6F9FB;


    /* ========================================
       TEXT
    ======================================== */

    --text:#002D4D;
    --text-primary:#002D4D;

    --text-light:#475569;
    --text-secondary:#64748B;


    /* ========================================
       BORDER
    ======================================== */

    --border:#D3DEE7;
    --border-color:#D3DEE7;


    /* ========================================
       RADIUS
    ======================================== */

    --radius-sm:8px;
    --radius-md:14px;
    --radius-lg:18px;


    /* ========================================
       SHADOW
    ======================================== */

    --shadow:
        0 8px 24px rgba(0,45,77,.07);

}

/* ========================================
   RESET
======================================== */

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

html,
body{
    height:100%;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f6f7fb;
}

/* ========================================
   APP LAYOUT
======================================== */

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

.think-sidebar{
    width:260px;
    background:var(--brand-navy);
    color:#fff;
    padding:24px;
}

.think-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--content-background);
}

.think-topbar{
    height:72px;
    background:var(--surface);
    border-bottom:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    padding:0 24px;
}

.think-content {
    flex: 1;
    min-width: 0;
    padding: 32px;
    background: var(--content-background);
}

/* ========================================
   GLOBAL PAGE CONTAINER
======================================== */

.think-page-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}

.think-footer{
    height:60px;
    background:var(--surface);
    border-top:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
}
/* ========================================
   SIDEBAR
======================================== */

.sidebar-logo{
    margin-bottom:40px;
}

.sidebar-logo h2{
    color:#ffffff;
    font-size:36px;
    font-weight:700;
}

.sidebar-nav ul{
    list-style:none;
    margin-bottom:24px;
}

.sidebar-nav li{
    margin-bottom:12px;
}

.sidebar-nav a{
    color:#ffffff;
    text-decoration:none;
    display:block;
    padding:10px 12px;
    font-size:14px;
    font-weight:500;
    border-radius:8px;
    transition:0.2s;
}

.sidebar-nav a:hover{
    background:rgba(255,255,255,.1);
}

.sidebar-nav hr{
    border:none;
    border-top:1px solid rgba(255,255,255,.12);
    margin:24px 0;
}
/* ========================================
   TOPBAR
======================================== */

.think-topbar{

    height:72px;

    background:var(--surface);

    border-bottom:1px solid #e5e7eb;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 32px;

}

.page-title{

    font-size:24px;

    font-weight:700;

    color:#111827;

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:16px;

}

.notification-btn{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#f3f4f6;

    cursor:pointer;

    font-size:18px;

}

.user-avatar{

    width:44px;

    height:44px;

    border-radius:50%;

    background:#2563eb;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:700;

}
/* ========================================
   FOOTER
======================================== */

.think-footer{

    height:56px;

    background:var(--surface);

    border-top:1px solid #e5e7eb;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 32px;

    font-size:14px;

    color:#6b7280;

}
/* ===========================
   Dashboard Content
=========================== */

.dashboard-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}

.dashboard-header{
    margin-bottom:32px;
}

.dashboard-header h2{
    font-size:32px;
    margin-bottom:8px;
    color:var(--text);
}

.dashboard-header p{
    color:#f8f9f9;
}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-bottom:32px;

}

.card-title{

    font-size:15px;

    color:var(--text-light);

    margin-bottom:18px;

}

.card-value{

    font-size:42px;

    font-weight:700;

    color:var(--text);

    line-height:1;

}

.card-description{

    margin-top:16px;

    color:var(--primary);

    font-size:14px;

    font-weight:600;

}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {

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

}

.continue-learning,
.recent-activity{

    background:var(--surface);

    min-height:420px;

    border-radius:16px;

    padding:24px;

    box-shadow:var(--shadow);

}
/* ===========================
   Button Component
=========================== */

.thynk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    border: 0;
    border-radius: var(--radius-md);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

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

.thynk-btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.thynk-btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.thynk-btn-primary:focus-visible {
    outline: 3px solid rgba(47, 205, 207, 0.25);
    outline-offset: 2px;
}
.thynk-performance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.thynk-performance-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.thynk-performance-card__label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 12px;
}

.thynk-performance-card__value {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f2a4a;
}

.thynk-performance-card__meta {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 900px) {
    .thynk-performance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .thynk-performance-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------
   Continue Learning
--------------------------------- */

.thynk-continue-learning {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.thynk-continue-learning__header {
    margin-bottom: 24px;
}

.thynk-continue-learning__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f2a4a;
}

.thynk-continue-learning__info {
    margin-bottom: 24px;
}

.thynk-continue-learning__category {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.thynk-continue-learning__info h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #0f2a4a;
}

.thynk-continue-learning__info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.thynk-continue-learning__progress {
    margin-bottom: 24px;
}

.thynk-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.thynk-progress__header strong {
    color: #0f2a4a;
}

.thynk-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 999px;
}

.thynk-progress__bar {
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
}

.thynk-continue-learning__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.thynk-continue-learning__activity {
    font-size: 13px;
    color: #64748b;
}

/* ---------------------------------
   Recent Activity
--------------------------------- */

.thynk-recent-activity {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.thynk-recent-activity__header {
    margin-bottom: 20px;
}

.thynk-recent-activity__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f2a4a;
}

.thynk-recent-activity__list {
    display: flex;
    flex-direction: column;
}

.thynk-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.thynk-activity-item:first-child {
    padding-top: 0;
}

.thynk-activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.thynk-activity-item__content {
    min-width: 0;
}

.thynk-activity-item__category {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.thynk-activity-item__content h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #0f2a4a;
}

.thynk-activity-item__time {
    font-size: 12px;
    color: #64748b;
}

.thynk-activity-item__score {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f2a4a;
}

/* =========================================================
   WRITING TASK LIST
   ========================================================= */

.writing-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}


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

.writing-header {
    margin-bottom: 28px;
}

.writing-eyebrow {
    display: block;
    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--primary);
    text-transform: uppercase;
}

.writing-header h1 {
    margin: 0;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;

    color: var(--text-primary);
}

.writing-header p {
    margin: 8px 0 0;

    font-size: 15px;
    color: var(--text-secondary);
}


/* Toolbar
--------------------------------------------------------- */

.writing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}


.writing-tabs {
    display: flex;
    align-items: center;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    background: var(--surface);
}


.writing-tab {
    display: inline-flex;
    align-items: center;

    min-height: 42px;
    padding: 0 18px;

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.writing-tab:hover {
    color: var(--text-primary);
}


.writing-tab.is-active {
    color: #ffffff;
    background: var(--primary);
}


/* Filter
--------------------------------------------------------- */

.writing-filter {
    min-height: 42px;

    padding: 0 36px 0 14px;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);

    background: var(--surface);

    color: var(--text-primary);

    font-size: 14px;

    cursor: pointer;
}


/* Task Grid
--------------------------------------------------------- */

.writing-task-grid {
    display: grid;

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

    gap: 18px;
}


/* Task Card
--------------------------------------------------------- */

.writing-task-card {
    display: flex;
    flex-direction: column;

    min-height: 230px;

    padding: 22px;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);

    background: var(--surface);

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


.writing-task-card:hover {
    border-color: rgba(47, 205, 207, .45);

    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);

    transform: translateY(-2px);
}


/* Card Top
--------------------------------------------------------- */

.writing-task-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}


.writing-task-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(47, 205, 207, .12);

    color: var(--primary);

    font-size: 18px;
}


.writing-task-category {
    padding: 5px 9px;

    border-radius: 999px;

    background: var(--muted-background);

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 500;
}


/* Card Body
--------------------------------------------------------- */

.writing-task-card-body {
    flex: 1;
}


.writing-task-type {
    display: block;

    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 600;

    color: var(--primary);
}


.writing-task-title {
    margin: 0 0 8px;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;

    color: var(--text-primary);
}


.writing-task-meta {
    font-size: 13px;
    color: var(--text-secondary);
}


/* Card Footer
--------------------------------------------------------- */

.writing-task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 22px;
}


.writing-task-status {
    font-size: 13px;
    color: var(--text-secondary);
}


.writing-task-action {
    min-height: 38px;
    padding: 0 14px;

    font-size: 13px;
}

@media (max-width: 1100px) {

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

}


@media (max-width: 768px) {

    .writing-page {
        padding: 20px;
    }


    .writing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }


    .writing-tabs {
        overflow-x: auto;
    }


    .writing-tab {
        flex: 0 0 auto;
    }


    .writing-filter {
        width: 100%;
    }


    .writing-task-grid {
        grid-template-columns: 1fr;
    }

}

/* ========================================
   WRITING OVERVIEW
======================================== */

.writing-page{
    width:100%;
}

/* Header */

.writing-header{
    margin-bottom:32px;
}

.writing-eyebrow{
    display:inline-block;
    margin-bottom:8px;

    font-size:14px;
    font-weight:600;
    color:var(--primary);
}

.writing-header h1{
    font-size:32px;
    font-weight:700;
    color:var(--text);
    margin-bottom:8px;
}

.writing-header p{
    font-size:16px;
    color:var(--text-light);
}


/* Toolbar */

.writing-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:24px;
    margin-bottom:24px;
}


/* Tabs */

.writing-tabs{
    display:flex;
    align-items:center;

    border:1px solid var(--border);
    background:var(--surface);

    border-radius:var(--radius-sm);

    overflow:hidden;
}

.writing-tab{
    display:flex;
    align-items:center;

    min-height:44px;
    padding:0 18px;

    color:var(--text);
    text-decoration:none;

    font-size:14px;
    font-weight:500;

    white-space:nowrap;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.writing-tab:hover{
    background:#F0FDFA;
    color:var(--primary-dark);
}

.writing-tab.is-active{
    background:var(--brand-teal);
    color:#ffffff;
}


/* Filter */

.writing-filter{
    min-width:150px;
    height:44px;

    padding:0 14px;

    border:1px solid var(--border);
    border-radius:var(--radius-sm);

    background:var(--surface);
    color:var(--text);

    font-size:14px;

    cursor:pointer;
}


/* Task Grid */

.writing-task-grid{
    display:grid;

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

    gap:20px;
}


/* Task Card */

.writing-task-card{
    display:flex;
    flex-direction:column;

    min-height:210px;

    padding:20px;

    background:var(--surface);

    border:1px solid var(--border);
    border-radius:var(--radius-md);

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

.writing-task-card:hover{
    transform:translateY(-2px);

    box-shadow:var(--shadow);

    border-color:var(--brand-teal);
}


/* Card Top */

.writing-task-card-top{
    display:flex;
    align-items:center;

    gap:12px;

    margin-bottom:18px;
}

.writing-task-icon{
    width:40px;
    height:40px;

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

    flex-shrink:0;

    border-radius:50%;

    background:rgba(47, 205, 207, 0.14);
    color:var(--brand-teal);

    font-size:18px;
    font-weight:700;
}

.writing-task-category{
    font-size:13px;
    font-weight:600;

    color:var(--brand-teal);
}


/* Card Body */

.writing-task-card-body{
    flex:1;
}

.writing-task-type{
    display:block;

    margin-bottom:6px;

    font-size:13px;

    color:var(--text-light);
}

.writing-task-title{
    margin:0 0 8px;

    font-size:19px;
    line-height:1.3;

    font-weight:700;

    color:var(--text);
}

.writing-task-meta{
    display:block;

    font-size:14px;

    color:var(--text-light);
}


/* Card Footer */

.writing-task-card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:16px;

    margin-top:24px;
}

.writing-task-status{
    font-size:14px;
    color:var(--text-light);
}


/* Secondary Button */

.thynk-btn-secondary{
    min-height:40px;

    padding:0 16px;

    background:transparent;

    border:1px solid var(--brand-teal);
    border-radius:var(--radius-sm);

    color:var(--brand-navy);

    font-size:14px;

    cursor:pointer;
}

.thynk-btn-secondary:hover{
    background:var(--brand-teal-soft);
    color:var(--brand-navy);

    transform:translateY(-1px);
}


/* ========================================
   WRITING RESPONSIVE
======================================== */

@media (max-width:1100px){

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

    .writing-toolbar{
        align-items:flex-start;
        flex-direction:column;
    }

    .writing-tabs{
        width:100%;
        overflow-x:auto;
    }

    .writing-filter{
        width:100%;
    }

}


@media (max-width:700px){

    .writing-task-grid{
        grid-template-columns:1fr;
    }

    .writing-header h1{
        font-size:28px;
    }

    .writing-tabs{
        width:100%;
    }

    .writing-tab{
        padding:0 14px;
    }

}

/* =========================================
   WRITING TASK — TASK BRIEF
========================================= */

.writing-task-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 40px 64px;
}

.writing-task-header {
    margin-bottom: 28px;
}

.writing-task-eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    font-size: 14px;
    font-weight: 600;

    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.writing-task-header h1 {
    margin: 0;

    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;

    color: var(--text-primary);
}

.writing-task-header h2 {
    margin: 8px 0 0;

    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;

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


/* =========================================
   MAIN CONTENT CARD
========================================= */

.writing-task-content {
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    padding: 32px;

    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}


/* =========================================
   INSTRUCTIONS
========================================= */

.writing-task-instructions {
    padding-bottom: 28px;

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

.writing-task-label {
    display: block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 600;

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

.writing-task-instructions p {
    max-width: 850px;
    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    color: var(--text-primary);
}


/* =========================================
   META INFORMATION
========================================= */

.writing-task-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 16px;

    margin-top: 28px;
}

.writing-task-meta-item {
    padding: 20px;

    background: #f8fafc;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.writing-task-meta-item span {
    display: block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 500;

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

.writing-task-meta-item strong {
    display: block;

    font-size: 15px;
    font-weight: 600;

    color: var(--text-primary);
}


/* =========================================
   ACTION
========================================= */

.writing-task-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 32px;
}

.writing-task-actions .thynk-btn {
    min-width: 140px;
}

@media (max-width: 768px) {

    .writing-task-page {
        padding: 32px 20px 48px;
    }

    .writing-task-header h1 {
        font-size: 30px;
    }

    .writing-task-header h2 {
        font-size: 20px;
    }

    .writing-task-content {
        padding: 24px;
    }

    .writing-task-meta {
        grid-template-columns: 1fr;
    }

    .writing-task-actions {
        justify-content: stretch;
    }

    .writing-task-actions .thynk-btn {
        width: 100%;
    }

}

/* =========================================
   WRITING WORKSPACE
========================================= */

.writing-workspace {
    min-height: calc(100vh - 140px);
    background: var(--bg);
}


/* =========================================
   WORKSPACE HEADER
========================================= */

.writing-workspace-header {
    display: flex;
    align-items: center;

    min-height: 64px;
    padding: 0 28px;

    background: #ffffff;
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 10;
}

.writing-workspace-back {
    color: var(--text-secondary);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;
}

.writing-workspace-back:hover {
    color: var(--primary);
}

.writing-workspace-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-left: 28px;
}

.writing-workspace-title span {
    font-size: 16px;
    font-weight: 600;

    color: var(--text-primary);
}

.writing-workspace-title strong {
    font-size: 14px;
    font-weight: 500;

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

.writing-workspace-timer {
    margin-left: auto;

    padding: 8px 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    font-size: 14px;
    font-weight: 600;

    color: var(--text-primary);
    background: #ffffff;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.writing-workspace-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;

    gap: 20px;

    max-width: 1400px;
    margin: 0 auto;

    padding: 24px;
}


/* =========================================
   LEFT COLUMN
========================================= */

.writing-workspace-left {
    display: flex;
    flex-direction: column;

    gap: 20px;

    min-width: 0;
}


/* =========================================
   PANELS
========================================= */

.writing-task-panel,
.writing-answer-panel,
.writing-tutor-panel {
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}


/* =========================================
   TASK PANEL
========================================= */

.writing-task-panel {
    padding: 28px;
}

.writing-panel-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;

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

.writing-task-panel h1 {
    margin: 0 0 14px;

    font-size: 24px;
    line-height: 1.3;

    color: var(--text-primary);
}

.writing-task-panel p {
    margin: 0;

    max-width: 850px;

    font-size: 15px;
    line-height: 1.7;

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


/* =========================================
   TASK IMAGE / CHART
========================================= */

.writing-task-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 260px;

    margin-top: 24px;

    border: 1px dashed var(--border);
    border-radius: var(--radius-md);

    background: #f8fafc;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================
   ANSWER PANEL
========================================= */

.writing-answer-panel {
    padding: 28px;
}

.writing-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.writing-word-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.writing-answer-editor {
    display: block;

    width: 100%;
    min-height: 320px;

    margin-top: 12px;
    padding: 16px;

    box-sizing: border-box;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: #ffffff;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;

    color: var(--text-primary);

    resize: vertical;

    outline: none;
}

.writing-answer-editor:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(47, 205, 207, .12);
}

.writing-answer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 16px;
}

.writing-answer-footer span {
    font-size: 13px;
    color: var(--text-secondary);
}


/* =========================================
   AI TUTOR
========================================= */

.writing-workspace-right {
    min-width: 0;
}

.writing-tutor-panel {
    display: flex;
    flex-direction: column;

    height: calc(100vh - 180px);

    min-height: 600px;

    position: sticky;
    top: 88px;
}

.writing-tutor-header {
    padding: 22px 20px;

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

.writing-tutor-header strong {
    display: block;

    font-size: 15px;
    color: var(--text-primary);
}

.writing-tutor-messages {
    flex: 1;

    padding: 20px;

    overflow-y: auto;
}

.writing-tutor-message {
    max-width: 90%;

    padding: 14px 16px;

    border-radius: var(--radius-md);

    background: #f8fafc;

    font-size: 14px;
    line-height: 1.6;

    color: var(--text-primary);
}


/* =========================================
   QUICK ACTIONS
========================================= */

.writing-tutor-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    padding: 16px 20px;

    border-top: 1px solid var(--border);
}

.writing-tutor-actions button {
    padding: 8px 11px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: #ffffff;

    font-family: inherit;
    font-size: 12px;

    color: var(--text-secondary);

    cursor: pointer;
}

.writing-tutor-actions button:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* =========================================
   TUTOR INPUT
========================================= */

.writing-tutor-input {
    padding: 16px 20px;

    border-top: 1px solid var(--border);
}

.writing-tutor-input input {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

.writing-tutor-input input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(47, 205, 207, .12);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .writing-workspace-main {
        grid-template-columns: 1fr;
    }

    .writing-tutor-panel {
        position: static;

        height: 500px;
        min-height: 500px;
    }

}


@media (max-width: 640px) {

    .writing-workspace-header {
        padding: 0 16px;
    }

    .writing-workspace-title {
        margin-left: 16px;
    }

    .writing-workspace-title strong {
        display: none;
    }

    .writing-workspace-main {
        padding: 16px;
    }

    .writing-task-panel,
    .writing-answer-panel {
        padding: 20px;
    }

    .writing-answer-footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .writing-answer-footer .thynk-btn {
        width: 100%;
    }

}

.listening-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}

.listening-test-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.listening-test-card {
    background: #ffffff;
    border: 1px solid #d9d9df;
    border-radius: 8px;
    padding: 20px 24px;
}

.listening-test-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.listening-test-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

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

    border-radius: 50%;
    background: rgba(47, 205, 207, 0.14);
    color: var(--brand-teal);
    font-size: 20px;
}

.listening-test-title {
    flex: 1;
}

.listening-test-title h2 {
    margin: 2px 0 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.listening-test-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;

    background: #fff3c4;
    color: #8a6a00;

    font-size: 12px;
    line-height: 1;
}

.listening-test-card-status {
    margin-top: 22px;

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

    color: #747487;
    font-size: 14px;
}

.listening-test-action {
    white-space: nowrap;
}

.listening-test-card-divider {
    height: 1px;
    background: #e5e5ea;
    margin: 18px 0;
}

.listening-test-parts-label {
    display: block;
    margin-bottom: 10px;

    color: #747487;
    font-size: 13px;
}

.listening-test-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listening-part-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--muted-background);
    color: var(--brand-navy);

    font-size: 13px;
    text-decoration: none;
}

.listening-part-link:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

@media (max-width: 1000px) {
    .listening-test-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.listening-brief {
    max-width: 1000px;
    margin: 0 auto;
}

.listening-brief-header {
    margin-bottom: 28px;
}

.listening-brief-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: var(--brand-teal);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.listening-brief-header h1 {
    margin: 0 0 10px;

    color: #102a4c;
    font-size: 34px;
    line-height: 1.2;
}

.listening-brief-header p {
    margin: 0;

    color: #667085;
    font-size: 16px;
}


.listening-brief-card {
    padding: 32px;

    background: #ffffff;
    border: 1px solid #e1e4ea;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 42, 76, 0.05);
}


.listening-brief-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;

    margin-bottom: 32px;
}

.listening-brief-info {
    padding: 20px;

    background: #f8f9fc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
}

.listening-brief-info-label {
    display: block;
    margin-bottom: 8px;

    color: #667085;
    font-size: 14px;
}

.listening-brief-info strong {
    color: #102a4c;
    font-size: 18px;
}


.listening-brief-instructions {
    padding-top: 28px;
    border-top: 1px solid #e4e7ec;
}

.listening-brief-instructions h2 {
    margin: 0 0 16px;

    color: #102a4c;
    font-size: 20px;
}

.listening-brief-instructions ul {
    margin: 0;
    padding-left: 20px;

    color: #667085;
    line-height: 1.8;
}


.listening-brief-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 32px;
    padding-top: 24px;

    border-top: 1px solid #e4e7ec;
}

.listening-brief-actions a {
    text-decoration: none;
}


@media (max-width: 700px) {

    .listening-brief-card {
        padding: 22px;
    }

    .listening-brief-info-grid {
        grid-template-columns: 1fr;
    }

    .listening-brief-header h1 {
        font-size: 28px;
    }

    .listening-brief-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }


}
.listening-workspace {
    min-height: 100vh;
    background: var(--background);
}

.listening-workspace-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.workspace-back {
    color: var(--text);
    text-decoration: none;
}

.workspace-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.workspace-info span {
    color: var(--text-light);
}

.workspace-timer {
    color: var(--text);
    font-weight: 600;
}

.workspace-finish {
    background: var(--primary-dark);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    cursor: pointer;
}

.listening-workspace-content {
    padding: 32px;
}

.listening-question-area {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.listening-audio-placeholder,
.listening-questions-placeholder {
    margin-top: 24px;
    padding: 40px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-light);
}

.listening-part-navigation {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.listening-part-navigation button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
}

.listening-part-navigation button.active {
    background: var(--primary);
    color: var(--primary-dark);
    border-color: var(--primary);
}

/* =========================================
   LISTENING AUDIO PLAYER
========================================= */

.listening-audio-player {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.listening-audio-player-label {
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 600;

    color: var(--text);
}

.listening-audio {
    display: block;
    width: 100%;
}

/* STAB-01: high-contrast assessment surfaces */
.think-main,
.think-content {
    background: var(--content-background);
}

/* =========================================
   READING PAGE
========================================= */

.reading-page {
    flex: 1;
    min-width: 0;
    padding: 32px;
    background: var(--content-background);
}

/* PAGE HEADER */

.reading-page-header {
    margin-bottom: 24px;
}

.reading-page-header .eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--brand-teal);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reading-page-header h1 {
    margin: 0 0 6px;

    color: var(--text-primary);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.reading-page-header p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 15px;
}


/* =========================================
   READING TOOLBAR
========================================= */

.reading-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.reading-category {
    display: inline-flex;
    align-items: center;

    padding: 8px 14px;

    border-radius: 6px;

    background: var(--brand-teal);
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}

.reading-filter {
    min-width: 180px;

    padding: 10px 14px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface);
    color: var(--text-primary);

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
}


/* =========================================
   READING TEST GRID
========================================= */

.reading-test-grid {
    display: grid;

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

    gap: 16px;
}


/* =========================================
   READING TEST CARD
========================================= */

.reading-test-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 20px 24px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow);
}


/* =========================================
   CARD HEADER
========================================= */

.reading-card-header {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    min-height: 64px;
}

.reading-card-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

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

    border-radius: 50%;

    background: rgba(47, 205, 207, 0.14);
    color: var(--brand-teal);

    font-size: 20px;
    font-weight: 600;
}

.reading-card-title {
    flex: 1;
    min-width: 0;
}

.reading-card-title h2 {
    margin: 2px 0 8px;

    color: var(--text-primary);

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}


/* =========================================
   CARD BADGE
========================================= */

.reading-card-badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 999px;

    background: #fff3c4;
    color: #8a6a00;

    font-size: 12px;
    line-height: 1;
}


/* =========================================
   CARD STATUS
========================================= */

.reading-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 22px;

    color: var(--text-secondary);

    font-size: 14px;
}

.reading-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 9px 16px;

    border: 1px solid var(--brand-teal);
    border-radius: 8px;

    background: var(--surface);
    color: var(--brand-navy);

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.reading-start-button:hover {
    background: var(--brand-teal);
    color: #ffffff;
}


/* =========================================
   DIVIDER
========================================= */

.reading-card-divider {
    height: 1px;

    margin: 18px 0;

    background: var(--border);
}


/* =========================================
   PRACTICE BY PART
========================================= */

.reading-card-practice {
    margin-top: auto;
}

.reading-practice-label {
    display: block;

    margin-bottom: 10px;

    color: var(--text-secondary);

    font-size: 13px;
}

.reading-parts {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.reading-parts button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: #fafafa;
    color: var(--brand-navy);

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.reading-parts button:hover {
    border-color: var(--brand-teal);

    background: rgba(47, 205, 207, 0.08);

    color: var(--brand-navy);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

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

}


@media (max-width: 700px) {

    .reading-page {
        padding: 24px 16px;
    }

    .reading-toolbar {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .reading-filter {
        width: 100%;
    }

    .reading-test-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 480px) {

    .reading-page-header h1 {
        font-size: 26px;
    }

    .reading-test-card {
        padding: 18px;
    }

}

/* =========================================
   READING TEST BRIEF
========================================= */

.reading-test-brief {
    flex: 1;
    min-width: 0;

    padding: 40px 48px 56px;

    background: var(--content-background);
}


/* =========================================
   BACK LINK
========================================= */

.reading-brief-back {
    display: inline-flex;
    align-items: center;

    margin-bottom: 28px;

    color: var(--brand-navy);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}

.reading-brief-back:hover {
    color: var(--brand-teal);
}


/* =========================================
   HEADER
========================================= */

.reading-brief-header {
    max-width: 900px;

    margin-bottom: 28px;
}

.reading-brief-header .eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--brand-teal);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reading-brief-header h1 {
    margin: 0 0 8px;

    color: var(--brand-navy);

    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.reading-brief-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 15px;
}


/* =========================================
   BRIEF CARD
========================================= */

.reading-brief-card {
    max-width: 1000px;

    padding: 32px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.reading-brief-card h2 {
    margin: 0 0 10px;

    color: var(--brand-navy);

    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.reading-brief-card > p {
    margin: 0;

    max-width: 700px;

    color: var(--text-secondary);

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


/* =========================================
   TEST INFORMATION
========================================= */

.reading-brief-info {
    display: grid;

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

    gap: 16px;

    margin-top: 28px;
}

.reading-brief-info > div {
    padding: 18px 20px;

    background: #F8FAFC;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.reading-brief-info span {
    display: block;

    margin-bottom: 7px;

    color: var(--text-secondary);

    font-size: 13px;
}

.reading-brief-info strong {
    display: block;

    color: var(--brand-navy);

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


/* =========================================
   ACTIONS
========================================= */

.reading-brief-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 32px;

    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.reading-brief-back-button,
.reading-brief-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 20px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* Back */

.reading-brief-back-button {
    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--brand-navy);
}

.reading-brief-back-button:hover {
    border-color: var(--brand-teal);

    color: var(--brand-navy);
}


/* Start Test */

.reading-brief-start-button {
    border: 1px solid var(--brand-teal);

    background: var(--brand-teal);

    color: #ffffff;
}

.reading-brief-start-button:hover {
    border-color: var(--brand-navy);

    background: var(--brand-navy);

    color: #ffffff;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

    .reading-test-brief {
        padding: 32px 24px 48px;
    }

    .reading-brief-info {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .reading-test-brief {
        padding: 24px 16px 40px;
    }

    .reading-brief-header h1 {
        font-size: 26px;
    }

    .reading-brief-card {
        padding: 24px;
    }

    .reading-brief-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .reading-brief-back-button,
    .reading-brief-start-button {
        width: 100%;
    }

}

/* =========================================================
   READING WORKSPACE
   ========================================================= */

.reading-workspace {
    width: 100%;
    min-height: 100%;
    background: var(--content-background);
    color: var(--text);
}


/* =========================================================
   HEADER
   ========================================================= */

.reading-workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 20px 32px;

    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.reading-workspace-back {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.reading-workspace-back:hover {
    color: var(--primary);
}

.reading-workspace-title {
    flex: 1;
}

.reading-workspace-title > span {
    display: block;

    margin-bottom: 3px;

    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
}

.reading-workspace-title h1 {
    margin: 0;

    color: var(--primary-dark);
    font-size: 22px;
    line-height: 1.25;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.reading-workspace-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reading-timer {
    min-width: 72px;

    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.reading-finish-button {
    border: 0;
    border-radius: var(--radius-sm);

    padding: 11px 18px;

    background: var(--primary-dark);
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.reading-finish-button:hover {
    background: var(--sidebar-hover);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.reading-workspace-main {
    padding: 28px 32px 32px;
}

.reading-workspace-content {
    max-width: 1400px;
    margin: 0 auto;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow);

    overflow: hidden;
}


/* =========================================================
   PART HEADER
   ========================================================= */

.reading-part-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 24px;

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

.reading-part-header strong {
    color: var(--primary-dark);
    font-size: 17px;
}

.reading-part-header span {
    color: var(--text-light);
    font-size: 15px;
}


/* =========================================================
   PASSAGE + QUESTIONS
   ========================================================= */

.reading-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    min-height: 560px;
}


/* =========================================================
   PASSAGE
   ========================================================= */

.reading-passage {
    padding: 28px;

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

.reading-passage h2 {
    margin: 0 0 18px;

    color: var(--primary-dark);
    font-size: 20px;
}

.reading-passage p {
    margin: 0;

    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   QUESTIONS
   ========================================================= */

.reading-questions {
    padding: 28px;
}

.reading-questions h2 {
    margin: 0 0 18px;

    color: var(--primary-dark);
    font-size: 20px;
}

.reading-questions p {
    margin: 0;

    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   PART NAVIGATION
   ========================================================= */

.reading-part-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    padding: 18px 24px;

    background: var(--surface);
    border-top: 1px solid var(--border);
}

.reading-part-navigation button {
    min-width: 72px;

    padding: 9px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--surface);
    color: var(--primary-dark);

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

.reading-part-navigation button:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.reading-part-navigation button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .reading-workspace-header {
        padding: 16px 20px;
    }

    .reading-workspace-main {
        padding: 20px;
    }

    .reading-workspace-grid {
        grid-template-columns: 1fr;
    }

    .reading-passage {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

}


@media (max-width: 600px) {

    .reading-workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .reading-workspace-actions {
        width: 100%;
        justify-content: space-between;
    }

    .reading-workspace-main {
        padding: 12px;
    }

    .reading-passage,
    .reading-questions {
        padding: 20px;
    }

}

/* =========================================================
   AUTHENTICATION
   ========================================================= */

.think-auth-page {
    min-height: 100vh;

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

    padding: 40px 20px;

    background: var(--background);
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.think-auth-card {
    width: 100%;
    max-width: 440px;

    padding: 40px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}


/* =========================================================
   BRAND
   ========================================================= */

.think-auth-brand {
    margin-bottom: 28px;

    color: var(--brand-navy);

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

    letter-spacing: 0.04em;
}


/* =========================================================
   HEADER
   ========================================================= */

.think-auth-header {
    margin-bottom: 28px;
}

.think-auth-header h1 {
    margin: 0 0 8px;

    color: var(--brand-navy);

    font-size: 28px;
    line-height: 1.25;
}

.think-auth-header p {
    margin: 0;

    color: var(--text-light);

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


/* =========================================================
   FORM
   ========================================================= */

.think-login-form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.think-form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.think-form-group label {
    color: var(--brand-navy);

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   LABEL ROW
   ========================================================= */

.think-form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.think-form-label-row a {
    color: var(--brand-teal);

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
}

.think-form-label-row a:hover {
    color: var(--brand-navy);
}


/* =========================================================
   INPUT
   ========================================================= */

.think-form-group input[type="text"],
.think-form-group input[type="password"] {
    width: 100%;
    min-height: 46px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--surface);
    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.think-form-group input[type="text"]:focus,
.think-form-group input[type="password"]:focus {
    border-color: var(--brand-teal);

    box-shadow: 0 0 0 3px rgba(47, 205, 207, 0.12);
}

.think-form-group input::placeholder {
    color: #98A2B3;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.think-auth-options {
    margin-top: -4px;
}

.think-remember-me {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--text-light);

    font-size: 13px;

    cursor: pointer;
}

.think-remember-me input {
    width: 15px;
    height: 15px;

    accent-color: var(--brand-teal);
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.think-login-button {
    width: 100%;
    min-height: 46px;

    margin-top: 4px;

    border: 1px solid var(--brand-teal);
    border-radius: var(--radius-sm);

    background: var(--brand-teal);
    color: var(--brand-navy);

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.think-login-button:hover {
    border-color: var(--brand-navy);

    background: var(--brand-navy);
    color: #ffffff;
}


/* =========================================================
   REGISTER
   ========================================================= */

.think-auth-register {
    display: flex;
    justify-content: center;
    gap: 5px;

    margin-top: 28px;

    color: var(--text-light);

    font-size: 13px;
}

.think-auth-register a {
    color: var(--brand-teal);

    font-weight: 600;

    text-decoration: none;
}

.think-auth-register a:hover {
    color: var(--brand-navy);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 520px) {

    .think-auth-page {
        padding: 24px 16px;
    }

    .think-auth-card {
        padding: 28px 22px;
    }

    .think-auth-header h1 {
        font-size: 25px;
    }

}

/* =========================================================
   LOGIN ERROR
   ========================================================= */

.think-login-error {
    margin-bottom: 20px;

    padding: 12px 14px;

    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);

    background: #FEF2F2;
    color: #B42318;

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

/* =========================================================
   USER MENU
   ========================================================= */

.think-user-menu {
    position: relative;
}


/* Remove default marker */

.think-user-menu summary {
    list-style: none;
}

.think-user-menu summary::-webkit-details-marker {
    display: none;
}


/* Avatar */

.think-user-avatar {
    width: 44px;
    height: 44px;

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

    border-radius: 50%;

    background: #2563EB;
    color: #FFFFFF;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    user-select: none;
}


/* Dropdown */

.think-user-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 240px;

    background: #FFFFFF;

    border: 1px solid #E2E8F0;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 45, 77, 0.12);

    padding: 10px;

    z-index: 1000;
}


/* User information */

.think-user-info {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 10px 12px;
}

.think-user-info strong {
    color: #002D4D;

    font-size: 14px;
    font-weight: 700;
}

.think-user-info span {
    color: #64748B;

    font-size: 12px;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* Divider */

.think-user-divider {
    height: 1px;

    background: #E2E8F0;

    margin: 4px 0;
}


/* Logout */

.think-logout-link {
    display: block;

    padding: 10px 12px;

    border-radius: 8px;

    color: #002D4D;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.think-logout-link:hover {
    background: #F5F7FB;
    color: var(--brand-teal);
}/* =========================================================
   PROFILE PAGE
   ========================================================= */

.think-profile-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 40px 64px;
}

.think-profile-header {
    margin-bottom: 32px;
}

.think-section-label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.think-profile-header h1 {
    margin: 0 0 8px;
    color: #063b63;
    font-size: 36px;
    line-height: 1.2;
}

.think-profile-header p {
    margin: 0;
    color: #5d7590;
    font-size: 16px;
}

.think-profile-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 35, 70, 0.08);
}

.think-profile-section {
    padding: 28px 32px;
}

.think-profile-section + .think-profile-section {
    border-top: 1px solid #e5eaf0;
}

.think-profile-section h2 {
    margin: 0 0 20px;
    color: #063b63;
    font-size: 20px;
}

.think-profile-section > p {
    margin: 0 0 20px;
    color: #5d7590;
}

.think-profile-row {
    padding: 16px 0;
    border-bottom: 1px solid #edf1f5;
}

.think-profile-row:last-child {
    border-bottom: 0;
}

.think-profile-label {
    display: block;
    margin-bottom: 6px;
    color: #7a8da3;
    font-size: 13px;
}

.think-profile-row strong {
    color: #123f65;
    font-size: 16px;
}

.think-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    background: var(--brand-teal);
    color: #063b63;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.think-profile-button:hover {
    background: var(--brand-teal-hover);
    color: #063b63;
}

/* =========================================================
   USER DROPDOWN — PROFILE LINK
   ========================================================= */

.think-user-dropdown .think-profile-link,
.think-user-dropdown .think-logout-link {
    display: block;
    padding: 12px 14px;
    color: #063b63;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.think-user-dropdown .think-profile-link:hover {
    background-color: #f1f7fa;
    color: #063b63;
}

.think-user-dropdown .think-logout-link:hover {
    background-color: #fff2f2;
    color: #c0392b;
}

/* =========================================================
   BILLING PAGE
   ========================================================= */

.think-billing-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 40px 64px;
}

.think-billing-header {
    margin-bottom: 32px;
}

.think-billing-header h1 {
    margin: 0 0 8px;
    color: #063b63;
    font-size: 36px;
    line-height: 1.2;
}

.think-billing-header p {
    margin: 0;
    color: #5d7590;
    font-size: 16px;
}

.think-billing-card {
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 35, 70, 0.08);
}

.think-billing-plan {
    padding: 32px;
}

.think-billing-label {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.think-billing-plan h2 {
    margin: 0 0 14px;
    color: #063b63;
    font-size: 24px;
}

.think-billing-price {
    margin-bottom: 12px;
    color: #063b63;
    font-size: 32px;
    font-weight: 700;
}

.think-billing-price span {
    color: #7a8da3;
    font-size: 15px;
    font-weight: 400;
}

.think-billing-plan p {
    margin: 0;
    color: #5d7590;
    line-height: 1.6;
}

.think-billing-divider {
    height: 1px;
    background: #e5eaf0;
}

.think-billing-voucher {
    padding: 28px 32px;
}

.think-billing-voucher h3 {
    margin: 0 0 8px;
    color: #063b63;
    font-size: 18px;
}

.think-billing-voucher p {
    margin: 0 0 18px;
    color: #5d7590;
}

.think-voucher-form {
    display: flex;
    gap: 12px;
}

.think-voucher-form input {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    color: #123f65;
    font-size: 15px;
    outline: none;
}

.think-voucher-form input:focus {
    border-color: var(--brand-teal);
}

.think-voucher-form .think-profile-button {
    border: 0;
    cursor: pointer;
}

.think-billing-summary {
    padding: 24px 32px;
    background: #f7f9fb;
}

.think-summary-row,
.think-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.think-summary-row {
    padding: 8px 0;
    color: #5d7590;
}

.think-summary-row strong {
    color: #123f65;
}

.think-summary-total {
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid #dfe6ed;
    color: #063b63;
    font-size: 18px;
}

.think-summary-total strong {
    font-size: 22px;
}

.think-billing-action {
    padding: 24px 32px 32px;
    text-align: right;
}

.think-billing-button {
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-teal);
    color: #063b63;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.think-billing-button:hover {
    background: var(--brand-teal-hover);
}


/* ---------------------------------------------------------
   Billing — Responsive
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .think-billing-page {
        padding: 32px 20px 48px;
    }

    .think-billing-plan,
    .think-billing-voucher,
    .think-billing-summary,
    .think-billing-action {
        padding-left: 22px;
        padding-right: 22px;
    }

    .think-voucher-form {
        flex-direction: column;
    }

    .think-voucher-form .think-profile-button {
        width: 100%;
    }

    .think-billing-action {
        text-align: stretch;
    }

    .think-billing-button {
        width: 100%;
    }

    .think-summary-row,
    .think-summary-total {
        align-items: flex-start;
    }
}

/* =========================================================
   STAB-01 — SURFACE HIERARCHY
   Purpose:
   - Clearer visual separation between canvas, cards, and inset panels
   - No layout redesign
   - Brand palette remains #2FCDCF / #002D4D
========================================================= */

:root {
    --surface-soft: #F7FAFC;
    --surface-subtle: #F2F6F9;
    --border-strong: #C5D3DE;
    --shadow-card: 0 8px 24px rgba(0, 45, 77, 0.07);
    --shadow-panel: 0 12px 32px rgba(0, 45, 77, 0.08);
}

/* Main application canvas */
.think-main,
.think-content,
.reading-page,
.reading-test-brief {
    background: var(--content-background);
}

/* Primary cards */
.reading-test-card,
.writing-task-card,
.listening-test-card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-card);
}

/* Larger brief / information panels */
.reading-brief-card,
.listening-brief-card {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-panel);
}

/* Inset information tiles */
.reading-brief-info > div,
.listening-brief-info {
    background: var(--surface-soft);
    border-color: var(--border);
}

/* Make hover state clear without introducing another brand color */
.reading-test-card:hover,
.writing-task-card:hover,
.listening-test-card:hover {
    border-color: rgba(47, 205, 207, 0.65);
    box-shadow: 0 10px 28px rgba(0, 45, 77, 0.10);
}

/* Consistent focus treatment */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(47, 205, 207, 0.12);
}

/* Slightly stronger dividers where panels meet */
.reading-brief-actions,
.listening-brief-instructions {
    border-color: var(--border-strong);
}

/* =========================================================
   STAB-01.3 — ASSESSMENT TIMER STATES
========================================================= */

.thynk-assessment-timer {
    font-variant-numeric: tabular-nums;
}

.thynk-assessment-timer.is-warning {
    color: #D97706;
}

.thynk-assessment-timer.is-critical,
.thynk-assessment-timer.is-expired {
    color: #DC2626;
}

/* =========================================================
   SPK UI — SPEAKING LIST + BRIEF
   ========================================================= */

.speaking-page,
.speaking-task-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
}

.speaking-page-header,
.speaking-task-header {
    margin-bottom: 28px;
}

.speaking-page-eyebrow,
.speaking-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.speaking-page-header h1,
.speaking-task-header h1 {
    margin: 0 0 8px;
    color: var(--brand-navy);
    font-size: 32px;
    line-height: 1.2;
}

.speaking-page-header p,
.speaking-task-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.speaking-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.speaking-task-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.speaking-task-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 205, 207, .65);
    box-shadow: 0 10px 28px rgba(0, 45, 77, .10);
}

.speaking-task-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.speaking-task-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-teal-soft);
    color: var(--brand-teal);
    font-size: 14px;
}

.speaking-task-heading {
    flex: 1;
    min-width: 0;
}

.speaking-task-category {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-teal);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.speaking-task-heading h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 13px;
    line-height: 1.35;
}

.speaking-task-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(47, 205, 207, .12);
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.speaking-task-description {
    margin: 18px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.speaking-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

.speaking-task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.speaking-task-status {
    color: var(--text-secondary);
    font-size: 13px;
}

.speaking-task-action,
.speaking-start-action,
.speaking-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.speaking-task-action {
    border: 1px solid var(--brand-teal);
    background: var(--surface);
    color: var(--brand-navy);
}

.speaking-task-action:hover {
    background: var(--brand-teal);
    color: #ffffff;
}

.speaking-back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.speaking-back-link:hover {
    color: var(--brand-teal);
}

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

.speaking-brief-section {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.speaking-brief-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.speaking-brief-section p {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
}

.speaking-brief-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.speaking-brief-meta > div {
    padding: 18px 20px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.speaking-brief-meta span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 13px;
}

.speaking-brief-meta strong {
    color: var(--brand-navy);
    font-size: 15px;
}

.speaking-parts-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.speaking-parts-preview article {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.speaking-parts-preview strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-navy);
}

.speaking-parts-preview span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.speaking-brief-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.speaking-brief-actions > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.speaking-start-action {
    border: 1px solid var(--brand-teal);
    background: var(--brand-teal);
    color: #ffffff;
}

.speaking-start-action:hover {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: #ffffff;
}

.speaking-brief-actions small {
    color: var(--text-secondary);
    font-size: 12px;
}

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

.speaking-empty-state h1,
.speaking-empty-state h2 {
    margin: 0 0 8px;
    color: var(--brand-navy);
}

.speaking-empty-state p {
    margin: 0 0 18px;
    color: var(--text-secondary);
}

.speaking-secondary-action {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--brand-navy);
}

.speaking-secondary-action:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

@media (max-width: 900px) {
    .speaking-task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .speaking-brief-meta,
    .speaking-parts-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .speaking-page,
    .speaking-task-page {
        padding: 24px 16px 40px;
    }

    .speaking-task-grid {
        grid-template-columns: 1fr;
    }

    .speaking-page-header h1,
    .speaking-task-header h1 {
        font-size: 28px;
    }

    .speaking-brief-card {
        padding: 22px;
    }

    .speaking-brief-actions,
    .speaking-brief-actions > div {
        align-items: stretch;
        flex-direction: column;
    }

    .speaking-start-action {
        width: 100%;
    }
}


/* =========================================================
   DASH-USER-01 — Dynamic User Dashboard
   ========================================================= */
.dashboard-header > p {
    color: #64748b;
}

.thynk-performance-card__value {
    overflow-wrap: anywhere;
}

.thynk-progress__detail {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.thynk-dashboard-empty-state {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}

.thynk-dashboard-empty-state--compact {
    min-height: 160px;
}

.thynk-dashboard-empty-state h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f2a4a;
}

.thynk-dashboard-empty-state p {
    max-width: 560px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

@media (max-width: 640px) {
    .dashboard-content {
        padding: 24px 18px;
    }

    .thynk-continue-learning__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   DASH-USER-01B — Continue Test CTA
   ========================================================= */
.thynk-dashboard-continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #002d4d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.thynk-dashboard-continue-btn:hover {
    background: #2bbabd;
    border-color: #2bbabd;
    color: #002d4d;
    transform: translateY(-1px);
}

.thynk-dashboard-continue-btn:focus-visible {
    outline: 3px solid rgba(47, 205, 207, .28);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .thynk-continue-learning__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .thynk-dashboard-continue-btn {
        width: 100%;
    }
}



/* =========================================================
   SKILL-CATEGORY-01 — Functional Skill Category Navigation
   ========================================================= */

.skill-category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.skill-category-tabs {
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.skill-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.skill-category-tab:hover {
    background: var(--brand-teal-soft);
    color: var(--brand-navy);
}

.skill-category-tab.is-active {
    background: var(--brand-teal);
    color: #ffffff;
}

.skill-category-tab:focus-visible {
    outline: 3px solid rgba(47, 205, 207, .25);
    outline-offset: -3px;
}

.skill-category-filter-form {
    flex: 0 0 auto;
    margin: 0;
}

.skill-category-filter {
    min-width: 180px;
    min-height: 42px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--brand-navy);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.skill-category-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-secondary);
    box-shadow: var(--shadow-card);
}

.writing-tabs.skill-category-tabs {
    border-radius: var(--radius-sm);
}

.writing-tab.skill-category-tab {
    min-height: 42px;
    padding: 0 18px;
    color: var(--brand-navy);
}

.writing-tab.skill-category-tab.is-active {
    background: var(--brand-teal);
    color: #ffffff;
}

.listening-page-header {
    margin-bottom: 24px;
}

.listening-page-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-teal);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.listening-page-header h1 {
    margin: 0 0 6px;
    color: var(--brand-navy);
    font-size: 32px;
    line-height: 1.2;
}

.listening-page-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.listening-toolbar,
.speaking-toolbar {
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .skill-category-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .skill-category-tabs,
    .skill-category-filter-form,
    .skill-category-filter,
    .writing-filter,
    .reading-filter {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .skill-category-tab {
        padding: 0 14px;
        font-size: 13px;
    }

    .listening-page-header h1 {
        font-size: 28px;
    }
}

/* Dashboard: scroll di dalam daftar Recent Activity */
.thynk-recent-activity__list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #2fcdcf #edf4f7;
}

.thynk-recent-activity__list::-webkit-scrollbar {
    width: 6px;
}

.thynk-recent-activity__list::-webkit-scrollbar-track {
    background: #edf4f7;
    border-radius: 6px;
}

.thynk-recent-activity__list::-webkit-scrollbar-thumb {
    background: #2fcdcf;
    border-radius: 6px;
}

/* =========================================================
   WRITING TASK BRIEF — UI POLISH
   ========================================================= */

.writing-task-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px 40px 64px;
}

/* Header hierarchy */
.writing-task-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
}

/* Back link must occupy its own row */
.writing-task-header > a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    color: var(--text-secondary);
    text-decoration: none;
}

.writing-task-header > a:hover {
    color: var(--primary);
}

/* IELTS WRITING eyebrow */
.writing-task-eyebrow {
    display: block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.writing-task-header h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;

    color: var(--text-primary);
}

.writing-task-header h2 {
    margin: 8px 0 0;

    max-width: 800px;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;

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

/* Main card */
.writing-task-content {
    padding: 30px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: 0 8px 24px rgba(0, 45, 77, 0.06);
}

/* Instruction section */
.writing-task-instructions {
    padding-bottom: 24px;
}

.writing-task-label {
    margin-bottom: 10px;
}

.writing-task-instructions p {
    max-width: 800px;
    line-height: 1.65;
}

/* Metadata */
.writing-task-meta {
    gap: 16px;
    margin-top: 24px;
}

.writing-task-meta-item {
    min-height: 76px;
    padding: 18px 20px;

    background: #f7fafc;
}

/* Action */
.writing-task-actions {
    margin-top: 28px;
}

.writing-task-actions .thynk-btn {
    min-width: 132px;
    min-height: 42px;

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

/* Tablet / mobile */
@media (max-width: 768px) {

    .writing-task-page {
        padding: 28px 20px 48px;
    }

    .writing-task-header > a {
        margin-bottom: 16px;
    }

    .writing-task-header h1 {
        font-size: 30px;
    }

    .writing-task-header h2 {
        font-size: 19px;
    }

    .writing-task-content {
        padding: 22px;
    }

    .writing-task-meta {
        grid-template-columns: 1fr;
    }

    .writing-task-actions {
        justify-content: stretch;
    }

    .writing-task-actions .thynk-btn {
        width: 100%;
    }
}

/* UI-CARD-01A.3C — Speaking card title: 13px only.
   Scoped and explicit to retain size when assessment-cards.css is loaded later. */
.speaking-page .speaking-task-heading h2 {
    font-size: 13px !important;
}
