/* Exact tutor dashboard sidebar styling reused on feature pages. */
:root{--navy:#0B1D3A;--navy2:#112244;--gold:#C9A84C;--gold2:#E8C96A;--white:#fff;--off:#F4F6F9;--border:#E5E9F0;--txt:#1A2744;--txt2:#6B7A99;--r8:8px}
/* ── SIDEBAR ──────────────────────────── */
.sidebar{width:248px;flex-shrink:0;background:linear-gradient(180deg,#FFF 0%,#F7FAFE 62%,#FFFDF8 100%);display:flex;flex-direction:column;height:100vh;height:100dvh;position:fixed;top:0;left:0;z-index:100;overflow:hidden;transition:transform .25s;border-right:1px solid #E6EBF2;box-shadow:8px 0 26px rgba(18,33,63,.035)}
.sb-logo{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:18px 20px 16px;border-bottom:1px solid #E6EBF2;background:#fff}
.sb-brand-stack{display:flex;flex-direction:column;gap:6px;min-width:0}
.sb-logo-mark{display:block;height:26px;width:auto;max-width:160px;object-fit:contain}
.sb-brand-tag{color:rgba(201,168,76,.86);font-size:.56rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.sb-logo-icon{display:none}
.sb-logo-text{display:none}
.sb-profile{padding:14px 16px 12px;border-bottom:1px solid #E6EBF2}
.sb-profile-row{display:flex;align-items:center;gap:10px}
.sb-av{width:38px;height:38px;border-radius:10px;flex-shrink:0;background:linear-gradient(135deg,var(--gold),var(--gold2));color:var(--navy);font-weight:800;font-size:.95rem;display:flex;align-items:center;justify-content:center}
.sb-info{min-width:0;flex:1}
.sb-name{color:#183353;font-weight:700;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-sub{color:#627895;font-size:.68rem;margin-top:1px}
.sb-coins{margin-top:10px;display:flex;align-items:center;gap:7px;background:rgba(201,168,76,.1);border:1px solid rgba(201,168,76,.18);border-radius:8px;padding:6px 10px}
.sb-coins-val{color:var(--gold);font-weight:800;font-size:.84rem}
.sb-coins-lbl{color:rgba(201,168,76,.6);font-size:.68rem}
.sb-nav{flex:1;overflow-y:auto;padding:6px 10px;scrollbar-width:none}
.sb-nav::-webkit-scrollbar{display:none}
.nav-section{font-size:.59rem;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:#8390A8;padding:10px 10px 4px}
.nav-item{display:flex;text-decoration:none;align-items:center;gap:9px;padding:8px 10px;border-radius:var(--r8);cursor:pointer;color:#334767;font-size:.82rem;font-weight:600;margin-bottom:1px;transition:all .15s;position:relative;user-select:none}
.nav-item:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;color:#173459}
.nav-item:hover{background:#F0F6FD;color:#0F315E}
.nav-item.active{background:linear-gradient(90deg,#FFF3D5,#FFF9E8);color:#9A6300;font-weight:700;box-shadow:inset 0 0 0 1px #F3E2B6}
.nav-item.active::before{content:'';position:absolute;left:0;top:20%;bottom:20%;width:3px;background:var(--gold);border-radius:0 2px 2px 0}
.nav-icon{width:18px;text-align:center;font-size:.88rem;flex-shrink:0}
.nav-label{flex:1}
.nav-badge{background:var(--gold);color:var(--navy);font-size:.6rem;font-weight:800;padding:1px 6px;border-radius:8px;min-width:16px;text-align:center}
.nav-badge-red{background:#EF4444;color:#fff}
.nav-divider{height:1px;background:#E6EBF2;margin:6px 10px}
.sb-bottom{padding:10px;border-top:1px solid #E6EBF2;background:#fff}
.sb-bottom-btn{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:var(--r8);cursor:pointer;width:100%;color:#405474;font-size:.8rem;font-weight:500;transition:all .15s;background:none;border:none;font-family:inherit}
.sb-bottom-btn:hover{background:#F6F8FB;color:#12213F}


/* Keep the dashboard's responsive behavior, with matching mobile menu/overlay. */
body.tc-portal-shell{margin-left:248px;min-width:0;overflow-x:hidden}
body.tc-portal-shell.tc-portal-public{margin-left:0}
body.tc-portal-shell .sidebar{font-family:Inter,system-ui,sans-serif;box-sizing:border-box}
body.tc-portal-shell .sidebar *{box-sizing:border-box}
body.tc-portal-shell .sidebar a{color:#334767;text-decoration:none}
body.tc-portal-shell .sidebar a:hover{color:#0F315E}
body.tc-portal-shell .sidebar a.active{color:#9A6300}
body.tc-portal-shell .sidebar .sb-logo-text{color:#183353}
body.tc-portal-shell .sidebar .sb-bottom-btn{color:#405474}
body.tc-portal-shell .sidebar .sb-bottom-btn:hover{color:#12213F}
.tc-portal-topbar{height:56px;position:sticky;top:0;z-index:85;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;background:#fff;border-bottom:1px solid #e5e9f0;font:600 13px/1.5 Inter,system-ui,sans-serif;color:#1a2744}
.tc-portal-topbar .tc-portal-title{font-size:15px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tc-portal-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.tc-portal-actions a{color:#1a2744!important;text-decoration:none!important;border:1px solid #e5e9f0;padding:7px 11px;border-radius:8px;font-weight:700;white-space:nowrap}
.tc-portal-actions a:hover{border-color:#0b1d3a}
.tc-portal-menu{display:none;background:transparent;border:0;color:#1a2744;font-size:23px;width:40px;height:40px;cursor:pointer;flex-shrink:0}
.tc-portal-menu:focus-visible,.tc-portal-topbar a:focus-visible,.sidebar a:focus-visible{outline:2px solid #c9a84c;outline-offset:2px}
.tc-portal-overlay{display:none}
body.tc-portal-shell .wrap,body.tc-portal-shell main{max-width:min(1120px,100%);box-sizing:border-box}
body.tc-portal-shell .wrap{padding-left:clamp(14px,3vw,28px);padding-right:clamp(14px,3vw,28px)}
body.tc-portal-shell .card{min-width:0;overflow-wrap:anywhere}
body.tc-portal-shell input,body.tc-portal-shell select,body.tc-portal-shell textarea{max-width:100%;box-sizing:border-box}
body.tc-portal-shell .top,body.tc-portal-shell .wrap>div:first-child{flex-wrap:wrap;gap:12px}
body.tc-portal-shell .tabs{display:flex;flex-wrap:wrap;gap:9px}
body.tc-portal-shell .grid{min-width:0}
body.tc-portal-shell .navbar{display:none!important}
body.tc-portal-shell{padding-top:0!important}
body.tc-portal-shell .q-page{padding-top:28px}
body.tc-portal-shell .chat-layout{height:calc(100dvh - 56px);padding-top:0;min-height:0}
body.tc-portal-shell > div[style*="padding-top:70px"]{padding-top:0!important}
@media(max-width:1200px){body.tc-portal-shell:not(.tc-portal-public){margin-left:0}body.tc-portal-shell .sidebar{transform:translateX(-105%);z-index:1000;width:280px;box-shadow:4px 0 24px rgba(0,0,0,.25)}body.tc-portal-shell.tc-portal-open .sidebar{transform:translateX(0)}.tc-portal-menu{display:inline-flex;align-items:center;justify-content:center}body.tc-portal-shell.tc-portal-open .tc-portal-overlay{display:block;position:fixed;inset:0;background:rgba(7,20,43,.56);z-index:990}}
@media(max-width:600px){.tc-portal-topbar{padding:0 12px}.tc-portal-actions a{padding:7px 8px;font-size:11px}body.tc-portal-shell .hero{padding:28px 16px}body.tc-portal-shell header{padding:22px 16px}body.tc-portal-shell .wrap{padding-left:14px;padding-right:14px}body.tc-portal-shell .card{padding:14px}body.tc-portal-shell .grid{grid-template-columns:minmax(0,1fr)}body.tc-portal-shell .steps{grid-template-columns:minmax(0,1fr)}body.tc-portal-shell .chat-layout{height:calc(100dvh - 56px)}}
@media(max-width:1200px){body.tc-portal-shell .threads-panel.show{inset:56px 0 0 0}}
@media(display-mode:standalone){
  body.tc-portal-shell{padding-bottom:env(safe-area-inset-bottom)!important}
  body.tc-portal-shell .sidebar{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
  body.tc-portal-shell .tc-portal-topbar{height:calc(56px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  body.tc-portal-shell .chat-layout{height:calc(100dvh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}

/* brand-v3-wordmark-alignment */
.sb-brand-stack{gap:3px}
.sb-logo-mark{width:174px;max-width:100%;height:auto}
.sb-brand-tag{margin-left:13.49%;font-size:.56rem;letter-spacing:.07em;white-space:nowrap}

/* Make tagline span the original wordmark from L to final c. */
.sb-brand-tag{box-sizing:border-box;width:86.37%;max-width:86.37%;margin-left:13.49%;text-align:justify;text-align-last:justify;letter-spacing:0;white-space:nowrap}


/* Tutor-only sidebar palette. Do not recolor student or admin navigation. */

/* Shared student navigation: distribute complete words across the LessonInc wordmark. */
body.tc-portal-shell:not(.tc-portal-tutor):not(.tc-portal-public) .sb-brand-stack{width:min(174px,100%)}
body.tc-portal-shell:not(.tc-portal-tutor):not(.tc-portal-public) .sb-brand-tag{display:flex!important;justify-content:space-between;align-items:center;gap:2px;width:86.37%!important;max-width:86.37%!important;margin-left:13.49%!important;color:#edc967!important;font-weight:750;font-size:9px;line-height:1.3;letter-spacing:0!important;white-space:nowrap;visibility:visible!important;opacity:1!important;text-align:left!important;text-align-last:auto!important}

/* Final LessonInc portal-brand normalization. */
.sb-brand-stack{width:min(200px,100%)!important;gap:0!important}
.sb-logo-mark{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
.sb-brand-tag{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:0!important;box-sizing:border-box!important;width:86.37%!important;max-width:86.37%!important;margin:1px 0 0 13.49%!important;padding:0!important;color:#edc967!important;font-size:9px!important;font-weight:750!important;line-height:1.15!important;letter-spacing:0!important;text-transform:none!important;text-align:left!important;text-align-last:auto!important;white-space:nowrap!important}
.sb-brand-tag>span{display:inline-block!important;flex:0 0 auto!important}
body.tc-portal-shell:not(.tc-portal-tutor):not(.tc-portal-public) .sb-brand-stack{width:min(200px,100%)!important}

/* Student portal shared palette bootstrap — full rules load last from student-portal-theme.css. */
body.tc-portal-student{background:linear-gradient(135deg,#F9FBFE 0%,#F7F9FC 58%,#FFF9EE 100%);color:#12213F}
body.tc-portal-student .sidebar{background:linear-gradient(180deg,#FFF 0%,#F7FAFE 62%,#FFFDF8 100%);border-right:1px solid #E6EBF2;box-shadow:8px 0 26px rgba(18,33,63,.035)}
body.tc-portal-student .sb-profile{display:none}
body.tc-portal-student .sidebar a.nav-item{color:#334767}
body.tc-portal-student .sidebar a.nav-item:hover{background:#F0F6FD;color:#0F315E}
body.tc-portal-student .sidebar a.nav-item.active{background:linear-gradient(90deg,#FFF3D5,#FFF9E8);color:#9A6300}
body.tc-portal-student .nav-divider{background:#E6EBF2}
body.tc-portal-student .tc-portal-topbar{background:rgba(255,255,255,.96);border-color:#E6EBF2;color:#172647}

/* Keep the portal footer reachable on short-height tablet landscape screens. */
body.tc-portal-student .sidebar{display:flex;flex-direction:column;overflow:hidden}
body.tc-portal-student .sb-logo{flex:0 0 auto}
body.tc-portal-student .sb-nav{flex:1 1 auto;min-height:0;overflow-y:auto}
body.tc-portal-student .sb-bottom{flex:0 0 auto;position:sticky;bottom:0;z-index:3;background:#fff}
