:root{
    --portal-font:"Segoe UI",Arial,Helvetica,sans-serif;
    --portal-primary:#24439a;
    --portal-primary-2:#3268d9;
    --portal-accent:#16a085;
    --portal-bg:#f3f6fb;
    --portal-card:#ffffff;
    --portal-text:#17233c;
    --portal-muted:#667085;
    --portal-border:#dce4f0;
    --portal-danger:#c0392b;
    --portal-warning:#b26a00;
    --portal-success:#137a4c;
    --portal-shadow:0 16px 42px rgba(30, 58, 138, .11);
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--portal-bg)}
body{
    min-height:100vh;
    margin:0;
    color:var(--portal-text);
    background:
        radial-gradient(circle at 100% 0, rgba(50,104,217,.10), transparent 34rem),
        var(--portal-bg);
    font-family:var(--portal-font);
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}
a{color:var(--portal-primary-2)}
button,input,textarea,select{font:inherit}

.portal-header{
    position:sticky;
    top:0;
    z-index:50;
    border-bottom:1px solid rgba(220,228,240,.9);
    background:rgba(255,255,255,.96);
    box-shadow:0 5px 20px rgba(23,35,60,.05);
}
.portal-header-inner{
    display:flex;
    align-items:center;
    gap:26px;
    width:min(1240px,calc(100% - 40px));
    min-height:76px;
    margin:auto;
}
.portal-brand{display:flex;align-items:center;gap:11px;color:var(--portal-text);text-decoration:none}
.portal-brand-mark{
    display:grid;
    width:46px;
    height:46px;
    place-items:center;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #dce5f4;
    background:#fff;
    box-shadow:0 8px 20px rgba(50,104,217,.25);
}
.portal-brand-mark img{display:block;width:100%;height:100%;padding:4px;object-fit:contain}
.portal-brand strong,.portal-brand small{display:block}
.portal-brand strong{font-size:18px}
.portal-brand small{margin-top:2px;color:var(--portal-muted);font-size:12px}
.portal-nav{display:flex;align-items:center;gap:5px;margin-left:auto}
.portal-nav a{
    padding:10px 12px;
    border-radius:10px;
    color:#46536a;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
}
.portal-nav a:hover,.portal-nav a.active{background:#edf3ff;color:var(--portal-primary)}
.portal-nav .logout-link{color:var(--portal-danger)}
.portal-user{display:flex;align-items:center;gap:9px;padding-left:18px;border-left:1px solid var(--portal-border)}
.portal-user small,.portal-user strong{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-user small{color:var(--portal-muted);font-size:11px}
.portal-user strong{margin-top:2px;font-size:13px}
.portal-avatar{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;overflow:hidden;border:1px solid #dce5f4;border-radius:50%;background:#e6edff;color:var(--portal-primary);font-weight:800}
.portal-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.portal-menu-toggle{display:none;margin-left:auto;padding:8px 11px;border:1px solid var(--portal-border);border-radius:9px;background:#fff;color:var(--portal-primary);cursor:pointer}

.portal-container{width:min(1240px,calc(100% - 40px));margin:32px auto 56px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.page-heading h1{margin:0 0 7px;color:var(--portal-primary);font-size:30px;line-height:1.2}
.page-heading p{max-width:760px;margin:0;color:var(--portal-muted);line-height:1.55}
.eyebrow{display:block;margin-bottom:8px;color:var(--portal-primary-2);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}

.welcome-panel{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(240px,.6fr);
    gap:26px;
    margin-bottom:24px;
    padding:30px;
    overflow:hidden;
    border-radius:24px;
    background:linear-gradient(125deg,#203c91,#356ce1);
    color:#fff;
    box-shadow:var(--portal-shadow);
}
.welcome-panel::after{content:"";position:absolute;right:-90px;bottom:-130px;width:330px;height:330px;border:55px solid rgba(255,255,255,.08);border-radius:50%}
.welcome-panel h1{max-width:700px;margin:0 0 10px;font-size:31px;line-height:1.25}
.welcome-panel p{max-width:690px;margin:0;color:rgba(255,255,255,.82);line-height:1.6}
.welcome-actions{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:10px}
.welcome-actions a{display:block;padding:13px 16px;border-radius:12px;background:#fff;color:var(--portal-primary);text-align:center;text-decoration:none;font-weight:800}
.welcome-actions a.secondary{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.10);color:#fff}
.welcome-search{padding:13px;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px)}
.welcome-search label{display:block;margin-bottom:7px;color:#fff;font-size:12px;font-weight:800}
.welcome-search div{display:flex;gap:7px}
.welcome-search input{width:100%;min-width:0;padding:10px 11px;border:0;border-radius:9px;outline:none;color:var(--portal-text)}
.welcome-search button{padding:0 13px;border:0;border-radius:9px;background:#fff;color:var(--portal-primary);cursor:pointer;font-weight:800}

.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.stat-card,.portal-card{border:1px solid rgba(220,228,240,.95);background:var(--portal-card);box-shadow:0 10px 26px rgba(30,58,138,.06)}
.stat-card{display:flex;align-items:center;gap:15px;padding:20px;border-radius:17px}
.stat-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:15px;background:#eef3ff;font-size:22px}
.stat-card strong,.stat-card span{display:block}
.stat-card strong{font-size:24px;color:var(--portal-primary)}
.stat-card span{margin-top:3px;color:var(--portal-muted);font-size:13px}

.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:30px 0 15px}
.section-title h2{margin:0;font-size:21px}
.section-title span{color:var(--portal-muted);font-size:13px}
.event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.event-card{display:grid;grid-template-columns:165px minmax(0,1fr);min-height:215px;overflow:hidden;border:1px solid var(--portal-border);border-radius:19px;background:#fff;box-shadow:0 10px 25px rgba(30,58,138,.06)}
.event-banner{position:relative;min-height:100%;overflow:hidden;background:linear-gradient(145deg,#dfe8ff,#bfd1ff)}
.event-banner img{width:100%;height:100%;object-fit:cover}
.event-banner.no-image{display:grid;place-items:center;color:var(--portal-primary);font-size:48px;font-weight:800}
.event-body{display:flex;flex-direction:column;padding:21px}
.event-body h3{margin:8px 0 9px;font-size:18px;line-height:1.35}
.event-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;margin-bottom:15px;color:var(--portal-muted);font-size:13px;line-height:1.45}
.event-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto}
.status-pill{display:inline-flex;width:max-content;align-items:center;padding:6px 10px;border-radius:999px;background:#eef2f7;color:#536074;font-size:11px;font-weight:800}
.status-pill.live{background:#e6f8ef;color:var(--portal-success)}
.status-pill.upcoming{background:#fff4df;color:var(--portal-warning)}
.status-pill.replay{background:#ecedff;color:#5146a8}
.status-pill.closed,.status-pill.finished{background:#f1f2f5;color:#60697a}
.replay-label{display:inline-flex;width:max-content;margin-top:6px;padding:6px 10px;border-radius:999px;background:#e9f7f1;color:#0d7758;font-size:11px;font-weight:800}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 15px;border:0;border-radius:11px;background:var(--portal-primary-2);color:#fff;text-decoration:none;font-weight:800;cursor:pointer}
.btn:hover{filter:brightness(.96)}
.btn.secondary{border:1px solid var(--portal-border);background:#fff;color:var(--portal-primary)}
.btn.success{background:var(--portal-success)}
.btn.danger{background:var(--portal-danger)}
.btn.small{min-height:36px;padding:8px 11px;font-size:13px}
.btn.block{width:100%}

.portal-card{padding:24px;border-radius:19px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}
.form-card{max-width:780px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.form-group{display:flex;min-width:0;flex-direction:column;gap:7px}
.form-group.full{grid-column:1/-1}
.form-group label{font-size:13px;font-weight:800}
.form-group small{color:var(--portal-muted);line-height:1.45}
.form-control{
    width:100%;
    min-width:0;
    padding:12px 13px;
    border:1px solid var(--portal-border);
    border-radius:11px;
    outline:none;
    background:#fff;
    color:var(--portal-text);
}
.form-control:focus{border-color:var(--portal-primary-2);box-shadow:0 0 0 3px rgba(50,104,217,.12)}
textarea.form-control{min-height:110px;resize:vertical;line-height:1.55}
select.form-control{cursor:pointer}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.alert{margin-bottom:18px;padding:13px 15px;border-radius:11px;line-height:1.5}
.alert.success{background:#e8f8ef;color:#116640}
.alert.error{background:#fdecea;color:#992d22}
.alert.info{background:#eaf2ff;color:#204681}
.empty-state{padding:40px 24px;border:1px dashed #becbe0;border-radius:17px;background:#fafcff;text-align:center;color:var(--portal-muted)}
.empty-state strong{display:block;margin-bottom:8px;color:var(--portal-text);font-size:17px}

.profile-list{display:grid;gap:13px;margin:0;padding:0;list-style:none}
.profile-list li{display:flex;justify-content:space-between;gap:15px;padding-bottom:12px;border-bottom:1px solid #edf0f5;color:var(--portal-muted);font-size:13px}
.profile-list li:last-child{padding-bottom:0;border:0}
.profile-list strong{color:var(--portal-text);text-align:right}

.event-hero{position:relative;min-height:270px;margin-bottom:22px;overflow:hidden;border-radius:24px;background:linear-gradient(125deg,#203c91,#356ce1);background-position:center;background-size:cover;box-shadow:var(--portal-shadow)}
.event-hero::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(16,34,82,.90),rgba(16,34,82,.38))}
.event-hero-image{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover}
.event-hero-content{position:relative;z-index:2;display:flex;min-height:270px;max-width:760px;flex-direction:column;justify-content:flex-end;padding:32px;color:#fff}
.event-hero h1{margin:10px 0;font-size:31px;line-height:1.25}
.event-hero p{margin:0;color:rgba(255,255,255,.85);line-height:1.6}

.chat-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:20px;align-items:start}
.chat-compose{position:sticky;top:99px}
.chat-compose h2,.chat-stream h2{margin-top:0;font-size:19px}
.chat-note{color:var(--portal-muted);font-size:13px;line-height:1.55}
.question-list{display:grid;gap:15px}
.question-card{padding:18px;border:1px solid var(--portal-border);border-radius:15px;background:#fff}
.question-head,.reply-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.question-person{display:flex;align-items:center;gap:10px}
.question-avatar{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:50%;background:#eaf0ff;color:var(--portal-primary);font-weight:800}
.question-person strong,.question-person small{display:block}
.question-person small,.question-time{margin-top:3px;color:var(--portal-muted);font-size:11px}
.question-content{margin:14px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.question-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#fff2d8;color:#966000;font-size:10px;font-weight:800;white-space:nowrap}
.question-status.answered{background:#e3f7ec;color:#116c43}
.question-status.hidden{background:#f2f3f5;color:#656d79}
.reply-list{display:grid;gap:10px;margin-top:15px;padding-left:25px}
.reply-card{padding:14px;border-left:3px solid var(--portal-accent);border-radius:0 12px 12px 0;background:#effaf6}
.reply-head strong{color:#0d6b52;font-size:13px}
.reply-role{display:block;margin-top:3px;color:#468072;font-size:11px}
.reply-content{margin:9px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:16px;color:var(--portal-primary);text-decoration:none;font-weight:800}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.library-toolbar{margin-bottom:20px;padding:16px}
.library-search{display:flex;gap:9px}
.library-search .form-control{flex:1}
.filter-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.filter-pills a{padding:8px 11px;border:1px solid var(--portal-border);border-radius:999px;background:#fff;color:#536074;text-decoration:none;font-size:12px;font-weight:800}
.filter-pills a:hover,.filter-pills a.active{border-color:#c8d9ff;background:#edf3ff;color:var(--portal-primary)}
.chat-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.chat-event-card{display:flex;min-height:250px;flex-direction:column}
.chat-event-card h2{margin:12px 0 6px;font-size:19px;line-height:1.4}
.chat-event-card>div>p{margin:0;color:var(--portal-muted);font-size:13px}
.chat-event-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:19px 0}
.chat-event-stats span{padding:12px 8px;border-radius:11px;background:#f5f8fd;color:var(--portal-muted);font-size:11px;text-align:center}
.chat-event-stats strong{display:block;margin-bottom:4px;color:var(--portal-primary);font-size:20px}
.chat-event-card>.btn{margin-top:auto}

.login-body{overflow:hidden}
.login-page{display:grid;height:100dvh;min-height:0;grid-template-columns:minmax(440px,1.12fr) minmax(430px,.88fr);overflow:hidden}
.login-brand{position:relative;display:flex;height:100%;min-height:0;align-items:center;overflow:hidden;padding:clamp(28px,4.5vw,68px);background:linear-gradient(145deg,#142b6b 0%,#24499d 56%,#2c6fd1 100%);color:#fff}
.login-brand::before,.login-brand::after{content:"";position:absolute;border:55px solid rgba(255,255,255,.07);border-radius:50%}
.login-brand::before{top:-150px;right:-150px;width:330px;height:330px}
.login-brand::after{bottom:-220px;left:-160px;width:430px;height:430px}
.login-brand-content{position:relative;z-index:1;max-width:650px}
.login-brand-row{display:flex;align-items:center;gap:13px;margin-bottom:clamp(20px,3.5vh,34px)}
.login-brand-row>span:last-child strong,.login-brand-row>span:last-child small{display:block}
.login-brand-row>span:last-child strong{font-size:19px}.login-brand-row>span:last-child small{margin-top:3px;color:rgba(255,255,255,.7);font-size:12px}
.login-logo{display:grid;width:66px;height:66px;place-items:center;overflow:hidden;border-radius:19px;background:#fff;box-shadow:0 15px 35px rgba(0,0,0,.18)}
.login-logo img{display:block;width:100%;height:100%;padding:5px;object-fit:contain}
.login-brand h1{margin:0 0 12px;font-size:clamp(30px,3.5vw,48px);line-height:1.1}
.login-brand p{max-width:560px;margin:0;color:rgba(255,255,255,.82);font-size:15px;line-height:1.58}
.login-showcase{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:clamp(16px,2.8vh,25px)}
.login-showcase article{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.18);border-radius:13px;background:rgba(255,255,255,.09);backdrop-filter:blur(8px)}
.login-showcase small,.login-showcase strong{display:block}.login-showcase small{margin-bottom:4px;color:#bcd1ff;font-size:9px;font-weight:800;letter-spacing:.08em}.login-showcase strong{font-size:13px;line-height:1.4}
.showcase-icon{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:12px;background:#fff;color:var(--portal-primary);font-size:12px;font-weight:900}.showcase-icon.replay{background:#dff7ef;color:#08745a;font-size:14px}
.login-benefits{display:grid;gap:8px;margin:clamp(14px,2.3vh,22px) 0 0;padding:0;list-style:none}
.login-benefits li{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.94);font-weight:700}
.login-benefits span{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:rgba(255,255,255,.15)}
.login-form-side{display:grid;height:100%;min-height:0;place-items:center;padding:clamp(18px,3.5vw,42px);overflow:hidden;background:linear-gradient(145deg,#f8faff,#eef3fb)}
.login-box{position:relative;width:min(470px,100%);padding:clamp(25px,3vh,34px);border:1px solid rgba(210,222,240,.95);border-radius:24px;background:rgba(255,255,255,.96);box-shadow:0 24px 60px rgba(30,58,138,.14)}
.login-form-mark{position:absolute;top:25px;right:27px;padding:6px 9px;border-radius:999px;background:#edf3ff;color:var(--portal-primary);font-size:9px;font-weight:900;letter-spacing:.08em}
.login-box h2{margin:0 0 7px;color:var(--portal-primary);font-size:26px}
.login-box>p{margin:0 0 clamp(16px,2vh,21px);color:var(--portal-muted);font-size:14px;line-height:1.5}
.login-box .form-group{margin-bottom:13px}
.password-wrap{position:relative}
.password-wrap .form-control{padding-right:53px}
.show-password{position:absolute;top:50%;right:8px;transform:translateY(-50%);padding:7px;border:0;background:transparent;color:var(--portal-primary);cursor:pointer;font-weight:800}
.login-password-actions{display:flex;justify-content:flex-end;margin:-5px 0 10px}
.forgot-password-help{position:relative;color:var(--portal-primary)}
.forgot-password-help summary{list-style:none;cursor:pointer;font-size:12px;font-weight:800;text-decoration:none}
.forgot-password-help summary::-webkit-details-marker{display:none}
.forgot-password-help summary:hover,.forgot-password-help summary:focus-visible{text-decoration:underline}
.forgot-password-help summary:focus-visible{outline:2px solid rgba(50,104,217,.28);outline-offset:3px;border-radius:4px}
.forgot-password-card{position:absolute;z-index:20;right:0;bottom:calc(100% + 8px);width:min(390px,calc(100vw - 38px));max-height:min(70vh,470px);padding:15px;border:1px solid #cddbf0;border-radius:13px;overflow:auto;background:#fff;color:var(--portal-text);box-shadow:0 16px 38px rgba(30,58,138,.18);font-size:11px;line-height:1.45}
.forgot-password-card::before{content:"";position:absolute;right:23px;bottom:-6px;width:10px;height:10px;transform:rotate(45deg);border-right:1px solid #cddbf0;border-bottom:1px solid #cddbf0;background:#fff}
.forgot-password-card>strong{display:block;color:var(--portal-primary);font-size:14px}
.forgot-password-intro{margin:6px 0 10px;color:var(--portal-muted)}
.forgot-password-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}
.forgot-password-contacts a{display:block;min-width:0;padding:8px 9px;border:1px solid #dbe5f3;border-radius:10px;background:#f6f9ff;color:var(--portal-primary);text-decoration:none}
.forgot-password-contacts a:hover,.forgot-password-contacts a:focus-visible{border-color:#aebfe0;background:#edf3ff}
.forgot-password-contacts a.wide{grid-column:1/-1}
.forgot-password-contacts span,.forgot-password-contacts b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.forgot-password-contacts span{margin-bottom:2px;color:var(--portal-muted);font-size:9px;font-weight:800;text-transform:uppercase}
.forgot-password-contacts b{font-size:11px}
.forgot-password-card ol{display:grid;gap:4px;margin:0;padding-left:18px}
.forgot-password-security{margin:8px 0 0;padding-top:8px;border-top:1px solid #edf0f5;color:#a43b2b;font-size:10px;font-weight:800}
.login-submit{min-height:49px;justify-content:space-between;margin-top:4px;padding-inline:17px;box-shadow:0 10px 22px rgba(50,104,217,.22)}
.login-help{margin-top:12px;padding-top:12px;border-top:1px solid #edf0f5;color:var(--portal-muted);font-size:11px;line-height:1.45;text-align:center}
.login-help a{font-weight:800;text-decoration:none}
.login-help a:hover,.login-help a:focus-visible{text-decoration:underline}
.login-security{margin:8px 0 0!important;color:#8290a6!important;font-size:10px!important;text-align:center}

/* V5 - Tổng quan gọn theo phong cách hồ sơ đại biểu cũ. */
.dashboard-profile-bar{display:flex;align-items:center;gap:18px;margin-bottom:14px;padding:15px 18px;border:1px solid var(--portal-border);border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(30,58,138,.06)}
.dashboard-profile-main{display:flex;min-width:0;flex:1;align-items:center;gap:14px}
.dashboard-avatar{display:grid;width:52px;height:52px;flex:0 0 52px;place-items:center;border-radius:15px;background:linear-gradient(145deg,#365fce,#264397);color:#fff;font-size:22px;font-weight:900;box-shadow:0 8px 18px rgba(36,67,154,.20)}
.dashboard-profile-main .eyebrow{margin-bottom:3px;font-size:10px}
.dashboard-profile-main h1{margin:0;color:var(--portal-primary);font-size:20px;line-height:1.25}
.dashboard-profile-main p{margin:3px 0 0;color:var(--portal-muted);font-size:12px;line-height:1.45}
.dashboard-profile-meta{flex:0 0 auto;padding:8px 14px;border-radius:12px;background:#f1f5ff;text-align:center}
.dashboard-profile-meta span,.dashboard-profile-meta strong{display:block}.dashboard-profile-meta span{color:var(--portal-muted);font-size:9px;font-weight:800;text-transform:uppercase}.dashboard-profile-meta strong{margin-top:3px;color:var(--portal-primary);font-size:13px}
.cme-profile-alert{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:12px 15px;border:1px solid #ecd79c;border-radius:13px;background:#fffaf0;color:#76500e}.cme-profile-alert strong,.cme-profile-alert span{display:block}.cme-profile-alert span{margin-top:3px;font-size:11px;line-height:1.45}.cme-profile-alert .btn{flex:0 0 auto;background:#a76508}
.dashboard-tools{margin-bottom:20px;padding:17px 18px;border:1px solid var(--portal-border);border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(30,58,138,.05)}
.dashboard-tools-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:13px}
.dashboard-tools-heading h2{margin:0;color:var(--portal-primary);font-size:19px}.dashboard-tools-heading p{margin:3px 0 0;color:var(--portal-muted);font-size:11px}
.dashboard-stats{display:flex;align-items:center;gap:7px}.dashboard-stats span{padding:7px 10px;border:1px solid #e2e9f4;border-radius:10px;background:#f8faff;color:var(--portal-muted);font-size:10px;white-space:nowrap}.dashboard-stats strong{margin-right:3px;color:var(--portal-primary);font-size:14px}
.dashboard-search{display:flex;gap:8px;margin:0}
.dashboard-search input{flex:1;min-width:180px;padding:10px 12px;border:1px solid var(--portal-border);border-radius:10px;outline:none;background:#fff}
.dashboard-search input:focus{border-color:var(--portal-primary-2);box-shadow:0 0 0 3px rgba(50,104,217,.11)}
.section-link{color:var(--portal-primary);font-size:12px;font-weight:800;text-decoration:none}
.event-progress{height:6px;overflow:hidden;border-radius:999px;background:#e9eef6}.event-progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3268d9,#16a085)}
.event-progress-label{display:flex;justify-content:space-between;gap:10px;margin:7px 0 15px;color:var(--portal-muted);font-size:10px}
.event-actions{align-items:center}.event-detail-link{margin-left:auto;color:var(--portal-muted);font-size:12px;font-weight:800;text-decoration:none}.event-detail-link:hover{color:var(--portal-primary)}

/* V6 - Tổng quan chỉ hiển thị banner; bấm banner để mở phòng hội thảo. */
.dashboard-banner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.dashboard-banner-link{display:block;min-width:0;overflow:hidden;border:1px solid var(--portal-border);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(30,58,138,.08);text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.dashboard-banner-link:hover{transform:translateY(-2px);border-color:#bdd0f1;box-shadow:0 16px 35px rgba(30,58,138,.13)}
.dashboard-banner-link:focus-visible{outline:3px solid rgba(50,104,217,.28);outline-offset:3px}
.dashboard-banner-frame{display:grid;width:100%;aspect-ratio:16/10;place-items:center;overflow:hidden;background:#f7f9fd}
.dashboard-banner-frame img{display:block;width:100%;height:100%;object-fit:contain}
.dashboard-banner-frame.no-image{padding:28px;background:linear-gradient(145deg,#e8efff,#f7f9fd)}
.dashboard-banner-fallback{display:grid;gap:8px;color:var(--portal-muted);font-size:14px;line-height:1.45;text-align:center}
.dashboard-banner-fallback strong{color:var(--portal-primary);font-size:28px}

/* V4 - Ngữ cảnh sự kiện và lựa chọn đăng ký ngay trên trang đăng nhập. */
.login-event-context{margin-top:24px;padding:16px;border:1px solid rgba(255,255,255,.22);border-radius:15px;background:rgba(255,255,255,.11);backdrop-filter:blur(8px)}
.login-event-context span,.login-event-context strong,.login-event-context small{display:block}.login-event-context span{color:#bad0ff;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.login-event-context strong{margin-top:6px;font-size:17px;line-height:1.4}.login-event-context small{margin-top:6px;color:rgba(255,255,255,.75)}
.login-link-warning{margin-top:22px;padding:13px;border:1px solid rgba(255,220,220,.28);border-radius:12px;background:rgba(135,20,20,.28);line-height:1.5}
.login-choice{display:grid;gap:7px;margin-top:12px;padding:11px;border:1px solid #dce5f2;border-radius:13px;background:#f8faff;color:var(--portal-muted);font-size:12px;text-align:center}
.login-choice .btn{min-height:42px;background:#fff}

/* V4 - Đăng ký 14 nội dung phù hợp cho đại biểu; mã hội viên/ghi chú do hệ thống quản lý. */
.registration-body{background:#f3f6fb}
.public-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(1180px,calc(100% - 36px));min-height:78px;margin:auto}
.registration-shell{display:grid;gap:14px;width:min(1180px,calc(100% - 36px));margin:8px auto 38px}
.registration-intro{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);grid-template-rows:auto auto 1fr;column-gap:28px;padding:20px 24px;border-radius:18px;background:linear-gradient(145deg,#183476,#2e67cc);color:#fff;box-shadow:var(--portal-shadow)}
.registration-intro>.eyebrow,.registration-intro>h1,.registration-intro>p{grid-column:1}.registration-intro>.eyebrow{grid-row:1}.registration-intro>h1{grid-row:2}.registration-intro>p{grid-row:3}
.registration-intro .eyebrow{color:#bcd1ff}.registration-intro h1{margin:0 0 7px;font-size:25px;line-height:1.2}.registration-intro>p{margin:0;color:rgba(255,255,255,.8);font-size:13px;line-height:1.55}
.registration-event{grid-column:2;grid-row:1/3;margin:0;padding:12px 14px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.1)}
.registration-event span,.registration-event strong,.registration-event small{display:block}.registration-event span{color:#bdd2ff;font-size:10px;font-weight:800;text-transform:uppercase}.registration-event strong{margin-top:7px;line-height:1.4}.registration-event small{margin-top:7px;color:rgba(255,255,255,.72);line-height:1.45}
.cme-note{grid-column:2;grid-row:3;display:grid;align-self:end;gap:3px;margin-top:8px;padding:9px 12px;border-radius:11px;background:#fff;color:#1e376f}.cme-note strong{font-size:11px}.cme-note span{color:#5d6b82;font-size:9px;line-height:1.45}
.registration-card{padding:18px 20px;border:1px solid var(--portal-border);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(30,58,138,.07)}
.registration-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:13px}.registration-heading .eyebrow{margin-bottom:3px;font-size:9px}.registration-heading h2{margin:0;color:var(--portal-primary);font-size:19px}.required-note{color:var(--portal-muted);font-size:10px}.required-note b,.registration-card label b,.birthdate-group legend b{color:#c13c2c}
.registration-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 12px}.registration-grid .full{grid-column:span 2}.registration-grid .form-group{gap:5px}.registration-grid .form-group label{font-size:11px}.registration-grid .form-control{height:40px;padding:8px 10px;border-radius:9px;font-size:13px}.registration-grid .form-group small{font-size:9px}
.birthdate-group{display:grid;grid-column:span 3!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;padding:8px 10px 10px;border:1px solid var(--portal-border);border-radius:10px}.birthdate-group legend{padding:0 5px;font-size:10px;font-weight:800}.birthdate-group label{display:block;margin-bottom:4px;color:var(--portal-muted);font-size:9px;font-weight:700}.birthdate-group .form-control{height:35px}
.consent-row{display:flex;align-items:flex-start;gap:9px;margin:13px 0 11px;color:#526178;font-size:10px;line-height:1.45}.consent-row input{flex:0 0 auto;width:16px;height:16px;margin-top:0;accent-color:var(--portal-primary-2)}
.registration-submit{min-height:49px}.registration-submit:disabled{opacity:.5;cursor:not-allowed}.registration-login-link{margin:14px 0 0;color:var(--portal-muted);font-size:12px;text-align:center}.registration-login-link a{font-weight:800}
.profile-container{margin-top:17px}
.profile-summary-card{display:flex;align-items:center;gap:17px;margin-bottom:12px;padding:12px 15px;border:1px solid var(--portal-border);border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(30,58,138,.05)}
.profile-summary-main{display:flex;min-width:0;flex:1;align-items:center;gap:12px}.profile-summary-avatar{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;border-radius:14px;background:linear-gradient(145deg,#365fce,#264397);color:#fff;font-size:20px;font-weight:900}.profile-summary-main .eyebrow{margin-bottom:2px;font-size:9px}.profile-summary-main h1{margin:0;color:var(--portal-primary);font-size:18px}.profile-summary-main p{margin:3px 0 0;color:var(--portal-muted);font-size:11px}
.profile-member-code{padding:7px 11px;border-radius:999px;background:#edf3ff;color:var(--portal-primary);font-size:11px;font-weight:900;white-space:nowrap}
.profile-completion{display:flex;flex:0 0 auto;align-items:center;gap:9px;padding-left:15px;border-left:1px solid var(--portal-border)}.profile-completion-ring{display:grid;width:52px;height:52px;place-items:center;border-radius:50%;background:conic-gradient(#2c8b4b var(--profile-progress),#e8edf4 0)}.profile-completion-ring::before{content:"";grid-area:1/1;width:40px;height:40px;border-radius:50%;background:#fff}.profile-completion-ring strong{z-index:1;grid-area:1/1;color:#24439a;font-size:12px}.profile-completion>span:last-child strong,.profile-completion>span:last-child small{display:block}.profile-completion>span:last-child strong{font-size:11px}.profile-completion>span:last-child small{max-width:185px;margin-top:3px;color:var(--portal-muted);font-size:9px}
.profile-form-card{width:100%;max-width:none;padding:17px 18px;border-radius:16px}.profile-form-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px;padding-bottom:11px;border-bottom:1px solid #e7edf6}.profile-form-heading h2{margin:0;color:var(--portal-primary);font-size:17px}.profile-form-heading p{margin:3px 0 0;color:var(--portal-muted);font-size:10px}.profile-form-heading b,.profile-form-grid label b{color:#c13c2c}
.profile-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-form-grid .span-2{grid-column:span 2}.profile-form-grid .form-group{gap:5px}.profile-form-grid .form-group label{font-size:11px}.profile-form-grid .form-control{height:40px;padding:8px 10px;border-radius:9px;font-size:13px}.readonly-control{border-style:dashed;background:#f5f7fb;color:#536074}
.profile-form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:15px;padding-top:13px;border-top:1px solid #e7edf6}.profile-form-actions>span{color:var(--portal-muted);font-size:10px}.profile-form-actions>div{display:flex;gap:8px}

@media (min-width:851px) and (max-height:840px){
    .login-brand{padding-top:24px;padding-bottom:24px}
    .login-brand-row{margin-bottom:16px}
    .login-brand h1{font-size:34px}
    .login-brand p{font-size:14px}
    .login-event-context,.login-link-warning{margin-top:12px;padding:11px}
    .login-showcase{margin-top:13px}
    .login-benefits{margin-top:12px}
    .login-box{padding:23px 28px}
    .login-box>.login-logo{width:56px;height:56px;margin-bottom:10px!important}
    .login-box h2{font-size:23px}
    .login-box>p{font-size:12.5px;line-height:1.42}
    .login-box>p{margin-bottom:13px}
    .login-box .form-group{margin-bottom:10px}
    .login-choice{margin-top:9px;padding:9px}
    .login-help{margin-top:9px;padding-top:9px}
    .login-security{margin-top:6px!important}
}

@media (min-width:851px) and (max-height:650px){
    .login-showcase,.login-benefits,.login-security{display:none}
}

@media (max-width:1050px){
    .portal-user{display:none}
    .content-grid{grid-template-columns:1fr}
    .chat-layout{grid-template-columns:320px minmax(0,1fr)}
    .event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .dashboard-tools-heading{align-items:flex-start;flex-direction:column}
    .profile-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .registration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.registration-grid .full{grid-column:span 2}.birthdate-group{grid-column:span 2!important}
}
@media (max-width:850px){
    .login-body{overflow:auto}
    .login-page{height:auto;min-height:100vh;overflow:visible}
    .portal-header-inner{flex-wrap:wrap;width:min(100% - 24px,1240px);padding:12px 0}
    .portal-menu-toggle{display:block}
    .portal-nav{display:none;width:100%;flex-direction:column;align-items:stretch;margin:0;padding-top:5px}
    .portal-nav.open{display:flex}
    .portal-nav a{text-align:center}
    .portal-container{width:min(100% - 24px,1240px);margin-top:23px}
    .welcome-panel{grid-template-columns:1fr}
    .dashboard-profile-bar{align-items:flex-start;flex-wrap:wrap}
    .dashboard-profile-main{flex-basis:100%}
    .dashboard-search{flex-wrap:wrap}.dashboard-search input{flex-basis:100%}
    .dashboard-stats{flex-wrap:wrap}
    .cme-profile-alert{align-items:stretch;flex-direction:column}.cme-profile-alert .btn{width:100%}
    .stats-grid{grid-template-columns:1fr}
    .event-grid{grid-template-columns:1fr}
    .dashboard-banner-grid{grid-template-columns:1fr}
    .chat-event-grid{grid-template-columns:1fr}
    .chat-layout{grid-template-columns:1fr}
    .chat-compose{position:static}
    .login-page{grid-template-columns:1fr}
    .login-brand{height:auto;min-height:auto;padding:48px 26px}
    .login-brand-row{margin-bottom:28px}
    .login-benefits{display:none}
    .login-form-side{height:auto;min-height:auto;padding:28px 18px 45px;overflow:visible}
    .registration-intro{display:block}.registration-event{margin-top:14px}.cme-note{margin-top:9px}.public-header{padding:10px 0}
    .profile-summary-card{align-items:flex-start;flex-wrap:wrap}.profile-summary-main{flex-basis:100%}.profile-completion{padding-left:0;border-left:0}
}
@media (max-width:600px){
    .page-heading{align-items:flex-start;flex-direction:column}
    .page-heading h1,.welcome-panel h1,.event-hero h1{font-size:25px}
    .welcome-panel,.portal-card,.login-box{padding:21px}
    .form-grid{grid-template-columns:1fr}
    .form-group.full{grid-column:auto}
    .event-card{grid-template-columns:1fr}
    .event-banner{min-height:150px}
    .event-meta{grid-template-columns:1fr}
    .event-actions .btn{width:100%}
    .event-hero,.event-hero-content{min-height:240px}
    .event-hero-content{padding:23px}
    .reply-list{padding-left:10px}
    .chat-event-stats{grid-template-columns:1fr}
    .library-search{flex-direction:column}
    .library-search .btn{width:100%}
    .login-showcase{grid-template-columns:1fr}
    .forgot-password-card{position:fixed;top:50%;right:18px;bottom:auto;left:18px;width:auto;transform:translateY(-50%)}
    .forgot-password-card::before{display:none}
    .dashboard-profile-bar,.dashboard-tools,.registration-card,.registration-intro{padding:15px}
    .dashboard-profile-meta{flex:1}.dashboard-profile-bar>.btn{flex:1}
    .dashboard-search{flex-direction:column}.dashboard-search .btn{width:100%}
    .dashboard-stats{display:grid;width:100%;grid-template-columns:1fr}.dashboard-stats span{text-align:center}
    .registration-grid{grid-template-columns:1fr}.registration-grid .full{grid-column:auto}.birthdate-group{grid-column:auto!important;grid-template-columns:1fr}.registration-heading{flex-direction:column}
    .profile-summary-main p{line-height:1.45}.profile-member-code{order:3}.profile-completion{width:100%}
    .profile-form-card{padding:15px}.profile-form-heading{align-items:flex-start;flex-direction:column}.profile-form-grid{grid-template-columns:1fr}.profile-form-grid .span-2{grid-column:auto}.profile-form-actions{align-items:stretch;flex-direction:column}.profile-form-actions>div{display:grid;grid-template-columns:1fr 1fr}
    .public-header .btn{padding:8px 10px;font-size:11px}.public-header .portal-brand small{display:none}
}

/* V7 - Thư viện hội thảo gọn, banner không bị cắt và hành động có thứ bậc rõ. */
.events-library-page .portal-container{width:min(1440px,calc(100% - 40px));margin:24px auto 48px}
.events-library-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.events-library-heading-copy .eyebrow{margin-bottom:5px;font-size:10px}
.events-library-heading h1{margin:0;color:var(--portal-primary);font-size:28px;font-weight:700;line-height:1.2}
.events-library-heading p{margin:6px 0 0;color:var(--portal-muted);font-size:13px;line-height:1.5}
.events-library-heading-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.events-result-count{padding:8px 11px;border-radius:10px;background:#eaf0ff;color:var(--portal-muted);font-size:11px}
.events-result-count strong{margin-right:3px;color:var(--portal-primary);font-size:14px}
.events-back-link{color:var(--portal-primary);font-size:12px;font-weight:700;text-decoration:none}
.events-back-link::before{content:"←";margin-right:5px}
.events-library-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) auto;align-items:center;gap:14px;margin-bottom:18px;padding:11px;border:1px solid var(--portal-border);border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(30,58,138,.05)}
.events-library-search{position:relative;display:flex;min-width:0;align-items:center}
.events-search-icon{position:absolute;left:13px;display:grid;width:18px;height:18px;place-items:center;color:#8792a5;pointer-events:none}
.events-search-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}
.events-library-search input{width:100%;height:42px;min-width:0;padding:9px 103px 9px 40px;border:1px solid var(--portal-border);border-radius:10px;outline:none;background:#fbfcfe;color:var(--portal-text);font-size:13px}
.events-library-search input:focus{border-color:var(--portal-primary-2);box-shadow:0 0 0 3px rgba(50,104,217,.11)}
.events-library-search button{position:absolute;right:4px;height:34px;padding:0 14px;border:0;border-radius:8px;background:var(--portal-primary-2);color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.events-filter-pills{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.events-filter-pills a{padding:8px 10px;border:1px solid transparent;border-radius:9px;color:#5e6b80;text-decoration:none;font-size:11px;font-weight:650;white-space:nowrap}
.events-filter-pills a:hover{background:#f3f6fb;color:var(--portal-primary)}
.events-filter-pills a.active{border-color:#cedcff;background:#eaf0ff;color:var(--portal-primary)}
.events-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.conference-card{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:270px;overflow:hidden;border:1px solid var(--portal-border);border-radius:17px;background:#fff;box-shadow:0 9px 25px rgba(30,58,138,.06);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.conference-card:hover{transform:translateY(-2px);border-color:#c2d0e8;box-shadow:0 14px 30px rgba(30,58,138,.10)}
.conference-poster{display:grid;min-width:0;place-items:center;overflow:hidden;border-right:1px solid #e8edf5;background:#f6f8fc;text-decoration:none}
.conference-poster img{display:block;width:100%;height:100%;max-height:290px;padding:8px;object-fit:contain}
.conference-poster.no-image{padding:20px;background:linear-gradient(145deg,#e8efff,#f8faff)}
.conference-poster-fallback{display:grid;gap:8px;color:var(--portal-muted);font-size:12px;line-height:1.45;text-align:center}
.conference-poster-fallback strong{color:var(--portal-primary);font-size:24px}
.conference-content{display:flex;min-width:0;flex-direction:column;padding:19px 20px}
.conference-badges{display:flex;min-height:26px;flex-wrap:wrap;align-items:flex-start;gap:6px}
.conference-badges .status-pill,.conference-badges .replay-label{margin:0;padding:5px 8px;font-size:10px;font-weight:700}
.conference-content h2{display:-webkit-box;max-width:100%;margin:10px 0 13px;overflow:hidden;color:var(--portal-text);font-size:18px;font-weight:700;line-height:1.38;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.conference-meta{display:grid;gap:8px;color:var(--portal-muted);font-size:12px}
.conference-meta span{display:flex;min-width:0;align-items:center;gap:7px;line-height:1.4}
.conference-meta svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:#6f7e95;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}
.conference-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:auto;padding-top:17px}
.conference-actions .btn{min-height:36px;padding:8px 11px;font-size:12px;font-weight:700}
.conference-detail-link{margin-left:auto;color:#6a768a;font-size:11px;font-weight:700;text-decoration:none}
.conference-detail-link:hover{color:var(--portal-primary)}

/* V7 - Đăng ký vừa một màn hình desktop và dùng cùng hệ font của cổng đại biểu. */
.registration-single-screen{height:100dvh;min-height:620px;overflow:hidden;font-family:var(--portal-font);font-synthesis:none}
.registration-single-screen button,.registration-single-screen input,.registration-single-screen select{font-family:var(--portal-font)}
.registration-single-screen .public-header{width:min(1440px,calc(100% - 36px));min-height:60px;height:60px}
.registration-single-screen .portal-brand-mark{width:40px;height:40px;border-radius:11px}
.registration-single-screen .portal-brand strong{font-size:17px;font-weight:700}
.registration-single-screen .portal-brand small{font-size:11px}
.registration-single-screen .public-header .btn{min-height:36px;padding:8px 13px;font-size:12px;font-weight:700}
.registration-single-screen .registration-shell{display:grid;width:min(1440px,calc(100% - 36px));height:calc(100dvh - 60px);min-height:560px;grid-template-rows:auto minmax(0,1fr);gap:9px;margin:0 auto;padding:7px 0 12px}
.registration-single-screen .registration-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(480px,.9fr);grid-template-rows:auto;align-items:center;gap:24px;min-height:88px;padding:12px 18px;border-radius:15px}
.registration-single-screen .registration-intro-copy{min-width:0}
.registration-single-screen .registration-intro-copy .eyebrow{margin-bottom:3px;font-size:9px;font-weight:700}
.registration-single-screen .registration-intro-copy h1{margin:0;color:#fff;font-size:21px;font-weight:700;line-height:1.2}
.registration-single-screen .registration-intro-copy p{margin:4px 0 0;color:rgba(255,255,255,.78);font-size:11px;line-height:1.4}
.registration-single-screen .registration-intro-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
.registration-single-screen .registration-intro-side>:only-child{grid-column:1/-1}
.registration-single-screen .registration-event,.registration-single-screen .cme-note{display:flex;min-width:0;flex-direction:column;justify-content:center;grid-column:auto;grid-row:auto;margin:0;padding:9px 11px;border-radius:10px}
.registration-single-screen .registration-event span,.registration-single-screen .registration-event small{font-size:9px}
.registration-single-screen .registration-event strong{margin-top:3px;overflow:hidden;font-size:11px;font-weight:700;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.registration-single-screen .registration-event small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.registration-single-screen .cme-note{align-self:stretch;background:#fff}
.registration-single-screen .cme-note strong{font-size:10px;font-weight:700}
.registration-single-screen .cme-note span{font-size:8px;line-height:1.35}
.registration-single-screen .registration-intro-side .alert{display:flex;align-items:center;margin:0;padding:9px 11px;font-size:10px;line-height:1.35}
.registration-single-screen .registration-card{min-height:0;padding:12px 16px 13px;overflow:hidden;border-radius:15px}
.registration-single-screen .registration-heading{align-items:center;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #e8edf5}
.registration-single-screen .registration-heading .eyebrow{margin-bottom:2px;font-size:8px;font-weight:700}
.registration-single-screen .registration-heading h2{font-size:17px;font-weight:700}
.registration-single-screen .required-note{font-size:9px}
.registration-single-screen .registration-card>.alert{margin-bottom:7px;padding:8px 11px;font-size:10px;line-height:1.35}
.registration-single-screen .registration-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 10px}
.registration-single-screen .registration-grid .full{grid-column:span 2}
.registration-single-screen .registration-grid .form-group{gap:3px}
.registration-single-screen .registration-grid .form-group label{font-size:10px;font-weight:650}
.registration-single-screen .registration-grid .form-control{height:36px;padding:7px 9px;border-radius:8px;font-size:12px;font-weight:400}
.registration-single-screen .registration-grid .form-group small{min-height:10px;font-size:8px;line-height:1.2}
.registration-single-screen .birthdate-group{display:grid;grid-column:span 3!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:5px 8px 7px;border-radius:9px}
.registration-single-screen .birthdate-group legend{padding:0 4px;font-size:9px;font-weight:650}
.registration-single-screen .birthdate-group label{margin-bottom:2px;font-size:8px;font-weight:600}
.registration-single-screen .birthdate-group .form-control{height:31px;padding:5px 8px}
.registration-single-screen .consent-row{gap:7px;margin:7px 0;color:#5b6678;font-size:9px;line-height:1.35}
.registration-single-screen .consent-row input{width:14px;height:14px}
.registration-single-screen .registration-submit{min-height:38px;padding:8px 14px;font-size:12px;font-weight:700}

@media (max-width:1180px){
    .events-library-toolbar{grid-template-columns:1fr}
    .events-filter-pills{justify-content:flex-start}
    .conference-card{grid-template-columns:190px minmax(0,1fr)}
    .registration-single-screen .registration-intro{grid-template-columns:minmax(0,1fr) minmax(420px,.9fr)}
}

@media (max-width:1000px){
    .events-library-grid{grid-template-columns:1fr}
    .conference-card{grid-template-columns:230px minmax(0,1fr)}
}

@media (min-width:851px) and (max-height:720px){
    .registration-single-screen .public-header{height:54px;min-height:54px}
    .registration-single-screen .registration-shell{height:calc(100dvh - 54px);min-height:566px;padding:5px 0 8px}
    .registration-single-screen .registration-intro{min-height:62px;padding:8px 14px}
    .registration-single-screen .registration-intro-copy p{display:none}
    .registration-single-screen .registration-intro-copy h1{font-size:18px}
    .registration-single-screen .registration-card{padding-top:9px;padding-bottom:9px}
    .registration-single-screen .registration-heading{margin-bottom:6px;padding-bottom:6px}
    .registration-single-screen .registration-grid{gap:5px 9px}
    .registration-single-screen .registration-grid .form-control{height:33px}
    .registration-single-screen .birthdate-group{padding-top:3px;padding-bottom:5px}
    .registration-single-screen .birthdate-group .form-control{height:28px}
    .registration-single-screen .registration-grid .form-group small{font-size:7px}
    .registration-single-screen .consent-row{margin:5px 0}
    .registration-single-screen .registration-submit{min-height:35px}
}

@media (max-width:850px){
    .events-library-heading{align-items:flex-start;flex-direction:column;gap:10px}
    .events-library-heading-actions{width:100%;justify-content:space-between}
    .events-library-toolbar{grid-template-columns:1fr}
    .events-filter-pills{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
    .registration-single-screen{height:auto;min-height:100vh;overflow:auto}
    .registration-single-screen .public-header{height:auto;min-height:64px}
    .registration-single-screen .registration-shell{height:auto;min-height:0;margin:0 auto 28px;padding-top:7px}
    .registration-single-screen .registration-intro{display:grid;grid-template-columns:1fr;gap:10px}
    .registration-single-screen .registration-intro-side{grid-template-columns:1fr}
    .registration-single-screen .registration-card{overflow:visible}
    .registration-single-screen .registration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .registration-single-screen .registration-grid .full{grid-column:span 2}
    .registration-single-screen .birthdate-group{grid-column:span 2!important}
}

@media (max-width:600px){
    .events-library-page .portal-container{width:min(100% - 24px,1440px)}
    .events-library-heading h1{font-size:24px}
    .events-library-search input{padding-right:90px}
    .events-library-search button{padding:0 11px}
    .conference-card{grid-template-columns:1fr}
    .conference-poster{min-height:210px;aspect-ratio:16/10;border-right:0;border-bottom:1px solid #e8edf5}
    .conference-poster img{max-height:none}
    .conference-content{padding:16px}
    .conference-actions{display:grid;grid-template-columns:1fr 1fr}
    .conference-actions .btn{width:100%}
    .conference-detail-link{grid-column:1/-1;margin:2px 0 0;text-align:center}
    .registration-single-screen .registration-grid{grid-template-columns:1fr}
    .registration-single-screen .registration-grid .full{grid-column:auto}
    .registration-single-screen .birthdate-group{grid-column:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* V11 - Ảnh nền hội nghị y khoa tươi sáng; ảnh nằm trong cùng gói upload. */
.login-brand{
    background-image:
        linear-gradient(90deg,rgba(5,38,82,.30) 0%,rgba(7,50,96,.16) 52%,rgba(12,71,120,.06) 100%),
        url("login-medical-conference-bright-20260812.webp");
    background-position:center center;
    background-size:cover;
}
.login-brand::before{
    inset:0;
    width:auto;
    height:auto;
    border:0;
    border-radius:0;
    background:linear-gradient(180deg,rgba(2,12,31,.03),rgba(2,12,31,.12));
    pointer-events:none;
}
.login-brand::after{display:none}
.login-brand-content{max-width:690px}

.registration-single-screen .registration-intro-copy .eyebrow{font-size:11px}
.registration-single-screen .registration-intro-copy h1{font-size:25px}
.registration-single-screen .registration-intro-copy p{font-size:13px}
.registration-single-screen .registration-event span,
.registration-single-screen .registration-event small{font-size:11px}
.registration-single-screen .registration-event strong{font-size:13px}
.registration-single-screen .cme-note strong{font-size:13px}
.registration-single-screen .cme-note span{font-size:11px}
.registration-single-screen .registration-heading .eyebrow{font-size:10px}
.registration-single-screen .registration-heading h2{font-size:21px}
.registration-single-screen .required-note{font-size:11px}
.registration-single-screen .registration-grid{gap:10px 12px}
.registration-single-screen .registration-grid .form-group{gap:5px}
.registration-single-screen .registration-grid .form-group label{font-size:13px;font-weight:700}
.registration-single-screen .registration-grid .form-control{height:44px;padding:9px 11px;font-size:14px}
.registration-single-screen .registration-grid .form-group small{min-height:13px;font-size:10.5px;line-height:1.3}
.registration-single-screen .birthdate-group{gap:9px;padding:7px 10px 9px}
.registration-single-screen .birthdate-group legend{font-size:12px;font-weight:700}
.registration-single-screen .birthdate-group label{font-size:11px}
.registration-single-screen .birthdate-group .form-control{height:37px;padding:7px 9px;font-size:14px}
.registration-single-screen .consent-row{gap:9px;margin:10px 0 9px;font-size:11.5px;line-height:1.4}
.registration-single-screen .consent-row input{width:17px;height:17px}
.registration-single-screen .registration-submit{min-height:44px;font-size:14px}

@media (min-width:851px) and (max-height:720px){
    .registration-single-screen .registration-intro-copy .eyebrow{font-size:10px}
    .registration-single-screen .registration-intro-copy h1{font-size:20px}
    .registration-single-screen .registration-event span,
    .registration-single-screen .registration-event small{font-size:10px}
    .registration-single-screen .registration-event strong{font-size:12px}
    .registration-single-screen .cme-note strong{font-size:11px}
    .registration-single-screen .cme-note span{font-size:9.5px}
    .registration-single-screen .registration-heading h2{font-size:18px}
    .registration-single-screen .registration-grid{gap:6px 10px}
    .registration-single-screen .registration-grid .form-group label{font-size:11.5px}
    .registration-single-screen .registration-grid .form-control{height:35px;padding:6px 9px;font-size:13px}
    .registration-single-screen .registration-grid .form-group small{min-height:10px;font-size:9.5px}
    .registration-single-screen .birthdate-group{padding:4px 8px 6px}
    .registration-single-screen .birthdate-group legend{font-size:10.5px}
    .registration-single-screen .birthdate-group label{font-size:9.5px}
    .registration-single-screen .birthdate-group .form-control{height:30px;font-size:13px}
    .registration-single-screen .consent-row{margin:6px 0;font-size:10px}
    .registration-single-screen .registration-submit{min-height:37px;font-size:13px}
}

@media (max-width:850px){
    .login-brand{
        background-image:
            linear-gradient(90deg,rgba(5,38,82,.48),rgba(7,50,96,.30)),
            url("login-medical-conference-bright-20260812.webp");
        background-position:62% center;
    }
    .registration-single-screen .registration-grid .form-group label{font-size:13px}
    .registration-single-screen .registration-grid .form-control{height:44px;font-size:14px}
    .registration-single-screen .registration-grid .form-group small{font-size:11px}
    .registration-single-screen .birthdate-group legend{font-size:12px}
    .registration-single-screen .birthdate-group label{font-size:11px}
    .registration-single-screen .consent-row{font-size:12px}
}

/* V9 - Thông tin hội thảo: banner nguyên vẹn, nội dung và tiến độ gọn một màn hình. */
@media (min-width:851px){
    .event-detail-page{height:100dvh;overflow:hidden}
    .event-detail-page .portal-header{position:relative}
    .event-detail-container{
        display:grid;
        width:min(1440px,calc(100% - 40px));
        height:calc(100dvh - 76px);
        grid-template-rows:auto minmax(0,1fr) auto;
        gap:13px;
        margin:0 auto;
        padding:16px 0 18px;
        overflow:hidden;
    }
}
.event-detail-container>.back-link{margin:0}
.event-detail-overview{
    display:grid;
    min-height:0;
    grid-template-columns:minmax(420px,.95fr) minmax(0,1.05fr);
    overflow:hidden;
    padding:0;
    border-radius:20px;
}
.event-detail-media{
    display:grid;
    min-width:0;
    min-height:0;
    place-items:center;
    overflow:hidden;
    border-right:1px solid var(--portal-border);
    background:#eef2f8;
}
.event-detail-media img{display:block;width:100%;height:100%;object-fit:contain}
.event-detail-media.no-image{background:linear-gradient(145deg,#e4ebfb,#f7f9fd)}
.event-detail-media-fallback{display:grid;gap:7px;padding:28px;color:var(--portal-muted);text-align:center}
.event-detail-media-fallback strong{color:var(--portal-primary);font-size:25px}
.event-detail-summary{display:flex;min-width:0;min-height:0;flex-direction:column;padding:21px 24px;overflow-y:auto}
.event-detail-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.event-detail-attendance{color:var(--portal-muted);font-size:12px}.event-detail-attendance strong{color:var(--portal-text)}
.event-detail-summary>.eyebrow{margin-bottom:5px;font-size:10px}
.event-detail-summary h1{margin:0;color:var(--portal-primary);font-size:27px;line-height:1.28}
.event-detail-description{display:-webkit-box;margin:8px 0 14px;overflow:hidden;color:var(--portal-muted);font-size:13px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.event-detail-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.event-detail-meta-grid article{min-width:0;padding:9px 11px;border:1px solid #e2e8f2;border-radius:10px;background:#f8faff}
.event-detail-meta-grid span,.event-detail-meta-grid strong{display:block}.event-detail-meta-grid span{margin-bottom:4px;color:var(--portal-muted);font-size:10px}.event-detail-meta-grid strong{overflow:hidden;color:var(--portal-text);font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.event-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:14px}
.event-detail-actions .btn{min-height:39px;padding:8px 13px;font-size:12px}
.event-replay-state{margin-left:auto;padding:7px 10px;border-radius:999px;background:#f1f2f5;color:#60697a;font-size:10px;font-weight:800;white-space:nowrap}
.event-replay-state.open{background:#e6f8ef;color:var(--portal-success)}
.event-personal-progress{padding:16px 21px;border-radius:17px}
.event-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.event-progress-heading .eyebrow{margin-bottom:2px;font-size:9px}.event-progress-heading h2{margin:0;font-size:17px}
.event-progress-percent{display:flex;align-items:baseline;gap:7px}.event-progress-percent strong{color:var(--portal-primary);font-size:22px}.event-progress-percent span{color:var(--portal-muted);font-size:11px}
.event-progress-large{height:7px;margin:10px 0 12px}
.event-progress-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.event-progress-stats article{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;border-radius:10px;background:#f6f8fc}
.event-progress-stats span{color:var(--portal-muted);font-size:10.5px}.event-progress-stats strong{color:var(--portal-primary);font-size:12px;text-align:right}.event-progress-stats strong.is-approved{color:var(--portal-success)}

/* V9 - Hỏi đáp chỉ là lịch sử; gửi câu hỏi trong phòng hội thảo. */
@media (min-width:851px){
    .chat-history-page{height:100dvh;overflow:hidden}
    .chat-history-page .portal-header{position:relative}
    .chat-history-container{
        display:flex;
        width:min(1440px,calc(100% - 40px));
        height:calc(100dvh - 76px);
        flex-direction:column;
        margin:0 auto;
        padding:15px 0 18px;
        overflow:hidden;
    }
}
.chat-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}
.chat-history-toolbar .back-link{margin:0}.chat-history-actions{display:flex;gap:8px}.chat-history-actions .btn{min-height:38px;padding:8px 12px;font-size:12px}
.chat-history-heading{align-items:flex-start;margin:9px 0 12px}.chat-history-heading .eyebrow{margin-bottom:4px;font-size:10px}.chat-history-heading h1{margin-bottom:5px;font-size:27px}.chat-history-heading p{font-size:13px;line-height:1.45}
.chat-history-container>.alert{flex:0 0 auto;margin-bottom:9px;padding:9px 12px;font-size:12px}
.chat-history-stream{display:flex;min-height:0;flex:1;flex-direction:column;padding:17px 20px;overflow:hidden;border-radius:18px}
.chat-history-stream>.section-title{flex:0 0 auto;margin-bottom:11px}.chat-history-stream>.section-title h2{font-size:18px}.chat-history-stream>.section-title span{font-size:11px}
.chat-history-stream>.question-list{min-height:0;overflow-y:auto;padding-right:5px}
.chat-history-empty{display:flex;min-height:0;flex:1;align-items:center;justify-content:center;flex-direction:column;padding:24px}
.chat-history-empty strong{font-size:19px}.chat-history-empty>span{max-width:620px;line-height:1.5}
.chat-history-empty .btn{min-height:40px;margin-top:17px;padding:9px 15px;font-size:12px}

@media (min-width:851px) and (max-height:760px){
    .event-detail-container{gap:9px;padding-top:10px;padding-bottom:10px}
    .event-detail-summary{padding:15px 18px}
    .event-detail-status-row{margin-bottom:7px}
    .event-detail-summary h1{font-size:23px}
    .event-detail-description{margin:6px 0 9px;font-size:12px}
    .event-detail-meta-grid article{padding:7px 9px}
    .event-detail-actions{padding-top:9px}
    .event-personal-progress{padding:11px 16px}
    .event-progress-large{margin:7px 0 8px}
    .event-progress-stats article{padding:7px 9px}
    .chat-history-container{padding-top:9px;padding-bottom:10px}
    .chat-history-heading{margin:6px 0 8px}.chat-history-heading h1{font-size:23px}.chat-history-heading p{font-size:12px}
    .chat-history-stream{padding:13px 16px}
}

@media (max-width:850px){
    .event-detail-page,.chat-history-page{height:auto;overflow:auto}
    .event-detail-container,.chat-history-container{height:auto;overflow:visible}
    .event-detail-overview{grid-template-columns:1fr}
    .event-detail-media{min-height:230px;aspect-ratio:16/9;border-right:0;border-bottom:1px solid var(--portal-border)}
    .event-detail-summary{padding:19px;overflow:visible}
    .event-progress-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
    .chat-history-toolbar{align-items:flex-start;flex-direction:column}
    .chat-history-actions{width:100%}.chat-history-actions .btn{flex:1}
    .chat-history-stream{min-height:360px;overflow:visible}
    .chat-history-stream>.question-list{overflow:visible}
}

@media (max-width:600px){
    .event-detail-summary h1,.chat-history-heading h1{font-size:23px}
    .event-detail-status-row{align-items:flex-start;flex-direction:column}
    .event-detail-meta-grid,.event-progress-stats{grid-template-columns:1fr}
    .event-detail-actions{display:grid;grid-template-columns:1fr}.event-detail-actions .btn{width:100%}
    .event-replay-state{margin-left:0;text-align:center}
    .event-progress-heading{align-items:flex-start;flex-direction:column;gap:7px}
    .chat-history-actions{display:grid;grid-template-columns:1fr}
}

/* V11 - Post-test tích hợp trong cổng đại biểu. */
.event-resource-button.posttest.disabled{
    cursor:not-allowed;
    border-color:#dce4e0;
    background:#f2f5f3;
    color:#7c8983;
    opacity:.82;
}
.posttest-progress-value{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.posttest-progress-value small{padding:3px 6px;border-radius:999px;background:#eef2f7;color:#5f6a7c;font-size:8px;font-weight:800}
.posttest-progress-value.passed{color:var(--portal-success)}
.posttest-progress-value.passed small{background:#e4f7ed;color:var(--portal-success)}
.posttest-progress-value.failed{color:var(--portal-danger)}
.posttest-progress-value.failed small{background:#fdecea;color:var(--portal-danger)}

@media (min-width:851px){
    .post-test-page{height:100dvh;overflow:hidden}
    .post-test-page .portal-header{position:relative}
    .post-test-container{
        display:flex;
        width:min(1180px,calc(100% - 40px));
        height:calc(100dvh - 76px);
        min-height:0;
        flex-direction:column;
        gap:11px;
        margin:0 auto;
        padding:14px 0 16px;
        overflow:hidden;
    }
}
.post-test-toolbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;color:var(--portal-muted);font-size:11px}
.post-test-toolbar .back-link{margin:0}
.post-test-overview{display:grid;flex:0 0 auto;grid-template-columns:minmax(260px,.8fr) minmax(420px,1.2fr);gap:12px 25px;padding:17px 20px;border-radius:17px}
.post-test-title-block{min-width:0;align-self:center}
.post-test-title-block .eyebrow{margin-bottom:4px;font-size:9px}
.post-test-title-block h1{margin:0;color:var(--portal-primary);font-size:23px;line-height:1.25}
.post-test-title-block p{margin:5px 0 0;color:var(--portal-muted);font-size:12px;line-height:1.4}
.post-test-identity{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.post-test-identity article{min-width:0;padding:8px 10px;border:1px solid #e3e9f3;border-radius:10px;background:#f8faff}
.post-test-identity span,.post-test-identity strong{display:block}
.post-test-identity span{margin-bottom:3px;color:var(--portal-muted);font-size:9px}
.post-test-identity strong{overflow:hidden;color:var(--portal-text);font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.post-test-badges{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:6px;padding-top:1px}
.post-test-badges>span{padding:5px 8px;border-radius:999px;background:#edf3ff;color:#53647f;font-size:9px}
.post-test-badges strong{color:var(--portal-primary)}
.post-test-access-error{flex:0 0 auto;margin:0}
.post-test-home-grid{display:grid;min-height:0;grid-template-columns:270px minmax(0,1fr);gap:11px}
.post-test-home-grid.no-result{grid-template-columns:1fr}
.post-test-result-card,.post-test-start-card{min-height:0;margin:0;padding:19px 21px;border-radius:17px}
.post-test-result-card{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}
.post-test-result-card .eyebrow{margin-bottom:2px}
.post-test-score{display:block;color:var(--portal-primary);font-size:38px;line-height:1.1}
.post-test-result-card h2{margin:5px 0 2px;font-size:17px}.post-test-result-card h2.passed{color:var(--portal-success)}.post-test-result-card h2.failed{color:var(--portal-danger)}
.post-test-result-card p{margin:3px 0 0;color:var(--portal-muted);font-size:11px}
.post-test-start-card{display:flex;align-items:center;justify-content:space-between;gap:24px}
.post-test-start-card>div{min-width:0}
.post-test-start-card .eyebrow{margin-bottom:4px;font-size:9px}
.post-test-start-card h2{margin:0;color:var(--portal-text);font-size:18px;line-height:1.35}
.post-test-start-card p{max-width:720px;margin:7px 0 0;color:var(--portal-muted);font-size:12px;line-height:1.5}
.post-test-start-card form{flex:0 0 auto}.post-test-start-card .btn{white-space:nowrap}
.post-test-notice{flex:0 0 auto;padding:10px 12px;border:1px solid #f0d7a2;border-radius:10px;background:#fff8e8;color:#83570d;font-size:11px;font-weight:700}
.post-test-review-card{display:flex;min-height:0;flex:1;flex-direction:column;padding:15px 18px;overflow:hidden;border-radius:17px}
.post-test-section-heading{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:15px;margin-bottom:9px}
.post-test-section-heading h2{margin:0;color:var(--portal-primary);font-size:16px}.post-test-section-heading span{color:var(--portal-muted);font-size:10px}
.post-test-review-list{min-height:0;overflow-y:auto;padding-right:5px}
.post-test-review-list article{padding:10px 2px;border-top:1px solid #e8edf5}
.post-test-review-list article:first-child{border-top:0}
.post-test-review-list strong{font-size:12px;line-height:1.45}.post-test-review-list p{margin:5px 0 0;color:var(--portal-muted);font-size:10px}.post-test-review-list small{display:block;margin-top:4px;color:#4d607e;line-height:1.45}

.post-test-quiz-card{display:flex;min-height:0;flex:1;flex-direction:column;padding:17px 20px;overflow-y:auto;border-radius:17px}
.post-test-progress-row{display:flex;flex:0 0 auto;align-items:center;gap:12px;margin-bottom:13px}
.post-test-progress-row>strong{min-width:72px;color:var(--portal-primary);font-size:12px}
.post-test-progress{height:7px;flex:1;overflow:hidden;border-radius:999px;background:#e7ecf4}
.post-test-progress>div{width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--portal-primary-2),var(--portal-accent));transition:width .2s ease}
.post-test-timer{min-width:48px;color:var(--portal-danger);font-size:12px;font-weight:900;text-align:right}
.post-test-question-form{min-height:0;flex:1}
.post-test-question{display:none}.post-test-question.active{display:block}
.post-test-question h2{display:flex;align-items:flex-start;gap:10px;margin:0 0 13px;color:var(--portal-text);font-size:17px;line-height:1.45}
.post-test-question h2>span{flex:0 0 auto;padding:4px 7px;border-radius:7px;background:#edf3ff;color:var(--portal-primary);font-size:10px;line-height:1.4;white-space:nowrap}
.post-test-question-image{display:block;max-width:100%;max-height:230px;margin:0 auto 13px;border:1px solid var(--portal-border);border-radius:11px;object-fit:contain}
.post-test-options{display:grid;gap:7px}
.post-test-option{display:grid;grid-template-columns:auto 28px minmax(0,1fr);align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid var(--portal-border);border-radius:11px;background:#fff;cursor:pointer;font-size:12px;line-height:1.45;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.post-test-option:hover,.post-test-option.selected{border-color:#9bbaf6;background:#f5f8ff;box-shadow:0 4px 12px rgba(50,104,217,.06)}
.post-test-option input{width:16px;height:16px;margin:2px 0 0;accent-color:var(--portal-primary-2)}
.post-test-option-key{display:grid;width:25px;height:25px;place-items:center;margin-top:-2px;border-radius:8px;background:#edf2fb;color:var(--portal-primary);font-size:11px;font-weight:900}
.post-test-option.selected .post-test-option-key{background:var(--portal-primary-2);color:#fff}
.post-test-quiz-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:18px;margin-top:13px;padding-top:12px;border-top:1px solid #e8edf5}
.post-test-save-state{color:var(--portal-muted);font-size:10px}
.post-test-navigation{display:flex;gap:8px}.post-test-navigation .btn{min-height:37px;padding:8px 13px;font-size:11px}

@media (min-width:851px) and (max-height:720px){
    .post-test-container{gap:8px;padding-top:9px;padding-bottom:9px}
    .post-test-overview{grid-template-columns:minmax(240px,.8fr) minmax(390px,1.2fr);padding:12px 16px}
    .post-test-title-block h1{font-size:20px}
    .post-test-identity article{padding:6px 8px}
    .post-test-badges{display:none}
    .post-test-result-card,.post-test-start-card{padding:14px 17px}
    .post-test-score{font-size:31px}
    .post-test-quiz-card{padding:13px 16px}
    .post-test-progress-row{margin-bottom:9px}
    .post-test-question h2{margin-bottom:9px;font-size:15px}
    .post-test-options{gap:5px}.post-test-option{padding:8px 10px}
    .post-test-quiz-footer{margin-top:9px;padding-top:8px}
}

@media (max-width:850px){
    .post-test-page{height:auto;overflow:auto}
    .post-test-container{height:auto;overflow:visible}
    .post-test-overview{grid-template-columns:1fr}
    .post-test-badges{grid-column:auto}
    .post-test-home-grid{grid-template-columns:1fr}
    .post-test-start-card{align-items:flex-start;flex-direction:column}
    .post-test-review-card,.post-test-quiz-card{overflow:visible}
    .post-test-review-list{overflow:visible}
}

@media (max-width:600px){
    .post-test-toolbar{align-items:flex-start;flex-direction:column}
    .post-test-overview,.post-test-result-card,.post-test-start-card,.post-test-review-card,.post-test-quiz-card{padding:16px}
    .post-test-title-block h1{font-size:21px}
    .post-test-identity{grid-template-columns:1fr}
    .post-test-question h2{font-size:15px}
    .post-test-option{grid-template-columns:auto 27px minmax(0,1fr)}
    .post-test-quiz-footer{align-items:stretch;flex-direction:column}
    .post-test-save-state{text-align:center}
    .post-test-navigation{display:grid;grid-template-columns:1fr 1fr}
    .post-test-navigation .btn{width:100%}
}

/* V10 - Danh sách Hỏi đáp đại biểu: gọn, mảnh và chuyên nghiệp. */
.chat-event-index-page{height:100dvh;overflow:hidden}
.chat-event-index-container{display:flex;width:min(1480px,calc(100% - 40px));height:calc(100dvh - 76px);min-height:0;margin:0 auto;padding:18px 0 20px;flex-direction:column;overflow:hidden}
.chat-event-index-container .page-heading{flex:0 0 auto;align-items:center;margin-bottom:14px;padding:0 2px}
.chat-event-index-container .page-heading h1{margin:0 0 4px;color:#1f397a;font-size:25px;font-weight:600;letter-spacing:-.025em}
.chat-event-index-container .page-heading p{margin:0;color:#748096;font-size:12.5px;font-weight:400;line-height:1.45}
.chat-event-index-container .page-heading .btn{min-height:38px;padding:8px 13px;border-radius:10px;font-size:12px;font-weight:550}
.chat-event-index-container>.alert,.chat-event-index-container>.empty-state{flex:0 0 auto}
.chat-event-index-page .chat-event-grid{display:grid;min-height:0;flex:1 1 auto;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:14px;padding:2px 5px 4px 2px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#aebdd0 transparent}
.chat-event-index-page .chat-event-card{display:flex;height:410px;min-height:410px;padding:0;flex-direction:column;overflow:hidden;border:1px solid #dde5ef;border-radius:16px;background:#fff;box-shadow:0 9px 25px rgba(31,57,112,.07);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.chat-event-index-page .chat-event-card:hover{border-color:#b9cae1;box-shadow:0 13px 30px rgba(31,57,112,.10);transform:translateY(-1px)}
.chat-event-index-page .chat-event-banner{display:grid;width:100%;height:225px;min-height:225px;place-items:center;overflow:hidden;border-bottom:1px solid #e3e9f1;background:#f3f6fb}
.chat-event-index-page .chat-event-banner img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
.chat-event-banner.no-image{padding:20px;background:linear-gradient(145deg,#e8efff,#f8faff);text-align:center}
.chat-event-banner.no-image span{display:grid;gap:6px;color:#6f7d92;font-size:11px;line-height:1.4}.chat-event-banner.no-image strong{color:#294a9d;font-size:19px;font-weight:600}
.chat-event-card-body{display:flex;min-width:0;flex:1 1 auto;flex-direction:column;padding:14px 16px 10px;overflow:visible}.chat-event-date{display:inline-flex;flex:0 0 auto;margin-bottom:8px;color:#78859a;font-size:11px;font-weight:500}
.chat-event-index-page .chat-event-card h2{display:-webkit-box;min-height:48px;margin:0;overflow:hidden;color:#1c2b47;font-size:16px;font-weight:600;letter-spacing:-.018em;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.chat-event-index-page .chat-event-open-button{display:flex;min-height:40px;flex:0 0 40px;margin:0 16px 16px;align-items:center;justify-content:center;border:1px solid #315fc2;border-radius:10px;background:#315fc2;color:#fff;font-size:12px;font-weight:550;text-decoration:none;box-shadow:none}
.chat-event-index-page .chat-event-open-button:hover{border-color:#274fa7;background:#274fa7;transform:none}
.chat-event-index-page .chat-event-open-button.disabled{border-color:#d8dee8;background:#e8ecf2;color:#99a3b2;cursor:not-allowed;pointer-events:none}
@media (max-width:1180px){.chat-event-index-page .chat-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.chat-event-index-page{height:auto;overflow:auto}.chat-event-index-container{width:min(100% - 24px,1480px);height:auto;min-height:calc(100vh - 76px);overflow:visible}.chat-event-index-container .page-heading{align-items:flex-start;flex-direction:column;gap:10px}.chat-event-index-container .page-heading .btn{width:100%;text-align:center}.chat-event-index-page .chat-event-grid{grid-template-columns:1fr;overflow:visible}.chat-event-index-page .chat-event-card{height:auto;min-height:390px}.chat-event-index-page .chat-event-banner{height:auto;min-height:180px;aspect-ratio:16/9}}
