/* SENSEL STUDY — PRODUCT DESIGN SYSTEM v2.0
   2026-11-17. Pure presentation refinement; preserves all application routes, IDs,
   account sessions, API calls, SENSEL Adblock and learning data.
*/
:root {
  --canvas:#f6f8fc;
  --surface:#ffffff;
  --ink:#172744;
  --navy:#112844;
  --navy2:#0b1b33;
  --muted:#63738c;
  --line:#e3e9f2;
  --purple:#6050d8;
  --purple-soft:#f0edff;
  --cyan:#21b7a6;
  --radius:19px;
}
html{-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.65;letter-spacing:-.1px}
button,input,textarea,select{font-family:inherit}
button,a{transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #8478eb;outline-offset:3px}
button:active:not(:disabled){transform:translateY(1px)}
/* Product canvas, consistent left/right alignment */
.app{background:linear-gradient(to right,#0b203e 0 230px,var(--canvas) 230px)}
.main{padding:0 clamp(22px,2.9vw,48px) 48px}
.main>.topbar,.main>.main-section,.main>.preview-notice{max-width:1320px;margin-left:auto;margin-right:auto}
.main>.preview-notice{margin-top:24px}
.topbar{height:84px;gap:18px;margin-bottom:25px;border-bottom:1px solid #e8edf5}
.crumb{font-size:12px;color:#8795aa}
.crumb b{color:#223957;font-weight:800}
.top-actions{gap:10px}
.designflag{background:#f0f5fb!important;color:#526f8a!important;border:1px solid #e0e9f5!important;border-radius:999px;font-size:10px;padding:7px 13px;letter-spacing:.15px;font-weight:750}
.top-circle{width:39px;height:39px;border-color:#e3e9f2;border-radius:12px;color:#677991}
.top-account{min-height:45px;border-radius:13px;border:1px solid #e1e7f1;box-shadow:0 3px 12px #1b2e5705;padding:6px 11px 6px 6px}
.top-account .avatar{width:33px;height:33px;border-radius:11px;background:#edeafe;color:#6251d5}
.top-account b{font-size:12px;color:#263650}
.top-account small{font-size:10px;color:#77869e}
.top-account:hover,.top-circle:hover{border-color:#c7c5ed;background:#fbfaff}

/* Persistent app rail */
.side{background:linear-gradient(175deg,#102745 0%,#0d2243 58%,#09192f 100%);padding:26px 13px 20px}
.logo{gap:11px;padding:0 13px;margin-bottom:36px}
.logo strong{font-size:19px;letter-spacing:.3px}
.logo .subbrand{letter-spacing:1.08px!important;font-size:9px!important;color:#9eb4d7}
.brand-symbol{width:40px;height:40px}
.side-label{font-size:10px;letter-spacing:1.5px;color:#819bbd;margin-bottom:12px}
.side-nav{gap:4px}
.side-nav button,.side-bottom button{font-size:12.5px;line-height:1.35;border-radius:12px;padding:12px 12px;font-weight:650;color:#c8d6eb}
.side-nav button .icon{width:18px;height:18px}
.side-nav button.active{background:#ffffff1c;border:1px solid #b7b2fb46;color:#fff;box-shadow:inset 3px 0 #a497ff}
.side-nav button:hover:not(.active),.side-bottom button:hover{background:#ffffff12}
.navsep{margin:18px 12px;background:#ffffff1c}
.side-promo{background:linear-gradient(155deg,#293b6f,#14294d);border:1px solid #7186bc32;border-radius:16px;padding:16px;margin:0 6px 17px}
.side-promo .logo-mini{font-size:9px;color:#b9c4ff;letter-spacing:1.1px}
.side-promo b{font-size:14px;margin:9px 0 6px;line-height:1.5}
.side-promo p{font-size:11px;color:#bac9e0;line-height:1.65}
.side-bottom{border-top-color:#ffffff22}
.side-bottom .avatar{background:#6757dc;border-radius:50%}
.side-bottom span span{font-size:11px;color:#b4c6df}

/* Banner — one strong focal point and calmer illustration */
.hero{min-height:284px;grid-template-columns:minmax(0,1.6fr) minmax(250px,.8fr);border-radius:24px;box-shadow:0 20px 52px #15254f16;background:
  radial-gradient(circle at 84% 49%,#4c469a 0,transparent 34%),
  linear-gradient(112deg,#132e51 0%,#242b69 56%,#392d86 100%)}
.hero-copy{padding:39px clamp(28px,3vw,48px) 36px}
.hero:after{opacity:.42}
.eyebrow{font-size:11px;letter-spacing:1.8px;color:#b4c7ee}
.hero h1{font-size:clamp(30px,2.7vw,42px);line-height:1.3;letter-spacing:-1.2px;margin:13px 0 13px;max-width:660px}
.hero h1 em{color:#9ef0db}
.hero p{font-size:13px;color:#d7e3fa;line-height:1.85;max-width:590px;margin:0 0 23px}
.hero-buttons{gap:10px}
.hero-visual{min-height:260px;overflow:hidden}
.hero-icon{height:121px;width:121px;border-radius:33px;box-shadow:10px 16px 37px #0a133b80}
.hero-icon svg{width:68px;height:68px}
.orbit{width:238px;height:238px;opacity:.68}
.orbit:nth-child(2){width:190px;height:190px}
.float-mini{font-size:10px;border-radius:11px;padding:8px 11px}
.float-mini.left{top:64px;left:2px}
.float-mini.right{bottom:55px;right:12px}

/* Type scale: larger content, restrained headings */
.section-title{font-size:26px;line-height:1.34;letter-spacing:-.8px;margin:0 0 8px;color:#172944}
.section-sub{font-size:13px;line-height:1.75;color:#6a7c95;margin:0 0 24px}
.section-head{margin:31px 0 15px;align-items:center;gap:12px}
.section-head h2{font-size:18px;line-height:1.4;letter-spacing:-.45px;color:#1a2f4e}
.section-head p{font-size:12px;color:#76859d;line-height:1.6;margin-top:5px}
.section-link{font-size:12px;font-weight:800}
.pill{font-size:10.5px;padding:6px 11px;border-color:#e2e7f2}
.pill.selected{background:#f0edff;color:#6050cc}
.pill.live{background:#eef9f5;color:#14876e}
.pill.soon{background:#fff6e9;color:#98661c}

/* Consistent card treatments and meaningful spacing */
.pillar-grid,.workspace-grid,.trail-grid,.full-lesson,.account-layout,.journey-main{gap:16px}
.pillar{min-height:153px;border:1px solid #e3e9f3;border-radius:19px;box-shadow:0 5px 20px #13294905;padding:22px;grid-template-columns:48px minmax(0,1fr);gap:15px}
.pillar .p-ico{width:48px;height:48px;border-radius:15px}
.pillar h3{font-size:14.5px;line-height:1.45;color:#1c2f50;margin:2px 0 7px}
.pillar p{font-size:12px;color:#697b94;line-height:1.75;margin:0 0 10px}
.pillar .stats{font-size:11px;color:#65728f;gap:12px}
.pillar .stats .pending{color:#98702c}
.panel{border:1px solid #e3e9f2;border-radius:19px;box-shadow:0 7px 26px #17284906}
.panel-header{padding:18px 19px 15px}
.panel-title{font-size:14px;line-height:1.5;color:#203654}
.panel-caption{font-size:11px}
.video-box{min-height:224px;border-radius:14px;margin:0 18px}
.video-box .draw-grid{opacity:.65}
.video-box .lecture-art{opacity:.30}
.video-box .lecture-art .formula{font-size:25px}
.video-box .play{width:58px;height:58px;box-shadow:0 10px 35px #0003}
.video-box .video-label{font-size:12px;line-height:1.5}
.video-box .sub-label{font-size:10px}
.urlbar{margin:13px 18px;background:#f7f9fc;border:1px solid #e1e7f1;padding:6px 6px 6px 13px;min-height:46px}
.urlbar input{font-size:12px}
.video-bottom{padding:0 18px 18px}
.video-bottom .left{gap:8px}
.micro-button{font-size:11px;min-height:32px;padding:6px 10px}
.ai-body{padding:0 18px 18px}
.ai-alert{border-radius:13px}
.ai-alert b{font-size:12px}
.ai-alert p,.steps small{font-size:11px;line-height:1.65}
.btn{min-height:42px;padding:11px 16px;border-radius:11px;font-size:12px;line-height:1.25;letter-spacing:-.05px}
.btn.primary{color:#3d349e}
.btn.purple{background:#6050d8}
.btn.purple:hover{background:#5041c0}
.btn.ghost{background:#f0edff;color:#5547bf}
.btn.ghost:hover{background:#e5dfff}
.btn.white{border-color:#dedff0;color:#504ab4}
.section-link:hover{color:#4339b0}
.stages{padding-bottom:15px}
.stage{min-height:42px;font-size:11px}
.stage.active{background:#eeebff;color:#5646c9}
.timeline-content{background:#f7f9fc;border-color:#e8edf5;padding:16px}
.timeline-content b{font-size:13px}
.timeline-content p{font-size:11px}
.journey-note{font-size:11px}
.account-card{padding:20px}
.account-cell{padding:23px}
.acct-row strong{font-size:13px}
.acct-row small{font-size:11px}
.data-line{padding:12px 0;font-size:12px}
.account-card .btn{align-self:flex-start}
.study-access{font-size:12px;line-height:1.7;border-radius:12px}
.study-field{font-size:13px;line-height:1.6;border-radius:11px;border-color:#dbe3ef;padding:12px}
.study-label{font-size:12px;margin-top:15px}
.study-hint,.study-card-body small{font-size:11px}
.study-list-item{font-size:12px}
.study-review-question{font-size:14px}
.study-stats strong{font-size:30px}
.study-stats span{font-size:11px}
.study-timer{color:#5648c4}
.preview-notice{border:1px solid #e1e7f0;background:#eef2f9;color:#64738e;border-radius:13px;padding:12px 16px;font-size:11px;line-height:1.65}
.preview-notice b{color:#425a7c}

/* Footer is visibly separate but clearly part of one product */
.sensel-home-footer{background:#e9eef6!important;border-top:1px solid #d2ddeb!important;box-shadow:none!important;padding:38px clamp(22px,2.9vw,48px) 29px!important}
.sensel-home-footer .footer-inner{max-width:1320px}
.sensel-home-footer .footer-top{gap:30px}
.sensel-home-footer .footer-links{border-top-color:#cbd5e4}
.sensel-home-footer .legal{font-size:11.5px;color:#6a7c92}
.sensel-home-footer p{color:#62738b}
.sensel-home-footer .footer-brand b{font-size:22px}

/* Medium desktop / small laptop */
@media(min-width:741px) and (max-width:1250px){
  .main{padding:0 24px 40px}
  .hero{grid-template-columns:minmax(0,1.6fr) minmax(210px,.8fr)}
  .hero-copy{padding:32px}
  .hero h1{font-size:clamp(26px,3.1vw,35px)}
  .hero p{font-size:12px}
  .pillar{padding:18px}
  .pillar-grid,.workspace-grid,.trail-grid,.full-lesson,.account-layout{gap:13px}
  .sensel-home-footer{padding-left:24px!important;padding-right:24px!important}
}
@media(min-width:741px) and (max-width:1050px){
  .app{background:linear-gradient(to right,#0b203e 0 73px,var(--canvas) 73px)}
  .side{padding:19px 7px}
  .side-nav button{padding:12px 9px}
  .hero-visual{min-height:205px}
  .hero-icon{width:96px;height:96px;border-radius:24px}
  .hero-icon svg{width:55px;height:55px}
  .hero p{font-size:11.5px}
  .workspace-grid,.full-lesson{grid-template-columns:minmax(0,1.05fr) minmax(270px,.95fr)}
  .sensel-home-footer .footer-top{gap:20px}
}

/* Mobile — thumb-first hierarchy */
@media(max-width:740px){
  html{scroll-padding-bottom:76px}
  body{font-size:13.5px;line-height:1.65}
  .app{background:var(--canvas)}
  .main{padding:0 16px 30px}
  .topbar{height:70px;margin-bottom:13px;padding:0 1px;border-bottom:0}
  .crumb:after{content:"SENSEL · HỌC TẬP";font-size:11px;letter-spacing:.15px}
  .top-actions{gap:7px}
  .designflag{display:none!important}
  .top-account{min-width:45px;min-height:44px;padding:5px;border-radius:13px}
  .top-account .avatar{width:34px;height:34px}
  .main>.main-section,.main>.topbar,.main>.preview-notice{max-width:none}
  .section-title{font-size:23px;line-height:1.35;letter-spacing:-.6px}
  .section-sub{font-size:12px;line-height:1.7;margin-bottom:18px}
  .hero{display:flex;flex-direction:column;min-height:0;border-radius:21px;overflow:hidden}
  .hero-copy{padding:27px 23px 0}
  .eyebrow{font-size:10px;letter-spacing:1.2px}
  .hero h1{font-size:clamp(25px,7vw,31px);line-height:1.3;letter-spacing:-.75px;margin:12px 0}
  .hero p{font-size:12px;line-height:1.75;margin:0 0 19px}
  .hero-buttons{gap:8px}
  .hero-buttons .btn{min-height:41px}
  .hero-visual{height:125px;min-height:125px}
  .hero-icon{width:80px;height:80px;border-radius:22px;box-shadow:7px 10px 22px #101a4b72}
  .hero-icon svg{width:48px;height:48px}
  .orbit{width:157px;height:157px}
  .orbit:nth-child(2){width:112px;height:112px}
  .glow{height:120px;width:120px;filter:blur(29px)}
  .float-mini{display:none}
  .section-head{margin:25px 0 13px;align-items:start;gap:9px}
  .section-head h2{font-size:17px}
  .section-head p{font-size:11.5px;line-height:1.65}
  .section-link{font-size:11px}
  .pillar-grid,.workspace-grid,.trail-grid,.full-lesson,.journey-main,.account-layout{grid-template-columns:minmax(0,1fr);gap:12px}
  .pillar{min-height:0;padding:18px;grid-template-columns:44px minmax(0,1fr);gap:12px}
  .pillar .p-ico{width:44px;height:44px;border-radius:13px}
  .pillar h3{font-size:13px}
  .pillar p{font-size:11.5px}
  .pillar .stats{font-size:10.5px}
  .panel{border-radius:17px}
  .panel-header{padding:16px}
  .panel-title{font-size:13px}
  .video-box{margin:0 14px;min-height:190px}
  .video-box .lecture-art .formula{font-size:23px}
  .urlbar{margin:11px 14px;min-height:44px}
  .urlbar input{font-size:16px}
  .video-bottom{padding:0 14px 15px}
  .btn{min-height:42px;font-size:11.5px;white-space:normal}
  .study-field,input[type="text"],input[type="url"],textarea,select{font-size:16px}
  .study-label{font-size:12px}
  .study-note-entry{grid-template-columns:75px minmax(0,1fr)}
  .study-access{font-size:11.5px}
  .account-card,.account-cell,.lesson-side{padding:17px}
  .data-line{font-size:11px;gap:8px;flex-wrap:wrap}
  .data-line>b{overflow-wrap:anywhere;text-align:right}
  .stages .stage{font-size:10px}
  .journey-note{font-size:11px}
  .preview-notice{font-size:10.5px;padding:11px 13px}
  .bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));min-height:63px;box-shadow:0 -5px 22px #12213c0c;border-top:1px solid #e0e6f0;backdrop-filter:blur(12px);background:#fffffff4;padding:7px 2px max(7px,env(safe-area-inset-bottom))}
  .bottom-nav button{font-size:9.5px;min-height:46px;gap:4px;padding:4px 1px 2px}
  .bottom-nav .icon{width:19px;height:19px}
  .sensel-home-footer{padding:29px 20px calc(98px + env(safe-area-inset-bottom))!important}
  .sensel-home-footer .footer-top{grid-template-columns:1fr;gap:22px}
  .sensel-home-footer .footer-links{gap:11px 18px}
  .sensel-home-footer .footer-brand b{font-size:22px}
}
@media(max-width:360px){
  .main{padding:0 12px 24px}
  .hero-copy{padding:24px 19px 0}
  .hero h1{font-size:24px}
  .hero-buttons .btn{padding:10px 11px;font-size:11px}
  .section-head h2{font-size:16px}
  .bottom-nav button{font-size:9px}
  .sensel-home-footer{padding-left:16px!important;padding-right:16px!important}
}
@media(prefers-reduced-motion:reduce){
  button,a{transition:none!important}
}


/* Phone header must show exactly one product name, not old breadcrumb + generated label. */
@media(max-width:740px){
 .crumb{font-size:0!important}
 .crumb b,.crumb>span{font-size:0!important;display:none!important}
 .crumb:after{content:"SENSEL · HỌC TẬP";display:inline-block;font-size:11.5px!important;font-weight:800;color:#253f64;letter-spacing:.25px;white-space:nowrap}
}
/* Neutral video placeholder until a real YouTube link is selected. */
.video-box .lecture-art{display:none!important}
