/* ==========================================================
   ORBIT_MAIN_WORKSPACE_V1
   Main website app-style workspace
   Payment system intentionally untouched.
   ========================================================== */

html.orbit-main-workspace-enabled body{
  padding-bottom:110px !important;
}

#orbit-main-dock{
  position:fixed;
  z-index:9000;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  width:min(520px,calc(100vw - 28px));
  min-height:72px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  border:1px solid rgba(88,201,255,.20);
  border-radius:23px;
  background:rgba(3,10,17,.96);
  box-shadow:
    0 18px 45px rgba(0,0,0,.38),
    0 0 28px rgba(30,161,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.orbit-main-tab{
  appearance:none;
  border:0;
  min-height:56px;
  border-radius:17px;
  background:transparent;
  color:#8c929b;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  transition:.18s ease;
}

.orbit-main-tab svg{
  width:25px;
  height:25px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.3;
}

.orbit-main-tab.active{
  color:#159cff;
  background:rgba(21,156,255,.08);
}

.orbit-main-tab:hover{
  color:#28b2ff;
  transform:translateY(-1px);
}

#orbit-learning-workspace{
  position:fixed;
  z-index:8990;
  inset:0;
  display:none;
  overflow:auto;
  background:
    radial-gradient(circle at 50% -10%,rgba(27,143,255,.14),transparent 36%),
    #050607;
  color:#f5f7fb;
  overscroll-behavior:contain;
}

#orbit-learning-workspace.open{
  display:block;
}

.orbit-learning-shell{
  width:min(900px,100%);
  margin:0 auto;
  padding:
    max(24px,env(safe-area-inset-top))
    20px
    calc(130px + env(safe-area-inset-bottom));
}

.orbit-learning-head{
  position:sticky;
  top:0;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0 20px;
  background:linear-gradient(#050607 72%,rgba(5,6,7,0));
}

.orbit-learning-title{
  margin:0;
  font-size:clamp(30px,5vw,46px);
  line-height:1.15;
  font-weight:900;
}

.orbit-learning-close{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:#17191d;
  color:#fff;
  cursor:pointer;
  font-size:26px;
}

.orbit-learning-card{
  margin:0 0 16px;
  padding:22px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:20px;
  background:#191a1e;
  box-shadow:0 10px 30px rgba(0,0,0,.14);
}

.orbit-learning-card h3{
  margin:0 0 9px;
  font-size:22px;
  font-weight:900;
}

.orbit-learning-card p{
  margin:0;
  color:#9da1ab;
  line-height:1.75;
}

.orbit-learning-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.orbit-learning-card-head h3{
  margin:0;
}

.orbit-learning-action,
.orbit-learning-secondary{
  min-height:48px;
  padding:10px 18px;
  border:0;
  border-radius:13px;
  cursor:pointer;
  font-family:inherit;
  font-weight:900;
  font-size:15px;
}

.orbit-learning-action{
  background:#128df3;
  color:#fff;
}

.orbit-learning-secondary{
  background:#35363d;
  color:#2aa4ff;
}

.orbit-learning-wide{
  width:100%;
  margin-top:16px;
}

#orbit-learning-progress-list{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.orbit-progress-course{
  padding:15px;
  border-radius:15px;
  background:#111216;
  border:1px solid rgba(255,255,255,.06);
}

.orbit-progress-course-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  font-weight:800;
}

.orbit-progress-track{
  height:8px;
  margin:11px 0 10px;
  overflow:hidden;
  background:#292c31;
  border-radius:999px;
}

.orbit-progress-track span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#188eff,#26d4dc);
}

.orbit-progress-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#9da1ab;
  font-size:13px;
}

.orbit-focus-wrap{
  text-align:center;
}

#orbit-focus-time{
  margin:20px 0 17px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:clamp(52px,10vw,76px);
  line-height:1;
  font-weight:900;
  letter-spacing:-3px;
}

.orbit-focus-actions{
  display:flex;
  justify-content:center;
  gap:12px;
}

#orbit-focus-stats{
  margin-top:17px;
  color:#90949e;
  font-size:14px;
}

#orbit-study-notes{
  width:100%;
  min-height:190px;
  resize:vertical;
  margin-top:16px;
  padding:16px;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:#08090b;
  color:#fff;
  outline:none;
  font:inherit;
  line-height:1.7;
}

.orbit-course-shortcuts{
  display:grid;
  gap:11px;
  margin-top:15px;
}

.orbit-course-shortcut{
  width:100%;
  min-height:54px;
  padding:10px 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:0;
  border-radius:14px;
  background:#383941;
  color:#179cff;
  cursor:pointer;
  font-family:inherit;
  font-size:17px;
  font-weight:850;
  text-align:start;
}

.orbit-learning-empty{
  padding:18px 0 4px;
  color:#a5a8b0;
}

@media (max-width:700px){
  html.orbit-main-workspace-enabled body{
    padding-bottom:96px !important;
  }

  #orbit-main-dock{
    left:0;
    right:0;
    bottom:0;
    transform:none;
    width:auto;
    min-height:72px;
    border-radius:20px 20px 0 0;
    border-left:0;
    border-right:0;
    border-bottom:0;
    padding:
      7px 8px
      calc(7px + env(safe-area-inset-bottom));
  }

  .orbit-main-tab{
    min-height:58px;
  }

  .orbit-learning-shell{
    padding-left:16px;
    padding-right:16px;
  }

  .orbit-learning-card{
    padding:19px 17px;
  }
}
